In [ ]:
. ./nbs_header.ps1
. ./core.ps1
In [ ]:
{ . "$ScriptDir/../apps/builder/build.ps1" } | Invoke-Block
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # DibParser (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── pwsh ────────────────────────────────────────────────────────────────────────
ls ~/.nuget/packages/argu
╭─[ 553.34ms - stdout ]────────────────────────────────────────────────────────╮
│ │
│ Directory: C:\Users\i574n\.nuget\packages\argu │
│ │
│ Mode LastWriteTime Length[ │
│ 32;1m Name │
│ ---- ------------- ------ [ │
│ 32;1m---- │
│ d---- 2023-05-17 3:38 PM 6.1.1 │
│ d---- 2024-03-12 8:22 PM 6.1.4 │
│ d---- 2024-01-29 5:12 PM 6.1.5 │
│ d---- 2024-03-12 8:20 PM 6.2.0 │
│ d---- 2024-02-23 6:50 PM 6.2.1 │
│ d---- 2024-03-12 8:15 PM 6.2.2 │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#r
@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
dard2.1/FSharp.Control.AsyncSeq.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
0/System.Reactive.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
netstandard2.0/System.Reactive.Linq.dll"
#r
@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"
#r
@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li
b/net6.0/System.CommandLine.dll"
#r
@"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP
arsec.dll"
#r
@"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP
arsecCS.dll"
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Common.fs
#!import ../../lib/fsharp/CommonFSharp.fs
#!import ../../lib/fsharp/Async.fs
#!import ../../lib/fsharp/AsyncSeq.fs
#!import ../../lib/fsharp/Runtime.fs
#!import ../../lib/fsharp/FileSystem.fs
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldValue : string) (newValue : string) (input :
string) =
input.Replace (oldValue, newValue)
let inline split separator (input : string) =
input.Split separator
let inline spli...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module CommonFSharp =
open Common
/// ## getUnionCaseName
let inline getUnionCaseName<'T> (x: 'T) =
match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
| case, _ -> case.Name
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Async =
open Common
/// ## choice
let inline choice asyncs = async {
let e = Event<_> ()
use cts = new System.Threading.CancellationTokenSource ()
let fn =
asyncs
|> Seq.map (fun a -> async {
let! x = a
e.Trigger x
})
|> Async.Parallel
|> Async.Ignore
Async.Start (fn, cts.Token)
let! result = Async.AwaitEvent e.Publish
cts.Cancel ()
return result
}
/// ## map
let inline map fn a = async {
let! x = a
return fn x
}
/// ## catch
let inline catch a =
a
|> Async.Catch
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module AsyncSeq =
open Common
/// ## subscribeEvent
let inline subscribeEvent (event: IEvent<'H, 'A>) map =
let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
'A>(event.AddHandler, event.RemoveHandler)
System.Reactive.Linq.Observable.Select (observable, fun event -> map
event.EventArgs)
|> FSharp.Control.AsyncSeq.ofObservableBuffered
let subscribeToken (token : System.Threading.CancellationToken) =
let tcs = new System.Threading.Tasks.TaskCompletionSource ()
System.Action tcs.SetResult |> token.Register |> ignore
let start = System.DateTime.Now.Ticks
FSharp.Control.AsyncSeq.unfoldAsync
(fun (...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Runtime =
open Common
/// ## isWindows
let isWindows =
fun () ->
System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform
System.Runtime.InteropServices.OSPlatform.Windows
|> memoize
/// ## getExecutableSuffix
let inline getExecutableSuffix () =
if isWindows ()
then ".exe"
else ""
/// ## splitCommand
type private CommandParseStep =
| Start
| Path of quoted: bool
| Arguments
let splitCommand (command: string) =
let rec loop (path, args) chars step =
match chars, step with
| ('"' | '\'') :: tail, _ when path = "" -> loop (pat...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module FileSystem =
open Common
/// ## Operators
module Operators =
let inline (</>) a b =
System.IO.Path.Combine (a, b)
open Operators
/// ## createTempDirectoryName
let inline createTempDirectoryName () =
let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name
System.IO.Path.GetTempPath ()
</> $"!{root}"
</> string (newGuidFromDateTime System.DateTime.Now)
/// ## createTempDirectory
let inline createTempDirectory () =
let tempFolder = createTempDirectoryName ()
let result = System.IO.Directory.CreateDirectory tempFolder
if not result.Exists then
let ge...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
open FParsec
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## escapeCell (test) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let inline escapeCell input =
input
|> String.split [[| '\n' |]]
|> Array.map (function
| line when line |> String.startsWith "\\#!" || line |>
String.startsWith "\\#r" ->
System.Text.RegularExpressions.Regex.Replace (line, "^\\\\#", "#")
| line -> line
)
|> String.concat "\n"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
$"a{nl}\\#!magic{nl}b{nl}"
|> escapeCell
|> _assertEqual (
$"a{nl}#!magic{nl}b{nl}"
)
╭─[ 52.66ms - stdout ]─────────────────────────────────────────────────────────╮
│ a │
│ #!magic │
│ b │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## magicMarker │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let magicMarker : Parser<string, unit> = pstring "#!"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!magic"
|> run magicMarker
|> _assertEqual (
Success ("#!", (), Position ("", 2, 1, 3))
)
╭─[ 45.82ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item1: #! │
│ Item2: <null> │
│ Item3: Position │
│ Index: 2 │
│ Line: 1 │
│ Column: 3 │
│ StreamName: │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"##!magic"
|> run magicMarker
|> _assertEqual (
Failure (
$"Error in Ln: 1 Col: 1{nl}##!magic{nl}^{nl}Expecting: '#!'{nl}",
ParserError (
Position ("", 0, 1, 1),
(),
ErrorMessageList (ExpectedString "#!")
),
()
)
)
╭─[ 50.48ms - stdout ]─────────────────────────────────────────────────────────╮
│ Failure │
│ Item1: Error in Ln: 1 Col: 1 │
│ ##!magic │
│ ^ │
│ Expecting: '#!' │
│ │
│ Item2: ParserError │
│ Position: Position │
│ Index: 0 │
│ Line: 1 │
│ Column: 1 │
│ StreamName: │
│ UserState: <null> │
│ Messages: ErrorMessageList │
│ Head: ExpectedString │
│ String: #! │
│ Type: ExpectedString │
│ Tail: <null> │
│ Item3: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## magicCommand │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let magicCommand =
magicMarker
>>. manyTill anyChar newline
|>> (System.String.Concat >> String.trim)
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!magic
a"
|> run magicCommand
|> _assertEqual (
Success ("magic", (), Position ("", 8, 2, 1))
)
╭─[ 59.51ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item1: magic │
│ Item2: <null> │
│ Item3: Position │
│ Index: 8 │
│ Line: 2 │
│ Column: 1 │
│ StreamName: │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
" #!magic
a"
|> run magicCommand
|> _assertEqual (
Failure (
$"Error in Ln: 1 Col: 1{nl} #!magic{nl}^{nl}Expecting: '#!'{nl}",
ParserError (
Position ("", 0, 1, 1),
(),
ErrorMessageList (ExpectedString "#!")
),
()
)
)
╭─[ 45.45ms - stdout ]─────────────────────────────────────────────────────────╮
│ Failure │
│ Item1: Error in Ln: 1 Col: 1 │
│ #!magic │
│ ^ │
│ Expecting: '#!' │
│ │
│ Item2: ParserError │
│ Position: Position │
│ Index: 0 │
│ Line: 1 │
│ Column: 1 │
│ StreamName: │
│ UserState: <null> │
│ Messages: ErrorMessageList │
│ Head: ExpectedString │
│ String: #! │
│ Type: ExpectedString │
│ Tail: <null> │
│ Item3: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## content │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let content =
(newline >>. magicMarker) <|> (eof >>. preturn "")
|> attempt
|> lookAhead
|> manyTill anyChar
|>> (System.String.Concat >> String.trim)
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!magic
a
"
|> run content
|> _assertEqual (
Success ("#!magic
a", (), Position ("", 14, 7, 1))
)
╭─[ 33.31ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item1: #!magic │
│ │
│ │
│ a │
│ Item2: <null> │
│ Item3: Position │
│ Index: 14 │
│ Line: 7 │
│ Column: 1 │
│ StreamName: │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Block │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
type Block =
{
magic : string
content : string
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## block │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let block =
pipe2
magicCommand
content
(fun magic content ->
{
magic = magic
content = content
})
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!magic
a
"
|> run block
|> _assertEqual (
Success (
{ magic = "magic"; content = "a" },
(),
Position ("", 14, 7, 1)
)
)
╭─[ 38.43ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item1: Block │
│ magic: magic │
│ content: a │
│ Item2: <null> │
│ Item3: Position │
│ Index: 14 │
│ Line: 7 │
│ Column: 1 │
│ StreamName: │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## blocks │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let blocks =
skipMany newline
>>. sepEndBy block (skipMany1 newline)
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!magic1
a
\#!magic2
b
"
|> escapeCell
|> run blocks
|> _assertEqual (
Success (
[[
{ magic = "magic1"; content = "a" }
{ magic = "magic2"; content = "b" }
]],
(),
Position ("", 26, 9, 1)
)
)
╭─[ 43.63ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item1: FSharpList<Block> │
│ - magic: magic1 │
│ content: a │
│ - magic: magic2 │
│ content: b │
│ Item2: <null> │
│ Item3: Position │
│ Index: 26 │
│ Line: 9 │
│ Column: 1 │
│ StreamName: │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Output │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
type Output =
| Fs
| Md
| Spi
| Spir
let inline kernelOutputs magic =
match magic with
| "fsharp" -> [[ Fs ]]
| "markdown" -> [[ Md ]]
| "spiral" -> [[ Spi; Spir ]]
| _ -> [[]]
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## formatBlock │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline formatBlock output (block : Block) =
match output, block with
| output, { magic = "markdown"; content = content } ->
let markdownComment =
match output with
| Spi | Spir -> "// // "
| Fs -> "/// "
| _ -> ""
content
|> String.split [[| '\n' |]]
|> Array.map (String.trimEnd [[||]])
|> Array.filter (String.endsWith " (test)" >> not)
|> Array.map (function
| "" -> markdownComment |> String.trim
| line -> System.Text.RegularExpressions.Regex.Replace (line,
"^\\s*", $"$&{markdownComment}")
)
|> String.concat "\n"
| Fs, { magic = "fsharp"; content = content } ->
let trimmedContent = content |> String.trim
if trimmedContent |> String.startsWith "//// test" || trimmedContent |>
String.startsWith "//// ignore"
then ""
else
content
|> String.split [[| '\n' |]]
|> Array.filter (String.trimStart [[||]] >> String.startsWith "#r"
>> not)
|> String.concat "\n"
| (Spi | Spir), { magic = "spiral"; content = content } ->
let trimmedContent = content |> String.trim
if trimmedContent |> String.startsWith "// // test" || trimmedContent |>
String.startsWith "// // ignore"
then ""
else content
| _ -> ""
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!markdown
a
b
c
\#!markdown
c
\#!fsharp
let a = 1"
|> escapeCell
|> run block
|> function
| Success (block, _, _) -> formatBlock Fs block
| Failure (msg, _, _) -> failwith msg
|> _assertEqual "/// a
///
/// b
///
/// c"
╭─[ 53.35ms - stdout ]─────────────────────────────────────────────────────────╮
│ /// a │
│ /// │
│ /// b │
│ /// │
│ /// c │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## formatBlocks │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline formatBlocks output blocks =
blocks
|> List.map (formatBlock output)
|> List.filter ((<>) "")
|> String.concat "\n\n"
|> fun s -> s + "\n"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!markdown
a
b
\#!markdown
c
\#!fsharp
let a = 1
\#!markdown
d (test)
\#!fsharp
//// test
let a = 2
\#!markdown
e
\#!fsharp
let a = 3"
|> escapeCell
|> run blocks
|> function
| Success (blocks, _, _) -> formatBlocks Fs blocks
| Failure (msg, _, _) -> failwith msg
|> _assertEqual "/// a
///
/// b
/// c
let a = 1
/// e
let a = 3
"
╭─[ 66.42ms - stdout ]─────────────────────────────────────────────────────────╮
│ /// a │
│ /// │
│ /// b │
│ │
│ /// c │
│ │
│ let a = 1 │
│ │
│ /// e │
│ │
│ let a = 3 │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## parse │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline parse output input =
match run blocks input with
| Success (blocks, _, _) ->
let blocks =
blocks
|> List.filter (fun block ->
block.magic |> kernelOutputs |> List.contains output ||
block.magic = "markdown"
)
match blocks with
| { magic = "markdown"; content = content } :: _
when output = Fs
&& content |> String.startsWith "# "
&& content |> String.endsWith ")"
->
let inline indentBlock (block : Block) =
{ block with
content =
block.content
|> String.split [[| '\n' |]]
|> Array.fold
(fun (lines, isMultiline) line ->
let trimmedLine = line |> String.trim
if trimmedLine = ""
then "" :: lines, isMultiline
else
let inline singleQuoteLine () =
trimmedLine |> Seq.sumBy ((=) '"' >>
System.Convert.ToInt32) = 1
&& trimmedLine |> String.contains
@"'""'" |> not
&& trimmedLine |> String.endsWith "{" |>
not
&& trimmedLine |> String.endsWith "{|"
|> not
&& trimmedLine |> String.startsWith "}"
|> not
&& trimmedLine |> String.startsWith "|}"
|> not
match isMultiline, trimmedLine |>
String.splitString [[| $"{q}{q}{q}" |]] with
| false, [[| _; _ |]] ->
$" {line}" :: lines, true
| true, [[| _; _ |]] ->
line :: lines, false
| false, _ when singleQuoteLine () ->
$" {line}" :: lines, true
| false, _ when line |> String.startsWith
"#" && block.magic = "fsharp" ->
line :: lines, false
| false, _ ->
$" {line}" :: lines, false
| true, _ when singleQuoteLine () && line |>
String.startsWith " " ->
$" {line}" :: lines, false
| true, _ when singleQuoteLine () ->
line :: lines, false
| true, _ ->
line :: lines, true
)
([[]], false)
|> fst
|> List.rev
|> String.concat "\n"
}
let moduleName, namespaceName =
System.Text.RegularExpressions.Regex.Match (content, @"# (.*)
\((.*)\)$")
|> fun m -> m.Groups.[[1]].Value, m.Groups.[[2]].Value
let moduleBlock =
{
magic = "fsharp"
content =
$"#if !INTERACTIVE
namespace {namespaceName}
#endif
module {moduleName} ="
}
blocks
|> List.indexed
|> List.fold
(fun blocks (index, block) ->
match index with
| 0 -> blocks
| 1 -> indentBlock block :: moduleBlock :: blocks
| _ -> indentBlock block :: blocks
)
[[]]
|> List.rev
| _ -> blocks
|> Result.Ok
| Failure (errorMsg, _, _) -> Result.Error errorMsg
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let example1 =
$"""#!meta
{{"kernelInfo":{{"defaultKernelName":"fsharp","items":[[{{"aliases":[[]],"name":
"fsharp"}},{{"aliases":[[]],"name":"fsharp"}}]]}}}}
\#!markdown
# TestModule (TestNamespace)
\#!fsharp
\#!import file.dib
\#!fsharp
\#r "nuget:Expecto"
\#!markdown
## ParserLibrary
\#!fsharp
open System
\#!markdown
## x (test)
\#!fsharp
//// ignore
let x = 1
\#!spiral
// // test
inl x = 0i32
\#!spiral
inl x = 0i32
\#!markdown
### TextInput
\#!fsharp
let str1 = "abc
def"
let str2 =
"abc\
def"
let str3 =
$"1{{
1
}}1"
let str4 =
$"1{{({{|
a = 1
|}}).a}}1"
let str5 =
"abc \
def"
let x =
match '"' with
| '"' -> true
| _ -> false
let long1 = {q}{q}{q}a{q}{q}{q}
let long2 =
{q}{q}{q}
a
{q}{q}{q}
\#!fsharp
type Position =
{{
#if INTERACTIVE
line : string
#else
line : int
#endif
column : int
}}"""
|> escapeCell
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
example1
|> parse Fs
|> Result.toOption
|> Option.get
|> (formatBlocks Fs)
|> _assertEqual $"""#if !INTERACTIVE
namespace TestNamespace
#endif
module TestModule =
/// ## ParserLibrary
open System
/// ### TextInput
let str1 = "abc
def"
let str2 =
"abc\
def"
let str3 =
$"1{{
1
}}1"
let str4 =
$"1{{({{|
a = 1
|}}).a}}1"
let str5 =
"abc \
def"
let x =
match '"' with
| '"' -> true
| _ -> false
let long1 = {q}{q}{q}a{q}{q}{q}
let long2 =
{q}{q}{q}
a
{q}{q}{q}
type Position =
{{
#if INTERACTIVE
line : string
#else
line : int
#endif
column : int
}}
"""
╭─[ 150.39ms - stdout ]────────────────────────────────────────────────────────╮
│ #if !INTERACTIVE │
│ namespace TestNamespace │
│ #endif │
│ │
│ module TestModule = │
│ │
│ /// ## ParserLibrary │
│ │
│ open System │
│ │
│ /// ### TextInput │
│ │
│ let str1 = "abc │
│ def" │
│ │
│ let str2 = │
│ "abc\ │
│ def" │
│ │
│ let str3 = │
│ $"1{ │
│ 1 │
│ }1" │
│ │
│ let str4 = │
│ $"1{({| │
│ a = 1 │
│ |}).a}1" │
│ │
│ let str5 = │
│ "abc \ │
│ def" │
│ │
│ let x = │
│ match '"' with │
│ | '"' -> true │
│ | _ -> false │
│ │
│ let long1 = """a""" │
│ │
│ let long2 = │
│ """ │
│ a │
│ """ │
│ │
│ type Position = │
│ { │
│ #if INTERACTIVE │
│ line : string │
│ #else │
│ line : int │
│ #endif │
│ column : int │
│ } │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
example1
|> parse Md
|> Result.toOption
|> Option.get
|> (formatBlocks Md)
|> _assertEqual "# TestModule (TestNamespace)
## ParserLibrary
### TextInput
"
╭─[ 143.60ms - stdout ]────────────────────────────────────────────────────────╮
│ # TestModule (TestNamespace) │
│ │
│ ## ParserLibrary │
│ │
│ ### TextInput │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
example1
|> parse Spi
|> Result.toOption
|> Option.get
|> (formatBlocks Spi)
|> _assertEqual "// // # TestModule (TestNamespace)
// // ## ParserLibrary
inl x = 0i32
// // ### TextInput
"
╭─[ 138.75ms - stdout ]────────────────────────────────────────────────────────╮
│ // // # TestModule (TestNamespace) │
│ │
│ // // ## ParserLibrary │
│ │
│ inl x = 0i32 │
│ │
│ // // ### TextInput │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## parseDibCode │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline parseDibCode output file = async {
let getLocals () = $"output: {output} / file: {file} / {getLocals ()}"
trace Debug (fun () -> "parseDibCode") getLocals
let! input = file |> FileSystem.readAllTextAsync
match parse output input with
| Result.Ok blocks -> return blocks |> formatBlocks output
| Result.Error msg -> return failwith msg
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## writeDibCode │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline writeDibCode output path = async {
let getLocals () = $"output: {output} / path: {path} / {getLocals ()}"
trace Debug (fun () -> "writeDibCode") getLocals
let! result = parseDibCode output path
let outputPath = path |> String.replace ".dib" $".{output |> string |>
String.toLower}"
do! result |> FileSystem.writeAllTextAsync outputPath
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Arguments │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
[[<RequireQualifiedAccess>]]
type Arguments =
| [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.Mandatory>]]
File of file : string * Output
interface Argu.IArgParserTemplate with
member s.Usage =
match s with
| File _ -> nameof File
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
╭─[ 100.70ms - return value ]──────────────────────────────────────────────────╮
│ USAGE: dotnet-repl [--help] <file> <fs|md|spi|spir> │
│ │
│ FILE: │
│ │
│ <file> <fs|md|spi|spir> │
│ File │
│ │
│ OPTIONS: │
│ │
│ --help display this list of options. │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## main │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let main args =
let argsMap = args |> Runtime.parseArgsMap<Arguments>
let files =
argsMap.[[nameof Arguments.File]]
|> List.map (function
| Arguments.File (path, output) -> path, output
)
files
|> List.map (fun (path, output) -> path |> writeDibCode output)
|> Async.Parallel
|> Async.Ignore
|> Async.runWithTimeout 30000
|> function
| Some () -> 0
| None -> 1
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let args =
System.Environment.GetEnvironmentVariable "ARGS"
|> Runtime.splitArgs
|> Seq.toArray
match args with
| [[||]] -> 0
| args -> if main args = 0 then 0 else failwith "main failed"
╭─[ 138.90ms - return value ]──────────────────────────────────────────────────╮
│ <div class="dni-plaintext"><pre>0</pre></div><style> │
│ .dni-code-hint { │
│ font-style: italic; │
│ overflow: hidden; │
│ white-space: nowrap; │
│ } │
│ .dni-treeview { │
│ white-space: nowrap; │
│ } │
│ .dni-treeview td { │
│ vertical-align: top; │
│ text-align: start; │
│ } │
│ details.dni-treeview { │
│ padding-left: 1em; │
│ } │
│ table td { │
│ text-align: start; │
│ } │
│ table tr { │
│ vertical-align: top; │
│ margin: 0em 0px; │
│ } │
│ table tr td pre │
│ { │
│ vertical-align: top !important; │
│ margin: 0em 0px !important; │
│ } │
│ table th { │
│ text-align: start; │
│ } │
│ </style> │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 151.67ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Builder.dib │
│ 00:00:00 #2 [Debug] parseDibCode / output: Fs / file: Builder.dib │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # Builder (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#r
@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
dard2.1/FSharp.Control.AsyncSeq.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
0/System.Reactive.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
netstandard2.0/System.Reactive.Linq.dll"
#r
@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"
#r
@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li
b/net6.0/System.CommandLine.dll"
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Common.fs
#!import ../../lib/fsharp/CommonFSharp.fs
#!import ../../lib/fsharp/Async.fs
#!import ../../lib/fsharp/AsyncSeq.fs
#!import ../../lib/fsharp/Networking.fs
#!import ../../lib/fsharp/Runtime.fs
#!import ../../lib/fsharp/FileSystem.fs
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldValue : string) (newValue : string) (input :
string) =
input.Replace (oldValue, newValue)
let inline split separator (input : string) =
input.Split separator
let inline spli...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module CommonFSharp =
open Common
/// ## getUnionCaseName
let inline getUnionCaseName<'T> (x: 'T) =
match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
| case, _ -> case.Name
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Async =
open Common
/// ## choice
let inline choice asyncs = async {
let e = Event<_> ()
use cts = new System.Threading.CancellationTokenSource ()
let fn =
asyncs
|> Seq.map (fun a -> async {
let! x = a
e.Trigger x
})
|> Async.Parallel
|> Async.Ignore
Async.Start (fn, cts.Token)
let! result = Async.AwaitEvent e.Publish
cts.Cancel ()
return result
}
/// ## map
let inline map fn a = async {
let! x = a
return fn x
}
/// ## catch
let inline catch a =
a
|> Async.Catch
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module AsyncSeq =
open Common
/// ## subscribeEvent
let inline subscribeEvent (event: IEvent<'H, 'A>) map =
let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
'A>(event.AddHandler, event.RemoveHandler)
System.Reactive.Linq.Observable.Select (observable, fun event -> map
event.EventArgs)
|> FSharp.Control.AsyncSeq.ofObservableBuffered
let subscribeToken (token : System.Threading.CancellationToken) =
let tcs = new System.Threading.Tasks.TaskCompletionSource ()
System.Action tcs.SetResult |> token.Register |> ignore
let start = System.DateTime.Now.Ticks
FSharp.Control.AsyncSeq.unfoldAsync
(fun (...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Networking =
open Common
/// ## testPortOpen
let inline testPortOpen port = async {
let! ct = Async.CancellationToken
use client = new System.Net.Sockets.TcpClient ()
try
do! client.ConnectAsync ("127.0.0.1", port, ct) |>
Async.awaitValueTaskUnit
return true
with ex ->
trace Verbose (fun () -> $"testPortOpen / ex: {ex |>
printException}") getLocals
return false
}
let inline testPortOpenTimeout timeout port = async {
let! result =
testPortOpen port
|> Async.runWithTimeoutAsync timeout
return
match result with
| None -> false
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Runtime =
open Common
/// ## isWindows
let isWindows =
fun () ->
System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform
System.Runtime.InteropServices.OSPlatform.Windows
|> memoize
/// ## getExecutableSuffix
let inline getExecutableSuffix () =
if isWindows ()
then ".exe"
else ""
/// ## splitCommand
type private CommandParseStep =
| Start
| Path of quoted: bool
| Arguments
let splitCommand (command: string) =
let rec loop (path, args) chars step =
match chars, step with
| ('"' | '\'') :: tail, _ when path = "" -> loop (pat...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module FileSystem =
open Common
/// ## Operators
module Operators =
let inline (</>) a b =
System.IO.Path.Combine (a, b)
open Operators
/// ## createTempDirectoryName
let inline createTempDirectoryName () =
let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name
System.IO.Path.GetTempPath ()
</> $"!{root}"
</> string (newGuidFromDateTime System.DateTime.Now)
/// ## createTempDirectory
let inline createTempDirectory () =
let tempFolder = createTempDirectoryName ()
let result = System.IO.Directory.CreateDirectory tempFolder
if not result.Exists then
let ge...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
open FileSystem.Operators
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## buildProject │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline buildProject runtime outputDir path = async {
let fullPath = path |> System.IO.Path.GetFullPath
let fileDir = fullPath |> System.IO.Path.GetDirectoryName
let extension = fullPath |> System.IO.Path.GetExtension
let getLocals () = $"fullPath: {fullPath} / {getLocals ()}"
trace Debug (fun () -> "buildProject") getLocals
match extension with
| ".fsproj" -> ()
| _ -> failwith "Invalid project file"
let runtimes =
runtime
|> Option.map List.singleton
|> Option.defaultValue [[ "linux-x64"; "win-x64" ]]
let outputDir = outputDir |> Option.defaultValue "dist"
return!
runtimes
|> List.map (fun runtime -> async {
let! exitCode, _result =
Runtime.executeWithOptionsAsync
{
Command = $@"dotnet publish ""{path}"" --configuration
Release --output ""{outputDir}"" --runtime {runtime}"
CancellationToken = None
OnLine = None
WorkingDirectory = Some fileDir
}
return exitCode
})
|> Async.Sequential
|> Async.map Array.sum
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## persistCodeProject │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline persistCodeProject packages modules name code = async {
let getLocals () = $"packages: {packages} / modules: {modules} / name:
{name} / code.Length: {code |> String.length} / {getLocals ()}"
trace Debug (fun () -> "persistCodeProject") getLocals
let repositoryRoot = FileSystem.getSourceDirectory () |>
FileSystem.findParent ".paket" false
let targetDir = repositoryRoot </> "target/polyglot/builder" </> name
System.IO.Directory.CreateDirectory targetDir |> ignore
let filePath = targetDir </> $"{name}.fs" |> System.IO.Path.GetFullPath
do! code |> FileSystem.writeAllTextExists filePath
let modulesCode =
modules
|> List.map (fun path -> $"""<Compile Include="{repositoryRoot </>
path}" />""")
|> String.concat "\n "
let fsprojPath = targetDir </> $"{name}.fsproj"
let fsprojCode = $"""<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<LangVersion>preview</LangVersion>
<RollForward>Major</RollForward>
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
<PublishAot>false</PublishAot>
<PublishTrimmed>false</PublishTrimmed>
<PublishSingleFile>true</PublishSingleFile>
<SelfContained>true</SelfContained>
<Version>0.0.1-alpha.1</Version>
<OutputType>Exe</OutputType>
</PropertyGroup>
<ItemGroup>
{modulesCode}
<Compile Include="{filePath}" />
</ItemGroup>
<Import Project="{repositoryRoot}/.paket/Paket.Restore.targets" />
</Project>
"""
do! fsprojCode |> FileSystem.writeAllTextExists fsprojPath
let paketReferencesPath = targetDir </> "paket.references"
let paketReferencesCode =
"FSharp.Core" :: packages
|> String.concat "\n"
do! paketReferencesCode |> FileSystem.writeAllTextExists paketReferencesPath
return fsprojPath
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## buildCode │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline buildCode runtime packages modules outputDir name code = async {
let! fsprojPath = code |> persistCodeProject packages modules name
return! fsprojPath |> buildProject runtime outputDir
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"1 + 1 |> ignore"
|> buildCode None [[]] [[]] None "test1"
|> Async.runWithTimeout 180000
|> _assertEqual (Some 0)
╭─[ 18.24s - stdout ]──────────────────────────────────────────────────────────╮
│ 00:00:00 #1 [Debug] persistCodeProject / packages: [] / modules: [] / name: │
│ test1 / code.Length: 15 │
│ 00:00:00 #2 [Debug] buildProject / fullPath: │
│ C:\home\git\polyglot\target\polyglot\builder\test1\test1.fsproj │
│ 00:00:00 #3 [Debug] executeAsync / options: { Command = │
│ "dotnet publish │
│ "C:\home\git\polyglot\target/polyglot/builder\test1\test1.fsproj" │
│ --configuration Release --output "dist" --runtime linux-x64" │
│ WorkingDirectory = Some │
│ "C:\home\git\polyglot\target\polyglot\builder\test1" │
│ CancellationToken = None │
│ OnLine = None } │
│ 00:00:00 #4 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f │
│ for .NET │
│ 00:00:00 #5 [Verbose] > Determining projects to restore... │
│ 00:00:01 #6 [Verbose] > Paket version │
│ 8.1.0-alpha001+27cb9f111f156e8b68d08dc293857425c0ade23d │
│ 00:00:01 #7 [Verbose] > The last full restore is still up to date. Nothing │
│ left to do. │
│ 00:00:01 #8 [Verbose] > Total time taken: 0 milliseconds │
│ 00:00:02 #9 [Verbose] > Paket version │
│ 8.1.0-alpha001+27cb9f111f156e8b68d08dc293857425c0ade23d │
│ 00:00:02 #10 [Verbose] > Restoring │
│ C:\home\git\polyglot\target\polyglot\builder\test1\test1.fsproj │
│ 00:00:02 #11 [Verbose] > Starting restore process. │
│ 00:00:02 #12 [Verbose] > Total time taken: 0 milliseconds │
│ 00:00:03 #13 [Verbose] > Restored │
│ C:\home\git\polyglot\target\polyglot\builder\test1\test1.fsproj (in 327 ms). │
│ 00:00:03 #14 [Verbose] > │
│ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
│ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
│ ce.targets(313,5): message NETSDK1057: You are using a preview version of │
│ .NET. See: https://aka.ms/dotnet-support-policy [ │
│ C:\home\git\polyglot\target\polyglot\builder\test1\test1.fsproj] │
│ 00:00:05 #15 [Verbose] > │
│ C:\home\git\polyglot\target\polyglot\builder\test1\test1.fs(1,16): warning │
│ FS0988: Main module of program is empty: nothing will happen when it is run │
│ [C:\home\git\polyglot\target\polyglot\builder\test1\test1.fsproj] │
│ 00:00:06 #16 [Verbose] > test1 -> │
│ C:\home\git\polyglot\target\polyglot\builder\test1\bin\Release\net9.0\linux- │
│ x64\test1.dll │
│ 00:00:07 #17 [Verbose] > test1 -> │
│ C:\home\git\polyglot\target\polyglot\builder\test1\dist\ │
│ 00:00:07 #18 [Debug] executeAsync / exitCode: 0 / output.Length: 1293 │
│ 00:00:07 #19 [Debug] executeAsync / options: { Command = │
│ "dotnet publish │
│ "C:\home\git\polyglot\target/polyglot/builder\test1\test1.fsproj" │
│ --configuration Release --output "dist" --runtime win-x64" │
│ WorkingDirectory = Some │
│ "C:\home\git\polyglot\target\polyglot\builder\test1" │
│ CancellationToken = None │
│ OnLine = None } │
│ 00:00:07 #20 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f │
│ for .NET │
│ 00:00:08 #21 [Verbose] > Determining projects to restore... │
│ 00:00:08 #22 [Verbose] > Restored │
│ C:\home\git\polyglot\target\polyglot\builder\test1\test1.fsproj (in 311 ms). │
│ 00:00:08 #23 [Verbose] > │
│ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
│ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
│ ce.targets(313,5): message NETSDK1057: You are using a preview version of │
│ .NET. See: https://aka.ms/dotnet-support-policy [ │
│ C:\home\git\polyglot\target\polyglot\builder\test1\test1.fsproj] │
│ 00:00:10 #24 [Verbose] > │
│ C:\home\git\polyglot\target\polyglot\builder\test1\test1.fs(1,16): warning │
│ FS0988: Main module of program is empty: nothing will happen when it is run │
│ [C:\home\git\polyglot\target\polyglot\builder\test1\test1.fsproj] │
│ 00:00:11 #25 [Verbose] > test1 -> │
│ C:\home\git\polyglot\target\polyglot\builder\test1\bin\Release\net9.0\win-x6 │
│ 4\test1.dll │
│ 00:00:17 #26 [Verbose] > test1 -> │
│ C:\home\git\polyglot\target\polyglot\builder\test1\dist\ │
│ 00:00:17 #27 [Debug] executeAsync / exitCode: 0 / output.Length: 908 │
│ FSharpOption<Int32> │
│ Value: 0 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"1 + a |> ignore"
|> buildCode None [[]] [[]] None "test2"
|> Async.runWithTimeout 180000
|> _assertEqual (Some 2)
╭─[ 8.56s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:18 #28 [Debug] persistCodeProject / packages: [] / modules: [] / name: │
│ test2 / code.Length: 15 │
│ 00:00:18 #29 [Debug] buildProject / fullPath: │
│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fsproj │
│ 00:00:18 #30 [Debug] executeAsync / options: { Command = │
│ "dotnet publish │
│ "C:\home\git\polyglot\target/polyglot/builder\test2\test2.fsproj" │
│ --configuration Release --output "dist" --runtime linux-x64" │
│ WorkingDirectory = Some │
│ "C:\home\git\polyglot\target\polyglot\builder\test2" │
│ CancellationToken = None │
│ OnLine = None } │
│ 00:00:18 #31 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f │
│ for .NET │
│ 00:00:19 #32 [Verbose] > Determining projects to restore... │
│ 00:00:19 #33 [Verbose] > Paket version │
│ 8.1.0-alpha001+27cb9f111f156e8b68d08dc293857425c0ade23d │
│ 00:00:19 #34 [Verbose] > The last full restore is still up to date. │
│ Nothing left to do. │
│ 00:00:19 #35 [Verbose] > Total time taken: 0 milliseconds │
│ 00:00:20 #36 [Verbose] > Paket version │
│ 8.1.0-alpha001+27cb9f111f156e8b68d08dc293857425c0ade23d │
│ 00:00:20 #37 [Verbose] > Restoring │
│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fsproj │
│ 00:00:20 #38 [Verbose] > Starting restore process. │
│ 00:00:20 #39 [Verbose] > Total time taken: 0 milliseconds │
│ 00:00:21 #40 [Verbose] > Restored │
│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fsproj (in 320 ms). │
│ 00:00:21 #41 [Verbose] > │
│ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
│ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
│ ce.targets(313,5): message NETSDK1057: You are using a preview version of │
│ .NET. See: https://aka.ms/dotnet-support-policy [ │
│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fsproj] │
│ 00:00:22 #42 [Verbose] > │
│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fs(1,5): error │
│ FS0039: The value or constructor 'a' is not defined. [ │
│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fsproj] │
│ 00:00:23 #43 [Debug] executeAsync / exitCode: 1 / output.Length: 1098 │
│ 00:00:23 #44 [Debug] executeAsync / options: { Command = │
│ "dotnet publish │
│ "C:\home\git\polyglot\target/polyglot/builder\test2\test2.fsproj" │
│ --configuration Release --output "dist" --runtime win-x64" │
│ WorkingDirectory = Some │
│ "C:\home\git\polyglot\target\polyglot\builder\test2" │
│ CancellationToken = None │
│ OnLine = None } │
│ 00:00:23 #45 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f │
│ for .NET │
│ 00:00:23 #46 [Verbose] > Determining projects to restore... │
│ 00:00:24 #47 [Verbose] > Restored │
│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fsproj (in 300 ms). │
│ 00:00:24 #48 [Verbose] > │
│ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
│ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
│ ce.targets(313,5): message NETSDK1057: You are using a preview version of │
│ .NET. See: https://aka.ms/dotnet-support-policy [ │
│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fsproj] │
│ 00:00:26 #49 [Verbose] > │
│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fs(1,5): error │
│ FS0039: The value or constructor 'a' is not defined. [ │
│ C:\home\git\polyglot\target\polyglot\builder\test2\test2.fsproj] │
│ 00:00:26 #50 [Debug] executeAsync / exitCode: 1 / output.Length: 715 │
│ FSharpOption<Int32> │
│ Value: 2 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## readFile │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline readFile path = async {
let! code = path |> FileSystem.readAllTextAsync
let code = System.Text.RegularExpressions.Regex.Replace (
code,
@"( *)(let\s+main\s+.*?\s*=)",
fun m -> m.Groups.[[1]].Value + "[[<EntryPoint>]]\n" +
m.Groups.[[1]].Value + m.Groups.[[2]].Value
)
let codeTrim = code |> String.trimEnd [[||]]
return
if codeTrim |> String.endsWith "\n()"
then codeTrim |> String.substring 0 ((codeTrim |> String.length) - 2)
else code
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## buildFile │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline buildFile runtime packages modules path = async {
let fullPath = path |> System.IO.Path.GetFullPath
let dir = fullPath |> System.IO.Path.GetDirectoryName
let name = fullPath |> System.IO.Path.GetFileNameWithoutExtension
let! code = fullPath |> readFile
return! code |> buildCode runtime packages modules (dir </> "dist" |> Some)
name
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## persistFile │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline persistFile packages modules path = async {
let fullPath = path |> System.IO.Path.GetFullPath
let name = fullPath |> System.IO.Path.GetFileNameWithoutExtension
let! code = fullPath |> readFile
return! code |> persistCodeProject packages modules name
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Arguments │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
[[<RequireQualifiedAccess>]]
type Arguments =
| [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce>]]
Path of path : string
| [[<Argu.ArguAttributes.Unique>]] Packages of packages : string list
| [[<Argu.ArguAttributes.Unique>]] Modules of modules : string list
| [[<Argu.ArguAttributes.Unique>]] Runtime of runtime : string
| [[<Argu.ArguAttributes.Unique>]] Persist_Only
interface Argu.IArgParserTemplate with
member s.Usage =
match s with
| Path _ -> nameof Path
| Packages _ -> nameof Packages
| Modules _ -> nameof Modules
| Runtime _ -> nameof Runtime
| Persist_Only -> nameof Persist_Only
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
╭─[ 124.62ms - return value ]──────────────────────────────────────────────────╮
│ USAGE: dotnet-repl [--help] [--packages [<packages>...]] │
│ [--modules [<modules>...]] [--runtime <runtime>] │
│ [--persist-only] <path> │
│ │
│ PATH: │
│ │
│ <path> Path │
│ │
│ OPTIONS: │
│ │
│ --packages [<packages>...] │
│ Packages │
│ --modules [<modules>...] │
│ Modules │
│ --runtime <runtime> Runtime │
│ --persist-only Persist_Only │
│ --help display this list of options. │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## main │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let main args =
let argsMap = args |> Runtime.parseArgsMap<Arguments>
let path =
match argsMap.[[nameof Arguments.Path]] with
| [[ Arguments.Path path ]] -> Some path
| _ -> None
|> Option.get
let packages =
match argsMap |> Map.tryFind (nameof Arguments.Packages) with
| Some [[ Arguments.Packages packages ]] -> packages
| _ -> [[]]
let modules =
match argsMap |> Map.tryFind (nameof Arguments.Modules) with
| Some [[ Arguments.Modules modules ]] -> modules
| _ -> [[]]
let runtime =
match argsMap |> Map.tryFind (nameof Arguments.Runtime) with
| Some [[ Arguments.Runtime runtime ]] -> Some runtime
| _ -> None
let persistOnly = argsMap |> Map.containsKey (nameof Arguments.Persist_Only)
if persistOnly
then path |> persistFile packages modules |> Async.map (fun _ -> 0)
else path |> buildFile runtime packages modules
|> Async.runWithTimeout (60000 * 60)
|> function
| Some exitCode -> exitCode
| None -> 1
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let args =
System.Environment.GetEnvironmentVariable "ARGS"
|> Runtime.splitArgs
|> Seq.toArray
match args with
| [[||]] -> 0
| args -> if main args = 0 then 0 else failwith "main failed"
╭─[ 25.31s - return value ]────────────────────────────────────────────────────╮
│ <div class="dni-plaintext"><pre>0</pre></div><style> │
│ .dni-code-hint { │
│ font-style: italic; │
│ overflow: hidden; │
│ white-space: nowrap; │
│ } │
│ .dni-treeview { │
│ white-space: nowrap; │
│ } │
│ .dni-treeview td { │
│ vertical-align: top; │
│ text-align: start; │
│ } │
│ details.dni-treeview { │
│ padding-left: 1em; │
│ } │
│ table td { │
│ text-align: start; │
│ } │
│ table tr { │
│ vertical-align: top; │
│ margin: 0em 0px; │
│ } │
│ table tr td pre │
│ { │
│ vertical-align: top !important; │
│ margin: 0em 0px !important; │
│ } │
│ table th { │
│ text-align: start; │
│ } │
│ </style> │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 25.32s - stdout ]──────────────────────────────────────────────────────────╮
│ 00:00:28 #51 [Debug] persistCodeProject / packages: [Argu; │
│ FSharp.Control.AsyncSeq; System.CommandLine; ... ] / modules: [ │
│ lib/fsharp/Common.fs; lib/fsharp/CommonFSharp.fs; lib/fsharp/Async.fs; ... ] │
│ / name: Builder / code.Length: 7086 │
│ 00:00:28 #52 [Debug] buildProject / fullPath: │
│ C:\home\git\polyglot\target\polyglot\builder\Builder\Builder.fsproj │
│ 00:00:28 #53 [Debug] executeAsync / options: { Command = │
│ "dotnet publish │
│ "C:\home\git\polyglot\target/polyglot/builder\Builder\Builder.fsproj" │
│ --configuration Release --output "C:\home\git\polyglot\apps\builder\dist" │
│ --runtime linux-x64" │
│ WorkingDirectory = Some │
│ "C:\home\git\polyglot\target\polyglot\builder\Builder" │
│ CancellationToken = None │
│ OnLine = None } │
│ 00:00:28 #54 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f │
│ for .NET │
│ 00:00:29 #55 [Verbose] > Determining projects to restore... │
│ 00:00:29 #56 [Verbose] > Paket version │
│ 8.1.0-alpha001+27cb9f111f156e8b68d08dc293857425c0ade23d │
│ 00:00:29 #57 [Verbose] > The last full restore is still up to date. │
│ Nothing left to do. │
│ 00:00:29 #58 [Verbose] > Total time taken: 0 milliseconds │
│ 00:00:30 #59 [Verbose] > Paket version │
│ 8.1.0-alpha001+27cb9f111f156e8b68d08dc293857425c0ade23d │
│ 00:00:30 #60 [Verbose] > Restoring │
│ C:\home\git\polyglot\target\polyglot\builder\Builder\Builder.fsproj │
│ 00:00:30 #61 [Verbose] > Starting restore process. │
│ 00:00:30 #62 [Verbose] > Total time taken: 0 milliseconds │
│ 00:00:31 #63 [Verbose] > Restored │
│ C:\home\git\polyglot\target\polyglot\builder\Builder\Builder.fsproj (in 402 │
│ ms). │
│ 00:00:31 #64 [Verbose] > │
│ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
│ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
│ ce.targets(313,5): message NETSDK1057: You are using a preview version of │
│ .NET. See: https://aka.ms/dotnet-support-policy [ │
│ C:\home\git\polyglot\target\polyglot\builder\Builder\Builder.fsproj] │
│ 00:00:38 #65 [Verbose] > Builder -> │
│ C:\home\git\polyglot\target\polyglot\builder\Builder\bin\Release\net9.0\linu │
│ x-x64\Builder.dll │
│ 00:00:39 #66 [Verbose] > Builder -> │
│ C:\home\git\polyglot\apps\builder\dist\ │
│ 00:00:39 #67 [Debug] executeAsync / exitCode: 0 / output.Length: 1079 │
│ 00:00:39 #68 [Debug] executeAsync / options: { Command = │
│ "dotnet publish │
│ "C:\home\git\polyglot\target/polyglot/builder\Builder\Builder.fsproj" │
│ --configuration Release --output "C:\home\git\polyglot\apps\builder\dist" │
│ --runtime win-x64" │
│ WorkingDirectory = Some │
│ "C:\home\git\polyglot\target\polyglot\builder\Builder" │
│ CancellationToken = None │
│ OnLine = None } │
│ 00:00:39 #69 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f │
│ for .NET │
│ 00:00:40 #70 [Verbose] > Determining projects to restore... │
│ 00:00:40 #71 [Verbose] > Restored │
│ C:\home\git\polyglot\target\polyglot\builder\Builder\Builder.fsproj (in 361 │
│ ms). │
│ 00:00:41 #72 [Verbose] > │
│ C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.2 │
│ 4101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInferen │
│ ce.targets(313,5): message NETSDK1057: You are using a preview version of │
│ .NET. See: https://aka.ms/dotnet-support-policy [ │
│ C:\home\git\polyglot\target\polyglot\builder\Builder\Builder.fsproj] │
│ 00:00:46 #73 [Verbose] > Builder -> │
│ C:\home\git\polyglot\target\polyglot\builder\Builder\bin\Release\net9.0\win- │
│ x64\Builder.dll │
│ 00:00:53 #74 [Verbose] > Builder -> │
│ C:\home\git\polyglot\apps\builder\dist\ │
│ 00:00:53 #75 [Debug] executeAsync / exitCode: 0 / output.Length: 690 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook Builder.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 329380 bytes to Builder.dib.html
In [ ]:
{ . "$ScriptDir/../apps/parser/build.ps1" } | Invoke-Block
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # DibParser (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── pwsh ────────────────────────────────────────────────────────────────────────
ls ~/.nuget/packages/argu
╭─[ 531.09ms - stdout ]────────────────────────────────────────────────────────╮
│ │
│ Directory: C:\Users\i574n\.nuget\packages\argu │
│ │
│ Mode LastWriteTime Length[ │
│ 32;1m Name │
│ ---- ------------- ------ [ │
│ 32;1m---- │
│ d---- 2023-05-17 3:38 PM 6.1.1 │
│ d---- 2024-03-12 8:22 PM 6.1.4 │
│ d---- 2024-01-29 5:12 PM 6.1.5 │
│ d---- 2024-03-12 8:20 PM 6.2.0 │
│ d---- 2024-02-23 6:50 PM 6.2.1 │
│ d---- 2024-03-12 8:15 PM 6.2.2 │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#r
@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
dard2.1/FSharp.Control.AsyncSeq.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
0/System.Reactive.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
netstandard2.0/System.Reactive.Linq.dll"
#r
@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"
#r
@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li
b/net6.0/System.CommandLine.dll"
#r
@"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP
arsec.dll"
#r
@"../../../../../../../.nuget/packages/fparsec/2.0.0-beta2/lib/netstandard2.1/FP
arsecCS.dll"
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Common.fs
#!import ../../lib/fsharp/CommonFSharp.fs
#!import ../../lib/fsharp/Async.fs
#!import ../../lib/fsharp/AsyncSeq.fs
#!import ../../lib/fsharp/Runtime.fs
#!import ../../lib/fsharp/FileSystem.fs
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldValue : string) (newValue : string) (input :
string) =
input.Replace (oldValue, newValue)
let inline split separator (input : string) =
input.Split separator
let inline spli...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module CommonFSharp =
open Common
/// ## getUnionCaseName
let inline getUnionCaseName<'T> (x: 'T) =
match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
| case, _ -> case.Name
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Async =
open Common
/// ## choice
let inline choice asyncs = async {
let e = Event<_> ()
use cts = new System.Threading.CancellationTokenSource ()
let fn =
asyncs
|> Seq.map (fun a -> async {
let! x = a
e.Trigger x
})
|> Async.Parallel
|> Async.Ignore
Async.Start (fn, cts.Token)
let! result = Async.AwaitEvent e.Publish
cts.Cancel ()
return result
}
/// ## map
let inline map fn a = async {
let! x = a
return fn x
}
/// ## catch
let inline catch a =
a
|> Async.Catch
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module AsyncSeq =
open Common
/// ## subscribeEvent
let inline subscribeEvent (event: IEvent<'H, 'A>) map =
let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
'A>(event.AddHandler, event.RemoveHandler)
System.Reactive.Linq.Observable.Select (observable, fun event -> map
event.EventArgs)
|> FSharp.Control.AsyncSeq.ofObservableBuffered
let subscribeToken (token : System.Threading.CancellationToken) =
let tcs = new System.Threading.Tasks.TaskCompletionSource ()
System.Action tcs.SetResult |> token.Register |> ignore
let start = System.DateTime.Now.Ticks
FSharp.Control.AsyncSeq.unfoldAsync
(fun (...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Runtime =
open Common
/// ## isWindows
let isWindows =
fun () ->
System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform
System.Runtime.InteropServices.OSPlatform.Windows
|> memoize
/// ## getExecutableSuffix
let inline getExecutableSuffix () =
if isWindows ()
then ".exe"
else ""
/// ## splitCommand
type private CommandParseStep =
| Start
| Path of quoted: bool
| Arguments
let splitCommand (command: string) =
let rec loop (path, args) chars step =
match chars, step with
| ('"' | '\'') :: tail, _ when path = "" -> loop (pat...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module FileSystem =
open Common
/// ## Operators
module Operators =
let inline (</>) a b =
System.IO.Path.Combine (a, b)
open Operators
/// ## createTempDirectoryName
let inline createTempDirectoryName () =
let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name
System.IO.Path.GetTempPath ()
</> $"!{root}"
</> string (newGuidFromDateTime System.DateTime.Now)
/// ## createTempDirectory
let inline createTempDirectory () =
let tempFolder = createTempDirectoryName ()
let result = System.IO.Directory.CreateDirectory tempFolder
if not result.Exists then
let ge...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
open FParsec
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## escapeCell (test) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let inline escapeCell input =
input
|> String.split [[| '\n' |]]
|> Array.map (function
| line when line |> String.startsWith "\\#!" || line |>
String.startsWith "\\#r" ->
System.Text.RegularExpressions.Regex.Replace (line, "^\\\\#", "#")
| line -> line
)
|> String.concat "\n"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
$"a{nl}\\#!magic{nl}b{nl}"
|> escapeCell
|> _assertEqual (
$"a{nl}#!magic{nl}b{nl}"
)
╭─[ 63.19ms - stdout ]─────────────────────────────────────────────────────────╮
│ a │
│ #!magic │
│ b │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## magicMarker │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let magicMarker : Parser<string, unit> = pstring "#!"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!magic"
|> run magicMarker
|> _assertEqual (
Success ("#!", (), Position ("", 2, 1, 3))
)
╭─[ 46.53ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item1: #! │
│ Item2: <null> │
│ Item3: Position │
│ Index: 2 │
│ Line: 1 │
│ Column: 3 │
│ StreamName: │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"##!magic"
|> run magicMarker
|> _assertEqual (
Failure (
$"Error in Ln: 1 Col: 1{nl}##!magic{nl}^{nl}Expecting: '#!'{nl}",
ParserError (
Position ("", 0, 1, 1),
(),
ErrorMessageList (ExpectedString "#!")
),
()
)
)
╭─[ 59.69ms - stdout ]─────────────────────────────────────────────────────────╮
│ Failure │
│ Item1: Error in Ln: 1 Col: 1 │
│ ##!magic │
│ ^ │
│ Expecting: '#!' │
│ │
│ Item2: ParserError │
│ Position: Position │
│ Index: 0 │
│ Line: 1 │
│ Column: 1 │
│ StreamName: │
│ UserState: <null> │
│ Messages: ErrorMessageList │
│ Head: ExpectedString │
│ String: #! │
│ Type: ExpectedString │
│ Tail: <null> │
│ Item3: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## magicCommand │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let magicCommand =
magicMarker
>>. manyTill anyChar newline
|>> (System.String.Concat >> String.trim)
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!magic
a"
|> run magicCommand
|> _assertEqual (
Success ("magic", (), Position ("", 8, 2, 1))
)
╭─[ 34.59ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item1: magic │
│ Item2: <null> │
│ Item3: Position │
│ Index: 8 │
│ Line: 2 │
│ Column: 1 │
│ StreamName: │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
" #!magic
a"
|> run magicCommand
|> _assertEqual (
Failure (
$"Error in Ln: 1 Col: 1{nl} #!magic{nl}^{nl}Expecting: '#!'{nl}",
ParserError (
Position ("", 0, 1, 1),
(),
ErrorMessageList (ExpectedString "#!")
),
()
)
)
╭─[ 39.64ms - stdout ]─────────────────────────────────────────────────────────╮
│ Failure │
│ Item1: Error in Ln: 1 Col: 1 │
│ #!magic │
│ ^ │
│ Expecting: '#!' │
│ │
│ Item2: ParserError │
│ Position: Position │
│ Index: 0 │
│ Line: 1 │
│ Column: 1 │
│ StreamName: │
│ UserState: <null> │
│ Messages: ErrorMessageList │
│ Head: ExpectedString │
│ String: #! │
│ Type: ExpectedString │
│ Tail: <null> │
│ Item3: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## content │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let content =
(newline >>. magicMarker) <|> (eof >>. preturn "")
|> attempt
|> lookAhead
|> manyTill anyChar
|>> (System.String.Concat >> String.trim)
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!magic
a
"
|> run content
|> _assertEqual (
Success ("#!magic
a", (), Position ("", 14, 7, 1))
)
╭─[ 33.50ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item1: #!magic │
│ │
│ │
│ a │
│ Item2: <null> │
│ Item3: Position │
│ Index: 14 │
│ Line: 7 │
│ Column: 1 │
│ StreamName: │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Block │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
type Block =
{
magic : string
content : string
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## block │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let block =
pipe2
magicCommand
content
(fun magic content ->
{
magic = magic
content = content
})
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!magic
a
"
|> run block
|> _assertEqual (
Success (
{ magic = "magic"; content = "a" },
(),
Position ("", 14, 7, 1)
)
)
╭─[ 48.00ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item1: Block │
│ magic: magic │
│ content: a │
│ Item2: <null> │
│ Item3: Position │
│ Index: 14 │
│ Line: 7 │
│ Column: 1 │
│ StreamName: │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## blocks │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let blocks =
skipMany newline
>>. sepEndBy block (skipMany1 newline)
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!magic1
a
\#!magic2
b
"
|> escapeCell
|> run blocks
|> _assertEqual (
Success (
[[
{ magic = "magic1"; content = "a" }
{ magic = "magic2"; content = "b" }
]],
(),
Position ("", 26, 9, 1)
)
)
╭─[ 48.99ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item1: FSharpList<Block> │
│ - magic: magic1 │
│ content: a │
│ - magic: magic2 │
│ content: b │
│ Item2: <null> │
│ Item3: Position │
│ Index: 26 │
│ Line: 9 │
│ Column: 1 │
│ StreamName: │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Output │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
type Output =
| Fs
| Md
| Spi
| Spir
let inline kernelOutputs magic =
match magic with
| "fsharp" -> [[ Fs ]]
| "markdown" -> [[ Md ]]
| "spiral" -> [[ Spi; Spir ]]
| _ -> [[]]
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## formatBlock │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline formatBlock output (block : Block) =
match output, block with
| output, { magic = "markdown"; content = content } ->
let markdownComment =
match output with
| Spi | Spir -> "// // "
| Fs -> "/// "
| _ -> ""
content
|> String.split [[| '\n' |]]
|> Array.map (String.trimEnd [[||]])
|> Array.filter (String.endsWith " (test)" >> not)
|> Array.map (function
| "" -> markdownComment |> String.trim
| line -> System.Text.RegularExpressions.Regex.Replace (line,
"^\\s*", $"$&{markdownComment}")
)
|> String.concat "\n"
| Fs, { magic = "fsharp"; content = content } ->
let trimmedContent = content |> String.trim
if trimmedContent |> String.startsWith "//// test" || trimmedContent |>
String.startsWith "//// ignore"
then ""
else
content
|> String.split [[| '\n' |]]
|> Array.filter (String.trimStart [[||]] >> String.startsWith "#r"
>> not)
|> String.concat "\n"
| (Spi | Spir), { magic = "spiral"; content = content } ->
let trimmedContent = content |> String.trim
if trimmedContent |> String.startsWith "// // test" || trimmedContent |>
String.startsWith "// // ignore"
then ""
else content
| _ -> ""
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!markdown
a
b
c
\#!markdown
c
\#!fsharp
let a = 1"
|> escapeCell
|> run block
|> function
| Success (block, _, _) -> formatBlock Fs block
| Failure (msg, _, _) -> failwith msg
|> _assertEqual "/// a
///
/// b
///
/// c"
╭─[ 64.78ms - stdout ]─────────────────────────────────────────────────────────╮
│ /// a │
│ /// │
│ /// b │
│ /// │
│ /// c │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## formatBlocks │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline formatBlocks output blocks =
blocks
|> List.map (formatBlock output)
|> List.filter ((<>) "")
|> String.concat "\n\n"
|> fun s -> s + "\n"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"#!markdown
a
b
\#!markdown
c
\#!fsharp
let a = 1
\#!markdown
d (test)
\#!fsharp
//// test
let a = 2
\#!markdown
e
\#!fsharp
let a = 3"
|> escapeCell
|> run blocks
|> function
| Success (blocks, _, _) -> formatBlocks Fs blocks
| Failure (msg, _, _) -> failwith msg
|> _assertEqual "/// a
///
/// b
/// c
let a = 1
/// e
let a = 3
"
╭─[ 67.85ms - stdout ]─────────────────────────────────────────────────────────╮
│ /// a │
│ /// │
│ /// b │
│ │
│ /// c │
│ │
│ let a = 1 │
│ │
│ /// e │
│ │
│ let a = 3 │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## parse │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline parse output input =
match run blocks input with
| Success (blocks, _, _) ->
let blocks =
blocks
|> List.filter (fun block ->
block.magic |> kernelOutputs |> List.contains output ||
block.magic = "markdown"
)
match blocks with
| { magic = "markdown"; content = content } :: _
when output = Fs
&& content |> String.startsWith "# "
&& content |> String.endsWith ")"
->
let inline indentBlock (block : Block) =
{ block with
content =
block.content
|> String.split [[| '\n' |]]
|> Array.fold
(fun (lines, isMultiline) line ->
let trimmedLine = line |> String.trim
if trimmedLine = ""
then "" :: lines, isMultiline
else
let inline singleQuoteLine () =
trimmedLine |> Seq.sumBy ((=) '"' >>
System.Convert.ToInt32) = 1
&& trimmedLine |> String.contains
@"'""'" |> not
&& trimmedLine |> String.endsWith "{" |>
not
&& trimmedLine |> String.endsWith "{|"
|> not
&& trimmedLine |> String.startsWith "}"
|> not
&& trimmedLine |> String.startsWith "|}"
|> not
match isMultiline, trimmedLine |>
String.splitString [[| $"{q}{q}{q}" |]] with
| false, [[| _; _ |]] ->
$" {line}" :: lines, true
| true, [[| _; _ |]] ->
line :: lines, false
| false, _ when singleQuoteLine () ->
$" {line}" :: lines, true
| false, _ when line |> String.startsWith
"#" && block.magic = "fsharp" ->
line :: lines, false
| false, _ ->
$" {line}" :: lines, false
| true, _ when singleQuoteLine () && line |>
String.startsWith " " ->
$" {line}" :: lines, false
| true, _ when singleQuoteLine () ->
line :: lines, false
| true, _ ->
line :: lines, true
)
([[]], false)
|> fst
|> List.rev
|> String.concat "\n"
}
let moduleName, namespaceName =
System.Text.RegularExpressions.Regex.Match (content, @"# (.*)
\((.*)\)$")
|> fun m -> m.Groups.[[1]].Value, m.Groups.[[2]].Value
let moduleBlock =
{
magic = "fsharp"
content =
$"#if !INTERACTIVE
namespace {namespaceName}
#endif
module {moduleName} ="
}
blocks
|> List.indexed
|> List.fold
(fun blocks (index, block) ->
match index with
| 0 -> blocks
| 1 -> indentBlock block :: moduleBlock :: blocks
| _ -> indentBlock block :: blocks
)
[[]]
|> List.rev
| _ -> blocks
|> Result.Ok
| Failure (errorMsg, _, _) -> Result.Error errorMsg
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let example1 =
$"""#!meta
{{"kernelInfo":{{"defaultKernelName":"fsharp","items":[[{{"aliases":[[]],"name":
"fsharp"}},{{"aliases":[[]],"name":"fsharp"}}]]}}}}
\#!markdown
# TestModule (TestNamespace)
\#!fsharp
\#!import file.dib
\#!fsharp
\#r "nuget:Expecto"
\#!markdown
## ParserLibrary
\#!fsharp
open System
\#!markdown
## x (test)
\#!fsharp
//// ignore
let x = 1
\#!spiral
// // test
inl x = 0i32
\#!spiral
inl x = 0i32
\#!markdown
### TextInput
\#!fsharp
let str1 = "abc
def"
let str2 =
"abc\
def"
let str3 =
$"1{{
1
}}1"
let str4 =
$"1{{({{|
a = 1
|}}).a}}1"
let str5 =
"abc \
def"
let x =
match '"' with
| '"' -> true
| _ -> false
let long1 = {q}{q}{q}a{q}{q}{q}
let long2 =
{q}{q}{q}
a
{q}{q}{q}
\#!fsharp
type Position =
{{
#if INTERACTIVE
line : string
#else
line : int
#endif
column : int
}}"""
|> escapeCell
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
example1
|> parse Fs
|> Result.toOption
|> Option.get
|> (formatBlocks Fs)
|> _assertEqual $"""#if !INTERACTIVE
namespace TestNamespace
#endif
module TestModule =
/// ## ParserLibrary
open System
/// ### TextInput
let str1 = "abc
def"
let str2 =
"abc\
def"
let str3 =
$"1{{
1
}}1"
let str4 =
$"1{{({{|
a = 1
|}}).a}}1"
let str5 =
"abc \
def"
let x =
match '"' with
| '"' -> true
| _ -> false
let long1 = {q}{q}{q}a{q}{q}{q}
let long2 =
{q}{q}{q}
a
{q}{q}{q}
type Position =
{{
#if INTERACTIVE
line : string
#else
line : int
#endif
column : int
}}
"""
╭─[ 175.45ms - stdout ]────────────────────────────────────────────────────────╮
│ #if !INTERACTIVE │
│ namespace TestNamespace │
│ #endif │
│ │
│ module TestModule = │
│ │
│ /// ## ParserLibrary │
│ │
│ open System │
│ │
│ /// ### TextInput │
│ │
│ let str1 = "abc │
│ def" │
│ │
│ let str2 = │
│ "abc\ │
│ def" │
│ │
│ let str3 = │
│ $"1{ │
│ 1 │
│ }1" │
│ │
│ let str4 = │
│ $"1{({| │
│ a = 1 │
│ |}).a}1" │
│ │
│ let str5 = │
│ "abc \ │
│ def" │
│ │
│ let x = │
│ match '"' with │
│ | '"' -> true │
│ | _ -> false │
│ │
│ let long1 = """a""" │
│ │
│ let long2 = │
│ """ │
│ a │
│ """ │
│ │
│ type Position = │
│ { │
│ #if INTERACTIVE │
│ line : string │
│ #else │
│ line : int │
│ #endif │
│ column : int │
│ } │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
example1
|> parse Md
|> Result.toOption
|> Option.get
|> (formatBlocks Md)
|> _assertEqual "# TestModule (TestNamespace)
## ParserLibrary
### TextInput
"
╭─[ 152.95ms - stdout ]────────────────────────────────────────────────────────╮
│ # TestModule (TestNamespace) │
│ │
│ ## ParserLibrary │
│ │
│ ### TextInput │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
example1
|> parse Spi
|> Result.toOption
|> Option.get
|> (formatBlocks Spi)
|> _assertEqual "// // # TestModule (TestNamespace)
// // ## ParserLibrary
inl x = 0i32
// // ### TextInput
"
╭─[ 163.29ms - stdout ]────────────────────────────────────────────────────────╮
│ // // # TestModule (TestNamespace) │
│ │
│ // // ## ParserLibrary │
│ │
│ inl x = 0i32 │
│ │
│ // // ### TextInput │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## parseDibCode │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline parseDibCode output file = async {
let getLocals () = $"output: {output} / file: {file} / {getLocals ()}"
trace Debug (fun () -> "parseDibCode") getLocals
let! input = file |> FileSystem.readAllTextAsync
match parse output input with
| Result.Ok blocks -> return blocks |> formatBlocks output
| Result.Error msg -> return failwith msg
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## writeDibCode │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline writeDibCode output path = async {
let getLocals () = $"output: {output} / path: {path} / {getLocals ()}"
trace Debug (fun () -> "writeDibCode") getLocals
let! result = parseDibCode output path
let outputPath = path |> String.replace ".dib" $".{output |> string |>
String.toLower}"
do! result |> FileSystem.writeAllTextAsync outputPath
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Arguments │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
[[<RequireQualifiedAccess>]]
type Arguments =
| [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.Mandatory>]]
File of file : string * Output
interface Argu.IArgParserTemplate with
member s.Usage =
match s with
| File _ -> nameof File
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
╭─[ 106.44ms - return value ]──────────────────────────────────────────────────╮
│ USAGE: dotnet-repl [--help] <file> <fs|md|spi|spir> │
│ │
│ FILE: │
│ │
│ <file> <fs|md|spi|spir> │
│ File │
│ │
│ OPTIONS: │
│ │
│ --help display this list of options. │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## main │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let main args =
let argsMap = args |> Runtime.parseArgsMap<Arguments>
let files =
argsMap.[[nameof Arguments.File]]
|> List.map (function
| Arguments.File (path, output) -> path, output
)
files
|> List.map (fun (path, output) -> path |> writeDibCode output)
|> Async.Parallel
|> Async.Ignore
|> Async.runWithTimeout 30000
|> function
| Some () -> 0
| None -> 1
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let args =
System.Environment.GetEnvironmentVariable "ARGS"
|> Runtime.splitArgs
|> Seq.toArray
match args with
| [[||]] -> 0
| args -> if main args = 0 then 0 else failwith "main failed"
╭─[ 156.58ms - return value ]──────────────────────────────────────────────────╮
│ <div class="dni-plaintext"><pre>0</pre></div><style> │
│ .dni-code-hint { │
│ font-style: italic; │
│ overflow: hidden; │
│ white-space: nowrap; │
│ } │
│ .dni-treeview { │
│ white-space: nowrap; │
│ } │
│ .dni-treeview td { │
│ vertical-align: top; │
│ text-align: start; │
│ } │
│ details.dni-treeview { │
│ padding-left: 1em; │
│ } │
│ table td { │
│ text-align: start; │
│ } │
│ table tr { │
│ vertical-align: top; │
│ margin: 0em 0px; │
│ } │
│ table tr td pre │
│ { │
│ vertical-align: top !important; │
│ margin: 0em 0px !important; │
│ } │
│ table th { │
│ text-align: start; │
│ } │
│ </style> │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 168.77ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:00 #1 [Debug] writeDibCode / output: Fs / path: DibParser.dib │
│ 00:00:00 #2 [Debug] parseDibCode / output: Fs / file: DibParser.dib │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook DibParser.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 368992 bytes to DibParser.dib.html
00:00:00 #1 [Debug] persistCodeProject / packages: [Argu; FParsec; FSharp.Control.AsyncSeq; ... ] / modules: [lib/fsharp/Common.fs; lib/fsharp/CommonFSharp.fs; lib/fsharp/Async.fs; ... ] / name: DibParser / code.Length: 9066
00:00:00 #2 [Debug] buildProject / fullPath: C:\home\git\polyglot\target\polyglot\builder\DibParser\DibParser.fsproj
00:00:00 #3 [Debug] executeAsync / options: { Command =
"dotnet publish "C:\home\git\polyglot\target/polyglot/builder\DibParser\DibParser.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\parser\dist" --runtime linux-x64"
WorkingDirectory =
Some "C:\home\git\polyglot\target\polyglot\builder\DibParser"
CancellationToken = None
OnLine = None }
00:00:00 #4 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:00 #5 [Verbose] > Determining projects to restore...
00:00:01 #6 [Verbose] > Paket version 8.1.0-alpha001+27cb9f111f156e8b68d08dc293857425c0ade23d
00:00:01 #7 [Verbose] > The last full restore is still up to date. Nothing left to do.
00:00:01 #8 [Verbose] > Total time taken: 0 milliseconds
00:00:02 #9 [Verbose] > Paket version 8.1.0-alpha001+27cb9f111f156e8b68d08dc293857425c0ade23d
00:00:02 #10 [Verbose] > Restoring C:\home\git\polyglot\target\polyglot\builder\DibParser\DibParser.fsproj
00:00:02 #11 [Verbose] > Starting restore process.
00:00:02 #12 [Verbose] > Total time taken: 0 milliseconds
00:00:03 #13 [Verbose] > Restored C:\home\git\polyglot\target\polyglot\builder\DibParser\DibParser.fsproj (in 512 ms).
00:00:03 #14 [Verbose] > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\polyglot\builder\DibParser\DibParser.fsproj]
00:00:10 #15 [Verbose] > DibParser -> C:\home\git\polyglot\target\polyglot\builder\DibParser\bin\Release\net9.0\linux-x64\DibParser.dll
00:00:11 #16 [Verbose] > DibParser -> C:\home\git\polyglot\apps\parser\dist\
00:00:11 #17 [Debug] executeAsync / exitCode: 0 / output.Length: 1098
00:00:11 #18 [Debug] executeAsync / options: { Command =
"dotnet publish "C:\home\git\polyglot\target/polyglot/builder\DibParser\DibParser.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\parser\dist" --runtime win-x64"
WorkingDirectory =
Some "C:\home\git\polyglot\target\polyglot\builder\DibParser"
CancellationToken = None
OnLine = None }
00:00:11 #19 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:12 #20 [Verbose] > Determining projects to restore...
00:00:13 #21 [Verbose] > Restored C:\home\git\polyglot\target\polyglot\builder\DibParser\DibParser.fsproj (in 378 ms).
00:00:13 #22 [Verbose] > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\polyglot\builder\DibParser\DibParser.fsproj]
00:00:19 #23 [Verbose] > DibParser -> C:\home\git\polyglot\target\polyglot\builder\DibParser\bin\Release\net9.0\win-x64\DibParser.dll
00:00:22 #24 [Verbose] > DibParser -> C:\home\git\polyglot\apps\parser\dist\
00:00:22 #25 [Debug] executeAsync / exitCode: 0 / output.Length: 705
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # JsonParser (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Common.fs
#!import Parser.fs
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldValue : string) (newValue : string) (input :
string) =
input.Replace (oldValue, newValue)
let inline split separator (input : string) =
input.Split separator
let inline spli...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Parser =
open Common
/// ### TextInput
type Position =
{
line : int
column : int
}
let initialPos = { line = 0; column = 0 }
let inline incrCol (pos : Position) =
{ pos with column = pos.column + 1 }
let inline incrLine pos =
{ line = pos.line + 1; column = 0 }
type InputState =
{
lines : string[[]]
position : Position
}
let inline fromStr str =
{
lines =
if str |> String.IsNullOrEmpty
then [[||]]
else str |> String.splitString [[| "\r\n"; "\n" |]]
position = initialPos
}
...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
open Parser
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## JsonParser │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
(*
// --------------------------------
JSON spec from http://www.json.org/
// --------------------------------
The JSON spec is available at [[json.org]](http://www.json.org/). I'll paraphase
it here:
* A `value` can be a `string` or a `number` or a `bool` or `null` or an `object`
or an `array`.
* These structures can be nested.
* A `string` is a sequence of zero or more Unicode characters, wrapped in double
quotes, using backslash escapes.
* A `number` is very much like a C or Java number, except that the octal and
hexadecimal formats are not used.
* A `boolean` is the literal `true` or `false`
* A `null` is the literal `null`
* An `object` is an unordered set of name/value pairs.
* An object begins with { (left brace) and ends with } (right brace).
* Each name is followed by : (colon) and the name/value pairs are separated by
, (comma).
* An `array` is an ordered collection of values.
* An array begins with [[ (left bracket) and ends with ]] (right bracket).
* Values are separated by , (comma).
* Whitespace can be inserted between any pair of tokens.
*)
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let inline parserEqual (expected : ParseResult<'a>) (actual : ParseResult<'a *
Input>) =
match actual, expected with
| Success (_actual, _), Success _expected ->
printResult actual
_actual |> _assertEqual _expected
| Failure (l1, e1, p1), Failure (l2, e2, p2) when l1 = l2 && e1 = e2 && p1 =
p2 ->
printResult actual
| _ ->
printfn $"Actual: {actual}"
printfn $"Expected: {expected}"
failwith "Parse failed"
actual
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### JValue │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
type JValue =
| JString of string
| JNumber of float
| JBool of bool
| JNull
| JObject of Map<string, JValue>
| JArray of JValue list
── fsharp ──────────────────────────────────────────────────────────────────────
let jValue, jValueRef = createParserForwardedToRef<JValue> ()
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### jNull │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let jNull =
pstring "null"
>>% JNull
<?> "null"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
jValueRef <|
choice
[[
jNull
]]
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jValue "null"
|> parserEqual (Success JNull)
╭─[ 238.07ms - return value ]──────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JNull, { lines = [ │
│ |"null"|]<br/> position = { line = 0<br/> │
│ column = 4 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JNull, { lines = [|"null"|]<br/> │
│ position = { line = 0<br/> column = 4 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JNull</code></span></summary><div><table><thead> │
│ <tr></tr></thead><tbody><tr><td>IsJString</td><td><d... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 247.94ms - stdout ]────────────────────────────────────────────────────────╮
│ JNull │
│ JValue │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: True │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNull "nulp"
|> parserEqual (
Failure (
"null",
"Unexpected 'p'",
{ currentLine = "nulp"; line = 0; column = 3 }
)
)
╭─[ 44.41ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Failure ("null", "Unexpected │
│ 'p'", { currentLine = "nulp"<br/> │
│ line = 0<br/> column = 3 │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div │
│ class="dni-plaintext"><pre>null</pre></div></td></tr><tr><td>Item2</td><td>< │
│ div class="dni-plaintext"><pre>Unexpected │
│ 'p'</pre></div></td></tr><tr><td>Item3</td><td><details │
│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ │
│ currentLine = "nulp"<br/> line = 0<br/> column = 3 │
│ }</code></span></summary><div><table><thead><tr></tr></thead... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 49.98ms - stdout ]─────────────────────────────────────────────────────────╮
│ Line:0 Col:3 Error parsing null │
│ nulp │
│ ^Unexpected 'p' │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### jBool │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let jBool =
let jtrue =
pstring "true"
>>% JBool true
let jfalse =
pstring "false"
>>% JBool false
jtrue <|> jfalse
<?> "bool"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
jValueRef <|
choice
[[
jNull
jBool
]]
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jBool "true"
|> parserEqual (Success (JBool true))
╭─[ 49.05ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JBool true, { lines = [ │
│ |"true"|]<br/> position = { line = 0<br/> │
│ column = 4 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JBool true, { lines = [|"true"|]<br/> │
│ position = { line = 0<br/> column = 4 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JBool │
│ true</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr.. │
│ . │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 56.02ms - stdout ]─────────────────────────────────────────────────────────╮
│ JBool true │
│ JBool │
│ Item: True │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: True │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jBool "false"
|> parserEqual (Success (JBool false))
╭─[ 54.78ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JBool false, { lines = [ │
│ |"false"|]<br/> position = { line = 0<br/> │
│ column = 5 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JBool false, { lines = [ │
│ |"false"|]<br/> position = { line = 0<br/> column = │
│ 5 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JBool │
│ false</code></span></summary><div><table><thead><tr></tr></thead><tb... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 63.52ms - stdout ]─────────────────────────────────────────────────────────╮
│ JBool false │
│ JBool │
│ Item: False │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: True │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jBool "truX"
|> parserEqual (
Failure (
"bool",
"Unexpected 't'",
{ currentLine = "truX"; line = 0; column = 0 }
)
)
╭─[ 73.61ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Failure ("bool", "Unexpected │
│ 't'", { currentLine = "truX"<br/> │
│ line = 0<br/> column = 0 │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div │
│ class="dni-plaintext"><pre>bool</pre></div></td></tr><tr><td>Item2</td><td>< │
│ div class="dni-plaintext"><pre>Unexpected │
│ 't'</pre></div></td></tr><tr><td>Item3</td><td><details │
│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ │
│ currentLine = "truX"<br/> line = 0<br/> column = 0 │
│ }</code></span></summary><div><table><thead><tr></tr></thead... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 81.60ms - stdout ]─────────────────────────────────────────────────────────╮
│ Line:0 Col:0 Error parsing bool │
│ truX │
│ ^Unexpected 't' │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### jUnescapedChar │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let jUnescapedChar =
satisfy (fun ch -> ch <> '\\' && ch <> '\"') "char"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jUnescapedChar "a"
|> parserEqual (Success 'a')
╭─[ 57.07ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success ('a', { lines = [ │
│ |"a"|]<br/> position = { line = 0<br/> │
│ column = 1 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(a, { lines = [|"a"|]<br/> position = │
│ { line = 0<br/> column = 1 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div │
│ class="dni-plaintext"><pre>a</pre></div></td></tr><tr><td>Item2</td><td><det │
│ ails class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines │
│ = [|"a"|]<br/... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 64.23ms - stdout ]─────────────────────────────────────────────────────────╮
│ 'a' │
│ a │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jUnescapedChar "\\"
|> parserEqual (
Failure (
"char",
"Unexpected '\\'",
{ currentLine = "\\"; line = 0; column = 0 }
)
)
╭─[ 31.44ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Failure ("char", "Unexpected │
│ '\'", { currentLine = "\"<br/> │
│ line = 0<br/> column = 0 │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div │
│ class="dni-plaintext"><pre>char</pre></div></td></tr><tr><td>Item2</td><td>< │
│ div class="dni-plaintext"><pre>Unexpected │
│ '\'</pre></div></td></tr><tr><td>Item3</td><td><details │
│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ │
│ currentLine = "\"<br/> line = 0<br/> column = 0 │
│ }</code></span></summary><div><table><thead><tr></tr></thead><tbod... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 37.38ms - stdout ]─────────────────────────────────────────────────────────╮
│ Line:0 Col:0 Error parsing char │
│ \ │
│ ^Unexpected '\' │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### jEscapedChar │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let jEscapedChar =
[[
("\\\"",'\"')
("\\\\",'\\')
("\\/",'/')
("\\b",'\b')
("\\f",'\f')
("\\n",'\n')
("\\r",'\r')
("\\t",'\t')
]]
|> List.map (fun (toMatch, result) ->
pstring toMatch >>% result
)
|> choice
<?> "escaped char"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jEscapedChar "\\\\"
|> parserEqual (Success '\\')
╭─[ 46.73ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success ('\\', { lines = [ │
│ |"\\"|]<br/> position = { line = 0<br/> │
│ column = 2 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(\, { lines = [|"\\"|]<br/> position │
│ = { line = 0<br/> column = 2 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div │
│ class="dni-plaintext"><pre>\</pre></div></td></tr><tr><td>Item2</td><td><det │
│ ails class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines │
│ = [|"\\"... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 53.52ms - stdout ]─────────────────────────────────────────────────────────╮
│ '\\' │
│ \ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jEscapedChar "\\t"
|> parserEqual (Success '\t')
╭─[ 32.29ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success ('\009', { lines = [ │
│ |"\t"|]<br/> position = { line = 0<br/> │
│ column = 2 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>( , { lines = [|"\t"|]<br/> position = │
│ { line = 0<br/> column = 2 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div class="dni-plaintext"><pre> │
│ </pre></div></td></tr><tr><td>Item2</td><td><details │
│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = [ │
│ |"\t... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 39.56ms - stdout ]─────────────────────────────────────────────────────────╮
│ '\009' │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jEscapedChar @"\\"
|> parserEqual (Success '\\')
╭─[ 35.87ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success ('\\', { lines = [ │
│ |"\\"|]<br/> position = { line = 0<br/> │
│ column = 2 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(\, { lines = [|"\\"|]<br/> position │
│ = { line = 0<br/> column = 2 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div │
│ class="dni-plaintext"><pre>\</pre></div></td></tr><tr><td>Item2</td><td><det │
│ ails class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines │
│ = [|"\\"... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 43.21ms - stdout ]─────────────────────────────────────────────────────────╮
│ '\\' │
│ \ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jEscapedChar @"\n"
|> parserEqual (Success '\n')
╭─[ 35.98ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success ('\010', { lines = [ │
│ |"<br/>"|]<br/> position = { line = 0<br/> │
│ column = 2 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(<br/>, { lines = [|"<br/>"|]<br/> │
│ position = { line = 0<br/> column = 2 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div class="dni-plaintext"><pre> │
│ </pre></div></td></tr><tr><td>Item2</td><td><details │
│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines = │
│ ... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 42.94ms - stdout ]─────────────────────────────────────────────────────────╮
│ '\010' │
│ │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jEscapedChar "a"
|> parserEqual (
Failure (
"escaped char",
"Unexpected 'a'",
{ currentLine = "a"; line = 0; column = 0 }
)
)
╭─[ 29.89ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Failure ("escaped char", │
│ "Unexpected 'a'", { currentLine = "a"<br/> │
│ line = 0<br/> column = 0 │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div class="dni-plaintext"><pre>escaped │
│ char</pre></div></td></tr><tr><td>Item2</td><td><div │
│ class="dni-plaintext"><pre>Unexpected │
│ 'a'</pre></div></td></tr><tr><td>Item3</td><td><details │
│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ │
│ currentLine = "a"<br/> line = 0<br/> column = 0 │
│ }</code></span></summary><div><tab... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 37.01ms - stdout ]─────────────────────────────────────────────────────────╮
│ Line:0 Col:0 Error parsing escaped char │
│ a │
│ ^Unexpected 'a' │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### jUnicodeChar │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let jUnicodeChar =
let backslash = pchar '\\'
let uChar = pchar 'u'
let hexdigit = anyOf ([[ '0' .. '9' ]] @ [[ 'A' .. 'F' ]] @ [[ 'a' .. 'f'
]])
let fourHexDigits = hexdigit .>>. hexdigit .>>. hexdigit .>>. hexdigit
let inline convertToChar (((h1, h2), h3), h4) =
let str = $"%c{h1}%c{h2}%c{h3}%c{h4}"
Int32.Parse (str, Globalization.NumberStyles.HexNumber) |> char
backslash >>. uChar >>. fourHexDigits
|>> convertToChar
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jUnicodeChar "\\u263A"
|> parserEqual (Success '☺')
╭─[ 54.12ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success ('☺', { lines = [ │
│ |"\u263A"|]<br/> position = { line = 0<br/> │
│ column = 6 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(☺, { lines = [|"\u263A"|]<br/> │
│ position = { line = 0<br/> column = 6 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div │
│ class="dni-plaintext"><pre>☺</pre></div></td></tr><tr><td>Item2</td><td><det │
│ ails class="dni-treeview"><summary><span class="dni-code-hint"><code>{ lines │
│ = [|"\u2... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 60.73ms - stdout ]─────────────────────────────────────────────────────────╮
│ '☺' │
│ ☺ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### jString │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let quotedString =
let quote = pchar '\"' <?> "quote"
let jchar = jUnescapedChar <|> jEscapedChar <|> jUnicodeChar
quote >>. manyChars jchar .>> quote
── fsharp ──────────────────────────────────────────────────────────────────────
let jString =
quotedString
|>> JString
<?> "quoted string"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
jValueRef <|
choice
[[
jNull
jBool
jString
]]
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jString "\"\""
|> parserEqual (Success (JString ""))
╭─[ 58.32ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JString "", { lines = [ │
│ |""""|]<br/> position = { line = │
│ 0<br/> column = 2 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JString "", { lines = [ │
│ |""""|]<br/> position = { line = 0<br/> │
│ column = 2 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JString ""</code></span></summary>... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 66.98ms - stdout ]─────────────────────────────────────────────────────────╮
│ JString "" │
│ JString │
│ Item: │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jString "\"a\""
|> parserEqual (Success (JString "a"))
╭─[ 41.25ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JString "a", { lines = [ │
│ |""a""|]<br/> position = { line = │
│ 0<br/> column = 3 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JString "a", { lines = [ │
│ |""a""|]<br/> position = { line = 0<br/> │
│ column = 3 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JString "a"</code></span></s... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 47.88ms - stdout ]─────────────────────────────────────────────────────────╮
│ JString "a" │
│ JString │
│ Item: a │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jString "\"ab\""
|> parserEqual (Success (JString "ab"))
╭─[ 32.64ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JString "ab", { lines = [ │
│ |""ab""|]<br/> position = { line │
│ = 0<br/> column = 4 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JString "ab", { lines = [ │
│ |""ab""|]<br/> position = { line = 0<br/> │
│ column = 4 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JString "ab"</code></s... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 38.70ms - stdout ]─────────────────────────────────────────────────────────╮
│ JString "ab" │
│ JString │
│ Item: ab │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jString "\"ab\\tde\""
|> parserEqual (Success (JString "ab\tde"))
╭─[ 42.34ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JString "ab de", { lines = [ │
│ |""ab\tde""|]<br/> position = │
│ { line = 0<br/> column = 8 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JString "ab de", { lines = [ │
│ |""ab\tde""|]<br/> position = { line = 0<br/> │
│ column = 8 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JString &quo... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 51.05ms - stdout ]─────────────────────────────────────────────────────────╮
│ JString "ab de" │
│ JString │
│ Item: ab de │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jString "\"ab\\u263Ade\""
|> parserEqual (Success (JString "ab☺de"))
╭─[ 40.68ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JString "ab☺de", { lines = [ │
│ |""ab\u263Ade""|]<br/> │
│ position = { line = 0<br/> column = │
│ 12 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JString "ab☺de", { lines = [ │
│ |""ab\u263Ade""|]<br/> position = { line = 0<br/> │
│ column = 12 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JS... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 48.11ms - stdout ]─────────────────────────────────────────────────────────╮
│ JString "ab☺de" │
│ JString │
│ Item: ab☺de │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### jNumber │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let jNumber =
let optSign = opt (pchar '-')
let zero = pstring "0"
let digitOneNine =
satisfy (fun ch -> Char.IsDigit ch && ch <> '0') "1-9"
let digit =
satisfy Char.IsDigit "digit"
let point = pchar '.'
let e = pchar 'e' <|> pchar 'E'
let optPlusMinus = opt (pchar '-' <|> pchar '+')
let nonZeroInt =
digitOneNine .>>. manyChars digit
|>> fun (first, rest) -> string first + rest
let intPart = zero <|> nonZeroInt
let fractionPart = point >>. manyChars1 digit
let exponentPart = e >>. optPlusMinus .>>. manyChars1 digit
let inline (|>?) opt f =
match opt with
| None -> ""
| Some x -> f x
let inline convertToJNumber (((optSign, intPart), fractionPart), expPart) =
let signStr =
optSign
|>? string
let fractionPartStr =
fractionPart
|>? (fun digits -> "." + digits)
let expPartStr =
expPart
|>? fun (optSign, digits) ->
let sign = optSign |>? string
"e" + sign + digits
(signStr + intPart + fractionPartStr + expPartStr)
|> float
|> JNumber
optSign .>>. intPart .>>. opt fractionPart .>>. opt exponentPart
|>> convertToJNumber
<?> "number"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
jValueRef <|
choice
[[
jNull
jBool
jString
jNumber
]]
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber "123"
|> parserEqual (Success (JNumber 123.0))
╭─[ 72.22ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JNumber 123.0, { lines = [ │
│ |"123"|]<br/> position = { line = 0<br/> │
│ column = 3 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JNumber 123.0, { lines = [ │
│ |"123"|]<br/> position = { line = 0<br/> column = 3 │
│ } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JNumber │
│ 123.0</code></span></summary><div><table><thead><tr></tr></the... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 79.16ms - stdout ]─────────────────────────────────────────────────────────╮
│ JNumber 123.0 │
│ JNumber │
│ Item: 123 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber "-123"
|> parserEqual (Success (JNumber -123.0))
╭─[ 37.21ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [ │
│ |"-123"|]<br/> position = { line = │
│ 0<br/> column = 4 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JNumber -123.0, { lines = [ │
│ |"-123"|]<br/> position = { line = 0<br/> column = │
│ 4 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JNumber │
│ -123.0</code></span></summary><div><table><thead><tr></t... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 43.81ms - stdout ]─────────────────────────────────────────────────────────╮
│ JNumber -123.0 │
│ JNumber │
│ Item: -123 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber "123.4"
|> parserEqual (Success (JNumber 123.4))
╭─[ 38.80ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JNumber 123.4, { lines = [ │
│ |"123.4"|]<br/> position = { line = │
│ 0<br/> column = 5 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JNumber 123.4, { lines = [ │
│ |"123.4"|]<br/> position = { line = 0<br/> column = │
│ 5 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JNumber │
│ 123.4</code></span></summary><div><table><thead><tr></tr><... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 45.39ms - stdout ]─────────────────────────────────────────────────────────╮
│ JNumber 123.4 │
│ JNumber │
│ Item: 123.4 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber "-123."
|> parserEqual (Success (JNumber -123.0))
╭─[ 39.69ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [ │
│ |"-123."|]<br/> position = { line = │
│ 0<br/> column = 4 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JNumber -123.0, { lines = [ │
│ |"-123."|]<br/> position = { line = 0<br/> column = │
│ 4 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JNumber │
│ -123.0</code></span></summary><div><table><thead><tr><... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 47.09ms - stdout ]─────────────────────────────────────────────────────────╮
│ JNumber -123.0 │
│ JNumber │
│ Item: -123 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber "00.1"
|> parserEqual (Success (JNumber 0.0))
╭─[ 36.94ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JNumber 0.0, { lines = [ │
│ |"00.1"|]<br/> position = { line = 0<br/> │
│ column = 1 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JNumber 0.0, { lines = [ │
│ |"00.1"|]<br/> position = { line = 0<br/> column = │
│ 1 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JNumber │
│ 0.0</code></span></summary><div><table><thead><tr></tr></thead><tbod... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 43.73ms - stdout ]─────────────────────────────────────────────────────────╮
│ JNumber 0.0 │
│ JNumber │
│ Item: 0 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let jNumber_ = jNumber .>> spaces1
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber_ "123"
|> parserEqual (Success (JNumber 123.0))
╭─[ 46.29ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JNumber 123.0, { lines = [ │
│ |"123"|]<br/> position = { line = 1<br/> │
│ column = 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JNumber 123.0, { lines = [ │
│ |"123"|]<br/> position = { line = 1<br/> column = 0 │
│ } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JNumber │
│ 123.0</code></span></summary><div><table><thead><tr></tr></the... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 53.38ms - stdout ]─────────────────────────────────────────────────────────╮
│ JNumber 123.0 │
│ JNumber │
│ Item: 123 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber_ "-123"
|> parserEqual (Success (JNumber -123.0))
╭─[ 45.83ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JNumber -123.0, { lines = [ │
│ |"-123"|]<br/> position = { line = │
│ 1<br/> column = 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JNumber -123.0, { lines = [ │
│ |"-123"|]<br/> position = { line = 1<br/> column = │
│ 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JNumber │
│ -123.0</code></span></summary><div><table><thead><tr></t... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 52.84ms - stdout ]─────────────────────────────────────────────────────────╮
│ JNumber -123.0 │
│ JNumber │
│ Item: -123 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber_ "-123."
|> parserEqual (
Failure (
"number andThen many1 whitespace",
"Unexpected '.'",
{ currentLine = "-123."; line = 0; column = 4 }
)
)
╭─[ 32.32ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Failure<br/> ("number andThen many1 │
│ whitespace", "Unexpected '.'", { currentLine = │
│ "-123."<br/> │
│ line = 0<br/> │
│ column = 4 │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div class="dni-plaintext"><pre>number andThen many1 │
│ whitespace</pre></div></td></tr><tr><td>Item2</td><td><div │
│ class="dni-plaintext"><pre>Unexpected │
│ '.'</pre></div></td></tr><tr><td>Item3</td><td><details │
│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ │
│ currentLine = "... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 39.61ms - stdout ]─────────────────────────────────────────────────────────╮
│ Line:0 Col:4 Error parsing number andThen many1 whitespace │
│ -123. │
│ ^Unexpected '.' │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber_ "123.4"
|> parserEqual (Success (JNumber 123.4))
╭─[ 37.47ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JNumber 123.4, { lines = [ │
│ |"123.4"|]<br/> position = { line = │
│ 1<br/> column = 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JNumber 123.4, { lines = [ │
│ |"123.4"|]<br/> position = { line = 1<br/> column = │
│ 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JNumber │
│ 123.4</code></span></summary><div><table><thead><tr></tr><... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 44.65ms - stdout ]─────────────────────────────────────────────────────────╮
│ JNumber 123.4 │
│ JNumber │
│ Item: 123.4 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber_ "00.4"
|> parserEqual (
Failure (
"number andThen many1 whitespace",
"Unexpected '0'",
{ currentLine = "00.4"; line = 0; column = 1 }
)
)
╭─[ 27.13ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Failure<br/> ("number andThen many1 │
│ whitespace", "Unexpected '0'", { currentLine = │
│ "00.4"<br/> │
│ line = 0<br/> │
│ column = 1 │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div class="dni-plaintext"><pre>number andThen many1 │
│ whitespace</pre></div></td></tr><tr><td>Item2</td><td><div │
│ class="dni-plaintext"><pre>Unexpected │
│ '0'</pre></div></td></tr><tr><td>Item3</td><td><details │
│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ │
│ currentLine = "0... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 33.29ms - stdout ]─────────────────────────────────────────────────────────╮
│ Line:0 Col:1 Error parsing number andThen many1 whitespace │
│ 00.4 │
│ ^Unexpected '0' │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber_ "123e4"
|> parserEqual (Success (JNumber 1230000.0))
╭─[ 114.14ms - return value ]──────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JNumber 1230000.0, { lines = [ │
│ |"123e4"|]<br/> position = { line = │
│ 1<br/> column = 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JNumber 1230000.0, { lines = [ │
│ |"123e4"|]<br/> position = { line = 1<br/> column = │
│ 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JNumber │
│ 1230000.0</code></span></summary><div><tab... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 127.13ms - stdout ]────────────────────────────────────────────────────────╮
│ JNumber 1230000.0 │
│ JNumber │
│ Item: 1230000 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber_ "123.4e5"
|> parserEqual (Success (JNumber 12340000.0))
╭─[ 50.19ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JNumber 12340000.0, { lines = [ │
│ |"123.4e5"|]<br/> position = { line │
│ = 1<br/> column = 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JNumber 12340000.0, { lines = [ │
│ |"123.4e5"|]<br/> position = { line = 1<br/> column │
│ = 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JNumber 12340000.0</code></span></summary>... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 58.80ms - stdout ]─────────────────────────────────────────────────────────╮
│ JNumber 12340000.0 │
│ JNumber │
│ Item: 12340000 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jNumber_ "123.4e-5"
|> parserEqual (Success (JNumber 0.001234))
╭─[ 40.69ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JNumber 0.001234, { lines = [ │
│ |"123.4e-5"|]<br/> position = { line = │
│ 1<br/> column = 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JNumber 0.001234, { lines = [ │
│ |"123.4e-5"|]<br/> position = { line = 1<br/> │
│ column = 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>JNumber │
│ 0.001234</code></span></summary><div><ta... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 47.31ms - stdout ]─────────────────────────────────────────────────────────╮
│ JNumber 0.001234 │
│ JNumber │
│ Item: 0.001234 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### jArray │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let jArray =
let left = pchar '[[' .>> spaces
let right = pchar ']]' .>> spaces
let comma = pchar ',' .>> spaces
let value = jValue .>> spaces
let values = sepBy value comma
between left values right
|>> JArray
<?> "array"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
jValueRef <|
choice
[[
jNull
jBool
jString
jNumber
jArray
]]
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jArray "[[ 1, 2 ]]"
|> parserEqual (Success (JArray [[ JNumber 1.0; JNumber 2.0 ]]))
╭─[ 95.19ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success (JArray [JNumber 1.0; JNumber 2.0], { │
│ lines = [|"[ 1, 2 ]"|]<br/> │
│ position = { line = 1<br/> │
│ column = 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JArray [JNumber 1.0; JNumber 2.0], { lines = [ │
│ |"[ 1, 2 ]"|]<br/> position = { line = 1<br/> │
│ column = 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><details class="dni-treeview"><summary><span class="d... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 101.87ms - stdout ]────────────────────────────────────────────────────────╮
│ JArray [JNumber 1.0; JNumber 2.0] │
│ JArray │
│ Item: FSharpList<JValue> │
│ - Item: 1 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Item: 2 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jArray "[[ 1, 2, ]]"
|> parserEqual (
Failure (
"array",
"Unexpected ','",
{ currentLine = "[[ 1, 2, ]]"; line = 0; column = 6 }
)
)
╭─[ 33.14ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Failure ("array", "Unexpected │
│ ','", { currentLine = "[ 1, 2, ]"<br/> │
│ line = 0<br/> column = 6 │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div │
│ class="dni-plaintext"><pre>array</pre></div></td></tr><tr><td>Item2</td><td> │
│ <div class="dni-plaintext"><pre>Unexpected │
│ ','</pre></div></td></tr><tr><td>Item3</td><td><details │
│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ │
│ currentLine = "[ 1, 2, ]"<br/> line = 0<br/> column = 6 │
│ }</code></span></summary><div><table><thead><t... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 39.02ms - stdout ]─────────────────────────────────────────────────────────╮
│ Line:0 Col:6 Error parsing array │
│ [ 1, 2, ] │
│ ^Unexpected ',' │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### jObject │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let jObject =
let left = spaces >>. pchar '{' .>> spaces
let right = pchar '}' .>> spaces
let colon = pchar ':' .>> spaces
let comma = pchar ',' .>> spaces
let key = quotedString .>> spaces
let value = jValue .>> spaces
let keyValue = (key .>> colon) .>>. value
let keyValues = sepBy keyValue comma
between left keyValues right
|>> Map.ofList
|>> JObject
<?> "object"
── fsharp ──────────────────────────────────────────────────────────────────────
jValueRef <|
choice
[[
jNull
jBool
jString
jNumber
jArray
jObject
]]
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jObject """{ "a":1, "b" : 2 }"""
|> parserEqual (
Success (
JObject (
Map.ofList [[
"a", JNumber 1.0
"b", JNumber 2.0
]]
)
)
)
╭─[ 96.79ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success<br/> (JObject (map [("a", │
│ JNumber 1.0); ("b", JNumber 2.0)]),<br/> { lines = [|"{ │
│ "a":1, "b" : 2 }"|]<br/> position = { line = │
│ 1<br/> column = 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JObject (map [("a", JNumber 1.0); │
│ ("b", JNumber 2.0)]), { lines = [|"{ "a":1, │
│ "b" : 2 }"|]<br/> position = { line = 1<br/> │
│ column = 0 } │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbod... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 102.94ms - stdout ]────────────────────────────────────────────────────────╮
│ JObject (map [("a", JNumber 1.0); ("b", JNumber 2.0)]) │
│ JObject │
│ Item: FSharpMap<String,JValue> │
│ - Key: a │
│ Value: JNumber │
│ Item: 1 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Key: b │
│ Value: JNumber │
│ Item: 2 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: True │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run jObject """{ "a":1, "b" : 2, }"""
|> parserEqual (
Failure (
"object",
"Unexpected ','",
{ currentLine = """{ "a":1, "b" : 2, }"""; line = 0; column = 18 }
)
)
╭─[ 48.59ms - return value ]───────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Failure ("object", "Unexpected │
│ ','", { currentLine = "{ "a":1, "b" : │
│ 2, }"<br/> line = 0<br/> │
│ column = 18 │
│ })</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
│ >Item1</td><td><div │
│ class="dni-plaintext"><pre>object</pre></div></td></tr><tr><td>Item2</td><td │
│ ><div class="dni-plaintext"><pre>Unexpected │
│ ','</pre></div></td></tr><tr><td>Item3</td><td><details │
│ class="dni-treeview"><summary><span class="dni-code-hint"><code>{ │
│ currentLine = "{ "a":1, "b" : 2, }"<br/> │
│ lin... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 58.09ms - stdout ]─────────────────────────────────────────────────────────╮
│ Line:0 Col:18 Error parsing object │
│ { "a":1, "b" : 2, } │
│ ^Unexpected ',' │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### jValue │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let example1 = """{
"name" : "Scott",
"isMale" : true,
"bday" : {"year":2001, "month":12, "day":25 },
"favouriteColors" : [["blue", "green"]],
"emptyArray" : [[]],
"emptyObject" : {}
}"""
run jValue example1
|> parserEqual (
Success (
JObject (
Map.ofList [[
"name", JString "Scott"
"isMale", JBool true
"bday", JObject (
Map.ofList [[
"year", JNumber 2001.0
"month", JNumber 12.0
"day", JNumber 25.0
]]
)
"favouriteColors", JArray [[ JString "blue"; JString "green" ]]
"emptyArray", JArray [[]]
"emptyObject", JObject Map.empty
]]
)
)
)
╭─[ 180.27ms - return value ]──────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success<br/> (JObject<br/> (map<br/> │
│ [("bday",<br/> JObject<br/> (map<br/> │
│ [("day", JNumber 25.0); ("month", JNumber 12.0);<br/> │
│ ("year", JNumber 2001.0)])); ("emptyArray", JArray [ │
│ ]);<br/> ("emptyObject", JObject (map []));<br/> │
│ ("favouriteColors", │
│ ...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
│ d>Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JObject<br/> (map<br/> [ │
│ ("bday",<br/> JObject<br/> (map<br/> [ │
│ (... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 187.21ms - stdout ]────────────────────────────────────────────────────────╮
│ JObject │
│ (map │
│ [("bday", │
│ JObject │
│ (map │
│ [("day", JNumber 25.0); ("month", JNumber 12.0); │
│ ("year", JNumber 2001.0)])); ("emptyArray", JArray []); │
│ ("emptyObject", JObject (map [])); │
│ ("favouriteColors", JArray [JString "blue"; JString "green"]); │
│ ("isMale", JBool true); ("name", JString "Scott")]) │
│ JObject │
│ Item: FSharpMap<String,JValue> │
│ - Key: bday │
│ Value: JObject │
│ Item: FSharpMap<String,JValue> │
│ - Key: day │
│ Value: JNumber 25.0 │
│ - Key: month │
│ Value: JNumber 12.0 │
│ - Key: year │
│ Value: JNumber 2001.0 │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: True │
│ IsJArray: False │
│ - Key: emptyArray │
│ Value: JArray │
│ Item: FSharpList<JValue> │
│ │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: True │
│ - Key: emptyObject │
│ Value: JObject │
│ Item: FSharpMap<String,JValue> │
│ │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: True │
│ IsJArray: False │
│ - Key: favouriteColors │
│ Value: JArray │
│ Item: FSharpList<JValue> │
│ - Item: blue │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Item: green │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: True │
│ - Key: isMale │
│ Value: JBool │
│ Item: True │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: True │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Key: name │
│ Value: JString │
│ Item: Scott │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: True │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let example2 = """{"widget": {
"debug": "on",
"window": {
"title": "Sample Konfabulator Widget",
"name": "main_window",
"width": 500,
"height": 500
},
"image": {
"src": "Images/Sun.png",
"name": "sun1",
"hOffset": 250,
"vOffset": 250,
"alignment": "center"
},
"text": {
"data": "Click Here",
"size": 36,
"style": "bold",
"name": "text1",
"hOffset": 250,
"vOffset": 100,
"alignment": "center",
"onMouseUp": "sun1.opacity = (sun1.opacity / 100) * 90;"
}
}}"""
run jValue example2
|> parserEqual (
Success (
JObject (
Map.ofList [[
"widget", JObject (
Map.ofList [[
"debug", JString "on"
"window", JObject (
Map.ofList [[
"title", JString "Sample Konfabulator Widget"
"name", JString "main_window"
"width", JNumber 500.0
"height", JNumber 500.0
]]
)
"image", JObject (
Map.ofList [[
"src", JString "Images/Sun.png"
"name", JString "sun1"
"hOffset", JNumber 250.0
"vOffset", JNumber 250.0
"alignment", JString "center"
]]
)
"text", JObject (
Map.ofList [[
"data", JString "Click Here"
"size", JNumber 36.0
"style", JString "bold"
"name", JString "text1"
"hOffset", JNumber 250.0
"vOffset", JNumber 100.0
"alignment", JString "center"
"onMouseUp", JString "sun1.opacity =
(sun1.opacity / 100) * 90;"
]]
)
]]
)
]]
)
)
)
╭─[ 302.14ms - return value ]──────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success<br/> (JObject<br/> (map<br/> │
│ [("widget",<br/> JObject<br/> (map<br/> │
│ [("debug", JString "on");<br/> │
│ ("image",<br/> JObject<br/> │
│ (map<br/> [("alignment", JString │
│ "center");<br/> │
│ ("hOffset"...</code></span></summary><div><table><thead><tr></tr>< │
│ /thead><tbody><tr><td>Item</td><td><details │
│ class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JObject<br/> (map<br/> [ │
│ ("widget",<br/> JObject<br/> (map<br/> ... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 308.61ms - stdout ]────────────────────────────────────────────────────────╮
│ JObject │
│ (map │
│ [("widget", │
│ JObject │
│ (map │
│ [("debug", JString "on"); │
│ ("image", │
│ JObject │
│ (map │
│ [("alignment", JString "center"); ("hOffset", JNumber │
│ 250.0); │
│ ("name", JString "sun1"); ("src", JString │
│ "Images/Sun.png"); │
│ ("vOffset", JNumber 250.0)])); │
│ ("text", │
│ JObject │
│ (map │
│ [("alignment", JString "center"); │
│ ("data", JString "Click Here"); ("hOffset", JNumber │
│ 250.0); │
│ ("name", JString "text1"); │
│ ("onMouseUp", │
│ JString "sun1.opacity = (sun1.opacity / 100) * 90;"); │
│ ("size", JNumber 36.0); ("style", JString "bold"); │
│ ("vOffset", JNumber 100.0)])); │
│ ("window", │
│ JObject │
│ (map │
│ [("height", JNumber 500.0); ("name", JString │
│ "main_window"); │
│ ("title", JString "Sample Konfabulator Widget"); │
│ ("width", JNumber 500.0)]))]))]) │
│ JObject │
│ Item: FSharpMap<String,JValue> │
│ - Key: widget │
│ Value: JObject │
│ Item: FSharpMap<String,JValue> │
│ - Key: debug │
│ Value: JString "on" │
│ - Key: image │
│ Value: JObject │
│ (map │
│ [("alignment", JString "center"); ("hOffset", JNumber 250.0); │
│ ("name", JString "sun1"); ("src", JString "Images/Sun.png"); │
│ ("vOffset", JNumber 250.0)]) │
│ - Key: text │
│ Value: JObject │
│ (map │
│ [("alignment", JString "center"); ("data", JString "Click Here"); │
│ ("hOffset", JNumber 250.0); ("name", JString "text1"); │
│ ("onMouseUp", JString "sun1.opacity = (sun1.opacity / 100) * 90;"); │
│ ("size", JNumber 36.0); ("style", JString "bold"); │
│ ("vOffset", JNumber 100.0)]) │
│ - Key: window │
│ Value: JObject │
│ (map │
│ [("height", JNumber 500.0); ("name", JString "main_window"); │
│ ("title", JString "Sample Konfabulator Widget"); ("width", JNumber │
│ 500.0)]) │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: True │
│ IsJArray: False │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: True │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let example3 = """{
"string": "Hello, \"World\"!",
"escapedString": "This string contains \\/\\\\\\b\\f\\n\\r\\t\\\"\\'",
"number": 42,
"scientificNumber": 3.14e-10,
"boolean": true,
"nullValue": null,
"array": [[1, 2, 3, 4, 5]],
"unicodeString1": "프리마",
"unicodeString2": "\u0048\u0065\u006C\u006C\u006F,
\u0022\u0057\u006F\u0072\u006C\u0064\u0022!",
"specialCharacters": "!@#$%^&*()",
"emptyArray": [[]],
"emptyObject": {},
"nestedArrays": [[[[1, 2, 3]], [[4, 5, 6]]]],
"object": {
"nestedString": "Nested Value",
"nestedNumber": 3.14,
"nestedBoolean": false,
"nestedNull": null,
"nestedArray": [["a", "b", "c"]],
"nestedObject": {
"nestedProperty": "Nested Object Value"
}
},
"nestedObjects": [[
{"name": "Alice", "age": 25},
{"name": "Bob", "age": 30}
]]
}"""
run jValue example3
|> parserEqual (
Success (
JObject (
Map.ofList [[
"string", JString @"Hello, ""World""!"
"escapedString", JString @"This string contains
\/\\\b\f\n\r\t\""\'"
"number", JNumber 42.0
"scientificNumber", JNumber 3.14e-10
"boolean", JBool true
"nullValue", JNull
"array", JArray [[
JNumber 1.0; JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber
5.0
]]
"unicodeString1", JString "프리마"
"unicodeString2", JString @"Hello, ""World""!"
"specialCharacters", JString "!@#$%^&*()"
"emptyArray", JArray [[]]
"emptyObject", JObject Map.empty
"nestedArrays", JArray [[
JArray [[ JNumber 1.0; JNumber 2.0; JNumber 3.0 ]]
JArray [[ JNumber 4.0; JNumber 5.0; JNumber 6.0 ]]
]]
"object", JObject (
Map.ofList [[
"nestedString", JString "Nested Value"
"nestedNumber", JNumber 3.14
"nestedBoolean", JBool false
"nestedNull", JNull
"nestedArray", JArray [[JString "a"; JString "b";
JString "c"]]
"nestedObject", JObject (
Map.ofList [[
"nestedProperty", JString "Nested Object Value"
]]
)
]]
)
"nestedObjects", JArray [[
JObject (Map.ofList [[ "name", JString "Alice"; "age", JNumber
25.0 ]])
JObject (Map.ofList [[ "name", JString "Bob"; "age", JNumber
30.0 ]])
]]
]]
)
)
)
╭─[ 518.69ms - return value ]──────────────────────────────────────────────────╮
│ <details open="open" class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>Success<br/> (JObject<br/> (map<br/> │
│ [("array",<br/> JArray<br/> [JNumber 1.0; │
│ JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber 5.0]);<br/> │
│ ("boolean", JBool true); ("emptyArray", JArray []);<br/> │
│ ("emptyObject", JObject (map []));<br/> │
│ ("escapedString", JString "This │
│ s...</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr>< │
│ td>Item</td><td><details class="dni-treeview"><summary><span │
│ class="dni-code-hint"><code>(JObject<br/> (map<br/> [ │
│ ("array",<br/> JArray [JNumber 1.0; JNumber 2.0; JNumber │
│ 3.0; JNumber 4.0; J... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 525.87ms - stdout ]────────────────────────────────────────────────────────╮
│ JObject │
│ (map │
│ [("array", │
│ JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0; JNumber 4.0; JNumber │
│ 5.0]); │
│ ("boolean", JBool true); ("emptyArray", JArray []); │
│ ("emptyObject", JObject (map [])); │
│ ("escapedString", JString "This string contains \/\\\b\f\n\r\t\"\'"); │
│ ("nestedArrays", │
│ JArray │
│ [JArray [JNumber 1.0; JNumber 2.0; JNumber 3.0]; │
│ JArray [JNumber 4.0; JNumber 5.0; JNumber 6.0]]); │
│ ("nestedObjects", │
│ JArray │
│ [JObject (map [("age", JNumber 25.0); ("name", JString "Alice")]); │
│ JObject (map [("age", JNumber 30.0); ("name", JString "Bob")])]); │
│ ("nullValue", JNull); ("number", JNumber 42.0); ...]) │
│ JObject │
│ Item: FSharpMap<String,JValue> │
│ - Key: array │
│ Value: JArray │
│ Item: FSharpList<JValue> │
│ - Item: 1 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Item: 2 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Item: 3 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Item: 4 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Item: 5 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: True │
│ - Key: boolean │
│ Value: JBool │
│ Item: True │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: True │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Key: emptyArray │
│ Value: JArray │
│ Item: FSharpList<JValue> │
│ │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: True │
│ - Key: emptyObject │
│ Value: JObject │
│ Item: FSharpMap<String,JValue> │
│ │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: True │
│ IsJArray: False │
│ - Key: escapedString │
│ Value: JString │
│ Item: This string contains \/\\\b\f\n\r\t\"\' │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Key: nestedArrays │
│ Value: JArray │
│ Item: FSharpList<JValue> │
│ - Item: [ JNumber 1.0, JNumber 2.0, JNumber 3.0 ] │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: True │
│ - Item: [ JNumber 4.0, JNumber 5.0, JNumber 6.0 ] │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: True │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: True │
│ - Key: nestedObjects │
│ Value: JArray │
│ Item: FSharpList<JValue> │
│ - Item: [ [age, JNumber 25.0], [name, JString "Alice"] ] │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: True │
│ IsJArray: False │
│ - Item: [ [age, JNumber 30.0], [name, JString "Bob"] ] │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: True │
│ IsJArray: False │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: True │
│ - Key: nullValue │
│ Value: JValue │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: True │
│ IsJObject: False │
│ IsJArray: False │
│ - Key: number │
│ Value: JNumber │
│ Item: 42 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Key: object │
│ Value: JObject │
│ Item: FSharpMap<String,JValue> │
│ - Key: nestedArray │
│ Value: JArray [JString "a"; JString "b"; JString "c"] │
│ - Key: nestedBoolean │
│ Value: JBool false │
│ - Key: nestedNull │
│ Value: JNull │
│ - Key: nestedNumber │
│ Value: JNumber 3.14 │
│ - Key: nestedObject │
│ Value: JObject (map [("nestedProperty", JString "Nested │
│ Object Value")]) │
│ - Key: nestedString │
│ Value: JString "Nested Value" │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: True │
│ IsJArray: False │
│ - Key: scientificNumber │
│ Value: JNumber │
│ Item: 3.14E-10 │
│ IsJString: False │
│ IsJNumber: True │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Key: specialCharacters │
│ Value: JString │
│ Item: !@#$%^&*() │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Key: string │
│ Value: JString │
│ Item: Hello, "World"! │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Key: unicodeString1 │
│ Value: JString │
│ Item: 프리마 │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ - Key: unicodeString2 │
│ Value: JString │
│ Item: Hello, "World"! │
│ IsJString: True │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: False │
│ IsJArray: False │
│ IsJString: False │
│ IsJNumber: False │
│ IsJBool: False │
│ IsJNull: False │
│ IsJObject: True │
│ IsJArray: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook JsonParser.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 545453 bytes to JsonParser.dib.html
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # Parser (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Common.fs
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldValue : string) (newValue : string) (input :
string) =
input.Replace (oldValue, newValue)
let inline split separator (input : string) =
input.Split separator
let inline spli...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### TextInput │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
type Position =
{
line : int
column : int
}
── fsharp ──────────────────────────────────────────────────────────────────────
let initialPos = { line = 0; column = 0 }
── fsharp ──────────────────────────────────────────────────────────────────────
let inline incrCol (pos : Position) =
{ pos with column = pos.column + 1 }
── fsharp ──────────────────────────────────────────────────────────────────────
let inline incrLine pos =
{ line = pos.line + 1; column = 0 }
── fsharp ──────────────────────────────────────────────────────────────────────
type InputState =
{
lines : string[[]]
position : Position
}
── fsharp ──────────────────────────────────────────────────────────────────────
let inline fromStr str =
{
lines =
if str |> String.IsNullOrEmpty
then [[||]]
else str |> String.splitString [[| "\r\n"; "\n" |]]
position = initialPos
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
fromStr "" |> _assertEqual {
lines = [[||]]
position = { line = 0; column = 0 }
}
╭─[ 45.04ms - stdout ]─────────────────────────────────────────────────────────╮
│ InputState │
│ lines: [ ] │
│ position: Position │
│ line: 0 │
│ column: 0 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
fromStr "Hello \n World" |> _assertEqual {
lines = [[| "Hello "; " World" |]]
position = { line = 0; column = 0 }
}
╭─[ 18.74ms - stdout ]─────────────────────────────────────────────────────────╮
│ InputState │
│ lines: [ Hello , World ] │
│ position: Position │
│ line: 0 │
│ column: 0 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline currentLine inputState =
let linePos = inputState.position.line
if linePos < inputState.lines.Length
then inputState.lines.[[linePos]]
else "end of file"
── fsharp ──────────────────────────────────────────────────────────────────────
let inline nextChar input =
let linePos = input.position.line
let colPos = input.position.column
if linePos >= input.lines.Length
then input, None
else
let currentLine = currentLine input
if colPos < currentLine.Length then
let char = currentLine.[[colPos]]
let newPos = incrCol input.position
let newState = { input with position = newPos }
newState, Some char
else
let char = '\n'
let newPos = incrLine input.position
let newState = { input with position = newPos }
newState, Some char
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let newInput, charOpt = fromStr "Hello World" |> nextChar
newInput |> _assertEqual {
lines = [[| "Hello World" |]]
position = { line = 0; column = 1 }
}
charOpt |> _assertEqual (Some 'H')
╭─[ 41.08ms - stdout ]─────────────────────────────────────────────────────────╮
│ InputState │
│ lines: [ Hello World ] │
│ position: Position │
│ line: 0 │
│ column: 1 │
│ FSharpOption<Char> │
│ Value: H │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let newInput, charOpt = fromStr "Hello\n\nWorld" |> nextChar
newInput |> _assertEqual {
lines = [[| "Hello"; ""; "World" |]]
position = { line = 0; column = 1 }
}
charOpt |> _assertEqual (Some 'H')
╭─[ 27.88ms - stdout ]─────────────────────────────────────────────────────────╮
│ InputState │
│ lines: [ Hello, , World ] │
│ position: Position │
│ line: 0 │
│ column: 1 │
│ FSharpOption<Char> │
│ Value: H │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### Parser │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
type Input = InputState
type ParserLabel = string
type ParserError = string
type ParserPosition =
{
currentLine : string
line : int
column : int
}
type ParseResult<'a> =
| Success of 'a
| Failure of ParserLabel * ParserError * ParserPosition
type Parser<'a> =
{
label : ParserLabel
parseFn : Input -> ParseResult<'a * Input>
}
── fsharp ──────────────────────────────────────────────────────────────────────
let inline printResult result =
match result with
| Success (value, input) ->
printfn $"%A{value}"
| Failure (label, error, parserPos) ->
let errorLine = parserPos.currentLine
let colPos = parserPos.column
let linePos = parserPos.line
let failureCaret = $"{' ' |> string |> String.replicate colPos}^{error}"
printfn $"Line:%i{linePos} Col:%i{colPos} Error parsing
%s{label}\n%s{errorLine}\n%s{failureCaret}"
── fsharp ──────────────────────────────────────────────────────────────────────
let inline runOnInput parser input =
parser.parseFn input
── fsharp ──────────────────────────────────────────────────────────────────────
let inline run parser inputStr =
runOnInput parser (fromStr inputStr)
── fsharp ──────────────────────────────────────────────────────────────────────
let inline parserPositionFromInputState (inputState : Input) =
{
currentLine = currentLine inputState
line = inputState.position.line
column = inputState.position.column
}
── fsharp ──────────────────────────────────────────────────────────────────────
let inline getLabel parser =
parser.label
── fsharp ──────────────────────────────────────────────────────────────────────
let inline setLabel parser newLabel =
{
label = newLabel
parseFn = fun input ->
match parser.parseFn input with
| Success s -> Success s
| Failure (oldLabel, err, pos) -> Failure (newLabel, err, pos)
}
── fsharp ──────────────────────────────────────────────────────────────────────
let (<?>) = setLabel
── fsharp ──────────────────────────────────────────────────────────────────────
let inline satisfy predicate label =
{
label = label
parseFn = fun input ->
let remainingInput, charOpt = nextChar input
match charOpt with
| None ->
let err = "No more input"
let pos = parserPositionFromInputState input
Failure (label, err, pos)
| Some first ->
if predicate first
then Success (first, remainingInput)
else
let err = $"Unexpected '%c{first}'"
let pos = parserPositionFromInputState input
Failure (label, err, pos)
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "Hello"
let parser = satisfy (fun c -> c = 'H') "H"
runOnInput parser input |> _assertEqual (
Success (
'H',
{
lines = [[| "Hello" |]]
position = { line = 0; column = 1 }
}
)
)
╭─[ 35.48ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - H │
│ - InputState │
│ lines: [ Hello ] │
│ position: Position │
│ line: 0 │
│ column: 1 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "World"
let parser = satisfy (fun c -> c = 'H') "H"
runOnInput parser input |> _assertEqual (
Failure (
"H",
"Unexpected 'W'",
{
currentLine = "World"
line = 0
column = 0
}
)
)
╭─[ 33.04ms - stdout ]─────────────────────────────────────────────────────────╮
│ Failure │
│ Item1: H │
│ Item2: Unexpected 'W' │
│ Item3: ParserPosition │
│ currentLine: World │
│ line: 0 │
│ column: 0 │
│ IsSuccess: False │
│ IsFailure: True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline bindP f p =
{
label = "unknown"
parseFn = fun input ->
match runOnInput p input with
| Failure (label, err, pos) -> Failure (label, err, pos)
| Success (value1, remainingInput) -> runOnInput (f value1)
remainingInput
}
── fsharp ──────────────────────────────────────────────────────────────────────
let inline (>>=) p f = bindP f p
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "Hello"
let parser = satisfy (fun c -> c = 'H') "H"
let parser2 = parser >>= fun c -> satisfy (fun c -> c = 'e') "e"
runOnInput parser2 input |> _assertEqual (
Success (
'e',
{
lines = [[| "Hello" |]]
position = { line = 0; column = 2 }
}
)
)
╭─[ 47.90ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - e │
│ - InputState │
│ lines: [ Hello ] │
│ position: Position │
│ line: 0 │
│ column: 2 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "World"
let parser = satisfy (fun c -> c = 'W') "W"
let parser2 = parser >>= fun c -> satisfy (fun c -> c = 'e') "e"
runOnInput parser2 input |> _assertEqual (
Failure (
"e",
"Unexpected 'o'",
{
currentLine = "World"
line = 0
column = 1
}
)
)
╭─[ 41.09ms - stdout ]─────────────────────────────────────────────────────────╮
│ Failure │
│ Item1: e │
│ Item2: Unexpected 'o' │
│ Item3: ParserPosition │
│ currentLine: World │
│ line: 0 │
│ column: 1 │
│ IsSuccess: False │
│ IsFailure: True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline returnP x =
{
label = $"%A{x}"
parseFn = fun input -> Success (x, input)
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "Hello"
let parser = returnP "Hello"
runOnInput parser input |> _assertEqual (
Success (
"Hello",
{
lines = [[| "Hello" |]]
position = { line = 0; column = 0 }
}
)
)
╭─[ 33.08ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - Hello │
│ - InputState │
│ lines: [ Hello ] │
│ position: Position │
│ line: 0 │
│ column: 0 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline mapP f =
bindP (f >> returnP)
── fsharp ──────────────────────────────────────────────────────────────────────
let (<!>) = mapP
── fsharp ──────────────────────────────────────────────────────────────────────
let inline (|>>) x f = f <!> x
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "Hello"
let parser = satisfy (fun c -> c = 'H') "H"
let parser2 = parser |>> string
runOnInput parser2 input |> _assertEqual (
Success (
"H",
{
lines = [[| "Hello" |]]
position = { line = 0; column = 1 }
}
)
)
╭─[ 36.03ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - H │
│ - InputState │
│ lines: [ Hello ] │
│ position: Position │
│ line: 0 │
│ column: 1 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline applyP fP xP =
fP >>=
fun f ->
xP >>=
fun x ->
returnP (f x)
── fsharp ──────────────────────────────────────────────────────────────────────
let (<*>) = applyP
── fsharp ──────────────────────────────────────────────────────────────────────
let inline lift2 f xP yP =
returnP f <*> xP <*> yP
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "Hello"
let parser = satisfy (fun c -> c = 'H') "H"
let parser2 = satisfy (fun c -> c = 'e') "e"
let parser3 = lift2 (fun c1 c2 -> string c1 + string c2) parser parser2
runOnInput parser3 input |> _assertEqual (
Success (
"He",
{
lines = [[| "Hello" |]]
position = { line = 0; column = 2 }
}
)
)
╭─[ 56.07ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - He │
│ - InputState │
│ lines: [ Hello ] │
│ position: Position │
│ line: 0 │
│ column: 2 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline andThen p1 p2 =
p1 >>=
fun p1Result ->
p2 >>=
fun p2Result ->
returnP (p1Result, p2Result)
<?> $"{getLabel p1} andThen {getLabel p2}"
── fsharp ──────────────────────────────────────────────────────────────────────
let (.>>.) = andThen
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "Hello"
let parser = satisfy (fun c -> c = 'H') "H"
let parser2 = satisfy (fun c -> c = 'e') "e"
let parser3 = parser .>>. parser2
runOnInput parser3 input |> _assertEqual (
Success (
('H', 'e'),
{
lines = [[| "Hello" |]]
position = { line = 0; column = 2 }
}
)
)
╭─[ 65.50ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - ( H, e ) │
│ - InputState │
│ lines: [ Hello ] │
│ position: Position │
│ line: 0 │
│ column: 2 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline orElse p1 p2 =
{
label = $"{getLabel p1} orElse {getLabel p2}"
parseFn = fun input ->
match runOnInput p1 input with
| Success _ as result -> result
| Failure _ -> runOnInput p2 input
}
── fsharp ──────────────────────────────────────────────────────────────────────
let (<|>) = orElse
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "hello"
let parser = satisfy (fun c -> c = 'H') "H"
let parser2 = satisfy (fun c -> c = 'h') "h"
let parser3 = parser <|> parser2
runOnInput parser3 input |> _assertEqual (
Success (
'h',
{
lines = [[| "hello" |]]
position = { line = 0; column = 1 }
}
)
)
╭─[ 39.50ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - h │
│ - InputState │
│ lines: [ hello ] │
│ position: Position │
│ line: 0 │
│ column: 1 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline choice listOfParsers =
listOfParsers |> List.reduce (<|>)
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "hello"
let parser = satisfy (fun c -> c = 'H') "H"
let parser2 = satisfy (fun c -> c = 'h') "h"
let parser3 = choice [[ parser; parser2 ]]
runOnInput parser3 input |> _assertEqual (
Success (
'h',
{
lines = [[| "hello" |]]
position = { line = 0; column = 1 }
}
)
)
╭─[ 38.19ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - h │
│ - InputState │
│ lines: [ hello ] │
│ position: Position │
│ line: 0 │
│ column: 1 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let rec sequence parserList =
match parserList with
| [[]] -> returnP [[]]
| head :: tail -> (lift2 cons) head (sequence tail)
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "Hello"
let parser = satisfy (fun c -> c = 'H') "H"
let parser2 = satisfy (fun c -> c = 'e') "e"
let parser3 = sequence [[ parser; parser2 ]]
runOnInput parser3 input |> _assertEqual (
Success (
[[ 'H'; 'e' ]],
{
lines = [[| "Hello" |]]
position = { line = 0; column = 2 }
}
)
)
╭─[ 71.06ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - [ H, e ] │
│ - InputState │
│ lines: [ Hello ] │
│ position: Position │
│ line: 0 │
│ column: 2 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let rec parseZeroOrMore parser input =
match runOnInput parser input with
| Failure (_, _, _) ->
[[]], input
| Success (firstValue, inputAfterFirstParse) ->
let subsequentValues, remainingInput = parseZeroOrMore parser
inputAfterFirstParse
firstValue :: subsequentValues, remainingInput
── fsharp ──────────────────────────────────────────────────────────────────────
let inline many parser =
{
label = $"many {getLabel parser}"
parseFn = fun input -> Success (parseZeroOrMore parser input)
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "hello"
let parser = satisfy (fun c -> c = 'H') "H"
let parser2 = many parser
runOnInput parser2 input |> _assertEqual (
Success (
[[]],
{
lines = [[| "hello" |]]
position = { line = 0; column = 0 }
}
)
)
╭─[ 34.02ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - [ ] │
│ - InputState │
│ lines: [ hello ] │
│ position: Position │
│ line: 0 │
│ column: 0 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline many1 p =
p >>=
fun head ->
many p >>=
fun tail ->
returnP (head :: tail)
<?> $"many1 {getLabel p}"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "hello"
let parser = satisfy (fun c -> c = 'H') "H"
let parser2 = many1 parser
runOnInput parser2 input |> _assertEqual (
Failure (
"many1 H",
"Unexpected 'h'",
{
currentLine = "hello"
line = 0
column = 0
}
)
)
╭─[ 45.19ms - stdout ]─────────────────────────────────────────────────────────╮
│ Failure │
│ Item1: many1 H │
│ Item2: Unexpected 'h' │
│ Item3: ParserPosition │
│ currentLine: hello │
│ line: 0 │
│ column: 0 │
│ IsSuccess: False │
│ IsFailure: True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline opt p =
let some = p |>> Some
let none = returnP None
(some <|> none)
<?> $"opt {getLabel p}"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "hello"
let parser = satisfy (fun c -> c = 'H') "H"
let parser2 = opt parser
runOnInput parser2 input |> _assertEqual (
Success (
None,
{
lines = [[| "hello" |]]
position = { line = 0; column = 0 }
}
)
)
╭─[ 42.28ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - <null> │
│ - InputState │
│ lines: [ hello ] │
│ position: Position │
│ line: 0 │
│ column: 0 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline (.>>) p1 p2 =
p1 .>>. p2
|> mapP fst
── fsharp ──────────────────────────────────────────────────────────────────────
let inline (>>.) p1 p2 =
p1 .>>. p2
|> mapP snd
── fsharp ──────────────────────────────────────────────────────────────────────
let inline between p1 p2 p3 =
p1 >>. p2 .>> p3
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "[[Hello]]"
let parser =
between
(satisfy (fun c -> c = '[[') "[[")
(many (satisfy (fun c -> [[ 'a' .. 'z' ]] @ [[ 'A' .. 'Z' ]] |>
List.contains c) "letter"))
(satisfy (fun c -> c = ']]') "]]")
runOnInput parser input |> _assertEqual (
Success (
[[ 'H'; 'e'; 'l'; 'l'; 'o' ]],
{
lines = [[| "[[Hello]]" |]]
position = { line = 0; column = 7 }
}
)
)
╭─[ 101.10ms - stdout ]────────────────────────────────────────────────────────╮
│ Success │
│ Item: - [ H, e, l, l, o ] │
│ - InputState │
│ lines: [ [Hello] ] │
│ position: Position │
│ line: 0 │
│ column: 7 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline sepBy1 p sep =
let sepThenP = sep >>. p
p .>>. many sepThenP
|>> fun (p, pList) -> p :: pList
── fsharp ──────────────────────────────────────────────────────────────────────
let inline sepBy p sep =
sepBy1 p sep <|> returnP [[]]
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "Hello,World"
let parser = sepBy (many (satisfy (fun c -> c <> ',') "not comma")) (satisfy
(fun c -> c = ',') "comma")
runOnInput parser input |> _assertEqual (
Success (
[[ [[ 'H'; 'e'; 'l'; 'l'; 'o' ]]; [[ 'W'; 'o'; 'r'; 'l'; 'd'; '\n' ]]
]],
{
lines = [[| "Hello,World" |]]
position = { line = 1; column = 0 }
}
)
)
╭─[ 81.55ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - FSharpList<FSharpList<Char>> │
│ [ H, e, l, l, o ] │
│ [ W, o, r, l, d, │
│ ] │
│ - InputState │
│ lines: [ Hello,World ] │
│ position: Position │
│ line: 1 │
│ column: 0 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline pchar charToMatch =
satisfy ((=) charToMatch) $"%c{charToMatch}"
── fsharp ──────────────────────────────────────────────────────────────────────
let inline anyOf listOfChars =
listOfChars
|> List.map pchar
|> choice
<?> $"anyOf %A{listOfChars}"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "Hello"
let parser = anyOf [[ 'H'; 'e'; 'l'; 'o' ]] |> many
runOnInput parser input |> _assertEqual (
Success (
[[ 'H'; 'e'; 'l'; 'l'; 'o' ]],
{
lines = [[| "Hello" |]]
position = { line = 0; column = 5 }
}
)
)
╭─[ 37.92ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - [ H, e, l, l, o ] │
│ - InputState │
│ lines: [ Hello ] │
│ position: Position │
│ line: 0 │
│ column: 5 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline charListToStr charList =
charList |> List.toArray |> String
── fsharp ──────────────────────────────────────────────────────────────────────
let inline manyChars cp =
many cp
|>> charListToStr
── fsharp ──────────────────────────────────────────────────────────────────────
let inline manyChars1 cp =
many1 cp
|>> charListToStr
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "Hello"
let parser = manyChars1 (anyOf [[ 'H'; 'e'; 'l'; 'o' ]])
runOnInput parser input |> _assertEqual (
Success (
"Hello",
{
lines = [[| "Hello" |]]
position = { line = 0; column = 5 }
}
)
)
╭─[ 54.27ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - Hello │
│ - InputState │
│ lines: [ Hello ] │
│ position: Position │
│ line: 0 │
│ column: 5 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline pstring str =
str
|> List.ofSeq
|> List.map pchar
|> sequence
|> mapP charListToStr
<?> str
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "Hello"
let parser = pstring "Hello"
runOnInput parser input |> _assertEqual (
Success (
"Hello",
{
lines = [[| "Hello" |]]
position = { line = 0; column = 5 }
}
)
)
╭─[ 48.10ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - Hello │
│ - InputState │
│ lines: [ Hello ] │
│ position: Position │
│ line: 0 │
│ column: 5 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let whitespaceChar =
satisfy Char.IsWhiteSpace "whitespace"
── fsharp ──────────────────────────────────────────────────────────────────────
let spaces = many whitespaceChar
── fsharp ──────────────────────────────────────────────────────────────────────
let spaces1 = many1 whitespaceChar
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr " Hello"
let parser = spaces1 .>>. pstring "Hello"
runOnInput parser input |> _assertEqual (
Success (
([[ ' '; ' ' ]], "Hello"),
{
lines = [[| " Hello" |]]
position = { line = 0; column = 7 }
}
)
)
╭─[ 52.02ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - - [ , ] │
│ - Hello │
│ - InputState │
│ lines: [ Hello ] │
│ position: Position │
│ line: 0 │
│ column: 7 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let digitChar =
satisfy Char.IsDigit "digit"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let input = fromStr "Hello"
let parser = digitChar
runOnInput parser input |> _assertEqual (
Failure (
"digit",
"Unexpected 'H'",
{
currentLine = "Hello"
line = 0
column = 0
}
)
)
╭─[ 19.04ms - stdout ]─────────────────────────────────────────────────────────╮
│ Failure │
│ Item1: digit │
│ Item2: Unexpected 'H' │
│ Item3: ParserPosition │
│ currentLine: Hello │
│ line: 0 │
│ column: 0 │
│ IsSuccess: False │
│ IsFailure: True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let pint =
let inline resultToInt (sign, digits) =
let i = int digits
match sign with
| Some ch -> -i
| None -> i
let digits = manyChars1 digitChar
opt (pchar '-') .>>. digits
|> mapP resultToInt
<?> "integer"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run pint "-123"
|> _assertEqual (
Success (
-123,
{
lines = [[| "-123" |]]
position = { line = 0; column = 4 }
}
)
)
╭─[ 36.25ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - -123 │
│ - InputState │
│ lines: [ -123 ] │
│ position: Position │
│ line: 0 │
│ column: 4 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let pfloat =
let inline resultToFloat (((sign, digits1), point), digits2) =
let fl = float $"{digits1}.{digits2}"
match sign with
| Some ch -> -fl
| None -> fl
let digits = manyChars1 digitChar
opt (pchar '-') .>>. digits .>>. pchar '.' .>>. digits
|> mapP resultToFloat
<?> "float"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
run pfloat "-123.45"
|> _assertEqual (
Success (
-123.45,
{
lines = [[| "-123.45" |]]
position = { line = 0; column = 7 }
}
)
)
╭─[ 38.59ms - stdout ]─────────────────────────────────────────────────────────╮
│ Success │
│ Item: - -123.45 │
│ - InputState │
│ lines: [ -123.45 ] │
│ position: Position │
│ line: 0 │
│ column: 7 │
│ - IsSuccess: True │
│ IsFailure: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline createParserForwardedToRef<'a> () =
let mutable parserRef : Parser<'a> =
{
label = "unknown"
parseFn = fun _ -> failwith "unfixed forwarded parser"
}
let wrapperParser =
{ parserRef with
parseFn = fun input -> runOnInput parserRef input
}
wrapperParser, (fun v -> parserRef <- v)
── fsharp ──────────────────────────────────────────────────────────────────────
let inline (>>%) p x =
p
|>> fun _ -> x
[NbConvertApp] Converting notebook Parser.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 415270 bytes to Parser.dib.html
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: JsonParser.dib
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Parser.dib
00:00:00 #3 [Debug] parseDibCode / output: Fs / file: Parser.dib
00:00:00 #3 [Debug] parseDibCode / output: Fs / file: JsonParser.dib
In [ ]:
{ . "$ScriptDir/../lib/fsharp/build.ps1" } | Invoke-Block
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # Async (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Common.fs
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldValue : string) (newValue : string) (input :
string) =
input.Replace (oldValue, newValue)
let inline split separator (input : string) =
input.Split separator
let inline spli...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## choice │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline choice asyncs = async {
let e = Event<_> ()
use cts = new System.Threading.CancellationTokenSource ()
let fn =
asyncs
|> Seq.map (fun a -> async {
let! x = a
e.Trigger x
})
|> Async.Parallel
|> Async.Ignore
Async.Start (fn, cts.Token)
let! result = Async.AwaitEvent e.Publish
cts.Cancel ()
return result
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## map │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline map fn a = async {
let! x = a
return fn x
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## catch │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline catch a =
a
|> Async.Catch
|> map (function
| Choice1Of2 result -> Ok result
| Choice2Of2 ex -> Error ex
)
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## runWithTimeoutAsync │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline runWithTimeoutAsync (timeout : int) fn =
let getLocals () = $"timeout: {timeout} / {getLocals ()}"
let timeoutTask = async {
do! Async.Sleep timeout
trace Debug (fun () -> "runWithTimeoutAsync") getLocals
return None
}
let task = async {
try
let! result = fn
return Some result
with
| :? System.AggregateException as ex when
ex.InnerExceptions
|> Seq.exists (function :?
System.Threading.Tasks.TaskCanceledException -> true | _ -> false)
->
let getLocals () = $"ex: {ex |> printException} / {getLocals ()}"
trace Warning (fun () -> "runWithTimeoutAsync") getLocals
return None
| ex ->
trace Critical (fun () -> $"runWithTimeoutAsync** / ex: {ex |>
printException}") getLocals
return None
}
[[ timeoutTask; task ]]
|> choice
── fsharp ──────────────────────────────────────────────────────────────────────
let inline runWithTimeout timeout fn =
fn
|> runWithTimeoutAsync timeout
|> Async.RunSynchronously
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
Async.Sleep 60
|> runWithTimeout 10
|> _assertEqual None
╭─[ 126.03ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 10 │
│ <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
Async.Sleep 10
|> runWithTimeout 60
|> _assertEqual (Some ())
╭─[ 91.75ms - stdout ]─────────────────────────────────────────────────────────╮
│ FSharpOption<Unit> │
│ Value: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
async {
raise (exn "error")
}
|> runWithTimeout 60
|> _assertEqual None
╭─[ 97.77ms - stdout ]─────────────────────────────────────────────────────────╮
│ 00:00:00 #2 [Critical] runWithTimeoutAsync** / ex: System.Exception: error / │
│ timeout: 60 │
│ <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## runWithTimeoutChildAsync │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline runWithTimeoutChildAsync (timeout : int) fn = async {
let getLocals () = $"timeout: {timeout} / {getLocals ()}"
let! child = Async.StartChild (fn, timeout)
return!
child
|> catch
|> map (function
| Ok result -> Some result
| Error (:? System.TimeoutException as ex) ->
trace Debug (fun () -> $"runWithTimeoutChildAsync") getLocals
None
| Error ex ->
trace Critical (fun () -> $"runWithTimeoutChildAsync** / ex: {ex
|> printException}") getLocals
None
)
}
── fsharp ──────────────────────────────────────────────────────────────────────
let inline runWithTimeoutChild timeout fn =
fn
|> runWithTimeoutChildAsync timeout
|> Async.RunSynchronously
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
Async.Sleep 60
|> runWithTimeoutChild 10
|> _assertEqual None
╭─[ 86.32ms - stdout ]─────────────────────────────────────────────────────────╮
│ 00:00:00 #3 [Debug] runWithTimeoutChildAsync / timeout: 10 │
│ <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
Async.Sleep 10
|> runWithTimeoutChild 60
|> _assertEqual (Some ())
╭─[ 70.49ms - stdout ]─────────────────────────────────────────────────────────╮
│ FSharpOption<Unit> │
│ Value: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
async {
raise (exn "error")
}
|> runWithTimeoutChild 60
|> _assertEqual None
╭─[ 71.21ms - stdout ]─────────────────────────────────────────────────────────╮
│ 00:00:00 #4 [Critical] runWithTimeoutChildAsync** / ex: System.Exception: │
│ error / timeout: 60 │
│ <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## runWithTimeoutStrict │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline runWithTimeoutStrict (timeout : int) fn =
let getLocals () = $"timeout: {timeout} / {getLocals ()}"
let timeoutTask = async {
do! Async.Sleep timeout
return None, getLocals
}
let task = async {
try
return Async.RunSynchronously (fn, timeout) |> Some, getLocals
with
| :? System.TimeoutException as ex ->
let getLocals () = $"ex: {ex |> printException} / {getLocals ()}"
return None, getLocals
| ex ->
trace Critical (fun () -> $"runWithTimeoutStrict / ex: {ex |>
printException}") getLocals
return raise ex
}
try
[[| timeoutTask; task |]]
|> Array.map Async.StartAsTask
|> System.Threading.Tasks.Task.WhenAny
|> fun task ->
match task.Result.Result with
| None, getLocals ->
trace Debug (fun () -> "runWithTimeoutStrict") getLocals
None
| result, _ -> result
with
| :? System.AggregateException as ex when
ex.InnerExceptions
|> Seq.exists (function :? System.Threading.Tasks.TaskCanceledException
-> true | _ -> false)
->
let getLocals () = $"ex: {ex |> printException} / {getLocals ()}"
trace Warning (fun () -> "runWithTimeoutStrict") getLocals
None
| ex ->
let getLocals () = $"ex: {ex |> printException} / {getLocals ()}"
trace Critical (fun () -> "runWithTimeoutStrict**") getLocals
None
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
Async.Sleep 60
|> runWithTimeoutStrict 10
|> _assertEqual None
╭─[ 111.88ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:00 #5 [Debug] runWithTimeoutStrict / timeout: 10 │
│ <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
Async.Sleep 10
|> runWithTimeoutStrict 60
|> _assertEqual (Some ())
╭─[ 89.30ms - stdout ]─────────────────────────────────────────────────────────╮
│ FSharpOption<Unit> │
│ Value: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
async {
raise (exn "error")
}
|> runWithTimeoutStrict 60
|> _assertEqual None
╭─[ 90.39ms - stdout ]─────────────────────────────────────────────────────────╮
│ 00:00:01 #6 [Critical] runWithTimeoutStrict / ex: System.Exception: error / │
│ timeout: 60 │
│ 00:00:01 #7 [Critical] runWithTimeoutStrict** / ex: │
│ System.AggregateException: One or more errors occurred. (error) / timeout: │
│ 60 │
│ <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## awaitValueTask │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline awaitValueTaskUnit (task : System.Threading.Tasks.ValueTask) =
task.AsTask () |> Async.AwaitTask
let inline awaitValueTask (task : System.Threading.Tasks.ValueTask<_>) =
task.AsTask () |> Async.AwaitTask
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## init │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline init x = async {
return x
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
init 1
|> Async.RunSynchronously
|> _assertEqual 1
╭─[ 46.55ms - stdout ]─────────────────────────────────────────────────────────╮
│ 1 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## mergeCancellationTokenWithDefaultAsync │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline mergeCancellationTokenWithDefaultAsync (token :
System.Threading.CancellationToken) = async {
let! ct = Async.CancellationToken
let dct = Async.DefaultCancellationToken
let cts = System.Threading.CancellationTokenSource.CreateLinkedTokenSource
[[| ct; dct; token |]]
return cts.Token
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## withCancellationToken │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline withCancellationToken (ct : System.Threading.CancellationToken) fn =
Async.StartImmediateAsTask (fn, ct)
|> Async.AwaitTask
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let cts = new System.Threading.CancellationTokenSource ()
async {
let run = async {
do! Async.Sleep 100
return 1
}
let! child =
run
|> withCancellationToken cts.Token
|> catch
|> Async.StartChild
do! Async.Sleep 50
cts.Cancel ()
return! child
}
|> Async.RunSynchronously
|> Result.mapError _.Message
|> _assertEqual (Error ("A task was canceled."))
╭─[ 155.28ms - stdout ]────────────────────────────────────────────────────────╮
│ FSharpResult<Int32,String> │
│ ResultValue: 0 │
│ ErrorValue: A task was canceled. │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## withTraceLevel │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline withTraceLevel level fn = async {
let oldTraceLevel = traceLevel
try
traceLevel <- level
return! fn
finally
traceLevel <- oldTraceLevel
}
[NbConvertApp] Converting notebook Async.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 324706 bytes to Async.dib.html
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # AsyncSeq (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#r
@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
dard2.1/FSharp.Control.AsyncSeq.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
0/System.Reactive.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
netstandard2.0/System.Reactive.Linq.dll"
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Common.fs
#!import ../../lib/fsharp/Async.fs
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldValue : string) (newValue : string) (input :
string) =
input.Replace (oldValue, newValue)
let inline split separator (input : string) =
input.Split separator
let inline spli...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Async =
open Common
/// ## choice
let inline choice asyncs = async {
let e = Event<_> ()
use cts = new System.Threading.CancellationTokenSource ()
let fn =
asyncs
|> Seq.map (fun a -> async {
let! x = a
e.Trigger x
})
|> Async.Parallel
|> Async.Ignore
Async.Start (fn, cts.Token)
let! result = Async.AwaitEvent e.Publish
cts.Cancel ()
return result
}
/// ## map
let inline map fn a = async {
let! x = a
return fn x
}
/// ## catch
let inline catch a =
a
|> Async.Catch
...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## subscribeEvent │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline subscribeEvent (event: IEvent<'H, 'A>) map =
let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
'A>(event.AddHandler, event.RemoveHandler)
System.Reactive.Linq.Observable.Select (observable, fun event -> map
event.EventArgs)
|> FSharp.Control.AsyncSeq.ofObservableBuffered
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
type TestEvent () as self =
member val Calls = [[]] with get, set
member val Event = Event<ErrorEventHandler, ErrorEventArgs> () with get
member _.AddCall text =
self.Calls <- self.Calls @ [[ text ]]
member _.EventInterface =
{ new IEvent<ErrorEventHandler, ErrorEventArgs> with
member _.AddHandler handler =
self.AddCall "AddHandler"
self.Event.Publish.AddHandler handler
member _.RemoveHandler handler =
self.AddCall "RemoveHandler"
self.Event.Publish.RemoveHandler handler
member _.Subscribe observer =
self.AddCall "IObservable.Subscribe"
let disposable = self.Event.Publish.Subscribe observer
newDisposable (fun () ->
self.AddCall "IObservable.Dispose"
disposable.Dispose ()
)
}
member _.Subscribe () =
subscribeEvent
self.EventInterface
(fun args ->
let result = args.GetException () |> printException
self.AddCall $"TestEvent.Subscribe({result})"
result
)
member _.Iter subscription =
subscription
|> FSharp.Control.AsyncSeq.iteriAsync (fun i error -> async {
self.AddCall $"TestEvent.Iter({i}: {error})"
})
member _.WaitCall text = async {
while self.Calls |> List.last <> text do
do! Async.SwitchToThreadPool ()
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let testEvent = TestEvent ()
async {
testEvent.AddCall "1"
let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild
do! testEvent.WaitCall "AddHandler"
testEvent.AddCall "2"
do! child
testEvent.AddCall "3"
}
|> Async.runWithTimeout 300
|> _assertEqual None
testEvent.Calls
|> Seq.toList
|> _assertEqual [[ "1"; "AddHandler"; "2"; "RemoveHandler" ]]
╭─[ 489.39ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 300 │
│ <null> │
│ [ 1, AddHandler, 2, RemoveHandler ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let testEvent = TestEvent ()
async {
testEvent.AddCall "1"
let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild
do! testEvent.WaitCall "AddHandler"
testEvent.AddCall "2"
use _ = testEvent.EventInterface.Subscribe (fun args ->
testEvent.AddCall $"testEvent.EventInterface.Subscribe({args})"
)
testEvent.AddCall "3"
do! child
testEvent.AddCall "4"
}
|> Async.runWithTimeout 300
|> _assertEqual None
testEvent.Calls
|> _assertEqual [[ "1"; "AddHandler"; "2"; "IObservable.Subscribe"; "3";
"RemoveHandler"; "IObservable.Dispose" ]]
╭─[ 644.07ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:00 #2 [Debug] runWithTimeoutAsync / timeout: 300 │
│ <null> │
│ [ 1, AddHandler, 2, IObservable.Subscribe, 3, RemoveHandler, │
│ IObservable.Dispose ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let testEvent = TestEvent ()
async {
testEvent.AddCall "1"
let! child = testEvent.Subscribe () |> testEvent.Iter |> Async.StartChild
do! testEvent.WaitCall "AddHandler"
testEvent.AddCall "2"
use _ = testEvent.EventInterface.Subscribe (fun args ->
async {
do! testEvent.WaitCall "TestEvent.Iter(0: System.Exception: error)"
testEvent.AddCall
$"testEvent.EventInterface.Subscribe({args.GetException () |> printException})"
}
|> Async.RunSynchronously
)
testEvent.AddCall "3"
testEvent.Event.Trigger (null, ErrorEventArgs (Exception "error"))
testEvent.AddCall "4"
do! child
testEvent.AddCall "5"
}
|> Async.runWithTimeout 300
|> _assertEqual None
testEvent.Calls
|> _assertEqual [[
"1"
"AddHandler"
"2"
"IObservable.Subscribe"
"3"
"TestEvent.Subscribe(System.Exception: error)"
"TestEvent.Iter(0: System.Exception: error)"
"testEvent.EventInterface.Subscribe(System.Exception: error)"
"4"
"RemoveHandler"
"IObservable.Dispose"
]]
╭─[ 480.97ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:01 #3 [Debug] runWithTimeoutAsync / timeout: 300 │
│ <null> │
│ [ 1, AddHandler, 2, IObservable.Subscribe, 3, │
│ TestEvent.Subscribe(System.Exception: error), TestEvent.Iter(0: │
│ System.Exception: error), │
│ testEvent.EventInterface.Subscribe(System.Exception: error), 4, │
│ RemoveHandler, IObservable.Dispose ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let subscribeToken (token : System.Threading.CancellationToken) =
let tcs = new System.Threading.Tasks.TaskCompletionSource ()
System.Action tcs.SetResult |> token.Register |> ignore
let start = System.DateTime.Now.Ticks
FSharp.Control.AsyncSeq.unfoldAsync
(fun () -> async {
do! tcs.Task |> Async.AwaitTask
return Some (System.DateTime.Now.Ticks - start, ())
})
()
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let cts = new System.Threading.CancellationTokenSource ()
async {
let! child =
cts.Token
|> subscribeToken
|> FSharp.Control.AsyncSeq.tryFirst
|> Async.StartChild
do! Async.Sleep 100
cts.Cancel ()
return! child
}
|> Async.RunSynchronously
|> Option.get
|> _isGreaterThan 900000
╭─[ 173.50ms - stdout ]────────────────────────────────────────────────────────╮
│ 1063743 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook AsyncSeq.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 301499 bytes to AsyncSeq.dib.html
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # Common (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
let nl = System.Environment.NewLine
let q = @""""
── fsharp ──────────────────────────────────────────────────────────────────────
let inline cons head tail = head :: tail
── fsharp ──────────────────────────────────────────────────────────────────────
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldValue : string) (newValue : string) (input : string)
=
input.Replace (oldValue, newValue)
let inline split separator (input : string) =
input.Split separator
let inline splitString (separator : string array) (input : string) =
input.Split (separator, System.StringSplitOptions.None)
let inline startsWith (value : string) (input : string) =
input.StartsWith value
let inline substring startIndex length (input : string) =
input.Substring (startIndex, length)
let inline toLower (input : string) =
input.ToLower ()
let inline toUpper (input : string) =
input.ToUpper ()
let inline trim (input : string) =
input.Trim ()
let inline trimEnd (trimChars : char array) (input : string) =
input.TrimEnd trimChars
let inline trimStart (trimChars : char array) (input : string) =
input.TrimStart trimChars
let ellipsis max value =
if value |> String.length <= max
then value
else $"{value |> substring 0 max}..."
── fsharp ──────────────────────────────────────────────────────────────────────
type TicksGuid = System.Guid
type DateTimeGuid = System.Guid
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let testGuid = Guid "FEDCBA98-7654-3210-FEDC-BA9876543210"
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## dateTimeGuidFromDateTime │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline dateTimeGuidFromDateTime (guid: System.Guid) (dateTime:
System.DateTime) =
let guid = guid |> string
let prefix = dateTime.ToString "yyyyMMdd-HHmm-ssff-ffff-f"
DateTimeGuid $"{prefix}{guid.[[prefix.Length..]]}"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
dateTimeGuidFromDateTime testGuid DateTime.MinValue
|> _assertEqual (DateTimeGuid "00010101-0000-0000-0000-0a9876543210")
╭─[ 62.86ms - stdout ]─────────────────────────────────────────────────────────╮
│ 00010101-0000-0000-0000-0a9876543210 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
dateTimeGuidFromDateTime testGuid DateTime.MaxValue
|> _assertEqual (DateTimeGuid $"99991231-2359-5999-9999-9{(testGuid |>
string).[[^10..]]}")
╭─[ 44.53ms - stdout ]─────────────────────────────────────────────────────────╮
│ 99991231-2359-5999-9999-9a9876543210 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
dateTimeGuidFromDateTime testGuid DateTime.UnixEpoch
|> _assertEqual (DateTimeGuid $"19700101-0000-0000-0000-0{(testGuid |>
string).[[^10..]]}")
╭─[ 36.89ms - stdout ]─────────────────────────────────────────────────────────╮
│ 19700101-0000-0000-0000-0a9876543210 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## dateTimeFromGuid │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline dateTimeFromGuid (dateTimeGuid: DateTimeGuid) =
let dateTimeGuid = dateTimeGuid |> string
System.DateTime.ParseExact (dateTimeGuid.[[..24]] |> String.replace "-" "",
"yyyyMMddHHmmssfffffff", null)
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
dateTimeFromGuid (DateTimeGuid "00010101-0000-0000-0000-0a9876543210")
|> _assertEqual DateTime.MinValue
╭─[ 29.29ms - stdout ]─────────────────────────────────────────────────────────╮
│ 0001-01-01 00:00:00Z │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
dateTimeFromGuid (DateTimeGuid $"99991231-2359-5999-9999-9{(testGuid |>
string).[[^10..]]}")
|> _assertEqual DateTime.MaxValue
╭─[ 38.79ms - stdout ]─────────────────────────────────────────────────────────╮
│ 9999-12-31 23:59:59Z │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
dateTimeFromGuid (DateTimeGuid $"19700101-0000-0000-0000-0{(testGuid |>
string).[[^10..]]}")
|> _assertEqual DateTime.UnixEpoch
╭─[ 38.11ms - stdout ]─────────────────────────────────────────────────────────╮
│ 1970-01-01 00:00:00Z │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## ticksGuidFromTicks │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline ticksGuidFromTicks (guid: System.Guid) (ticks: int64) =
let guid = guid |> string
let ticks = ticks |> string |> String.padLeft 18 '0'
TicksGuid
$"{ticks.[[0..7]]}-{ticks.[[8..11]]}-{ticks.[[12..15]]}-{ticks.[[16..17]]}{guid.
[[21..]]}"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
ticksGuidFromTicks testGuid 0L
|> _assertEqual (TicksGuid "00000000-0000-0000-00dc-ba9876543210")
╭─[ 36.71ms - stdout ]─────────────────────────────────────────────────────────╮
│ 00000000-0000-0000-00dc-ba9876543210 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
ticksGuidFromTicks testGuid 999999999999999999L
|> _assertEqual (TicksGuid $"99999999-9999-9999-99dc-b{(testGuid |>
string).[[^10..]]}")
╭─[ 48.95ms - stdout ]─────────────────────────────────────────────────────────╮
│ 99999999-9999-9999-99dc-ba9876543210 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## ticksFromGuid │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline ticksFromGuid (ticksGuid: DateTimeGuid) =
let ticks = ticksGuid |> string
int64
$"{ticks.[[0..7]]}{ticks.[[9..12]]}{ticks.[[14..17]]}{ticks.[[19..20]]}"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
ticksFromGuid (TicksGuid "00000000-0000-0000-00dc-ba9876543210")
|> _assertEqual 0L
╭─[ 33.20ms - stdout ]─────────────────────────────────────────────────────────╮
│ 0 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
ticksFromGuid (TicksGuid $"99999999-9999-9999-99{(testGuid |>
string).[[^14..]]}")
|> _assertEqual 999999999999999999L
╭─[ 45.08ms - stdout ]─────────────────────────────────────────────────────────╮
│ 999999999999999999 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## newGuidFromDateTime │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline newGuidFromDateTime (dateTime: System.DateTime) =
let guid = System.Guid.NewGuid ()
dateTimeGuidFromDateTime guid dateTime
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
newGuidFromDateTime System.DateTime.UtcNow
|> dateTimeFromGuid
|> fun dateTime -> (dateTime - System.DateTime.UtcNow).TotalSeconds |> int
|> _assertEqual 0
╭─[ 55.87ms - stdout ]─────────────────────────────────────────────────────────╮
│ 0 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## newGuidFromTicks │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline newGuidFromTicks (ticks: int64) =
let guid = System.Guid.NewGuid ()
ticksGuidFromTicks guid ticks
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
newGuidFromTicks System.DateTime.UtcNow.Ticks
|> ticksFromGuid
|> fun ticks -> (ticks - System.DateTime.UtcNow.Ticks) / 100000L
|> _assertEqual 0L
╭─[ 61.78ms - stdout ]─────────────────────────────────────────────────────────╮
│ 0 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## memoize │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline memoize fn =
let result = lazy fn ()
fun () -> result.Value
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let mutable count = 0
let add =
fun () -> count <- count + 1
|> memoize
add ()
add ()
add ()
count
|> _assertEqual 1
╭─[ 27.50ms - stdout ]─────────────────────────────────────────────────────────╮
│ 1 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## printException │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline printException (ex : System.Exception) =
$"{ex.GetType ()}: {ex.Message}"
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
fun () -> failwith "test"
|> _throwsC (fun ex _ ->
printException ex
|> _assertEqual "System.Exception: test"
)
╭─[ 65.00ms - stdout ]─────────────────────────────────────────────────────────╮
│ FSI_0034+it@3-1 │
│ System.Exception: test │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## TraceLevel │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
type TraceLevel =
| Verbose
| Debug
| Info
| Warning
| Critical
let inline getLocals () = ""
let mutable traceEnabled = true
let mutable traceCount = 0
let mutable traceLevel = Verbose
let mutable traceDump = false
── fsharp ──────────────────────────────────────────────────────────────────────
let testTraceLevel level =
traceEnabled && level >= traceLevel
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## traceRaw │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let rec traceRaw level fn =
if level |> testTraceLevel then
traceCount <- traceCount + 1
let text = $"%s{fn ()}"
#if FABLE_COMPILER_RUST
Fable.Core.RustInterop.emitRustExpr () @"println!(""{}"", text)"
#else
System.Console.WriteLine text
#endif
#if !WASM && !FABLE_COMPILER
if traceDump then
try
let tmpPath = System.IO.Path.GetTempPath ()
let logDir = System.IO.Path.Combine (tmpPath, "!polyglot")
System.IO.Directory.CreateDirectory logDir |> ignore
let logFile = System.IO.Path.Combine (logDir,
$"{newGuidFromDateTime System.DateTime.Now}.txt")
System.IO.File.WriteAllTextAsync (logFile, text) |>
Async.AwaitTask |> Async.RunSynchronously
with ex ->
traceRaw Critical (fun () -> $"trace / ex: {ex |>
printException}")
#endif
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
traceRaw Debug (fun () -> "test")
╭─[ 10.65ms - stdout ]─────────────────────────────────────────────────────────╮
│ test │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## trace │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let private replStart =
#if INTERACTIVE || !FABLE_COMPILER
fun () ->
if System.Reflection.Assembly.GetEntryAssembly().GetName().Name <>
"Microsoft.DotNet.Interactive.App"
then Some System.DateTime.Now.Ticks
else None
|> memoize
#else
fun () -> None : int64 option
#endif
let trace level fn getLocals =
fun () ->
let time =
#if WASM
""
#else
match replStart () with
| Some replStart ->
let t = System.DateTime.Now.Ticks - replStart |> System.TimeSpan
System.DateTime (1, 1, 1, t.Hours, t.Minutes, t.Seconds,
t.Milliseconds)
| None -> System.DateTime.Now
|> fun dateTime ->
#if FABLE_COMPILER_RUST
"hh:mm:ss"
#else
"HH:mm:ss"
#endif
|> dateTime.ToString
#endif
$"{time} #{traceCount} [[%A{level}]] %s{fn ()} / %s{getLocals ()}"
|> String.trimStart [[||]]
|> String.trimEnd [[| ' '; '/' |]]
|> traceRaw level
let inline withTrace enabled fn =
let oldTraceEnabled = traceEnabled
try
traceEnabled <- enabled
fn ()
finally
traceEnabled <- oldTraceEnabled
let inline withTraceEnabled fn =
withTrace true fn
let inline withTraceDisabled fn =
withTrace false fn
let inline withTraceLevel level fn =
let oldTraceLevel = traceLevel
try
traceLevel <- level
fn ()
finally
traceLevel <- oldTraceLevel
let inline withTraceDump dump fn =
let oldTraceDump = traceDump
try
traceDump <- dump
fn ()
finally
traceDump <- oldTraceDump
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
trace Debug (fun () -> "test") getLocals
╭─[ 28.23ms - stdout ]─────────────────────────────────────────────────────────╮
│ 00:00:00 #2 [Debug] test │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## newDisposable │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline newDisposable fn =
{ new System.IDisposable with
member _.Dispose () = fn ()
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let mutable newDisposableTest = 0
newDisposable (fun () -> newDisposableTest <- newDisposableTest + 1)
|> _.Dispose()
newDisposableTest |> _assertEqual 1
╭─[ 33.68ms - stdout ]─────────────────────────────────────────────────────────╮
│ 1 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let mutable newDisposableTest = 0
fun () -> task {
use x = newDisposable (fun () -> newDisposableTest <- newDisposableTest + 1)
()
}
|> fun x -> x () |> Async.AwaitTask |> Async.RunSynchronously
newDisposableTest |> _assertEqual 1
╭─[ 122.74ms - stdout ]────────────────────────────────────────────────────────╮
│ 1 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let mutable newDisposableTest = 0
async {
use x = newDisposable (fun () -> newDisposableTest <- newDisposableTest + 1)
()
}
|> Async.RunSynchronously
newDisposableTest |> _assertEqual 1
╭─[ 43.78ms - stdout ]─────────────────────────────────────────────────────────╮
│ 1 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let mutable newDisposableTest = 0
async {
let x = newDisposable (fun () -> newDisposableTest <- newDisposableTest + 1)
()
}
|> Async.RunSynchronously
newDisposableTest |> _assertEqual 0
╭─[ 36.81ms - stdout ]─────────────────────────────────────────────────────────╮
│ 0 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## retryFn │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline retryFn retries fn =
let rec loop retry =
try
if retry < retries
then fn () |> Some
else None
with ex ->
let getLocals () = $"retry: {retry} / ex: {ex |> printException} /
{getLocals ()}"
trace Warning (fun () -> "retryFn") getLocals
System.Threading.Thread.Sleep 1
loop (retry + 1)
loop 0
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let mutable retryFnTest = 0
fun () ->
retryFnTest <- retryFnTest + 1
retryFnTest
|> retryFn 3
|> _assertEqual (Some 1)
╭─[ 34.16ms - stdout ]─────────────────────────────────────────────────────────╮
│ FSharpOption<Int32> │
│ Value: 1 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
fun () -> failwith "test"
|> retryFn 3
|> _assertEqual None
╭─[ 69.81ms - stdout ]─────────────────────────────────────────────────────────╮
│ 00:00:00 #3 [Warning] retryFn / retry: 0 / ex: System.Exception: test │
│ 00:00:00 #4 [Warning] retryFn / retry: 1 / ex: System.Exception: test │
│ 00:00:00 #5 [Warning] retryFn / retry: 2 / ex: System.Exception: test │
│ <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let mutable retryFnTest = 0
fun () ->
if retryFnTest >= 2
then retryFnTest
else
retryFnTest <- retryFnTest + 1
failwith "test"
|> retryFn 3
|> _assertEqual (Some 2)
╭─[ 85.09ms - stdout ]─────────────────────────────────────────────────────────╮
│ 00:00:00 #6 [Warning] retryFn / retry: 0 / ex: System.Exception: test │
│ 00:00:00 #7 [Warning] retryFn / retry: 1 / ex: System.Exception: test │
│ FSharpOption<Int32> │
│ Value: 2 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook Common.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 353932 bytes to Common.dib.html
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # CommonFSharp (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Common.fs
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldValue : string) (newValue : string) (input :
string) =
input.Replace (oldValue, newValue)
let inline split separator (input : string) =
input.Split separator
let inline spli...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## getUnionCaseName │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline getUnionCaseName<'T> (x: 'T) =
match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
| case, _ -> case.Name
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
TraceLevel.Critical
|> getUnionCaseName
|> _assertEqual (nameof TraceLevel.Critical)
╭─[ 54.85ms - stdout ]─────────────────────────────────────────────────────────╮
│ Critical │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook CommonFSharp.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 275588 bytes to CommonFSharp.dib.html
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # Threading (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Common.fs
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldValue : string) (newValue : string) (input :
string) =
input.Replace (oldValue, newValue)
let inline split separator (input : string) =
input.Split separator
let inline spli...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## newDisposableToken │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline newDisposableToken (mergeToken: System.Threading.CancellationToken
option) =
let cts = new System.Threading.CancellationTokenSource ()
let cts =
match mergeToken with
| None -> cts
| Some mergeToken ->
System.Threading.CancellationTokenSource.CreateLinkedTokenSource [[|
cts.Token; mergeToken |]]
let disposable = newDisposable cts.Cancel
cts.Token, disposable
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let mutable counter = 0
let inline run fn =
let token, disposable = newDisposableToken None
use _ = disposable
fn token
async {
fn token
}
|> Async.Start
let inline fn (token : System.Threading.CancellationToken) =
counter <- counter + (if token.IsCancellationRequested then 10 else 1)
async {
run fn
do! Async.Sleep 10
return counter
}
|> Async.RunSynchronously
|> _assertEqual 11
╭─[ 160.63ms - stdout ]────────────────────────────────────────────────────────╮
│ 11 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook Threading.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 278605 bytes to Threading.dib.html
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # Crypto (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Common.fs
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldValue : string) (newValue : string) (input :
string) =
input.Replace (oldValue, newValue)
let inline split separator (input : string) =
input.Split separator
let inline spli...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## hashText │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let hashText (input : string) =
use sha256 = System.Security.Cryptography.SHA256.Create ()
input
|> System.Text.Encoding.UTF8.GetBytes
|> sha256.ComputeHash
|> Array.map (fun b -> b.ToString "x2")
|> String.concat ""
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
""
|> hashText
|> _assertEqual
"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
╭─[ 53.76ms - stdout ]─────────────────────────────────────────────────────────╮
│ e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
" "
|> hashText
|> _assertEqual
"36a9e7f1c95b82ffb99743e0c5c4ce95d83c9a430aac59f84ef3cbfab6145068"
╭─[ 17.82ms - stdout ]─────────────────────────────────────────────────────────╮
│ 36a9e7f1c95b82ffb99743e0c5c4ce95d83c9a430aac59f84ef3cbfab6145068 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook Crypto.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 277428 bytes to Crypto.dib.html
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # FileSystem (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#r
@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
dard2.1/FSharp.Control.AsyncSeq.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
0/System.Reactive.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
netstandard2.0/System.Reactive.Linq.dll"
#r
@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"
#r
@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li
b/net6.0/System.CommandLine.dll"
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Common.fs
#!import ../../lib/fsharp/CommonFSharp.fs
#!import ../../lib/fsharp/Async.fs
#!import ../../lib/fsharp/AsyncSeq.fs
#!import ../../lib/fsharp/Runtime.fs
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldValue : string) (newValue : string) (input :
string) =
input.Replace (oldValue, newValue)
let inline split separator (input : string) =
input.Split separator
let inline spli...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module CommonFSharp =
open Common
/// ## getUnionCaseName
let inline getUnionCaseName<'T> (x: 'T) =
match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
| case, _ -> case.Name
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Async =
open Common
/// ## choice
let inline choice asyncs = async {
let e = Event<_> ()
use cts = new System.Threading.CancellationTokenSource ()
let fn =
asyncs
|> Seq.map (fun a -> async {
let! x = a
e.Trigger x
})
|> Async.Parallel
|> Async.Ignore
Async.Start (fn, cts.Token)
let! result = Async.AwaitEvent e.Publish
cts.Cancel ()
return result
}
/// ## map
let inline map fn a = async {
let! x = a
return fn x
}
/// ## catch
let inline catch a =
a
|> Async.Catch
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module AsyncSeq =
open Common
/// ## subscribeEvent
let inline subscribeEvent (event: IEvent<'H, 'A>) map =
let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
'A>(event.AddHandler, event.RemoveHandler)
System.Reactive.Linq.Observable.Select (observable, fun event -> map
event.EventArgs)
|> FSharp.Control.AsyncSeq.ofObservableBuffered
let subscribeToken (token : System.Threading.CancellationToken) =
let tcs = new System.Threading.Tasks.TaskCompletionSource ()
System.Action tcs.SetResult |> token.Register |> ignore
let start = System.DateTime.Now.Ticks
FSharp.Control.AsyncSeq.unfoldAsync
(fun (...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Runtime =
open Common
/// ## isWindows
let isWindows =
fun () ->
System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform
System.Runtime.InteropServices.OSPlatform.Windows
|> memoize
/// ## getExecutableSuffix
let inline getExecutableSuffix () =
if isWindows ()
then ".exe"
else ""
/// ## splitCommand
type private CommandParseStep =
| Start
| Path of quoted: bool
| Arguments
let splitCommand (command: string) =
let rec loop (path, args) chars step =
match chars, step with
| ('"' | '\'') :: tail, _ when path = "" -> loop (pat...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Operators │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
module Operators =
let inline (</>) a b =
System.IO.Path.Combine (a, b)
── fsharp ──────────────────────────────────────────────────────────────────────
open Operators
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## createTempDirectoryName │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline createTempDirectoryName () =
let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name
System.IO.Path.GetTempPath ()
</> $"!{root}"
</> string (newGuidFromDateTime System.DateTime.Now)
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
createTempDirectoryName ()
|> _contains System.IO.Path.DirectorySeparatorChar
╭─[ 114.24ms - stdout ]────────────────────────────────────────────────────────╮
│ C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0029-3438-3838-39db1 │
│ 39c7f2f │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## createTempDirectory │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline createTempDirectory () =
let tempFolder = createTempDirectoryName ()
let result = System.IO.Directory.CreateDirectory tempFolder
if not result.Exists then
let getLocals () =
$"tempFolder: {tempFolder} / result: {({|
Exists = result.Exists
CreationTime = result.CreationTime
|})} {getLocals ()}"
trace Debug (fun () -> "createTempDirectory") getLocals
tempFolder
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let tempDirectory = createTempDirectory ()
Directory.Exists tempDirectory
|> _assertEqual true
╭─[ 84.14ms - stdout ]─────────────────────────────────────────────────────────╮
│ True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## getSourceDirectory │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let getSourceDirectory =
fun () -> __SOURCE_DIRECTORY__
|> memoize
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
getSourceDirectory ()
|> System.IO.DirectoryInfo
|> fun dir -> dir.Name
|> _assertEqual "fsharp"
╭─[ 54.94ms - stdout ]─────────────────────────────────────────────────────────╮
│ fsharp │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## findParent │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline findParent name isFile rootDir =
let rec loop dir =
if dir </> name |> (if isFile then System.IO.File.Exists else
System.IO.Directory.Exists)
then dir
else
dir
|> System.IO.Directory.GetParent
|> function
| null -> failwith $"""No parent for {if isFile then "file" else
"dir"} '{name}' at '{rootDir}'"""
| parent -> parent.FullName |> loop
loop rootDir
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
getSourceDirectory () |> findParent ".paket" false
|> System.IO.DirectoryInfo
|> fun dir -> dir.Name
|> _assertEqual "polyglot"
╭─[ 143.47ms - stdout ]────────────────────────────────────────────────────────╮
│ polyglot │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
getSourceDirectory () |> findParent "paket.dependencies" true
|> System.IO.DirectoryInfo
|> fun dir -> dir.Name
|> _assertEqual "polyglot"
╭─[ 76.37ms - stdout ]─────────────────────────────────────────────────────────╮
│ polyglot │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## readAllTextAsync │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline readAllTextAsync path =
path |> System.IO.File.ReadAllTextAsync |> Async.AwaitTask
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## fileExistsContent │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline fileExistsContent path content = async {
if path |> System.IO.File.Exists |> not
then return false
else
let! existingContent = path |> readAllTextAsync
return content = existingContent
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## writeAllTextAsync │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline writeAllTextAsync path contents =
System.IO.File.WriteAllTextAsync (path, contents) |> Async.AwaitTask
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## writeAllTextExists │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline writeAllTextExists path contents = async {
let! exists = contents |> fileExistsContent path
if not exists
then do! contents |> writeAllTextAsync path
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## waitForFileAccess │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline waitForFileAccess access path =
let fileAccess, fileShare =
access
|> Option.defaultValue (System.IO.FileAccess.ReadWrite,
System.IO.FileShare.Read)
let rec loop retry = async {
try
use _ = new System.IO.FileStream (
path,
System.IO.FileMode.Open,
fileAccess,
fileShare
)
return retry
with ex ->
if retry % 100 = 0 then
let getLocals () = $"path: {path |> System.IO.Path.GetFileName}
/ ex: {ex |> printException} / {getLocals ()}"
trace Debug (fun () -> "waitForFileAccess") getLocals
do! Async.Sleep 10
return! loop (retry + 1)
}
loop 0
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let tempFolder = createTempDirectory ()
let path = tempFolder </> "test.txt"
let inline lockFile () = async {
trace Debug (fun () -> "_1") getLocals
use stream = new System.IO.FileStream (
path,
System.IO.FileMode.Open,
System.IO.FileAccess.ReadWrite,
System.IO.FileShare.None
)
trace Debug (fun () -> "_2") getLocals
do! Async.Sleep 2000
trace Debug (fun () -> "_3") getLocals
stream.Seek (0L, SeekOrigin.Begin) |> ignore
trace Debug (fun () -> "_4") getLocals
stream.WriteByte 49uy
trace Debug (fun () -> "_5") getLocals
stream.Flush ()
trace Debug (fun () -> "_6") getLocals
}
async {
trace Debug (fun () -> "1") getLocals
do! "0" |> writeAllTextAsync path
trace Debug (fun () -> "2") getLocals
let! child = lockFile () |> Async.StartChild
trace Debug (fun () -> "3") getLocals
do! Async.Sleep 1
trace Debug (fun () -> "4") getLocals
let! retries = path |> waitForFileAccess None
trace Debug (fun () -> "5") getLocals
let! text = path |> readAllTextAsync
trace Debug (fun () -> "6") getLocals
do! child
trace Debug (fun () -> "7") getLocals
return retries, text
}
|> Async.runWithTimeout 3000
|> function
| Some (retries, text) ->
retries
|> _isBetween
(if Runtime.isWindows () then 100 else 100)
(if Runtime.isWindows () then 150 else 200)
text |> _assertEqual "1"
true
| _ -> false
|> _assertEqual true
╭─[ 3.09s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:00 #1 [Debug] 1 │
│ 00:00:00 #2 [Debug] 2 │
│ 00:00:00 #3 [Debug] _1 │
│ 00:00:00 #4 [Debug] 3 │
│ 00:00:00 #5 [Debug] _2 │
│ 00:00:00 #6 [Debug] 4 │
│ 00:00:00 #7 [Debug] waitForFileAccess / path: test.txt / ex: │
│ System.IO.IOException: The process cannot access the file │
│ 'C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0029-3660-6075-6068 │
│ 11bd9543\test.txt' because it is being used by another process. │
│ 00:00:01 #8 [Debug] waitForFileAccess / path: test.txt / ex: │
│ System.IO.IOException: The process cannot access the file │
│ 'C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0029-3660-6075-6068 │
│ 11bd9543\test.txt' because it is being used by another process. │
│ 00:00:02 #9 [Debug] _3 │
│ 00:00:02 #10 [Debug] _4 │
│ 00:00:02 #11 [Debug] _5 │
│ 00:00:02 #12 [Debug] _6 │
│ 00:00:02 #13 [Debug] 5 │
│ 00:00:02 #14 [Debug] 6 │
│ 00:00:02 #15 [Debug] 7 │
│ 127 │
│ 127 │
│ 127 │
│ 1 │
│ True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## readAllTextRetryAsync │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline readAllTextRetryAsync fullPath =
let rec loop retry = async {
try
if retry > 0
then do!
fullPath
|> waitForFileAccess (Some (
System.IO.FileAccess.Read,
System.IO.FileShare.Read
))
|> Async.runWithTimeoutAsync 1000
|> Async.Ignore
return! fullPath |> readAllTextAsync |> Async.map Some
with ex ->
let getLocals () = $"retry: {retry} / ex: {ex |> printException} /
{getLocals ()}"
trace Debug (fun () -> $"watchWithFilter / readContent") getLocals
if retry = 0
then return! loop (retry + 1)
else return None
}
loop 0
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## deleteDirectoryAsync │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline deleteDirectoryAsync path =
let rec loop retry = async {
try
System.IO.Directory.Delete (path, true)
return retry
with ex ->
if retry % 100 = 0 then
let getLocals () = $"path: {path |> System.IO.Path.GetFileName}
/ ex: {ex |> printException} / {getLocals ()}"
trace Debug (fun () -> "deleteDirectoryAsync") getLocals
do! Async.Sleep 10
return! loop (retry + 1)
}
loop 0
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let tempFolder = createTempDirectory ()
let path = tempFolder </> "test"
let inline lockDirectory () = async {
trace Debug (fun () -> "_1") getLocals
System.IO.File.WriteAllText (path </> "test.txt", "0")
use _ = new System.IO.FileStream (
path </> "test.txt",
System.IO.FileMode.Open,
System.IO.FileAccess.ReadWrite,
System.IO.FileShare.None
)
trace Debug (fun () -> "_2") getLocals
do! Async.Sleep 2000
trace Debug (fun () -> "_3") getLocals
}
async {
trace Debug (fun () -> "1") getLocals
Directory.CreateDirectory path |> ignore
trace Debug (fun () -> "2") getLocals
let! child = lockDirectory () |> Async.StartChild
trace Debug (fun () -> "3") getLocals
do! Async.Sleep 60
trace Debug (fun () -> "4") getLocals
let! retries = deleteDirectoryAsync path
trace Debug (fun () -> "5") getLocals
do! child
trace Debug (fun () -> "6") getLocals
return retries
}
|> Async.runWithTimeout 3000
|> function
| Some retries ->
retries
|> _isBetween
(if Runtime.isWindows () then 100 else 0)
(if Runtime.isWindows () then 150 else 0)
true
| _ -> false
|> _assertEqual true
╭─[ 2.76s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:03 #16 [Debug] 1 │
│ 00:00:03 #17 [Debug] 2 │
│ 00:00:03 #18 [Debug] 3 │
│ 00:00:03 #19 [Debug] _1 │
│ 00:00:03 #20 [Debug] 4 │
│ 00:00:03 #21 [Debug] _2 │
│ 00:00:03 #22 [Debug] deleteDirectoryAsync / path: test / ex: │
│ System.IO.IOException: The process cannot access the file 'test.txt' because │
│ it is being used by another process. │
│ 00:00:05 #23 [Debug] deleteDirectoryAsync / path: test / ex: │
│ System.IO.IOException: The process cannot access the file 'test.txt' because │
│ it is being used by another process. │
│ 00:00:05 #24 [Debug] _3 │
│ 00:00:05 #25 [Debug] 5 │
│ 00:00:05 #26 [Debug] 6 │
│ 129 │
│ 129 │
│ 129 │
│ True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## deleteFileAsync │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline deleteFileAsync path =
let rec loop retry = async {
try
System.IO.File.Delete path
return retry
with ex ->
if retry % 100 = 0 then
let getLocals () = $"path: {path |> System.IO.Path.GetFileName}
/ ex: {ex |> printException} / {getLocals ()}"
trace Warning (fun () -> "deleteFileAsync") getLocals
do! Async.Sleep 10
return! loop (retry + 1)
}
loop 0
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let tempFolder = createTempDirectory ()
let path = tempFolder </> "test.txt"
let inline lockFile () = async {
trace Debug (fun () -> "_1") getLocals
use _ = new System.IO.FileStream (
path,
System.IO.FileMode.Open,
System.IO.FileAccess.ReadWrite,
System.IO.FileShare.None
)
trace Debug (fun () -> "_2") getLocals
do! Async.Sleep 2000
trace Debug (fun () -> "_3") getLocals
}
async {
trace Debug (fun () -> "1") getLocals
do! "0" |> writeAllTextAsync path
trace Debug (fun () -> "2") getLocals
let! child = lockFile () |> Async.StartChild
trace Debug (fun () -> "3") getLocals
do! Async.Sleep 1
trace Debug (fun () -> "4") getLocals
let! retries = deleteFileAsync path
trace Debug (fun () -> "5") getLocals
do! child
trace Debug (fun () -> "6") getLocals
return retries
}
|> Async.runWithTimeout 3000
|> function
| Some retries ->
retries
|> _isBetween
(if Runtime.isWindows () then 100 else 0)
(if Runtime.isWindows () then 150 else 0)
true
| _ -> false
|> _assertEqual true
╭─[ 2.58s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:06 #27 [Debug] 1 │
│ 00:00:06 #28 [Debug] 2 │
│ 00:00:06 #29 [Debug] 3 │
│ 00:00:06 #30 [Debug] _1 │
│ 00:00:06 #31 [Debug] _2 │
│ 00:00:06 #32 [Debug] 4 │
│ 00:00:06 #33 [Warning] deleteFileAsync / path: test.txt / ex: │
│ System.IO.IOException: The process cannot access the file │
│ 'C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0029-4297-9709-968f │
│ d5e97db3\test.txt' because it is being used by another process. │
│ 00:00:07 #34 [Warning] deleteFileAsync / path: test.txt / ex: │
│ System.IO.IOException: The process cannot access the file │
│ 'C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0029-4297-9709-968f │
│ d5e97db3\test.txt' because it is being used by another process. │
│ 00:00:08 #35 [Debug] _3 │
│ 00:00:08 #36 [Debug] 5 │
│ 00:00:08 #37 [Debug] 6 │
│ 128 │
│ 128 │
│ 128 │
│ True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## moveFileAsync │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline moveFileAsync newPath oldPath =
let rec loop retry = async {
try
System.IO.File.Move (oldPath, newPath)
return retry
with ex ->
if retry % 100 = 0 then
let getLocals () =
$"oldPath: {oldPath |> System.IO.Path.GetFileName} /
newPath: {newPath |> System.IO.Path.GetFileName} / ex: {ex |> printException} /
{getLocals ()}"
trace Warning (fun () -> "moveFileAsync") getLocals
do! Async.Sleep 10
return! loop (retry + 1)
}
loop 0
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let tempFolder = createTempDirectory ()
let path = tempFolder </> "test.txt"
let newPath = tempFolder </> "test2.txt"
let inline lockFile () = async {
trace Debug (fun () -> "_1") getLocals
use _ = new System.IO.FileStream (
path,
System.IO.FileMode.Open,
System.IO.FileAccess.ReadWrite,
System.IO.FileShare.None
)
trace Debug (fun () -> "_2") getLocals
do! Async.Sleep 2000
trace Debug (fun () -> "_3") getLocals
}
async {
trace Debug (fun () -> "1") getLocals
do! "0" |> writeAllTextAsync path
trace Debug (fun () -> "2") getLocals
let! child = lockFile () |> Async.StartChild
trace Debug (fun () -> "3") getLocals
do! Async.Sleep 1
trace Debug (fun () -> "4") getLocals
let! retries1 = path |> moveFileAsync newPath
trace Debug (fun () -> "5") getLocals
let! retries2 = newPath |> waitForFileAccess None
trace Debug (fun () -> "6") getLocals
let! text = newPath |> readAllTextAsync
trace Debug (fun () -> "7") getLocals
do! child
trace Debug (fun () -> "8") getLocals
return retries1, retries2, text
}
|> Async.runWithTimeout 3000
|> function
| Some (retries1, retries2, text) ->
retries1
|> _isBetween
(if Runtime.isWindows () then 100 else 0)
(if Runtime.isWindows () then 150 else 0)
retries2
|> _isBetween
(if Runtime.isWindows () then 0 else 100)
(if Runtime.isWindows () then 0 else 200)
text |> _assertEqual "0"
true
| _ -> false
|> _assertEqual true
╭─[ 2.91s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:09 #38 [Debug] 1 │
│ 00:00:09 #39 [Debug] 2 │
│ 00:00:09 #40 [Debug] 3 │
│ 00:00:09 #41 [Debug] _1 │
│ 00:00:09 #42 [Debug] _2 │
│ 00:00:09 #43 [Debug] 4 │
│ 00:00:09 #44 [Warning] moveFileAsync / oldPath: test.txt / newPath: │
│ test2.txt / ex: System.IO.IOException: The process cannot access the file │
│ because it is being used by another process. │
│ 00:00:10 #45 [Warning] moveFileAsync / oldPath: test.txt / newPath: │
│ test2.txt / ex: System.IO.IOException: The process cannot access the file │
│ because it is being used by another process. │
│ 00:00:11 #46 [Debug] _3 │
│ 00:00:11 #47 [Debug] 5 │
│ 00:00:11 #48 [Debug] 6 │
│ 00:00:11 #49 [Debug] 7 │
│ 00:00:11 #50 [Debug] 8 │
│ 128 │
│ 128 │
│ 128 │
│ 0 │
│ 0 │
│ 0 │
│ 0 │
│ True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## watchDirectory │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
[[<RequireQualifiedAccess>]]
type FileSystemChangeType =
| Failure
| Changed
| Created
| Deleted
| Renamed
[[<RequireQualifiedAccess>]]
type FileSystemChange =
| Failure of exn: exn
| Changed of path: string * content: string option
| Created of path: string * content: string option
| Deleted of path: string
| Renamed of oldPath: string * (string * string option)
let inline watchDirectoryWithFilter filter shouldReadContent path =
let fullPath = path |> System.IO.Path.GetFullPath
let getLocals () = $"filter: {filter} / {getLocals ()}"
let watcher =
new System.IO.FileSystemWatcher (
Path = fullPath,
NotifyFilter = filter,
EnableRaisingEvents = true,
IncludeSubdirectories = true
)
let inline getEventPath (path : string) =
path |> String.trim |> String.replace fullPath "" |> String.trimStart
[[| '/'; '\\' |]]
let inline ticks () =
System.DateTime.UtcNow.Ticks
let changedStream =
AsyncSeq.subscribeEvent
watcher.Changed
(fun event ->
ticks (),
[[ FileSystemChange.Changed (getEventPath event.FullPath, None)
]]
)
let deletedStream =
AsyncSeq.subscribeEvent
watcher.Deleted
(fun event ->
ticks (),
[[ FileSystemChange.Deleted (getEventPath event.FullPath) ]]
)
let createdStream =
AsyncSeq.subscribeEvent
watcher.Created
(fun event ->
let path = getEventPath event.FullPath
ticks (), [[
FileSystemChange.Created (path, None)
if Runtime.isWindows () then
FileSystemChange.Changed (path, None)
]])
let renamedStream =
AsyncSeq.subscribeEvent
watcher.Renamed
(fun event ->
ticks (), [[
FileSystemChange.Renamed (
getEventPath event.OldFullPath,
(getEventPath event.FullPath, None)
)
]]
)
let failureStream =
AsyncSeq.subscribeEvent
watcher.Error
(fun event -> ticks (), [[ FileSystemChange.Failure
(event.GetException ()) ]])
let stream =
[[
changedStream
deletedStream
createdStream
renamedStream
failureStream
]]
|> FSharp.Control.AsyncSeq.mergeAll
|> FSharp.Control.AsyncSeq.map (fun (t, events) ->
events
|> List.fold
(fun (i, events) event ->
i + 1L,
(t + i, event) :: events)
(0L, [[]])
|> snd
|> List.rev
)
|> FSharp.Control.AsyncSeq.concatSeq
|> FSharp.Control.AsyncSeq.mapAsyncParallel (fun (t, event) -> async {
match shouldReadContent event, event with
| true, FileSystemChange.Changed (path, _) ->
do! Async.Sleep 5
let! content = fullPath </> path |> readAllTextRetryAsync
return t, FileSystemChange.Changed (path, content)
| true, FileSystemChange.Created (path, _) ->
do! Async.Sleep 5
let! content = fullPath </> path |> readAllTextRetryAsync
return t, FileSystemChange.Created (path, content)
| true, FileSystemChange.Renamed (oldPath, (newPath, _)) ->
let! content = fullPath </> newPath |> readAllTextRetryAsync
return t, FileSystemChange.Renamed (oldPath, (newPath, content))
| _ -> return t, event
})
let disposable =
newDisposable (fun () ->
trace Debug (fun () -> "watchWithFilter / Disposing watch stream")
getLocals
watcher.EnableRaisingEvents <- false
watcher.Dispose ()
)
stream, disposable
let inline watchDirectory path =
watchDirectoryWithFilter
(System.IO.NotifyFilters.FileName
// ||| System.IO.NotifyFilters.DirectoryName
// ||| System.IO.NotifyFilters.Attributes
//// ||| System.IO.NotifyFilters.Size
||| System.IO.NotifyFilters.LastWrite
//// ||| System.IO.NotifyFilters.LastAccess
// ||| System.IO.NotifyFilters.CreationTime
// ||| System.IO.NotifyFilters.Security
)
path
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### testEventsRaw (test) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let inline testEventsRaw
(watchFn : (_ -> bool) -> string -> FSharp.Control.AsyncSeq<int64 *
FileSystemChange> * IDisposable)
write
=
let tempDirectory = createTempDirectory ()
let stream, disposable = watchFn (fun _ -> true) tempDirectory
let events = System.Collections.Concurrent.ConcurrentBag ()
let inline iter () =
stream
|> FSharp.Control.AsyncSeq.iterAsyncParallel (fun event -> async {
events.Add event })
let run = async {
let! _ = iter () |> Async.StartChild
do! Async.Sleep 250
return! write tempDirectory
}
try
run
|> Async.runWithTimeout 60000
|> _assertEqual (Some ())
finally
disposable.Dispose ()
deleteDirectoryAsync tempDirectory |> Async.Ignore |>
Async.RunSynchronously
let eventsLog =
events
|> Seq.toList
|> List.sortBy fst
|> List.fold
(fun (prev, acc) (ticks, event) ->
ticks, (ticks, (if prev = 0L then 0L else ticks - prev), event)
:: acc
)
(0L, [[]])
|> snd
|> List.rev
|> List.map (fun (diff, n, event) ->
let text = $"{n} / {diff} / {event}"
if text |> String.length <= 100
then text
else text |> String.substring 0 100 |> String.replace "\n" ""
)
|> String.concat "\n"
let getLocals () = $"eventsLog: \n{eventsLog} / {getLocals ()}"
trace Debug (fun () -> "testEventsRaw") getLocals
events
|> Seq.toList
|> List.sortBy fst
|> List.map snd
|> List.fold
(fun acc event ->
match acc, event with
| FileSystemChange.Changed (lastPath, Some lastContent) as lastEvent
:: acc,
FileSystemChange.Changed (path, Some content)
when lastPath = path && content |> String.startsWith lastContent
->
event :: acc
| _ -> event :: acc
)
[[]]
|> List.rev
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ #### fast (test) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let inline write path = async {
let n = 2
for i = 1 to n do
do! $"a{i}" |> writeAllTextAsync (path </> $"file{i}.txt")
do! Async.Sleep 250
for i = 1 to n do
do! $"b{i}" |> writeAllTextAsync (path </> $"file{i}.txt")
do! Async.Sleep 250
for i = 1 to n do
do! path </> $"file{i}.txt" |> moveFileAsync (path </> $"file_{i}.txt")
|> Async.Ignore
do! Async.Sleep 250
for i = 1 to n do
do! $"c{i}" |> writeAllTextAsync (path </> $"file_{i}.txt")
do! Async.Sleep 250
for i = 1 to n do
do! deleteFileAsync (path </> $"file_{i}.txt") |> Async.Ignore
do! Async.Sleep 250
}
let inline run () =
let events = testEventsRaw watchDirectory write
events
|> _sequenceEqual [[
FileSystemChange.Created ("file1.txt", Some "a1")
FileSystemChange.Changed ("file1.txt", Some "a1")
FileSystemChange.Created ("file2.txt", Some "a2")
FileSystemChange.Changed ("file2.txt", Some "a2")
FileSystemChange.Changed ("file1.txt", Some "b1")
FileSystemChange.Changed ("file2.txt", Some "b2")
FileSystemChange.Renamed ("file1.txt", ("file_1.txt", Some "b1"))
FileSystemChange.Renamed ("file2.txt", ("file_2.txt", Some "b2"))
FileSystemChange.Changed ("file_1.txt", Some "c1")
FileSystemChange.Changed ("file_2.txt", Some "c2")
FileSystemChange.Deleted "file_1.txt"
FileSystemChange.Deleted "file_2.txt"
]]
run
|> retryFn 3
|> _assertEqual (Some ())
╭─[ 10.61s - stdout ]──────────────────────────────────────────────────────────╮
│ FSharpOption<Unit> │
│ Value: <null> │
│ 00:00:26 #51 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ 00:00:26 #52 [Debug] testEventsRaw / eventsLog: │
│ 0 / 638465922016666003 / Created ("file1.txt", Some "a1") │
│ 1 / 638465922016666004 / Changed ("file1.txt", Some "a1") │
│ 31427 / 638465922016697431 / Changed ("file1.txt", Some "a1") │
│ 1687 / 638465922016699118 / Created ("file2.txt", Some "a2") │
│ 1 / 638465922016699119 / Changed ("file2.txt", Some "a2") │
│ 84 / 638465922016699203 / Changed ("file2.txt", Some "a2") │
│ 2449072 / 638465922019148275 / Changed ("file1.txt", Some "b1") │
│ 4077 / 638465922019152352 / Changed ("file1.txt", Some "b1") │
│ 15908 / 638465922019168260 / Changed ("file2.txt", Some "b2") │
│ 2777 / 638465922019171037 / Changed ("file2.txt", Some "b2") │
│ 2500341 / 638465922021671378 / Renamed ("file1.txt", ("file_1.txt", Some │
│ "b1")) │
│ 5460 / 638465922021676838 / Renamed ("file2.txt", ("file_2.txt", Some "b2")) │
│ 2459966 / 638465922024136804 / Changed ("file_1.txt", Some "c1") │
│ 2259 / 638465922024139063 / Changed ("file_1.txt", Some "c1") │
│ 13400 / 638465922024152463 / Changed ("file_2.txt", Some "c2") │
│ 2302 / 638465922024154765 / Changed ("file_2.txt", Some "c2") │
│ 2498990 / 638465922026653755 / Deleted "file_1.txt" │
│ 4671 / 638465922026658426 / Deleted "file_2.txt" │
│ FSharpList<FileSystemChange> │
│ - path: file1.txt │
│ content: FSharpOption<String> │
│ Value: a1 │
│ IsFailure: False │
│ IsChanged: False │
│ IsCreated: True │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file1.txt │
│ content: FSharpOption<String> │
│ Value: a1 │
│ IsFailure: False │
│ IsChanged: True │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file2.txt │
│ content: FSharpOption<String> │
│ Value: a2 │
│ IsFailure: False │
│ IsChanged: False │
│ IsCreated: True │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file2.txt │
│ content: FSharpOption<String> │
│ Value: a2 │
│ IsFailure: False │
│ IsChanged: True │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file1.txt │
│ content: FSharpOption<String> │
│ Value: b1 │
│ IsFailure: False │
│ IsChanged: True │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file2.txt │
│ content: FSharpOption<String> │
│ Value: b2 │
│ IsFailure: False │
│ IsChanged: True │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: False │
│ - oldPath: file1.txt │
│ Item2: - file_1.txt │
│ - FSharpOption<String> │
│ Value: b1 │
│ - IsFailure: False │
│ IsChanged: False │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: True │
│ - oldPath: file2.txt │
│ Item2: - file_2.txt │
│ - FSharpOption<String> │
│ Value: b2 │
│ - IsFailure: False │
│ IsChanged: False │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: True │
│ - path: file_1.txt │
│ content: FSharpOption<String> │
│ Value: c1 │
│ IsFailure: False │
│ IsChanged: True │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file_2.txt │
│ content: FSharpOption<String> │
│ Value: c2 │
│ IsFailure: False │
│ IsChanged: True │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file_1.txt │
│ IsFailure: False │
│ IsChanged: False │
│ IsCreated: False │
│ IsDeleted: True │
│ IsRenamed: False │
│ - path: file_2.txt │
│ IsFailure: False │
│ IsChanged: False │
│ IsCreated: False │
│ IsDeleted: True │
│ IsRenamed: False │
│ FSharpOption<Unit> │
│ Value: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ #### slow (test) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let inline write path = async {
let n = 2
let contents =
[[ 1 .. n ]]
|> List.map (string >> String.replicate 1_000_000)
for i = 1 to n do
do! $"{contents.[[i - 1]]}a" |> writeAllTextAsync (path </>
$"file{i}.txt")
do! Async.Sleep 1500
for i = 1 to n do
do! $"{contents.[[i - 1]]}b" |> writeAllTextAsync (path </>
$"file{i}.txt")
do! Async.Sleep 1500
for i = 1 to n do
do! path </> $"file{i}.txt" |> moveFileAsync (path </> $"file_{i}.txt")
|> Async.Ignore
do! Async.Sleep 1500
for i = 1 to n do
do! $"{contents.[[i - 1]]}c" |> writeAllTextAsync (path </>
$"file_{i}.txt")
do! Async.Sleep 1500
for i = 1 to n do
do! deleteFileAsync (path </> $"file_{i}.txt") |> Async.Ignore
do! Async.Sleep 1500
}
let inline run () =
let events =
testEventsRaw watchDirectory write
|> List.map (function
| FileSystemChange.Changed (path, Some content) ->
FileSystemChange.Changed (path, content |> Seq.distinct |>
Seq.map string |> String.concat "" |> Some)
| FileSystemChange.Created (path, Some content) ->
FileSystemChange.Created (path, content |> Seq.distinct |>
Seq.map string |> String.concat "" |> Some)
| FileSystemChange.Renamed (oldPath, (newPath, Some content)) ->
FileSystemChange.Renamed (
oldPath,
(newPath, content |> Seq.distinct |> Seq.map string |>
String.concat "" |> Some)
)
| event -> event
)
events
|> _sequenceEqual [[
FileSystemChange.Created ("file1.txt", Some "1a")
FileSystemChange.Changed ("file1.txt", Some "1a")
FileSystemChange.Created ("file2.txt", Some "2a")
FileSystemChange.Changed ("file2.txt", Some "2a")
FileSystemChange.Changed ("file1.txt", Some "1b")
FileSystemChange.Changed ("file2.txt", Some "2b")
FileSystemChange.Renamed ("file1.txt", ("file_1.txt", Some "1b"))
FileSystemChange.Renamed ("file2.txt", ("file_2.txt", Some "2b"))
FileSystemChange.Changed ("file_1.txt", Some "1c")
FileSystemChange.Changed ("file_2.txt", Some "2c")
FileSystemChange.Deleted "file_1.txt"
FileSystemChange.Deleted "file_2.txt"
]]
run
|> retryFn 5
|> _assertEqual (Some ())
╭─[ 19.48s - stdout ]──────────────────────────────────────────────────────────╮
│ 00:00:39 #53 [Debug] watchWithFilter / readContent / retry: 0 / ex: │
│ System.AggregateException: One or more errors occurred. (The process cannot │
│ access the file │
│ 'C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0030-1412-1221-1c08 │
│ 6cb76195\file1.txt' because it is being used by another process.) │
│ FSharpOption<Unit> │
│ Value: <null> │
│ 00:00:45 #54 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ 00:00:45 #55 [Debug] testEventsRaw / eventsLog: │
│ 0 / 638465922143885343 / Created ("file1.txt", Some │
│ "1111111111111111111111111111111111111 │
│ 1 / 638465922143885344 / Changed ("file1.txt", Some │
│ "1111111111111111111111111111111111111 │
│ 85665 / 638465922143971009 / Changed ("file1.txt", Some │
│ "111111111111111111111111111111111 │
│ 21784 / 638465922143992793 / Created ("file2.txt", Some │
│ "222222222222222222222222222222222 │
│ 1 / 638465922143992794 / Changed ("file2.txt", Some │
│ "2222222222222222222222222222222222222 │
│ 86606 / 638465922144079400 / Changed ("file2.txt", Some │
│ "222222222222222222222222222222222 │
│ 15163931 / 638465922159243331 / Changed ("file1.txt", Some │
│ "111111111111111111111111111111 │
│ 108084 / 638465922159351415 / Changed ("file1.txt", Some │
│ "11111111111111111111111111111111 │
│ 435459 / 638465922159786874 / Changed ("file2.txt", Some │
│ "22222222222222222222222222222222 │
│ 83443 / 638465922159870317 / Changed ("file2.txt", Some │
│ "222222222222222222222222222222222 │
│ 15080669 / 638465922174950986 / Renamed ("file1.txt", ("file_1.txt", │
│ Some "1111111111 │
│ 10537 / 638465922174961523 / Renamed ("file2.txt", ("file_2.txt", Some │
│ "2222222222222 │
│ 15001360 / 638465922189962883 / Changed ("file_1.txt", Some │
│ "11111111111111111111111111111 │
│ 77761 / 638465922190040644 / Changed ("file_1.txt", Some │
│ "11111111111111111111111111111111 │
│ 44953 / 638465922190085597 / Changed ("file_2.txt", Some │
│ "22222222222222222222222222222222 │
│ 68974 / 638465922190154571 / Changed ("file_2.txt", Some │
│ "22222222222222222222222222222222 │
│ 14963466 / 638465922205118037 / Deleted "file_1.txt" │
│ 6404 / 638465922205124441 / Deleted "file_2.txt" │
│ FSharpList<FileSystemChange> │
│ - path: file1.txt │
│ content: FSharpOption<String> │
│ Value: 1a │
│ IsFailure: False │
│ IsChanged: False │
│ IsCreated: True │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file1.txt │
│ content: FSharpOption<String> │
│ Value: 1a │
│ IsFailure: False │
│ IsChanged: True │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file2.txt │
│ content: FSharpOption<String> │
│ Value: 2a │
│ IsFailure: False │
│ IsChanged: False │
│ IsCreated: True │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file2.txt │
│ content: FSharpOption<String> │
│ Value: 2a │
│ IsFailure: False │
│ IsChanged: True │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file1.txt │
│ content: FSharpOption<String> │
│ Value: 1b │
│ IsFailure: False │
│ IsChanged: True │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file2.txt │
│ content: FSharpOption<String> │
│ Value: 2b │
│ IsFailure: False │
│ IsChanged: True │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: False │
│ - oldPath: file1.txt │
│ Item2: - file_1.txt │
│ - FSharpOption<String> │
│ Value: 1b │
│ - IsFailure: False │
│ IsChanged: False │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: True │
│ - oldPath: file2.txt │
│ Item2: - file_2.txt │
│ - FSharpOption<String> │
│ Value: 2b │
│ - IsFailure: False │
│ IsChanged: False │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: True │
│ - path: file_1.txt │
│ content: FSharpOption<String> │
│ Value: 1c │
│ IsFailure: False │
│ IsChanged: True │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file_2.txt │
│ content: FSharpOption<String> │
│ Value: 2c │
│ IsFailure: False │
│ IsChanged: True │
│ IsCreated: False │
│ IsDeleted: False │
│ IsRenamed: False │
│ - path: file_1.txt │
│ IsFailure: False │
│ IsChanged: False │
│ IsCreated: False │
│ IsDeleted: True │
│ IsRenamed: False │
│ - path: file_2.txt │
│ IsFailure: False │
│ IsChanged: False │
│ IsCreated: False │
│ IsDeleted: True │
│ IsRenamed: False │
│ FSharpOption<Unit> │
│ Value: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ### testEventsSorted (test) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let inline sortEvent event =
match event with
| FileSystemChange.Failure _ -> 0
| FileSystemChange.Created _ -> 1
| FileSystemChange.Changed _ -> 2
| FileSystemChange.Renamed (_oldPath, _) -> 3
| FileSystemChange.Deleted _ -> 4
let inline formatEvents events =
events
|> Seq.toList
|> List.sortBy (snd >> sortEvent)
|> List.choose (fun (ticks, event) ->
match event with
| FileSystemChange.Failure _ ->
None
| FileSystemChange.Changed (path, _) ->
Some (ticks, System.IO.Path.GetFileName path, nameof
FileSystemChangeType.Changed)
| FileSystemChange.Created (path, _) ->
Some (ticks, System.IO.Path.GetFileName path, nameof
FileSystemChangeType.Created)
| FileSystemChange.Deleted path ->
Some (ticks, System.IO.Path.GetFileName path, nameof
FileSystemChangeType.Deleted)
| FileSystemChange.Renamed (_oldPath, (path, _)) ->
Some (ticks, System.IO.Path.GetFileName path, nameof
FileSystemChangeType.Renamed)
)
|> List.sortBy (fun (_, path, _) -> path)
|> List.distinctBy (fun (_, path, event) -> path, event)
let inline testEventsSorted
(watchFn : string -> FSharp.Control.AsyncSeq<int64 * FileSystemChange> *
IDisposable)
write
=
let path = createTempDirectory ()
let stream, disposable = watchFn path
let events = System.Collections.Concurrent.ConcurrentBag ()
let inline iter () =
stream
|> FSharp.Control.AsyncSeq.iterAsyncParallel (fun event -> async {
events.Add event })
let run = async {
let! _ = iter () |> Async.StartChild
do! Async.Sleep 250
return! write path
}
try
run
|> Async.runWithTimeout 5000
|> _assertEqual (Some ())
finally
disposable.Dispose ()
deleteDirectoryAsync path |> Async.Ignore |> Async.RunSynchronously
let events = formatEvents events
let eventMap =
events
|> List.map (fun (ticks, path, event) -> path, (event, ticks))
|> List.groupBy fst
|> List.map (fun (path, events) ->
let event, _ticks =
events
|> List.map snd
|> List.sortByDescending snd
|> List.head
path, event
)
|> Map.ofList
let eventList =
events
|> List.map (fun (_ticks, path, event) -> path, event)
eventMap, eventList
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ #### create and delete (test) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let inline write path = async {
let n = 3
for i = 1 to n do
do! $"{i}" |> writeAllTextAsync (path </> $"file{i}.txt")
for i = 1 to n do
do! deleteFileAsync (path </> $"file{i}.txt") |> Async.Ignore
do! Async.Sleep 150
}
let inline run () =
let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))
write
[[
"file1.txt", nameof FileSystemChangeType.Created
"file1.txt", nameof FileSystemChangeType.Changed
"file1.txt", nameof FileSystemChangeType.Deleted
"file2.txt", nameof FileSystemChangeType.Created
"file2.txt", nameof FileSystemChangeType.Changed
"file2.txt", nameof FileSystemChangeType.Deleted
"file3.txt", nameof FileSystemChangeType.Created
"file3.txt", nameof FileSystemChangeType.Changed
"file3.txt", nameof FileSystemChangeType.Deleted
]]
|> _sequenceEqual eventList
[[
"file1.txt", nameof FileSystemChangeType.Deleted
"file2.txt", nameof FileSystemChangeType.Deleted
"file3.txt", nameof FileSystemChangeType.Deleted
]]
|> Map.ofList
|> _sequenceEqual eventMap
run
|> retryFn 3
|> _assertEqual (Some ())
╭─[ 7.16s - stdout ]───────────────────────────────────────────────────────────╮
│ FSharpOption<Unit> │
│ Value: <null> │
│ 00:00:54 #56 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpList<Tuple<String,String>> │
│ ( file1.txt, Created ) │
│ ( file1.txt, Changed ) │
│ ( file1.txt, Deleted ) │
│ ( file2.txt, Created ) │
│ ( file2.txt, Changed ) │
│ ( file2.txt, Deleted ) │
│ ( file3.txt, Created ) │
│ ( file3.txt, Changed ) │
│ ( file3.txt, Deleted ) │
│ FSharpMap<String,String> │
│ - Key: file1.txt │
│ Value: Deleted │
│ - Key: file2.txt │
│ Value: Deleted │
│ - Key: file3.txt │
│ Value: Deleted │
│ FSharpOption<Unit> │
│ Value: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ #### change (test) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let inline write path = async {
let n = 2
for i = 1 to n do
do! $"{i}" |> writeAllTextAsync (path </> $"file{i}.txt")
for i = 1 to n do
do! "" |> writeAllTextAsync (path </> $"file{i}.txt")
for i = 1 to n do
do! deleteFileAsync (path </> $"file{i}.txt") |> Async.Ignore
do! Async.Sleep 150
}
let inline run () =
let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))
write
[[
"file1.txt", nameof FileSystemChangeType.Created
"file1.txt", nameof FileSystemChangeType.Changed
"file1.txt", nameof FileSystemChangeType.Deleted
"file2.txt", nameof FileSystemChangeType.Created
"file2.txt", nameof FileSystemChangeType.Changed
"file2.txt", nameof FileSystemChangeType.Deleted
]]
|> _sequenceEqual eventList
[[
"file1.txt", nameof FileSystemChangeType.Deleted
"file2.txt", nameof FileSystemChangeType.Deleted
]]
|> Map.ofList
|> _sequenceEqual eventMap
run
|> retryFn 3
|> _assertEqual (Some ())
╭─[ 7.56s - stdout ]───────────────────────────────────────────────────────────╮
│ FSharpOption<Unit> │
│ Value: <null> │
│ 00:01:01 #57 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpList<Tuple<String,String>> │
│ ( file1.txt, Created ) │
│ ( file1.txt, Changed ) │
│ ( file1.txt, Deleted ) │
│ ( file2.txt, Created ) │
│ ( file2.txt, Changed ) │
│ ( file2.txt, Deleted ) │
│ FSharpMap<String,String> │
│ - Key: file1.txt │
│ Value: Deleted │
│ - Key: file2.txt │
│ Value: Deleted │
│ FSharpOption<Unit> │
│ Value: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ #### rename (test) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let inline write path = async {
let n = 2
for i = 1 to n do
do! $"{i}" |> writeAllTextAsync (path </> $"file{i}.txt")
for i = 1 to n do
do! path </> $"file{i}.txt" |> moveFileAsync (path </> $"file_{i}.txt")
|> Async.Ignore
for i = 1 to n do
do! deleteFileAsync (path </> $"file_{i}.txt") |> Async.Ignore
do! Async.Sleep 150
}
let inline run () =
let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))
write
[[
"file1.txt", nameof FileSystemChangeType.Created
"file1.txt", nameof FileSystemChangeType.Changed
"file2.txt", nameof FileSystemChangeType.Created
"file2.txt", nameof FileSystemChangeType.Changed
"file_1.txt", nameof FileSystemChangeType.Renamed
"file_1.txt", nameof FileSystemChangeType.Deleted
"file_2.txt", nameof FileSystemChangeType.Renamed
"file_2.txt", nameof FileSystemChangeType.Deleted
]]
|> _sequenceEqual eventList
[[
"file1.txt", nameof FileSystemChangeType.Changed
"file2.txt", nameof FileSystemChangeType.Changed
"file_1.txt", nameof FileSystemChangeType.Deleted
"file_2.txt", nameof FileSystemChangeType.Deleted
]]
|> Map.ofList
|> _sequenceEqual eventMap
run
|> retryFn 3
|> _assertEqual (Some ())
╭─[ 8.29s - stdout ]───────────────────────────────────────────────────────────╮
│ FSharpOption<Unit> │
│ Value: <null> │
│ 00:01:10 #58 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpList<Tuple<String,String>> │
│ ( file1.txt, Created ) │
│ ( file1.txt, Changed ) │
│ ( file2.txt, Created ) │
│ ( file2.txt, Changed ) │
│ ( file_1.txt, Renamed ) │
│ ( file_1.txt, Deleted ) │
│ ( file_2.txt, Renamed ) │
│ ( file_2.txt, Deleted ) │
│ FSharpMap<String,String> │
│ - Key: file1.txt │
│ Value: Changed │
│ - Key: file2.txt │
│ Value: Changed │
│ - Key: file_1.txt │
│ Value: Deleted │
│ - Key: file_2.txt │
│ Value: Deleted │
│ FSharpOption<Unit> │
│ Value: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ #### full (test) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let inline write path = async {
let n = 2
for i = 1 to n do
do! $"{i}" |> writeAllTextAsync (path </> $"file{i}.txt")
for i = 1 to n do
do! "" |> writeAllTextAsync (path </> $"file{i}.txt")
for i = 1 to n do
do! path </> $"file{i}.txt" |> moveFileAsync (path </> $"file_{i}.txt")
|> Async.Ignore
for i = 1 to n do
do! $"{i}" |> writeAllTextAsync (path </> $"file_{i}.txt")
for i = 1 to n do
do! deleteFileAsync (path </> $"file_{i}.txt") |> Async.Ignore
do! Async.Sleep 150
}
let inline run () =
let eventMap, eventList = testEventsSorted (watchDirectory (fun _ -> false))
write
[[
"file1.txt", nameof FileSystemChangeType.Created
"file1.txt", nameof FileSystemChangeType.Changed
"file2.txt", nameof FileSystemChangeType.Created
"file2.txt", nameof FileSystemChangeType.Changed
"file_1.txt", nameof FileSystemChangeType.Changed
"file_1.txt", nameof FileSystemChangeType.Renamed
"file_1.txt", nameof FileSystemChangeType.Deleted
"file_2.txt", nameof FileSystemChangeType.Changed
"file_2.txt", nameof FileSystemChangeType.Renamed
"file_2.txt", nameof FileSystemChangeType.Deleted
]]
|> _sequenceEqual eventList
[[
"file1.txt", nameof FileSystemChangeType.Changed
"file2.txt", nameof FileSystemChangeType.Changed
"file_1.txt", nameof FileSystemChangeType.Deleted
"file_2.txt", nameof FileSystemChangeType.Deleted
]]
|> Map.ofList
|> _sequenceEqual eventMap
run
|> retryFn 3
|> _assertEqual (Some ())
╭─[ 7.42s - stdout ]───────────────────────────────────────────────────────────╮
│ FSharpOption<Unit> │
│ Value: <null> │
│ 00:01:17 #59 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpList<Tuple<String,String>> │
│ ( file1.txt, Created ) │
│ ( file1.txt, Changed ) │
│ ( file2.txt, Created ) │
│ ( file2.txt, Changed ) │
│ ( file_1.txt, Changed ) │
│ ( file_1.txt, Renamed ) │
│ ( file_1.txt, Deleted ) │
│ ( file_2.txt, Changed ) │
│ ( file_2.txt, Renamed ) │
│ ( file_2.txt, Deleted ) │
│ FSharpMap<String,String> │
│ - Key: file1.txt │
│ Value: Changed │
│ - Key: file2.txt │
│ Value: Changed │
│ - Key: file_1.txt │
│ Value: Deleted │
│ - Key: file_2.txt │
│ Value: Deleted │
│ FSharpOption<Unit> │
│ Value: <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook FileSystem.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 468623 bytes to FileSystem.dib.html
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # Networking (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#r
@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"
#r
@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li
b/net6.0/System.CommandLine.dll"
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Common.fs
#!import ../../lib/fsharp/CommonFSharp.fs
#!import ../../lib/fsharp/Async.fs
#!import ../../lib/fsharp/Runtime.fs
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldValue : string) (newValue : string) (input :
string) =
input.Replace (oldValue, newValue)
let inline split separator (input : string) =
input.Split separator
let inline spli...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module CommonFSharp =
open Common
/// ## getUnionCaseName
let inline getUnionCaseName<'T> (x: 'T) =
match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
| case, _ -> case.Name
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Async =
open Common
/// ## choice
let inline choice asyncs = async {
let e = Event<_> ()
use cts = new System.Threading.CancellationTokenSource ()
let fn =
asyncs
|> Seq.map (fun a -> async {
let! x = a
e.Trigger x
})
|> Async.Parallel
|> Async.Ignore
Async.Start (fn, cts.Token)
let! result = Async.AwaitEvent e.Publish
cts.Cancel ()
return result
}
/// ## map
let inline map fn a = async {
let! x = a
return fn x
}
/// ## catch
let inline catch a =
a
|> Async.Catch
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Runtime =
open Common
/// ## isWindows
let isWindows =
fun () ->
System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform
System.Runtime.InteropServices.OSPlatform.Windows
|> memoize
/// ## getExecutableSuffix
let inline getExecutableSuffix () =
if isWindows ()
then ".exe"
else ""
/// ## splitCommand
type private CommandParseStep =
| Start
| Path of quoted: bool
| Arguments
let splitCommand (command: string) =
let rec loop (path, args) chars step =
match chars, step with
| ('"' | '\'') :: tail, _ when path = "" -> loop (pat...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## testPortOpen │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline testPortOpen port = async {
let! ct = Async.CancellationToken
use client = new System.Net.Sockets.TcpClient ()
try
do! client.ConnectAsync ("127.0.0.1", port, ct) |>
Async.awaitValueTaskUnit
return true
with ex ->
trace Verbose (fun () -> $"testPortOpen / ex: {ex |> printException}")
getLocals
return false
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
testPortOpen 65536
|> Async.runWithTimeout 120
|> _assertEqual (Some false)
╭─[ 184.18ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:00 #1 [Verbose] testPortOpen / ex: System.ArgumentOutOfRangeException: │
│ Specified argument was out of the range of valid values. (Parameter 'port') │
│ FSharpOption<Boolean> │
│ Value: False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline testPortOpenTimeout timeout port = async {
let! result =
testPortOpen port
|> Async.runWithTimeoutAsync timeout
return
match result with
| None -> false
| Some result -> result
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
testPortOpenTimeout 120 65535
|> Async.RunSynchronously
|> _assertEqual false
╭─[ 276.17ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:00 #2 [Debug] runWithTimeoutAsync / timeout: 120 │
│ False │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## waitForPortAccess │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline waitForPortAccess timeout status port =
let rec loop retry = async {
let! isPortOpen =
match timeout with
| None -> testPortOpen port
| Some timeout -> testPortOpenTimeout timeout port
if isPortOpen = status
then return retry
else
if retry % 100 = 0 then
let getLocals () = $"port: {port} / retry: {retry} / {getLocals
()}"
trace Verbose (fun () -> "waitForPortAccess") getLocals
do! Async.Sleep 10
return! loop (retry + 1)
}
loop 0
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let port = 5555
let inline lockPort () = async {
trace Debug (fun () -> "_1") getLocals
do! Async.Sleep 5000
use listener = new System.Net.Sockets.TcpListener
(System.Net.IPAddress.Parse "127.0.0.1", port)
trace Debug (fun () -> "_2") getLocals
listener.Start ()
trace Debug (fun () -> "_3") getLocals
do! Async.Sleep 2000
trace Debug (fun () -> "_4") getLocals
listener.Stop ()
trace Debug (fun () -> "_5") getLocals
}
async {
trace Debug (fun () -> "1") getLocals
let! child = lockPort () |> Async.StartChild
trace Debug (fun () -> "2") getLocals
do! Async.Sleep 1
trace Debug (fun () -> "3") getLocals
let! retries1 = waitForPortAccess None true port
trace Debug (fun () -> "4") getLocals
let! retries2 = waitForPortAccess None false port
trace Debug (fun () -> "5") getLocals
do! child
trace Debug (fun () -> "6") getLocals
return retries1, retries2
}
|> Async.runWithTimeout 20000
|> function
| Some (retries1, retries2) ->
retries1
|> _isBetween
(if Runtime.isWindows () then 2 else 2)
(if Runtime.isWindows () then 5 else 1500)
retries2
|> _isBetween
(if Runtime.isWindows () then 80 else 80)
(if Runtime.isWindows () then 150 else 600)
true
| _ -> false
|> _assertEqual true
╭─[ 9.58s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:01 #3 [Debug] 1 │
│ 00:00:01 #4 [Debug] _1 │
│ 00:00:01 #5 [Debug] 2 │
│ 00:00:01 #6 [Debug] 3 │
│ 00:00:03 #7 [Verbose] testPortOpen / ex: System.AggregateException: One or │
│ more errors occurred. (No connection could be made because the target │
│ machine actively refused it.) │
│ 00:00:03 #8 [Verbose] waitForPortAccess / port: 5555 / retry: 0 │
│ 00:00:05 #9 [Verbose] testPortOpen / ex: System.AggregateException: One or │
│ more errors occurred. (No connection could be made because the target │
│ machine actively refused it.) │
│ 00:00:06 #10 [Debug] _2 │
│ 00:00:06 #11 [Debug] _3 │
│ 00:00:06 #12 [Debug] 4 │
│ 00:00:06 #13 [Verbose] waitForPortAccess / port: 5555 / retry: 0 │
│ 00:00:07 #14 [Verbose] waitForPortAccess / port: 5555 / retry: 100 │
│ 00:00:08 #15 [Debug] _4 │
│ 00:00:08 #16 [Debug] _5 │
│ 00:00:10 #17 [Verbose] testPortOpen / ex: System.AggregateException: One or │
│ more errors occurred. (No connection could be made because the target │
│ machine actively refused it.) │
│ 00:00:10 #18 [Debug] 5 │
│ 00:00:10 #19 [Debug] 6 │
│ 2 │
│ 2 │
│ 2 │
│ 120 │
│ 120 │
│ 120 │
│ True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let port = 5555
let inline lockPort () = async {
trace Debug (fun () -> "_1") getLocals
do! Async.Sleep 500
use listener = new System.Net.Sockets.TcpListener
(System.Net.IPAddress.Parse "127.0.0.1", port)
trace Debug (fun () -> "_2") getLocals
listener.Start ()
trace Debug (fun () -> "_3") getLocals
do! Async.Sleep 200
trace Debug (fun () -> "_4") getLocals
listener.Stop ()
trace Debug (fun () -> "_5") getLocals
}
async {
trace Debug (fun () -> "1") getLocals
let! child = lockPort () |> Async.StartChild
trace Debug (fun () -> "2") getLocals
do! Async.Sleep 1
trace Debug (fun () -> "3") getLocals
let! retries1 = waitForPortAccess (Some 60) true port
trace Debug (fun () -> "4") getLocals
let! retries2 = waitForPortAccess (Some 60) false port
trace Debug (fun () -> "5") getLocals
do! child
trace Debug (fun () -> "6") getLocals
return retries1, retries2
}
|> Async.runWithTimeout 2000
|> function
| Some (retries1, retries2) ->
retries1
|> _isBetween
(if Runtime.isWindows () then 4 else 2)
(if Runtime.isWindows () then 15 else 150)
retries2
|> _isBetween
(if Runtime.isWindows () then 5 else 0)
(if Runtime.isWindows () then 20 else 60)
true
| _ -> false
|> _assertEqual true
╭─[ 1.52s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:11 #20 [Debug] 1 │
│ 00:00:11 #21 [Debug] 2 │
│ 00:00:11 #22 [Debug] _1 │
│ 00:00:11 #23 [Debug] 3 │
│ 00:00:11 #24 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:11 #25 [Verbose] waitForPortAccess / port: 5555 / retry: 0 │
│ 00:00:11 #26 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:11 #27 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:11 #28 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:11 #29 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:11 #30 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:11 #31 [Debug] _2 │
│ 00:00:11 #32 [Debug] _3 │
│ 00:00:11 #33 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:11 #34 [Debug] 4 │
│ 00:00:11 #35 [Verbose] waitForPortAccess / port: 5555 / retry: 0 │
│ 00:00:11 #36 [Debug] _4 │
│ 00:00:11 #37 [Debug] _5 │
│ 00:00:11 #38 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:11 #39 [Debug] 5 │
│ 00:00:11 #40 [Debug] 6 │
│ 7 │
│ 7 │
│ 7 │
│ 10 │
│ 10 │
│ 10 │
│ True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## getAvailablePort │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline getAvailablePort timeout initialPort =
let rec loop port = async {
let! isPortOpen =
match timeout with
| None -> testPortOpen port
| Some timeout -> testPortOpenTimeout timeout port
if not isPortOpen
then return port
else return! loop (port + 1)
}
loop initialPort
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let port = 5555
let inline lockPorts () = async {
trace Debug (fun () -> "_1") getLocals
use listener1 = new System.Net.Sockets.TcpListener
(System.Net.IPAddress.Parse "127.0.0.1", port)
use listener2 = new System.Net.Sockets.TcpListener
(System.Net.IPAddress.Parse "127.0.0.1", port + 1)
trace Debug (fun () -> "_2") getLocals
listener1.Start ()
listener2.Start ()
trace Debug (fun () -> "_3") getLocals
do! Async.Sleep 4000
trace Debug (fun () -> "_4") getLocals
listener1.Stop ()
listener2.Stop ()
trace Debug (fun () -> "_5") getLocals
}
async {
trace Debug (fun () -> "1") getLocals
let! child = lockPorts () |> Async.StartChild
trace Debug (fun () -> "2") getLocals
do! Async.Sleep 240
trace Debug (fun () -> "3") getLocals
let! availablePort = getAvailablePort None port
trace Debug (fun () -> "4") getLocals
let! retries = waitForPortAccess None false port
trace Debug (fun () -> "5") getLocals
do! child
trace Debug (fun () -> "6") getLocals
return availablePort, retries
}
|> Async.runWithTimeout 15000
|> function
| Some (availablePort, retries) ->
availablePort |> _assertEqual (port + 2)
retries
|> _isBetween
(if Runtime.isWindows () then 100 else 100)
(if Runtime.isWindows () then 150 else 1200)
true
| _ -> false
|> _assertEqual true
╭─[ 6.49s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:12 #41 [Debug] 1 │
│ 00:00:12 #42 [Debug] 2 │
│ 00:00:12 #43 [Debug] _1 │
│ 00:00:12 #44 [Debug] _2 │
│ 00:00:12 #45 [Debug] _3 │
│ 00:00:12 #46 [Debug] 3 │
│ 00:00:14 #47 [Verbose] testPortOpen / ex: System.AggregateException: One or │
│ more errors occurred. (No connection could be made because the target │
│ machine actively refused it.) │
│ 00:00:14 #48 [Debug] 4 │
│ 00:00:14 #49 [Verbose] waitForPortAccess / port: 5555 / retry: 0 │
│ 00:00:16 #50 [Verbose] waitForPortAccess / port: 5555 / retry: 100 │
│ 00:00:16 #51 [Debug] _4 │
│ 00:00:16 #52 [Debug] _5 │
│ 00:00:18 #53 [Verbose] testPortOpen / ex: System.AggregateException: One or │
│ more errors occurred. (No connection could be made because the target │
│ machine actively refused it.) │
│ 00:00:18 #54 [Debug] 5 │
│ 00:00:18 #55 [Debug] 6 │
│ 5557 │
│ 110 │
│ 110 │
│ 110 │
│ True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let port = 5555
let inline lockPorts () = async {
trace Debug (fun () -> "_1") getLocals
use listener1 = new System.Net.Sockets.TcpListener
(System.Net.IPAddress.Parse "127.0.0.1", port)
use listener2 = new System.Net.Sockets.TcpListener
(System.Net.IPAddress.Parse "127.0.0.1", port + 1)
trace Debug (fun () -> "_2") getLocals
listener1.Start ()
listener2.Start ()
trace Debug (fun () -> "_3") getLocals
do! Async.Sleep 400
trace Debug (fun () -> "_4") getLocals
listener1.Stop ()
listener2.Stop ()
trace Debug (fun () -> "_5") getLocals
}
async {
trace Debug (fun () -> "1") getLocals
let! child = lockPorts () |> Async.StartChild
trace Debug (fun () -> "2") getLocals
do! Async.Sleep 240
trace Debug (fun () -> "3") getLocals
let! availablePort = getAvailablePort (Some 60) port
trace Debug (fun () -> "4") getLocals
let! retries = waitForPortAccess (Some 60) false port
trace Debug (fun () -> "5") getLocals
do! child
trace Debug (fun () -> "6") getLocals
return availablePort, retries
}
|> Async.runWithTimeout 1500
|> function
| Some (availablePort, retries) ->
availablePort |> _assertEqual (port + 2)
retries
|> _isBetween
(if Runtime.isWindows () then 2 else 1)
(if Runtime.isWindows () then 10 else 120)
true
| _ -> false
|> _assertEqual true
╭─[ 1.07s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:19 #56 [Debug] 1 │
│ 00:00:19 #57 [Debug] 2 │
│ 00:00:19 #58 [Debug] _1 │
│ 00:00:19 #59 [Debug] _2 │
│ 00:00:19 #60 [Debug] _3 │
│ 00:00:19 #61 [Debug] 3 │
│ 00:00:19 #62 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:19 #63 [Debug] 4 │
│ 00:00:19 #64 [Verbose] waitForPortAccess / port: 5555 / retry: 0 │
│ 00:00:19 #65 [Debug] _4 │
│ 00:00:19 #66 [Debug] _5 │
│ 00:00:19 #67 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:19 #68 [Debug] 5 │
│ 00:00:19 #69 [Debug] 6 │
│ 5557 │
│ 4 │
│ 4 │
│ 4 │
│ True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook Networking.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 325235 bytes to Networking.dib.html
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # Runtime (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#r
@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
dard2.1/FSharp.Control.AsyncSeq.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
0/System.Reactive.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
netstandard2.0/System.Reactive.Linq.dll"
#r
@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"
#r
@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li
b/net6.0/System.CommandLine.dll"
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Common.fs
#!import ../../lib/fsharp/CommonFSharp.fs
#!import ../../lib/fsharp/Async.fs
#!import ../../lib/fsharp/AsyncSeq.fs
#!import ../../lib/fsharp/Runtime.fs
#!import ../../lib/fsharp/FileSystem.fs
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldValue : string) (newValue : string) (input :
string) =
input.Replace (oldValue, newValue)
let inline split separator (input : string) =
input.Split separator
let inline spli...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module CommonFSharp =
open Common
/// ## getUnionCaseName
let inline getUnionCaseName<'T> (x: 'T) =
match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
| case, _ -> case.Name
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Async =
open Common
/// ## choice
let inline choice asyncs = async {
let e = Event<_> ()
use cts = new System.Threading.CancellationTokenSource ()
let fn =
asyncs
|> Seq.map (fun a -> async {
let! x = a
e.Trigger x
})
|> Async.Parallel
|> Async.Ignore
Async.Start (fn, cts.Token)
let! result = Async.AwaitEvent e.Publish
cts.Cancel ()
return result
}
/// ## map
let inline map fn a = async {
let! x = a
return fn x
}
/// ## catch
let inline catch a =
a
|> Async.Catch
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module AsyncSeq =
open Common
/// ## subscribeEvent
let inline subscribeEvent (event: IEvent<'H, 'A>) map =
let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
'A>(event.AddHandler, event.RemoveHandler)
System.Reactive.Linq.Observable.Select (observable, fun event -> map
event.EventArgs)
|> FSharp.Control.AsyncSeq.ofObservableBuffered
let subscribeToken (token : System.Threading.CancellationToken) =
let tcs = new System.Threading.Tasks.TaskCompletionSource ()
System.Action tcs.SetResult |> token.Register |> ignore
let start = System.DateTime.Now.Ticks
FSharp.Control.AsyncSeq.unfoldAsync
(fun (...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Runtime =
open Common
/// ## isWindows
let isWindows =
fun () ->
System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform
System.Runtime.InteropServices.OSPlatform.Windows
|> memoize
/// ## getExecutableSuffix
let inline getExecutableSuffix () =
if isWindows ()
then ".exe"
else ""
/// ## splitCommand
type private CommandParseStep =
| Start
| Path of quoted: bool
| Arguments
let splitCommand (command: string) =
let rec loop (path, args) chars step =
match chars, step with
| ('"' | '\'') :: tail, _ when path = "" -> loop (pat...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module FileSystem =
open Common
/// ## Operators
module Operators =
let inline (</>) a b =
System.IO.Path.Combine (a, b)
open Operators
/// ## createTempDirectoryName
let inline createTempDirectoryName () =
let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name
System.IO.Path.GetTempPath ()
</> $"!{root}"
</> string (newGuidFromDateTime System.DateTime.Now)
/// ## createTempDirectory
let inline createTempDirectory () =
let tempFolder = createTempDirectoryName ()
let result = System.IO.Directory.CreateDirectory tempFolder
if not result.Exists then
let ge...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
open FileSystem.Operators
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## isWindows │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let isWindows =
fun () ->
System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform
System.Runtime.InteropServices.OSPlatform.Windows
|> memoize
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
isWindows ()
╭─[ 80.58ms - return value ]───────────────────────────────────────────────────╮
│ <div class="dni-plaintext"><pre>True</pre></div><style> │
│ .dni-code-hint { │
│ font-style: italic; │
│ overflow: hidden; │
│ white-space: nowrap; │
│ } │
│ .dni-treeview { │
│ white-space: nowrap; │
│ } │
│ .dni-treeview td { │
│ vertical-align: top; │
│ text-align: start; │
│ } │
│ details.dni-treeview { │
│ padding-left: 1em; │
│ } │
│ table td { │
│ text-align: start; │
│ } │
│ table tr { │
│ vertical-align: top; │
│ margin: 0em 0px; │
│ } │
│ table tr td pre │
│ { │
│ vertical-align: top !important; │
│ margin: 0em 0px !important; │
│ } │
│ table th { │
│ text-align: start; │
│ } │
│ </style> │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## getExecutableSuffix │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline getExecutableSuffix () =
if isWindows ()
then ".exe"
else ""
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
getExecutableSuffix ()
╭─[ 12.93ms - return value ]───────────────────────────────────────────────────╮
│ .exe │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## splitCommand │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
type private CommandParseStep =
| Start
| Path of quoted: bool
| Arguments
let splitCommand (command: string) =
let rec loop (path, args) chars step =
match chars, step with
| ('"' | '\'') :: tail, _ when path = "" -> loop (path, args) tail (Path
true)
| ('"' | '\'') :: tail, Path true -> loop (path, args) tail (Path false)
| ' ' :: tail, Path true -> loop ($"{path} ", args) tail (Path true)
| ' ' :: tail, (Start | Path _) -> loop (path, args) tail Arguments
| char :: tail, Arguments -> loop (path, $"{args}{char}") tail Arguments
| char :: tail, _ -> loop ($"{path}{char}", args) tail step
| _, _ -> path |> String.replace @"\" "/", args
loop ("", "") (command |> Seq.toList) Start
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
splitCommand ""
|> _assertEqual ("", "")
splitCommand "/a/b/c"
|> _assertEqual ("/a/b/c", "")
splitCommand "cat file.txt"
|> _assertEqual ("cat", "file.txt")
splitCommand """..\..\file.exe file1.txt file2.txt"""
|> _assertEqual ("../../file.exe", "file1.txt file2.txt")
splitCommand @"c:\dir\file.exe ""file1.txt file2.txt"""
|> _assertEqual ("c:/dir/file.exe", @"""file1.txt file2.txt""")
splitCommand @"""..\..\dir name\file.exe"" ""file 1.txt"" file2.txt"
|> _assertEqual ("../../dir name/file.exe", @"""file 1.txt"" file2.txt")
splitCommand @"""..\..\file 1.exe"" -c \\""echo 1\\"""
|> _assertEqual ("../../file 1.exe", @"-c \\""echo 1\\""")
splitCommand @"..\..\file 1.exe -c \\""echo 1\\"""
|> _assertEqual ("../../file", @"1.exe -c \\""echo 1\\""")
╭─[ 90.95ms - stdout ]─────────────────────────────────────────────────────────╮
│ ( , ) │
│ ( /a/b/c, ) │
│ ( cat, file.txt ) │
│ ( ../../file.exe, file1.txt file2.txt ) │
│ ( c:/dir/file.exe, "file1.txt file2.txt" ) │
│ ( ../../dir name/file.exe, "file 1.txt" file2.txt ) │
│ ( ../../file 1.exe, -c \\"echo 1\\" ) │
│ ( ../../file, 1.exe -c \\"echo 1\\" ) │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## executeAsync │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
type ExecutionLine =
{
ProcessId : int
Line : string
Error : bool
}
type ExecutionOptions =
{
Command : string
WorkingDirectory : string option
CancellationToken : System.Threading.CancellationToken option
OnLine : (ExecutionLine -> Async<unit>) option
}
let inline executeWithOptionsAsync (options : ExecutionOptions) = async {
let fileName, arguments = options.Command |> splitCommand
let workingDirectory = options.WorkingDirectory |> Option.defaultValue ""
trace Debug (fun () -> $"executeAsync / options: {options}") getLocals
let startInfo = System.Diagnostics.ProcessStartInfo (
Arguments = arguments,
CreateNoWindow = true,
FileName = fileName,
RedirectStandardError = true,
RedirectStandardOutput = true,
StandardOutputEncoding = System.Text.Encoding.UTF8,
UseShellExecute = false,
WorkingDirectory = workingDirectory
)
use proc = new System.Diagnostics.Process (StartInfo = startInfo)
let output = System.Collections.Concurrent.ConcurrentStack<string> ()
let inline event error (e: System.Diagnostics.DataReceivedEventArgs) = async
{
if e.Data <> null then
match options.OnLine with
| Some onLine ->
do!
onLine
{
ProcessId = proc.Id
Line = e.Data
Error = error
}
| None -> ()
trace
Verbose
(fun () -> $"> {e.Data}")
Common.getLocals
output.Push
$"{
if error then '[['.ToString() else System.String.Empty
}{
e.Data
}{
if error then ']]'.ToString() else System.String.Empty
}"
}
proc.OutputDataReceived.Add (event false >> Async.StartImmediate)
proc.ErrorDataReceived.Add (event true >> Async.StartImmediate)
if proc.Start () |> not
then failwith $"executeAsync / proc.Start () error"
proc.BeginErrorReadLine ()
proc.BeginOutputReadLine ()
let! ct =
options.CancellationToken
|> Option.defaultValue System.Threading.CancellationToken.None
|> Async.mergeCancellationTokenWithDefaultAsync
use reg = ct.Register (fun _ ->
if not proc.HasExited then proc.Kill ()
)
let! exitCode = async {
try
do! proc.WaitForExitAsync ct |> Async.AwaitTask
return proc.ExitCode
with :? System.Threading.Tasks.TaskCanceledException as ex ->
trace Warning (fun () -> $"executeAsync / WaitForExitAsync / ex: {ex
|> printException}") getLocals
ex |> printException |> output.Push
return System.Int32.MinValue
}
let output = output |> Seq.rev |> String.concat "\n"
trace Debug (fun () ->
$"executeAsync / exitCode: {exitCode} / output.Length: {output.Length}"
) getLocals
return exitCode, output
}
let inline executeAsync command =
executeWithOptionsAsync
{
Command = command
CancellationToken = None
OnLine = None
WorkingDirectory = None
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let tempFolder = FileSystem.createTempDirectory ()
let fileName = "test.txt"
let path = tempFolder </> fileName
async {
let! exitCode, result = executeAsync @$"pwsh -c ""Get-Content {path}"""
exitCode |> _assertEqual 1
result |> _stringContains "not exist"
do! "0" |> FileSystem.writeAllTextAsync path
return!
executeWithOptionsAsync
{
Command = @$"pwsh -c ""Get-Content {fileName}"""
CancellationToken = None
OnLine = None
WorkingDirectory = Some tempFolder
}
}
|> Async.runWithTimeout 10000
|> function
| Some (exitCode, output) ->
exitCode |> _assertEqual 0
output |> _assertEqual "0"
true
| _ -> false
|> _assertEqual true
╭─[ 2.25s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:00 #1 [Debug] executeAsync / options: { Command = │
│ "pwsh -c "Get-Content │
│ C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0031-4397-9795-9fb9f │
│ d0410c0\test.txt"" │
│ WorkingDirectory = None │
│ CancellationToken = None │
│ OnLine = None } │
│ 00:00:00 #2 [Verbose] > Get-Content: Cannot find path │
│ 'C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0031-4397-9795-9fb9 │
│ fd0410c0\test.txt' because it does not exist. │
│ 00:00:00 #3 [Debug] executeAsync / exitCode: 1 / output.Length: 171 │
│ 1 │
│ [Get-Content: Cannot find path │
│ 'C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0031-4397-9795-9fb9 │
│ fd0410c0\test.txt' because it does not exist.] │
│ 00:00:01 #4 [Debug] executeAsync / options: { Command = "pwsh -c │
│ "Get-Content test.txt"" │
│ WorkingDirectory = │
│ Some │
│ │
│ "C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0031-4397-9795-9fb9 │
│ fd0410c0" │
│ CancellationToken = None │
│ OnLine = None } │
│ 00:00:01 #5 [Verbose] > 0 │
│ 00:00:01 #6 [Debug] executeAsync / exitCode: 0 / output.Length: 1 │
│ 0 │
│ 0 │
│ True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let tempFolder = FileSystem.createTempDirectory ()
let path = tempFolder </> "test.txt"
let command = @$"pwsh -c ""Get-Content {path}"""
async {
do! "0" |> FileSystem.writeAllTextAsync path
let cts = new System.Threading.CancellationTokenSource ()
trace Debug (fun () -> "1") getLocals
let! result =
executeWithOptionsAsync
{
Command = command
CancellationToken = Some cts.Token
OnLine = None
WorkingDirectory = None
}
|> Async.StartChild
trace Debug (fun () -> "2") getLocals
do! Async.Sleep 100
trace Debug (fun () -> "3") getLocals
cts.Cancel ()
trace Debug (fun () -> "4") getLocals
let! exitCode, output = result
trace Debug (fun () -> "5") getLocals
return exitCode, output
}
|> Async.runWithTimeout 10000
|> function
| Some (exitCode, output) ->
exitCode |> _assertEqual -2147483648
output |> _assertEqual "System.Threading.Tasks.TaskCanceledException: A
task was canceled."
true
| _ -> false
|> _assertEqual true
╭─[ 574.98ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:02 #7 [Debug] 1 │
│ 00:00:02 #9 [Debug] 2 │
│ 00:00:02 #8 [Debug] executeAsync / options: { Command = │
│ "pwsh -c "Get-Content │
│ C:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0031-4602-0238-082b2 │
│ b30a4ee\test.txt"" │
│ WorkingDirectory = None │
│ CancellationToken = Some System.Threading.CancellationToken │
│ OnLine = None } │
│ 00:00:02 #10 [Debug] 3 │
│ 00:00:02 #11 [Debug] 4 │
│ 00:00:02 #12 [Warning] executeAsync / WaitForExitAsync / ex: │
│ System.Threading.Tasks.TaskCanceledException: A task was canceled. │
│ 00:00:02 #13 [Debug] executeAsync / exitCode: -2147483648 / output.Length: │
│ 66 │
│ 00:00:02 #14 [Debug] 5 │
│ -2147483648 │
│ System.Threading.Tasks.TaskCanceledException: A task was canceled. │
│ True │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## splitArgs │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline splitArgs commandLine =
commandLine
|> System.CommandLine.Parsing.CommandLineStringSplitter.Instance.Split
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""a b "c d" e"""
|> splitArgs
|> Seq.toArray
|> _assertEqual [[| "a"; "b"; "c d"; "e" |]]
╭─[ 31.34ms - stdout ]─────────────────────────────────────────────────────────╮
│ [ a, b, c d, e ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## parseArgs │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline parseArgs<'T when 'T :> Argu.IArgParserTemplate> args =
let assemblyName =
System.Reflection.Assembly.GetEntryAssembly().GetName().Name
let errorHandler : Argu.IExiter =
if [[ "Microsoft.DotNet.Interactive.App"; "dotnet-repl" ]] |>
List.contains assemblyName
then Argu.ExceptionExiter ()
else Argu.ProcessExiter (function Argu.ErrorCode.HelpText -> None | _ ->
Some System.ConsoleColor.Red)
let parser =
Argu.ArgumentParser.Create<'T> (
programName = $"{assemblyName}{getExecutableSuffix ()}",
errorHandler = errorHandler
)
parser.ParseCommandLine args
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
[[<RequireQualifiedAccess>]]
type Arguments =
| [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce;
Argu.ArguAttributes.Last>]]
Paths of paths : string list
interface Argu.IArgParserTemplate with
member s.Usage =
match s with
| Paths _ -> nameof Paths
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
╭─[ 94.56ms - return value ]───────────────────────────────────────────────────╮
│ USAGE: dotnet-repl [--help] <paths>... │
│ │
│ PATHS: │
│ │
│ <paths>... Paths │
│ │
│ OPTIONS: │
│ │
│ --help display this list of options. │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
fun () -> parseArgs<Arguments> [[||]] |> ignore
|> _throwsC (fun ex _ ->
printException ex
|> _stringContains "Argu.ArguParseException: ERROR: missing parameter
'<paths>...'."
)
╭─[ 61.14ms - stdout ]─────────────────────────────────────────────────────────╮
│ FSI_0030+it@3-246 │
│ Argu.ArguParseException: ERROR: missing parameter '<paths>...'. │
│ USAGE: dotnet-repl.exe [--help] <paths>... │
│ │
│ PATHS: │
│ │
│ <paths>... Paths │
│ │
│ OPTIONS: │
│ │
│ --help display this list of options. │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline parseAllArgs<'T when 'T :> Argu.IArgParserTemplate> args =
args
|> parseArgs<'T>
|> fun results -> results.GetAllResults ()
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
[[<RequireQualifiedAccess>]]
type Arguments =
| [[<Argu.ArguAttributes.MainCommand; Argu.ArguAttributes.ExactlyOnce;
Argu.ArguAttributes.Last>]]
Paths of paths : string list
interface Argu.IArgParserTemplate with
member s.Usage =
match s with
| Paths _ -> nameof Paths
parseAllArgs<Arguments> [[| "a b"; "c" |]]
|> _assertEqual [[ Arguments.Paths [[ "a b"; "c" ]] ]]
╭─[ 93.75ms - stdout ]─────────────────────────────────────────────────────────╮
│ FSharpList<Arguments> │
│ - paths: [ a b, c ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline parseArgsMap<'T when 'T :> Argu.IArgParserTemplate> args =
args
|> parseAllArgs<'T>
|> List.groupBy CommonFSharp.getUnionCaseName<'T>
|> Map.ofList
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
parseArgsMap<Arguments> [[| "a b"; "c" |]]
|> _assertEqual (
[[ nameof Arguments.Paths, [[ Arguments.Paths [[ "a b"; "c" ]] ]] ]]
|> Map.ofList
)
╭─[ 64.90ms - stdout ]─────────────────────────────────────────────────────────╮
│ FSharpMap<String,FSharpList<Arguments>> │
│ - Key: Paths │
│ Value: FSharpList<Arguments> │
│ - paths: [ a b, c ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook Runtime.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 339928 bytes to Runtime.dib.html
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # Toml (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/tomlyn/0.17.0/lib/net7.0/Tomlyn.dll"
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Common.fs
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldValue : string) (newValue : string) (input :
string) =
input.Replace (oldValue, newValue)
let inline split separator (input : string) =
input.Split separator
let inline spli...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
── fsharp ──────────────────────────────────────────────────────────────────────
let inline (/./) (table: Tomlyn.Model.TomlTable) (key: string) :
Tomlyn.Model.TomlTable =
table.[[key]] :?> Tomlyn.Model.TomlTable
let inline (/../) (table: Tomlyn.Model.TomlTable) (key: string) : 'T seq =
table.[[key]] :?> Tomlyn.Model.TomlArray |> Seq.cast<'T>
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let tomlContent =
"""
[[extension]]
paths = [["/a", "/b"]]
"""
let toml = Tomlyn.Toml.Parse tomlContent
let tomlModel = Tomlyn.Toml.ToModel toml
let paths : string seq = tomlModel /./ "extension" /../ "paths"
paths
|> Seq.toList
|> _assertEqual [[ "/a"; "/b" ]]
╭─[ 140.52ms - stdout ]────────────────────────────────────────────────────────╮
│ [ /a, /b ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook Toml.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 277990 bytes to Toml.dib.html
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Threading.dib
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Networking.dib
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: AsyncSeq.dib
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Async.dib
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Crypto.dib
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Common.dib
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: CommonFSharp.dib
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: FileSystem.dib
00:00:00 #7 [Debug] parseDibCode / output: Fs / file: CommonFSharp.dib
00:00:00 #6 [Debug] parseDibCode / output: Fs / file: Crypto.dib
00:00:00 #9 [Debug] parseDibCode / output: Fs / file: AsyncSeq.dib
00:00:00 #9 [Debug] parseDibCode / output: Fs / file: FileSystem.dib
00:00:00 #3 [Debug] parseDibCode / output: Fs / file: Threading.dib
00:00:00 #3 [Debug] parseDibCode / output: Fs / file: Networking.dib
00:00:00 #5 [Debug] parseDibCode / output: Fs / file: Common.dib
00:00:00 #4 [Debug] parseDibCode / output: Fs / file: Async.dib
00:00:00 #10 [Debug] writeDibCode / output: Fs / path: Runtime.dib
00:00:00 #11 [Debug] parseDibCode / output: Fs / file: Runtime.dib
00:00:00 #12 [Debug] writeDibCode / output: Fs / path: Toml.dib
00:00:00 #13 [Debug] parseDibCode / output: Fs / file: Toml.dib
In [ ]:
{ . "$ScriptDir/../lib/rust/fable/build.ps1" } | Invoke-Block
── pwsh ──────────────────────────────────────────────────────────────────────── . ../../../scripts/nbs_header.ps1 . ../../../scripts/core.ps1 ── pwsh ──────────────────────────────────────────────────────────────────────── dotnet fable --optimize --lang rs --extension .rs ╭─[ 869.65ms - stdout ]────────────────────────────────────────────────────────╮ │ Fable 4.14.0: F# to Rust compiler (status: alpha) │ │ │ │ Thanks to the contributor! @goswinr │ │ Stand with Ukraine! https://standwithukraine.com.ua/ │ │ │ │ Parsing fable-library-rust.fsproj... │ │ Retrieving project options from cache, in case of issues run `dotnet fable │ │ clean` or try `--noCache` option. │ │ Project and references (1 source files) parsed in 177ms │ │ │ │ Skipped compilation because all generated files are up-to-date! │ │ │ ╰──────────────────────────────────────────────────────────────────────────────╯ [NbConvertApp] Converting notebook build.dib.ipynb to html C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future. validate(nb) C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3 return _pygments_highlight( [NbConvertApp] Writing 272479 bytes to build.dib.html
In [ ]:
{ . "$ScriptDir/../apps/spiral/build.ps1" } | Invoke-Block
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # Supervisor (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#r
@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
dard2.1/FSharp.Control.AsyncSeq.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
0/System.Reactive.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
netstandard2.0/System.Reactive.Linq.dll"
#r
@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"
#r
@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li
b/net6.0/System.CommandLine.dll"
#r
@"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.com
mon/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Common.dll"
#r
@"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.cli
ent/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Client.dll"
#r
@"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.common/7.0.0
/lib/net7.0/Microsoft.AspNetCore.SignalR.Common.dll"
#r
@"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client/7.0.0
/lib/net7.0/Microsoft.AspNetCore.SignalR.Client.dll"
#r
@"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client.core/
7.0.0/lib/net7.0/Microsoft.AspNetCore.SignalR.Client.Core.dll"
#r
@"../../../../../../../.nuget/packages/fsharp.json/0.4.1/lib/netstandard2.0/FSha
rp.Json.dll"
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Common.fs
#!import ../../lib/fsharp/CommonFSharp.fs
#!import ../../lib/fsharp/Threading.fs
#!import ../../lib/fsharp/Async.fs
#!import ../../lib/fsharp/AsyncSeq.fs
#!import ../../lib/fsharp/Networking.fs
#!import ../../lib/fsharp/Runtime.fs
#!import ../../lib/fsharp/FileSystem.fs
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldValue : string) (newValue : string) (input :
string) =
input.Replace (oldValue, newValue)
let inline split separator (input : string) =
input.Split separator
let inline spli...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module CommonFSharp =
open Common
/// ## getUnionCaseName
let inline getUnionCaseName<'T> (x: 'T) =
match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
| case, _ -> case.Name
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Threading =
open Common
/// ## newDisposableToken
let inline newDisposableToken (mergeToken:
System.Threading.CancellationToken option) =
let cts = new System.Threading.CancellationTokenSource ()
let cts =
match mergeToken with
| None -> cts
| Some mergeToken ->
System.Threading.CancellationTokenSource.CreateLinkedTokenSource
[[| cts.Token; mergeToken |]]
let disposable = newDisposable cts.Cancel
cts.Token, disposable
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Async =
open Common
/// ## choice
let inline choice asyncs = async {
let e = Event<_> ()
use cts = new System.Threading.CancellationTokenSource ()
let fn =
asyncs
|> Seq.map (fun a -> async {
let! x = a
e.Trigger x
})
|> Async.Parallel
|> Async.Ignore
Async.Start (fn, cts.Token)
let! result = Async.AwaitEvent e.Publish
cts.Cancel ()
return result
}
/// ## map
let inline map fn a = async {
let! x = a
return fn x
}
/// ## catch
let inline catch a =
a
|> Async.Catch
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module AsyncSeq =
open Common
/// ## subscribeEvent
let inline subscribeEvent (event: IEvent<'H, 'A>) map =
let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
'A>(event.AddHandler, event.RemoveHandler)
System.Reactive.Linq.Observable.Select (observable, fun event -> map
event.EventArgs)
|> FSharp.Control.AsyncSeq.ofObservableBuffered
let subscribeToken (token : System.Threading.CancellationToken) =
let tcs = new System.Threading.Tasks.TaskCompletionSource ()
System.Action tcs.SetResult |> token.Register |> ignore
let start = System.DateTime.Now.Ticks
FSharp.Control.AsyncSeq.unfoldAsync
(fun (...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Networking =
open Common
/// ## testPortOpen
let inline testPortOpen port = async {
let! ct = Async.CancellationToken
use client = new System.Net.Sockets.TcpClient ()
try
do! client.ConnectAsync ("127.0.0.1", port, ct) |>
Async.awaitValueTaskUnit
return true
with ex ->
trace Verbose (fun () -> $"testPortOpen / ex: {ex |>
printException}") getLocals
return false
}
let inline testPortOpenTimeout timeout port = async {
let! result =
testPortOpen port
|> Async.runWithTimeoutAsync timeout
return
match result with
| None -> false
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Runtime =
open Common
/// ## isWindows
let isWindows =
fun () ->
System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform
System.Runtime.InteropServices.OSPlatform.Windows
|> memoize
/// ## getExecutableSuffix
let inline getExecutableSuffix () =
if isWindows ()
then ".exe"
else ""
/// ## splitCommand
type private CommandParseStep =
| Start
| Path of quoted: bool
| Arguments
let splitCommand (command: string) =
let rec loop (path, args) chars step =
match chars, step with
| ('"' | '\'') :: tail, _ when path = "" -> loop (pat...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module FileSystem =
open Common
/// ## Operators
module Operators =
let inline (</>) a b =
System.IO.Path.Combine (a, b)
open Operators
/// ## createTempDirectoryName
let inline createTempDirectoryName () =
let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name
System.IO.Path.GetTempPath ()
</> $"!{root}"
</> string (newGuidFromDateTime System.DateTime.Now)
/// ## createTempDirectory
let inline createTempDirectory () =
let tempFolder = createTempDirectoryName ()
let result = System.IO.Directory.CreateDirectory tempFolder
if not result.Exists then
let ge...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
open FileSystem.Operators
open Microsoft.AspNetCore.SignalR.Client
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## sendJson │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline sendJson (port : int) (json : string) = async {
let! portOpen = Networking.testPortOpen port
if portOpen then
try
let connection =
HubConnectionBuilder().WithUrl($"http://127.0.0.1:{port}").Build()
do! connection.StartAsync () |> Async.AwaitTask
let! result = connection.InvokeAsync<string>("ClientToServerMsg",
json) |> Async.AwaitTask
do! connection.StopAsync () |> Async.AwaitTask
trace Debug (fun () -> $"sendJson / port: {port} / json: {json} /
result.Length: {result |> Option.ofObj |> Option.map String.length}") getLocals
return Some result
with ex ->
trace Critical (fun () -> $"sendJson / port: {port} / json: {json} /
ex: {ex |> printException}") getLocals
return None
else
trace Debug (fun () -> "sendJson / error: port not open") getLocals
return None
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## sendObj │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline sendObj port obj =
obj
|> System.Text.Json.JsonSerializer.Serialize
|> sendJson port
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## awaitCompiler │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
type VSCPos = {| line : int; character : int |}
type VSCRange = VSCPos * VSCPos
type RString = VSCRange * string
type TracedError = {| trace : string list; message : string |}
type ClientErrorsRes =
| FatalError of string
| TracedError of TracedError
| PackageErrors of {| uri : string; errors : RString list |}
| TokenizerErrors of {| uri : string; errors : RString list |}
| ParserErrors of {| uri : string; errors : RString list |}
| TypeErrors of {| uri : string; errors : RString list |}
── fsharp ──────────────────────────────────────────────────────────────────────
let inline awaitCompiler port cancellationToken = async {
let! ct =
cancellationToken
|> Option.defaultValue System.Threading.CancellationToken.None
|> Async.mergeCancellationTokenWithDefaultAsync
let cts = new System.Threading.CancellationTokenSource ()
let compiler = MailboxProcessor.Start (fun inbox -> async {
let! availablePort = Networking.getAvailablePort (Some 60) port
if availablePort <> port then
inbox.Post port
else
let repositoryRoot = FileSystem.getSourceDirectory () |>
FileSystem.findParent ".paket" false
let compilerPath =
repositoryRoot </> "deps/The-Spiral-Language/The Spiral Language
2/artifacts/bin/The Spiral Language 2/release"
|> System.IO.Path.GetFullPath
let dllPath = compilerPath </> "Spiral.dll"
let! exitCode, result =
Runtime.executeWithOptionsAsync
{
Command = $@"dotnet ""{dllPath}"" --port {availablePort}
--default-int i32 --default-float f64"
CancellationToken = Some ct
WorkingDirectory = None
OnLine = Some <| fun { Line = line } -> async {
if line |> String.contains $"Server bound to:
http://localhost:{availablePort}" then
do! Networking.waitForPortAccess (Some 500) true
availablePort |> Async.Ignore
let rec loop retry = async {
let getLocals () = $"port: {availablePort} /
retry: {retry} / {getLocals ()}"
try
let pingObj = {| Ping = true |}
let! pingResult = pingObj |> sendObj
availablePort
trace Verbose (fun () -> $"awaitCompiler
/ Ping / result: {pingResult}") getLocals
with ex ->
trace Verbose (fun () -> $"awaitCompiler
/ Ping / ex: {ex |> printException}") getLocals
do! Async.Sleep 10
do! loop (retry + 1)
}
do! loop 0
inbox.Post availablePort
}
}
trace Debug (fun () -> $"awaitCompiler / exitCode: {exitCode} /
result: {result}") getLocals
cts.Cancel ()
}, ct)
let! serverPort = compiler.Receive ()
let connection =
HubConnectionBuilder().WithUrl($"http://127.0.0.1:{serverPort}").Build ()
do! connection.StartAsync () |> Async.AwaitTask
let event = Event<_> ()
let disposable = connection.On<string> ("ServerToClientMsg", event.Trigger)
let stream =
FSharp.Control.AsyncSeq.unfoldAsync
(fun () -> async {
let! msg = event.Publish |> Async.AwaitEvent
return Some (msg |>
FSharp.Json.Json.deserialize<ClientErrorsRes>, ())
})
()
let disposable =
newDisposable (fun () ->
disposable.Dispose ()
connection.StopAsync () |> Async.AwaitTask |> Async.StartImmediate
)
return
serverPort,
stream,
cts.Token,
disposable
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## getFileUri │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline getFileUri (path : string) =
let path =
if Runtime.isWindows () |> not
then path
else $"{path.[[0]] |> System.Char.ToLower}{path.[[1..]]}" |>
String.replace "\\" "/"
$"file:///{path |> String.trimStart [[| '/' |]]}"
── fsharp ──────────────────────────────────────────────────────────────────────
let inline getFilePathFromUri uri =
match System.Uri.TryCreate (uri, System.UriKind.Absolute) with
| true, uri -> uri.AbsolutePath |> System.IO.Path.GetFullPath
| _ -> failwith "invalid uri"
── fsharp ──────────────────────────────────────────────────────────────────────
let inline getCompilerPort () =
13805
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## serialize_obj │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let serializeObj obj =
obj
|> FSharp.Json.Json.serialize
|> String.replace "\\\\" "\\"
|> String.replace "\\r\\n" "\n"
|> String.replace "\\n" "\n"
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## buildFile │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline buildFile timeout port cancellationToken path = async {
let fullPath = path |> System.IO.Path.GetFullPath
let fileDir = fullPath |> System.IO.Path.GetDirectoryName
let fileName = fullPath |> System.IO.Path.GetFileNameWithoutExtension
let! code = fullPath |> FileSystem.readAllTextAsync
let eventFilter = function
| FileSystem.FileSystemChange.Changed (path, _) when path =
$"{fileName}.fsx" -> true
| _ -> false
let stream, disposable = fileDir |> FileSystem.watchDirectory eventFilter
use _ = disposable
let token, disposable = Threading.newDisposableToken cancellationToken
use _ = disposable
let! serverPort, errors, ct, disposable = awaitCompiler port (Some token)
use _ = disposable
let fsxContentSeq =
stream
|> FSharp.Control.AsyncSeq.choose (function
| _, (FileSystem.FileSystemChange.Changed (path, Some content) as
event)
when event |> eventFilter
->
Some content
| _ -> None
)
|> FSharp.Control.AsyncSeq.map (fun content ->
Some (content |> String.replace "\r\n" "\n"), None
)
let inline printErrorData (data : {| uri : string; errors : RString list |})
=
let fileName = data.uri |> System.IO.Path.GetFileName
let errors =
data.errors
|> List.map snd
|> String.concat "\n"
$"{fileName}:\n{errors}"
let errorsSeq =
errors
|> FSharp.Control.AsyncSeq.choose (fun error ->
match error with
| FatalError message ->
Some (message, error)
| TracedError data ->
Some (data.message, error)
| PackageErrors data when data.errors |> List.isEmpty |> not ->
Some (data |> printErrorData, error)
| TokenizerErrors data when data.errors |> List.isEmpty |> not ->
Some (data |> printErrorData, error)
| ParserErrors data when data.errors |> List.isEmpty |> not ->
Some (data |> printErrorData, error)
| TypeErrors data when data.errors |> List.isEmpty |> not ->
Some (data |> printErrorData, error)
| _ -> None
)
|> FSharp.Control.AsyncSeq.map (fun (message, error) ->
None, Some (message, error)
)
let timerSeq =
1000
|> FSharp.Control.AsyncSeq.intervalMs
|> FSharp.Control.AsyncSeq.map (fun _ -> None, None)
let outputSeq =
[[ fsxContentSeq; errorsSeq; timerSeq ]]
|> FSharp.Control.AsyncSeq.mergeAll
let! outputChild =
((None, [[]], 0), outputSeq)
||> FSharp.Control.AsyncSeq.scan (
fun (fsxContentResult, errors, typeErrorCount) (fsxContent, error)
->
match fsxContent, error with
| Some fsxContent, None -> Some fsxContent, errors,
typeErrorCount
| None, Some (_, FatalError "File main has a type error
somewhere in its path.") ->
fsxContentResult, errors, typeErrorCount + 1
| None, Some error -> fsxContentResult, error :: errors,
typeErrorCount
| None, None when typeErrorCount >= 1 ->
fsxContentResult, errors, typeErrorCount + 1
| _ -> fsxContentResult, errors, typeErrorCount
)
|> FSharp.Control.AsyncSeq.takeWhileInclusive (fun (fsxContent, errors,
typeErrorCount) ->
trace Debug (fun () -> $"buildFile / takeWhileInclusive /
fsxContent: {fsxContent |> Option.defaultValue System.String.Empty |>
String.ellipsis 750} / errors: {errors |> serializeObj} / typeErrorCount:
{typeErrorCount}") getLocals
match fsxContent, errors with
| None, [[]] when typeErrorCount > 2 -> false
| None, [[]] -> true
| _ -> false
)
|> FSharp.Control.AsyncSeq.tryLast
|> Async.withCancellationToken ct
|> Async.catch
|> Async.runWithTimeoutAsync timeout
|> Async.StartChild
let fileOpenObj = {| FileOpen = {| uri = fullPath |> getFileUri; spiText =
code |} |}
let! _fileOpenResult = fileOpenObj |> sendObj serverPort
do! Async.Sleep 60
let buildFileObj = {| BuildFile = {| uri = fullPath |> getFileUri; backend =
"Fsharp" |} |}
let! _buildFileResult = buildFileObj |> sendObj serverPort
return!
outputChild
|> Async.map (function
| Some (Ok (Some (message, errors, _))) ->
message, errors |> List.distinct |> List.rev
| Some (Error ex) ->
trace Critical (fun () -> $"buildFile / error: {ex |>
serializeObj}") getLocals
None, [[]]
| _ -> None, [[]]
)
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## persistCode │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline persistCode code = async {
let tempDir = FileSystem.createTempDirectory ()
let mainPath = tempDir </> "main.spi"
do! code |> FileSystem.writeAllTextAsync mainPath
let repositoryRoot = FileSystem.getSourceDirectory () |>
FileSystem.findParent ".paket" false
let spiprojPath = tempDir </> "package.spiproj"
let spiprojCode =
$"""packageDir: {repositoryRoot </> "lib"}
packages:
|core-
spiral-
modules:
main
"""
do! spiprojCode |> FileSystem.writeAllTextAsync spiprojPath
let disposable = newDisposable (fun () ->
()
// tempDir |> FileSystem.deleteDirectoryAsync |> Async.Ignore |>
Async.RunSynchronously
)
return mainPath, disposable
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## buildCode │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline buildCode timeout cancellationToken code = async {
let! mainPath, disposable = persistCode code
use _ = disposable
let port = getCompilerPort ()
return! mainPath |> buildFile timeout port cancellationToken
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let buildCode timeout cancellationToken code = buildCode timeout
cancellationToken code
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""inl app () =
console.write_line "text"
1i32
inl main () =
app
|> dyn
|> ignore
"""
|> buildCode 15000 None
|> Async.runWithTimeout 15000
|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)
|> _assertEqual (
Some (
Some """let rec closure0 () () : int32 =
let v0 : string = "text"
System.Console.WriteLine v0
1
let v0 : (unit -> int32) = closure0()
()
""",
[[]]
)
)
╭─[ 7.61s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:00 #2 [Debug] executeAsync / options: { Command = │
│ "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral │
│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port │
│ 13805 --default-int i32 --default-float f64" │
│ WorkingDirectory = None │
│ CancellationToken = Some System.Threading.CancellationToken │
│ OnLine = Some <fun:buildCode@3-1005> } │
│ 00:00:01 #3 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral │
│ 00:00:01 #4 [Verbose] > dll_path: │
│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language │
│ 2\artifacts\bin\The Spiral Language 2\release │
│ 00:00:01 #5 [Debug] runWithTimeoutAsync / timeout: 500 │
│ 00:00:01 #6 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │
│ 00:00:02 #7 [Verbose] > Starting the Spiral Server. It is bound to: │
│ http://localhost:13805 │
│ 00:00:02 #8 [Debug] runWithTimeoutAsync / timeout: 500 │
│ 00:00:03 #9 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │
│ result.Length: │
│ 00:00:03 #10 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │
│ 13805 / retry: 0 │
│ 00:00:03 #11 [Verbose] > Server bound to: http://localhost:13805 │
│ 00:00:03 #12 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:03 #13 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:03 #14 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"inl app () =\n console.write_line │
│ \u0022text\u0022\n 1i32\n\ninl main () =\n app\n |\u003E dyn\n │
│ |\u003E │
│ ignore\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/!dotnet-repl/2024 │
│ 0321-0032-4483-8318-8194dc94fd7d/main.spi"}} / result.Length: │
│ 00:00:03 #15 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │
│ /Temp/!dotnet-repl/20240321-0032-4483-8318-8194dc94fd7d/main.spi"}} / │
│ result.Length: │
│ 00:00:04 #16 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:05 #17 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:05 #18 [Verbose] > Building │
│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0032-4483-8318-8194d │
│ c94fd7d\main.spi │
│ 00:00:06 #19 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:07 #20 [Debug] buildFile / takeWhileInclusive / fsxContent: let rec │
│ closure0 () () : int32 = │
│ let v0 : string = "text" │
│ System.Console.WriteLine v0 │
│ 1 │
│ let v0 : (unit -> int32) = closure0() │
│ () │
│ / errors: [] / typeErrorCount: 0 │
│ 00:00:07 #21 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │
│ Value: - FSharpOption<String> │
│ Value: let rec closure0 () () : int32 = │
│ let v0 : string = "text" │
│ System.Console.WriteLine v0 │
│ 1 │
│ let v0 : (unit -> int32) = closure0() │
│ () │
│ │
│ - [ ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
""
|> buildCode 10000 None
|> Async.runWithTimeout 10000
|> _assertEqual None
╭─[ 10.28s - stdout ]──────────────────────────────────────────────────────────╮
│ 00:00:07 #22 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:07 #23 [Debug] executeAsync / options: { Command = │
│ "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral │
│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port │
│ 13805 --default-int i32 --default-float f64" │
│ WorkingDirectory = None │
│ CancellationToken = Some System.Threading.CancellationToken │
│ OnLine = Some <fun:buildCode@3-1005> } │
│ 00:00:08 #24 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral │
│ 00:00:08 #25 [Verbose] > dll_path: │
│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language │
│ 2\artifacts\bin\The Spiral Language 2\release │
│ 00:00:08 #26 [Verbose] > Starting the Spiral Server. It is bound to: │
│ http://localhost:13805 │
│ 00:00:08 #27 [Debug] runWithTimeoutAsync / timeout: 500 │
│ 00:00:08 #28 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │
│ 00:00:08 #29 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │
│ result.Length: │
│ 00:00:08 #30 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │
│ 13805 / retry: 0 │
│ 00:00:08 #31 [Verbose] > Server bound to: http://localhost:13805 │
│ 00:00:08 #32 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:08 #33 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:08 #34 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"","uri":"file:///c:/Users/i574n/AppData/Local/Temp/! │
│ dotnet-repl/20240321-0032-5247-4791-43ef948ba20a/main.spi"}} / │
│ result.Length: │
│ 00:00:08 #35 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │
│ /Temp/!dotnet-repl/20240321-0032-5247-4791-43ef948ba20a/main.spi"}} / │
│ result.Length: │
│ 00:00:09 #36 [Verbose] > Building │
│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0032-5247-4791-43ef9 │
│ 48ba20a\main.spi │
│ 00:00:09 #37 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:10 #38 [Verbose] > Cannot find `main` in file main. │
│ 00:00:10 #39 [Verbose] > Build skipped for │
│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0032-5247-4791-43ef9 │
│ 48ba20a\main.spi │
│ 00:00:10 #40 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:11 #41 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:12 #42 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:13 #43 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:14 #44 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:15 #45 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:16 #46 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:17 #47 [Debug] runWithTimeoutAsync / timeout: 10000 │
│ 00:00:17 #48 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ <null> │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"inl app () =
0i32
inl a = 1
inl main () =
app
|> dyn
|> ignore
"
|> buildCode 10000 None
|> Async.runWithTimeout 10000
|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)
|> _assertEqual (
Some (
None,
[[ "main.spi:
Global inl/let statements should all return functions known at parse time." ]]
)
)
╭─[ 1.95s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:17 #50 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:17 #51 [Debug] executeAsync / options: { Command = │
│ "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral │
│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port │
│ 13805 --default-int i32 --default-float f64" │
│ WorkingDirectory = None │
│ CancellationToken = Some System.Threading.CancellationToken │
│ OnLine = Some <fun:buildCode@3-1005> } │
│ 00:00:18 #52 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral │
│ 00:00:18 #53 [Verbose] > dll_path: │
│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language │
│ 2\artifacts\bin\The Spiral Language 2\release │
│ 00:00:18 #54 [Verbose] > Starting the Spiral Server. It is bound to: │
│ http://localhost:13805 │
│ 00:00:18 #57 [Debug] runWithTimeoutAsync / timeout: 500 │
│ 00:00:18 #58 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │
│ 00:00:18 #59 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │
│ result.Length: │
│ 00:00:18 #60 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │
│ 13805 / retry: 0 │
│ 00:00:18 #61 [Verbose] > Server bound to: http://localhost:13805 │
│ 00:00:18 #62 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:18 #63 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:18 #64 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"inl app () =\n 0i32\n\ninl a = 1\n\ninl main () │
│ =\n app\n |\u003E dyn\n |\u003E │
│ ignore\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/!dotnet-repl/2024 │
│ 0321-0033-0280-8002-8f7c06faaa89/main.spi"}} / result.Length: │
│ 00:00:19 #65 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │
│ /Temp/!dotnet-repl/20240321-0033-0280-8002-8f7c06faaa89/main.spi"}} / │
│ result.Length: │
│ 00:00:19 #66 [Verbose] > Building │
│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0033-0280-8002-8f7c0 │
│ 6faaa89\main.spi │
│ 00:00:19 #67 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [ │
│ [ │
│ "main.spi: │
│ Global inl/let statements should all return functions known at parse time.", │
│ { │
│ "ParserErrors": { │
│ "errors": [ │
│ [ │
│ [ │
│ { │
│ "character": 0, │
│ "line": 3 │
│ }, │
│ { │
│ "character": 9, │
│ "line": 3 │
│ } │
│ ], │
│ "Global inl/let statements should all return functions known at │
│ parse time." │
│ ] │
│ ], │
│ "uri": │
│ "file:///c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0033-0280-8 │
│ 002-8f7c06faaa89\main.spi" │
│ } │
│ } │
│ ] │
│ ] / typeErrorCount: 0 │
│ 00:00:19 #68 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │
│ Value: - <null> │
│ - [ main.spi: │
│ Global inl/let statements should all return functions known at parse time. ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""inl main () =
1i32 / 0i32
"""
|> buildCode 10000 None
|> Async.runWithTimeout 10000
|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)
|> _assertEqual (
Some (
None,
[[ "An attempt to divide by zero has been detected at compile time." ]]
)
)
╭─[ 3.39s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:19 #70 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:19 #71 [Debug] executeAsync / options: { Command = │
│ "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral │
│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port │
│ 13805 --default-int i32 --default-float f64" │
│ WorkingDirectory = None │
│ CancellationToken = Some System.Threading.CancellationToken │
│ OnLine = Some <fun:buildCode@3-1005> } │
│ 00:00:20 #72 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral │
│ 00:00:20 #73 [Verbose] > dll_path: │
│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language │
│ 2\artifacts\bin\The Spiral Language 2\release │
│ 00:00:20 #74 [Verbose] > Starting the Spiral Server. It is bound to: │
│ http://localhost:13805 │
│ 00:00:20 #76 [Debug] runWithTimeoutAsync / timeout: 500 │
│ 00:00:20 #77 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │
│ 00:00:21 #78 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │
│ result.Length: │
│ 00:00:21 #79 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │
│ 13805 / retry: 0 │
│ 00:00:21 #80 [Verbose] > Server bound to: http://localhost:13805 │
│ 00:00:21 #81 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:21 #82 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:21 #83 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"inl main () =\n 1i32 / │
│ 0i32\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/!dotnet-repl/202403 │
│ 21-0033-0479-7963-7dd502020818/main.spi"}} / result.Length: │
│ 00:00:21 #84 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │
│ /Temp/!dotnet-repl/20240321-0033-0479-7963-7dd502020818/main.spi"}} / │
│ result.Length: │
│ 00:00:21 #85 [Verbose] > Building │
│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0033-0479-7963-7dd50 │
│ 2020818\main.spi │
│ 00:00:22 #87 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:22 #89 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [ │
│ [ │
│ "An attempt to divide by zero has been detected at compile time.", │
│ { │
│ "TracedError": { │
│ "message": "An attempt to divide by zero has been detected at │
│ compile time.", │
│ "trace": [ │
│ "Error trace on line: 1, column: 10 in module: │
│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0033-0479-7963-7dd50 │
│ 2020818\main.spi. │
│ inl main () = │
│ ^ │
│ ", │
│ "Error trace on line: 2, column: 5 in module: │
│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0033-0479-7963-7dd50 │
│ 2020818\main.spi. │
│ 1i32 / 0i32 │
│ ^ │
│ " │
│ ] │
│ } │
│ } │
│ ] │
│ ] / typeErrorCount: 0 │
│ 00:00:22 #90 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │
│ Value: - <null> │
│ - [ An attempt to divide by zero has been detected at compile time. ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""inl main () =
1 + ""
"""
|> buildCode 10000 None
|> Async.runWithTimeout 10000
|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)
|> _assertEqual (
Some (
None,
[[
"main.spi:
Constraint satisfaction error.
Got: string
Fails to satisfy: number"
]]
)
)
╭─[ 2.76s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:23 #91 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:23 #92 [Debug] executeAsync / options: { Command = │
│ "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral │
│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port │
│ 13805 --default-int i32 --default-float f64" │
│ WorkingDirectory = None │
│ CancellationToken = Some System.Threading.CancellationToken │
│ OnLine = Some <fun:buildCode@3-1005> } │
│ 00:00:23 #93 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral │
│ 00:00:23 #94 [Verbose] > dll_path: │
│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language │
│ 2\artifacts\bin\The Spiral Language 2\release │
│ 00:00:23 #96 [Verbose] > Starting the Spiral Server. It is bound to: │
│ http://localhost:13805 │
│ 00:00:24 #97 [Debug] runWithTimeoutAsync / timeout: 500 │
│ 00:00:24 #98 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │
│ 00:00:24 #99 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │
│ result.Length: │
│ 00:00:24 #100 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │
│ 13805 / retry: 0 │
│ 00:00:24 #101 [Verbose] > Server bound to: http://localhost:13805 │
│ 00:00:24 #102 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [] / typeErrorCount: 0 │
│ 00:00:24 #103 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [] / typeErrorCount: 0 │
│ 00:00:24 #104 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"inl main () =\n 1 \u002B │
│ \u0022\u0022\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/!dotnet-rep │
│ l/20240321-0033-0819-1974-1abd55e7b220/main.spi"}} / result.Length: │
│ 00:00:24 #105 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │
│ /Temp/!dotnet-repl/20240321-0033-0819-1974-1abd55e7b220/main.spi"}} / │
│ result.Length: │
│ 00:00:24 #106 [Verbose] > Building │
│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0033-0819-1974-1abd5 │
│ 5e7b220\main.spi │
│ 00:00:25 #108 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [] / typeErrorCount: 0 │
│ 00:00:25 #109 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [] / typeErrorCount: 1 │
│ 00:00:25 #110 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [ │
│ [ │
│ "main.spi: │
│ Constraint satisfaction error. │
│ Got: string │
│ Fails to satisfy: number", │
│ { │
│ "TypeErrors": { │
│ "errors": [ │
│ [ │
│ [ │
│ { │
│ "character": 8, │
│ "line": 1 │
│ }, │
│ { │
│ "character": 10, │
│ "line": 1 │
│ } │
│ ], │
│ "Constraint satisfaction error. │
│ Got: string │
│ Fails to satisfy: number" │
│ ] │
│ ], │
│ "uri": │
│ "file:///c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0033-0819-1 │
│ 974-1abd55e7b220\main.spi" │
│ } │
│ } │
│ ] │
│ ] / typeErrorCount: 1 │
│ 00:00:25 #111 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │
│ Value: - <null> │
│ - [ main.spi: │
│ Constraint satisfaction error. │
│ Got: string │
│ Fails to satisfy: number ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""inl main () =
x + y
"""
|> buildCode 10000 None
|> Async.runWithTimeout 10000
|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)
|> _assertEqual (
Some (
None,
[[
"main.spi:
Unbound variable: x.
Unbound variable: y."
]]
)
)
╭─[ 2.75s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:26 #113 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:26 #114 [Debug] executeAsync / options: { Command = │
│ "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral │
│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port │
│ 13805 --default-int i32 --default-float f64" │
│ WorkingDirectory = None │
│ CancellationToken = Some System.Threading.CancellationToken │
│ OnLine = Some <fun:buildCode@3-1005> } │
│ 00:00:26 #115 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral │
│ 00:00:26 #116 [Verbose] > dll_path: │
│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language │
│ 2\artifacts\bin\The Spiral Language 2\release │
│ 00:00:26 #117 [Verbose] > Starting the Spiral Server. It is bound to: │
│ http://localhost:13805 │
│ 00:00:26 #119 [Debug] runWithTimeoutAsync / timeout: 500 │
│ 00:00:26 #120 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │
│ 00:00:27 #121 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │
│ result.Length: │
│ 00:00:27 #122 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │
│ 13805 / retry: 0 │
│ 00:00:27 #123 [Verbose] > Server bound to: http://localhost:13805 │
│ 00:00:27 #124 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [] / typeErrorCount: 0 │
│ 00:00:27 #125 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [] / typeErrorCount: 0 │
│ 00:00:27 #126 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"inl main () =\n x \u002B │
│ y\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/!dotnet-repl/20240321- │
│ 0033-1094-9488-9a638b8ddc3d/main.spi"}} / result.Length: │
│ 00:00:27 #127 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │
│ /Temp/!dotnet-repl/20240321-0033-1094-9488-9a638b8ddc3d/main.spi"}} / │
│ result.Length: │
│ 00:00:27 #128 [Verbose] > Building │
│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0033-1094-9488-9a638 │
│ b8ddc3d\main.spi │
│ 00:00:28 #130 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [] / typeErrorCount: 0 │
│ 00:00:28 #131 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [] / typeErrorCount: 1 │
│ 00:00:28 #132 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [ │
│ [ │
│ "main.spi: │
│ Unbound variable: x. │
│ Unbound variable: y.", │
│ { │
│ "TypeErrors": { │
│ "errors": [ │
│ [ │
│ [ │
│ { │
│ "character": 4, │
│ "line": 1 │
│ }, │
│ { │
│ "character": 5, │
│ "line": 1 │
│ } │
│ ], │
│ "Unbound variable: x." │
│ ], │
│ [ │
│ [ │
│ { │
│ "character": 8, │
│ "line": 1 │
│ }, │
│ { │
│ "character": 9, │
│ "line": 1 │
│ } │
│ ], │
│ "Unbound variable: y." │
│ ] │
│ ], │
│ "uri": │
│ "file:///c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0033-1094-9 │
│ 488-9a638b8ddc3d\main.spi" │
│ } │
│ } │
│ ] │
│ ] / typeErrorCount: 1 │
│ 00:00:28 #133 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │
│ Value: - <null> │
│ - [ main.spi: │
│ Unbound variable: x. │
│ Unbound variable: y. ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""union a =
| B
| c
inl main () =
()
"""
|> buildCode 10000 None
|> Async.runWithTimeout 10000
|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)
|> _assertEqual (
Some (
None,
[[ "main.spi:
Expected: uppercase variable" ]]
)
)
╭─[ 1.94s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:28 #135 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:28 #136 [Debug] executeAsync / options: { Command = │
│ "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral │
│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port │
│ 13805 --default-int i32 --default-float f64" │
│ WorkingDirectory = None │
│ CancellationToken = Some System.Threading.CancellationToken │
│ OnLine = Some <fun:buildCode@3-1005> } │
│ 00:00:29 #137 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral │
│ 00:00:29 #138 [Verbose] > dll_path: │
│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language │
│ 2\artifacts\bin\The Spiral Language 2\release │
│ 00:00:29 #139 [Verbose] > Starting the Spiral Server. It is bound to: │
│ http://localhost:13805 │
│ 00:00:29 #140 [Debug] runWithTimeoutAsync / timeout: 500 │
│ 00:00:29 #141 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │
│ 00:00:29 #143 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │
│ result.Length: │
│ 00:00:29 #144 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │
│ 13805 / retry: 0 │
│ 00:00:29 #145 [Verbose] > Server bound to: http://localhost:13805 │
│ 00:00:29 #146 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [] / typeErrorCount: 0 │
│ 00:00:29 #147 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [] / typeErrorCount: 0 │
│ 00:00:30 #148 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"union a =\n | B\n | c\n\ninl main () =\n │
│ ()\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/!dotnet-repl/20240321 │
│ -0033-1377-7775-7a8994c86825/main.spi"}} / result.Length: │
│ 00:00:30 #149 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │
│ /Temp/!dotnet-repl/20240321-0033-1377-7775-7a8994c86825/main.spi"}} / │
│ result.Length: │
│ 00:00:30 #150 [Verbose] > Building │
│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0033-1377-7775-7a899 │
│ 4c86825\main.spi │
│ 00:00:30 #151 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [ │
│ [ │
│ "main.spi: │
│ Expected: uppercase variable", │
│ { │
│ "ParserErrors": { │
│ "errors": [ │
│ [ │
│ [ │
│ { │
│ "character": 6, │
│ "line": 2 │
│ }, │
│ { │
│ "character": 7, │
│ "line": 2 │
│ } │
│ ], │
│ "Expected: uppercase variable" │
│ ] │
│ ], │
│ "uri": │
│ "file:///c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0033-1377-7 │
│ 775-7a8994c86825\main.spi" │
│ } │
│ } │
│ ] │
│ ] / typeErrorCount: 0 │
│ 00:00:30 #152 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │
│ Value: - <null> │
│ - [ main.spi: │
│ Expected: uppercase variable ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""
/// abc
inl main () =
()
"""
|> buildCode 10000 None
|> Async.runWithTimeout 10000
|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)
|> _assertEqual (
Some (
None,
[[ "main.spi:
Expected: whitespace" ]]
)
)
╭─[ 2.01s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:30 #153 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:30 #155 [Debug] executeAsync / options: { Command = │
│ "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral │
│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port │
│ 13805 --default-int i32 --default-float f64" │
│ WorkingDirectory = None │
│ CancellationToken = Some System.Threading.CancellationToken │
│ OnLine = Some <fun:buildCode@3-1005> } │
│ 00:00:31 #156 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral │
│ 00:00:31 #157 [Verbose] > dll_path: │
│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language │
│ 2\artifacts\bin\The Spiral Language 2\release │
│ 00:00:31 #158 [Verbose] > Starting the Spiral Server. It is bound to: │
│ http://localhost:13805 │
│ 00:00:31 #159 [Debug] runWithTimeoutAsync / timeout: 500 │
│ 00:00:31 #160 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │
│ 00:00:32 #162 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │
│ result.Length: │
│ 00:00:32 #163 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │
│ 13805 / retry: 0 │
│ 00:00:32 #164 [Verbose] > Server bound to: http://localhost:13805 │
│ 00:00:32 #165 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [] / typeErrorCount: 0 │
│ 00:00:32 #166 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [] / typeErrorCount: 0 │
│ 00:00:32 #167 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"\n/// abc\ninl main () =\n │
│ ()\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/!dotnet-repl/20240321 │
│ -0033-1573-7355-7dda9ce61096/main.spi"}} / result.Length: │
│ 00:00:32 #168 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │
│ /Temp/!dotnet-repl/20240321-0033-1573-7355-7dda9ce61096/main.spi"}} / │
│ result.Length: │
│ 00:00:32 #169 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [ │
│ [ │
│ "main.spi: │
│ Expected: whitespace", │
│ { │
│ "TokenizerErrors": { │
│ "errors": [ │
│ [ │
│ [ │
│ { │
│ "character": 2, │
│ "line": 1 │
│ }, │
│ { │
│ "character": 3, │
│ "line": 1 │
│ } │
│ ], │
│ "Expected: whitespace" │
│ ] │
│ ], │
│ "uri": │
│ "file:///c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0033-1573-7 │
│ 355-7dda9ce61096\main.spi" │
│ } │
│ } │
│ ] │
│ ] / typeErrorCount: 0 │
│ 00:00:32 #170 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │
│ Value: - <null> │
│ - [ main.spi: │
│ Expected: whitespace ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""
inl main () =
real
inl real_unbox forall a. (obj : a) : a =
typecase obj with
| _ => obj
real_unbox ()
()
"""
|> buildCode 10000 None
|> Async.runWithTimeout 10000
|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)
|> _assertEqual (
Some (
None,
[[ "Cannot apply a forall with a term." ]]
)
)
╭─[ 3.42s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:32 #171 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:32 #173 [Debug] executeAsync / options: { Command = │
│ "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral │
│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port │
│ 13805 --default-int i32 --default-float f64" │
│ WorkingDirectory = None │
│ CancellationToken = Some System.Threading.CancellationToken │
│ OnLine = Some <fun:buildCode@3-1005> } │
│ 00:00:33 #174 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral │
│ 00:00:33 #175 [Verbose] > dll_path: │
│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language │
│ 2\artifacts\bin\The Spiral Language 2\release │
│ 00:00:33 #176 [Verbose] > Starting the Spiral Server. It is bound to: │
│ http://localhost:13805 │
│ 00:00:33 #177 [Debug] runWithTimeoutAsync / timeout: 500 │
│ 00:00:33 #178 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │
│ 00:00:34 #180 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │
│ result.Length: │
│ 00:00:34 #181 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │
│ 13805 / retry: 0 │
│ 00:00:34 #182 [Verbose] > Server bound to: http://localhost:13805 │
│ 00:00:34 #183 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [] / typeErrorCount: 0 │
│ 00:00:34 #184 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [] / typeErrorCount: 0 │
│ 00:00:34 #185 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"\ninl main () =\n real\n inl real_unbox │
│ forall a. (obj : a) : a =\n typecase obj with\n | _ │
│ =\u003E obj\n real_unbox ()\n │
│ ()\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/!dotnet-repl/20240321 │
│ -0033-1779-7960-75c830e475ab/main.spi"}} / result.Length: │
│ 00:00:34 #186 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │
│ /Temp/!dotnet-repl/20240321-0033-1779-7960-75c830e475ab/main.spi"}} / │
│ result.Length: │
│ 00:00:34 #187 [Verbose] > Building │
│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0033-1779-7960-75c83 │
│ 0e475ab\main.spi │
│ 00:00:35 #189 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [] / typeErrorCount: 0 │
│ 00:00:36 #191 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [ │
│ [ │
│ "Cannot apply a forall with a term.", │
│ { │
│ "TracedError": { │
│ "message": "Cannot apply a forall with a term.", │
│ "trace": [ │
│ "Error trace on line: 2, column: 10 in module: │
│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0033-1779-7960-75c83 │
│ 0e475ab\main.spi. │
│ inl main () = │
│ ^ │
│ ", │
│ "Error trace on line: 4, column: 9 in module: │
│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0033-1779-7960-75c83 │
│ 0e475ab\main.spi. │
│ inl real_unbox forall a. (obj : a) : a = │
│ ^ │
│ ", │
│ "Error trace on line: 7, column: 9 in module: │
│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0033-1779-7960-75c83 │
│ 0e475ab\main.spi. │
│ real_unbox () │
│ ^ │
│ " │
│ ] │
│ } │
│ } │
│ ] │
│ ] / typeErrorCount: 0 │
│ 00:00:36 #192 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │
│ Value: - <null> │
│ - [ Cannot apply a forall with a term. ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""
inl main () =
real
inl real_unbox forall a. (obj : a) : a =
typecase obj with
| _ => obj
real_unbox `i32 1
"""
|> buildCode 10000 None
|> Async.runWithTimeout 10000
|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)
|> _assertEqual (
Some (
None,
[[ "The main function should not have a forall." ]]
)
)
╭─[ 2.96s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:36 #193 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:36 #194 [Debug] executeAsync / options: { Command = │
│ "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral │
│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port │
│ 13805 --default-int i32 --default-float f64" │
│ WorkingDirectory = None │
│ CancellationToken = Some System.Threading.CancellationToken │
│ OnLine = Some <fun:buildCode@3-1005> } │
│ 00:00:36 #195 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral │
│ 00:00:36 #196 [Verbose] > dll_path: │
│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language │
│ 2\artifacts\bin\The Spiral Language 2\release │
│ 00:00:37 #198 [Verbose] > Starting the Spiral Server. It is bound to: │
│ http://localhost:13805 │
│ 00:00:37 #199 [Debug] runWithTimeoutAsync / timeout: 500 │
│ 00:00:37 #200 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │
│ result.Length: │
│ 00:00:37 #201 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │
│ 13805 / retry: 0 │
│ 00:00:37 #202 [Verbose] > Server bound to: http://localhost:13805 │
│ 00:00:37 #203 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [] / typeErrorCount: 0 │
│ 00:00:37 #204 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [] / typeErrorCount: 0 │
│ 00:00:37 #205 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"\ninl main () =\n real\n inl real_unbox │
│ forall a. (obj : a) : a =\n typecase obj with\n | _ │
│ =\u003E obj\n real_unbox \u0060i32 │
│ 1\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/!dotnet-repl/20240321- │
│ 0033-2127-2751-20fa0e2ee879/main.spi"}} / result.Length: │
│ 00:00:37 #206 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │
│ /Temp/!dotnet-repl/20240321-0033-2127-2751-20fa0e2ee879/main.spi"}} / │
│ result.Length: │
│ 00:00:37 #207 [Verbose] > Building │
│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0033-2127-2751-20fa0 │
│ e2ee879\main.spi │
│ 00:00:38 #209 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [] / typeErrorCount: 0 │
│ 00:00:39 #211 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [ │
│ [ │
│ "The main function should not have a forall.", │
│ { │
│ "TracedError": { │
│ "message": "The main function should not have a forall.", │
│ "trace": [] │
│ } │
│ } │
│ ] │
│ ] / typeErrorCount: 0 │
│ 00:00:39 #212 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │
│ Value: - <null> │
│ - [ The main function should not have a forall. ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""
inl init_series start end inc =
inl total : f64 = conv ((end - start) / inc) + 1
listm.init total (conv >> (*) inc >> (+) start) : list f64
type integration = (f64 -> f64) -> f64 -> f64 -> f64
inl integral dt : integration =
fun f a b =>
init_series (a + dt / 2) (b - dt / 2) dt
|> listm.map (f >> (*) dt)
|> listm.fold (+) 0
inl main () =
integral 0.1 (fun x => x ** 2) 0 1
"""
|> buildCode 10000 None
|> Async.runWithTimeout 10000
|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)
|> _assertEqual (
Some (
Some "0.3325000000000001\n",
[[]]
)
)
╭─[ 3.10s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:39 #213 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:39 #214 [Debug] executeAsync / options: { Command = │
│ "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral │
│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port │
│ 13805 --default-int i32 --default-float f64" │
│ WorkingDirectory = None │
│ CancellationToken = Some System.Threading.CancellationToken │
│ OnLine = Some <fun:buildCode@3-1005> } │
│ 00:00:39 #215 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral │
│ 00:00:39 #216 [Verbose] > dll_path: │
│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language │
│ 2\artifacts\bin\The Spiral Language 2\release │
│ 00:00:40 #218 [Verbose] > Starting the Spiral Server. It is bound to: │
│ http://localhost:13805 │
│ 00:00:40 #219 [Debug] runWithTimeoutAsync / timeout: 500 │
│ 00:00:40 #220 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │
│ 00:00:40 #221 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │
│ result.Length: │
│ 00:00:40 #222 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │
│ 13805 / retry: 0 │
│ 00:00:40 #223 [Verbose] > Server bound to: http://localhost:13805 │
│ 00:00:40 #224 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [] / typeErrorCount: 0 │
│ 00:00:40 #225 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [] / typeErrorCount: 0 │
│ 00:00:40 #226 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"\ninl init_series start end inc =\n inl total : │
│ f64 = conv ((end - start) / inc) \u002B 1\n listm.init total (conv │
│ \u003E\u003E (*) inc \u003E\u003E (\u002B) start) : list f64\n\ntype │
│ integration = (f64 -\u003E f64) -\u003E f64 -\u003E f64 -\u003E f64\n\ninl │
│ integral dt : integration =\n fun f a b =\u003E\n init_series (a │
│ \u002B dt / 2) (b - dt / 2) dt\n |\u003E listm.map (f \u003E\u003E │
│ (*) dt)\n |\u003E listm.fold (\u002B) 0\n\ninl main () =\n │
│ integral 0.1 (fun x =\u003E x ** 2) 0 │
│ 1\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/!dotnet-repl/20240321- │
│ 0033-2423-2354-2a9ec190d163/main.spi"}} / result.Length: │
│ 00:00:40 #227 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │
│ /Temp/!dotnet-repl/20240321-0033-2423-2354-2a9ec190d163/main.spi"}} / │
│ result.Length: │
│ 00:00:40 #228 [Verbose] > Building │
│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0033-2423-2354-2a9ec │
│ 190d163\main.spi │
│ 00:00:41 #230 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [] / typeErrorCount: 0 │
│ 00:00:42 #232 [Debug] buildFile / takeWhileInclusive / fsxContent: │
│ 0.3325000000000001 │
│ / errors: [] / typeErrorCount: 0 │
│ 00:00:42 #233 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │
│ Value: - FSharpOption<String> │
│ Value: 0.3325000000000001 │
│ │
│ - [ ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""
inl init_series start end inc =
inl total : f64 = conv ((end - start) / inc) + 1
listm.init total (conv >> (*) inc >> (+) start) : list f64
type integration = (f64 -> f64) -> f64 -> f64 -> f64
inl integral dt : integration =
fun f a b =>
init_series (a + dt / 2) (b - dt / 2) dt
|> listm.map (f >> (*) dt)
|> listm.fold (+) 0
inl main () =
integral 0.01 (fun x => x ** 2) 0 1
"""
|> buildCode 10000 None
|> Async.runWithTimeout 10000
|> Option.map (fun (fsxContent, errors) -> fsxContent, errors |> List.map fst)
|> _assertEqual (
Some (
Some "0.33332500000000004\n",
[[]]
)
)
// |> _assertEqual None
// |> fun x -> printfn $"{x.ToDisplayString ()}"
╭─[ 3.12s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:42 #234 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:42 #235 [Debug] executeAsync / options: { Command = │
│ "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral │
│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port │
│ 13805 --default-int i32 --default-float f64" │
│ WorkingDirectory = None │
│ CancellationToken = Some System.Threading.CancellationToken │
│ OnLine = Some <fun:buildCode@3-1005> } │
│ 00:00:42 #236 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral │
│ 00:00:42 #237 [Verbose] > dll_path: │
│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language │
│ 2\artifacts\bin\The Spiral Language 2\release │
│ 00:00:43 #239 [Verbose] > Starting the Spiral Server. It is bound to: │
│ http://localhost:13805 │
│ 00:00:43 #240 [Debug] runWithTimeoutAsync / timeout: 500 │
│ 00:00:43 #241 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │
│ result.Length: │
│ 00:00:43 #242 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │
│ 13805 / retry: 0 │
│ 00:00:43 #243 [Verbose] > Server bound to: http://localhost:13805 │
│ 00:00:43 #244 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [] / typeErrorCount: 0 │
│ 00:00:43 #245 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [] / typeErrorCount: 0 │
│ 00:00:43 #246 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"\ninl init_series start end inc =\n inl total : │
│ f64 = conv ((end - start) / inc) \u002B 1\n listm.init total (conv │
│ \u003E\u003E (*) inc \u003E\u003E (\u002B) start) : list f64\n\ntype │
│ integration = (f64 -\u003E f64) -\u003E f64 -\u003E f64 -\u003E f64\n\ninl │
│ integral dt : integration =\n fun f a b =\u003E\n init_series (a │
│ \u002B dt / 2) (b - dt / 2) dt\n |\u003E listm.map (f \u003E\u003E │
│ (*) dt)\n |\u003E listm.fold (\u002B) 0\n\ninl main () =\n │
│ integral 0.01 (fun x =\u003E x ** 2) 0 │
│ 1\n","uri":"file:///c:/Users/i574n/AppData/Local/Temp/!dotnet-repl/20240321- │
│ 0033-2736-3691-32a318a54048/main.spi"}} / result.Length: │
│ 00:00:43 #247 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/Users/i574n/AppData/Local │
│ /Temp/!dotnet-repl/20240321-0033-2736-3691-32a318a54048/main.spi"}} / │
│ result.Length: │
│ 00:00:43 #248 [Verbose] > Building │
│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0033-2736-3691-32a31 │
│ 8a54048\main.spi │
│ 00:00:44 #250 [Debug] buildFile / takeWhileInclusive / fsxContent: / │
│ errors: [] / typeErrorCount: 0 │
│ 00:00:45 #252 [Debug] buildFile / takeWhileInclusive / fsxContent: │
│ 0.33332500000000004 │
│ / errors: [] / typeErrorCount: 0 │
│ 00:00:45 #253 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ FSharpOption<Tuple<FSharpOption<String>,FSharpList<String>>> │
│ Value: - FSharpOption<String> │
│ Value: 0.33332500000000004 │
│ │
│ - [ ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## getFileTokenRange │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline getFileTokenRange port cancellationToken path = async {
let fullPath = path |> System.IO.Path.GetFullPath
let! code = fullPath |> FileSystem.readAllTextAsync
let lines = code |> String.split [[| '\n' |]]
let token, disposable = Threading.newDisposableToken cancellationToken
use _ = disposable
let! serverPort, _errors, ct, disposable = awaitCompiler port (Some token)
use _ = disposable
let fileOpenObj = {| FileOpen = {| uri = fullPath |> getFileUri; spiText =
code |} |}
let! _fileOpenResult = fileOpenObj |> sendObj serverPort
let fileTokenRangeObj =
{|
FileTokenRange =
{|
uri = fullPath |> getFileUri
range =
[[|
{| line = 0; character = 0 |}
{| line = lines.Length - 1; character =
lines.[[lines.Length - 1]].Length |}
|]]
|}
|}
let! fileTokenRangeResult =
fileTokenRangeObj
|> sendObj serverPort
|> Async.withCancellationToken ct
return fileTokenRangeResult |> Option.map FSharp.Json.Json.deserialize<int
array>
}
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## getCodeTokenRange │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let inline getCodeTokenRange cancellationToken code = async {
let! mainPath, disposable = persistCode code
use _ = disposable
let port = getCompilerPort ()
return! mainPath |> getFileTokenRange port cancellationToken
}
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""inl main () = ()"""
|> getCodeTokenRange None
|> Async.runWithTimeout 10000
|> Option.flatten
|> _assertEqual (Some [[| 0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1;
8; 0; 0; 2; 1; 4; 0; 0;
2; 1; 8; 0; 0; 1; 1; 8; 0 |]])
╭─[ 5.50s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:55 #263 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:55 #264 [Debug] executeAsync / options: { Command = │
│ "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral │
│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port │
│ 13805 --default-int i32 --default-float f64" │
│ WorkingDirectory = None │
│ CancellationToken = Some System.Threading.CancellationToken │
│ OnLine = Some <fun:it@4-434> } │
│ 00:00:56 #265 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral │
│ 00:00:56 #266 [Verbose] > dll_path: │
│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language │
│ 2\artifacts\bin\The Spiral Language 2\release │
│ 00:00:56 #268 [Verbose] > Starting the Spiral Server. It is bound to: │
│ http://localhost:13805 │
│ 00:00:56 #269 [Debug] runWithTimeoutAsync / timeout: 500 │
│ 00:00:56 #270 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │
│ 00:00:56 #271 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │
│ result.Length: │
│ 00:00:56 #272 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │
│ 13805 / retry: 0 │
│ 00:00:56 #273 [Verbose] > Server bound to: http://localhost:13805 │
│ 00:00:56 #274 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"inl main () = │
│ ()","uri":"file:///c:/Users/i574n/AppData/Local/Temp/!dotnet-repl/20240321-0 │
│ 033-4066-6631-6b887a491386/main.spi"}} / result.Length: │
│ 00:00:57 #275 [Debug] sendJson / port: 13805 / json: │
│ {"FileTokenRange":{"range":[ │
│ {"character":0,"line":0},{"character":16,"line":0}],"uri":"file:///c:/Users/ │
│ i574n/AppData/Local/Temp/!dotnet-repl/20240321-0033-4066-6631-6b887a491386/m │
│ ain.spi"}} / result.Length: Some(213) │
│ FSharpOption<Int32[]> │
│ Value: [ 0, 0, 3, 7, 0, 0, 4, 4, 0, 0, 0, 5, 1, 8, 0, 0, 1, 1, 8, 0, │
│ 0, 2, 1, 4, 0, 0, 2, 1, 8, 0, 0, 1, 1, 8, 0 ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
"""inl main () = 1i32"""
|> getCodeTokenRange None
|> Async.runWithTimeout 10000
|> Option.flatten
|> _assertEqual (Some [[| 0; 0; 3; 7; 0; 0; 4; 4; 0; 0; 0; 5; 1; 8; 0; 0; 1; 1;
8; 0; 0; 2; 1; 4; 0; 0;
2; 1; 3; 0; 0; 1; 3; 12; 0 |]])
╭─[ 5.73s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:01:01 #280 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:01:01 #281 [Debug] executeAsync / options: { Command = │
│ "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral │
│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port │
│ 13805 --default-int i32 --default-float f64" │
│ WorkingDirectory = None │
│ CancellationToken = Some System.Threading.CancellationToken │
│ OnLine = Some <fun:it@4-801> } │
│ 00:01:01 #283 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral │
│ 00:01:01 #284 [Verbose] > dll_path: │
│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language │
│ 2\artifacts\bin\The Spiral Language 2\release │
│ 00:01:02 #285 [Verbose] > Starting the Spiral Server. It is bound to: │
│ http://localhost:13805 │
│ 00:01:02 #286 [Debug] runWithTimeoutAsync / timeout: 500 │
│ 00:01:02 #287 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │
│ 00:01:02 #288 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │
│ result.Length: │
│ 00:01:02 #289 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │
│ 13805 / retry: 0 │
│ 00:01:02 #290 [Verbose] > Server bound to: http://localhost:13805 │
│ 00:01:02 #291 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"inl main () = │
│ 1i32","uri":"file:///c:/Users/i574n/AppData/Local/Temp/!dotnet-repl/20240321 │
│ -0033-4640-4003-46e8991f6e12/main.spi"}} / result.Length: │
│ 00:01:03 #293 [Debug] sendJson / port: 13805 / json: │
│ {"FileTokenRange":{"range":[ │
│ {"character":0,"line":0},{"character":18,"line":0}],"uri":"file:///c:/Users/ │
│ i574n/AppData/Local/Temp/!dotnet-repl/20240321-0033-4640-4003-46e8991f6e12/m │
│ ain.spi"}} / result.Length: Some(214) │
│ FSharpOption<Int32[]> │
│ Value: [ 0, 0, 3, 7, 0, 0, 4, 4, 0, 0, 0, 5, 1, 8, 0, 0, 1, 1, 8, 0, │
│ 0, 2, 1, 4, 0, 0, 2, 1, 3, 0, 0, 1, 3, 12, 0 ] │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Arguments │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
[[<RequireQualifiedAccess>]]
type Arguments =
| Build_File of string * string
| File_Token_Range of string * string
| Execute_Command of string
| Timeout of int
| Port of int
interface Argu.IArgParserTemplate with
member s.Usage =
match s with
| Build_File _ -> nameof Build_File
| File_Token_Range _ -> nameof File_Token_Range
| Execute_Command _ -> nameof Execute_Command
| Timeout _ -> nameof Timeout
| Port _ -> nameof Port
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
╭─[ 133.54ms - return value ]──────────────────────────────────────────────────╮
│ USAGE: dotnet-repl [--help] [--build-file <string> <string>] │
│ [--file-token-range <string> <string>] │
│ [--execute-command <string>] [--timeout <int>] [--port │
│ <int>] │
│ │
│ OPTIONS: │
│ │
│ --build-file <string> <string> │
│ Build_File │
│ --file-token-range <string> <string> │
│ File_Token_Range │
│ --execute-command <string> │
│ Execute_Command │
│ --timeout <int> Timeout │
│ --port <int> Port │
│ --help display this list of options. │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## main │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let main args =
let argsMap = args |> Runtime.parseArgsMap<Arguments>
let buildFileActions =
argsMap
|> Map.tryFind (nameof Arguments.Build_File)
|> Option.defaultValue [[]]
|> List.choose (function
| Arguments.Build_File (inputPath, outputPath) -> Some (inputPath,
outputPath)
| _ -> None
)
let fileTokenRangeActions =
argsMap
|> Map.tryFind (nameof Arguments.File_Token_Range)
|> Option.defaultValue [[]]
|> List.choose (function
| Arguments.File_Token_Range (inputPath, outputPath) -> Some
(inputPath, outputPath)
| _ -> None
)
let executeCommandActions =
argsMap
|> Map.tryFind (nameof Arguments.Execute_Command)
|> Option.defaultValue [[]]
|> List.choose (function
| Arguments.Execute_Command command -> Some command
| _ -> None
)
let timeout =
match argsMap |> Map.tryFind (nameof Arguments.Timeout) with
| Some [[ Arguments.Timeout timeout ]] -> timeout
| _ -> 60000 * 60
let port =
match argsMap |> Map.tryFind (nameof Arguments.Port) with
| Some [[ Arguments.Port port ]] -> Some port
| _ -> None
async {
let! buildFileResult =
buildFileActions
|> List.map (fun (inputPath, outputPath) -> async {
let port = port |> Option.defaultWith getCompilerPort
let! outputCode, errors = inputPath |> buildFile timeout port
None
errors
|> List.map snd
|> List.iter (fun error ->
trace Critical (fun () -> $"main / error: {error |>
serializeObj}") getLocals
)
match outputCode with
| Some outputCode ->
do! outputCode |> FileSystem.writeAllTextAsync outputPath
return 0
| None ->
return 1
})
|> Async.Sequential
let! fileTokenRangeResult =
fileTokenRangeActions
|> List.map (fun (inputPath, outputPath) -> async {
let port = port |> Option.defaultWith getCompilerPort
let! tokenRange = inputPath |> getFileTokenRange port None
match tokenRange with
| Some tokenRange ->
do! tokenRange |> FSharp.Json.Json.serialize |>
FileSystem.writeAllTextAsync outputPath
return 0
| None ->
return 1
})
|> Async.Sequential
let! executeCommandResult =
executeCommandActions
|> List.map (fun command -> async {
let port = port |> Option.defaultWith getCompilerPort
let localToken, disposable = Threading.newDisposableToken None
use _ = disposable
let! serverPort, _errors, compilerToken, disposable =
awaitCompiler port (Some localToken)
use _ = disposable
let! exitCode, result =
Runtime.executeWithOptionsAsync
{
Command = command
CancellationToken = Some compilerToken
WorkingDirectory = None
OnLine = None
}
trace Debug (fun () -> $"main / executeCommand / exitCode:
{exitCode}") getLocals
return exitCode
})
|> Async.Sequential
return
[[| buildFileResult; fileTokenRangeResult; executeCommandResult |]]
|> Array.collect id
|> Array.sum
}
|> Async.runWithTimeout timeout
|> Option.defaultValue 1
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let args =
System.Environment.GetEnvironmentVariable "ARGS"
|> Runtime.splitArgs
|> Seq.toArray
match args with
| [[||]] -> 0
| args -> if main args = 0 then 0 else failwith "main failed"
╭─[ 79.43ms - return value ]───────────────────────────────────────────────────╮
│ <div class="dni-plaintext"><pre>0</pre></div><style> │
│ .dni-code-hint { │
│ font-style: italic; │
│ overflow: hidden; │
│ white-space: nowrap; │
│ } │
│ .dni-treeview { │
│ white-space: nowrap; │
│ } │
│ .dni-treeview td { │
│ vertical-align: top; │
│ text-align: start; │
│ } │
│ details.dni-treeview { │
│ padding-left: 1em; │
│ } │
│ table td { │
│ text-align: start; │
│ } │
│ table tr { │
│ vertical-align: top; │
│ margin: 0em 0px; │
│ } │
│ table tr td pre │
│ { │
│ vertical-align: top !important; │
│ margin: 0em 0px !important; │
│ } │
│ table th { │
│ text-align: start; │
│ } │
│ </style> │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook Supervisor.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 448678 bytes to Supervisor.dib.html
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Supervisor.dib
00:00:00 #2 [Debug] parseDibCode / output: Fs / file: Supervisor.dib
00:00:00 #1 [Debug] persistCodeProject / packages: [Argu; FSharp.Control.AsyncSeq; FSharp.Json; ... ] / modules: [lib/fsharp/Common.fs; lib/fsharp/CommonFSharp.fs; lib/fsharp/Threading.fs; ... ] / name: Supervisor / code.Length: 19286
00:00:00 #2 [Debug] buildProject / fullPath: C:\home\git\polyglot\target\polyglot\builder\Supervisor\Supervisor.fsproj
00:00:00 #3 [Debug] executeAsync / options: { Command =
"dotnet publish "C:\home\git\polyglot\target/polyglot/builder\Supervisor\Supervisor.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\spiral\dist" --runtime linux-x64"
WorkingDirectory =
Some "C:\home\git\polyglot\target\polyglot\builder\Supervisor"
CancellationToken = None
OnLine = None }
00:00:00 #4 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:01 #5 [Verbose] > Determining projects to restore...
00:00:02 #6 [Verbose] > Restored C:\home\git\polyglot\target\polyglot\builder\Supervisor\Supervisor.fsproj (in 1.33 sec).
00:00:02 #7 [Verbose] > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\polyglot\builder\Supervisor\Supervisor.fsproj]
00:00:17 #8 [Verbose] > Supervisor -> C:\home\git\polyglot\target\polyglot\builder\Supervisor\bin\Release\net9.0\linux-x64\Supervisor.dll
00:00:18 #9 [Verbose] > Supervisor -> C:\home\git\polyglot\apps\spiral\dist\
00:00:18 #10 [Debug] executeAsync / exitCode: 0 / output.Length: 717
00:00:18 #11 [Debug] executeAsync / options: { Command =
"dotnet publish "C:\home\git\polyglot\target/polyglot/builder\Supervisor\Supervisor.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\spiral\dist" --runtime win-x64"
WorkingDirectory =
Some "C:\home\git\polyglot\target\polyglot\builder\Supervisor"
CancellationToken = None
OnLine = None }
00:00:19 #12 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:19 #13 [Verbose] > Determining projects to restore...
00:00:20 #14 [Verbose] > Restored C:\home\git\polyglot\target\polyglot\builder\Supervisor\Supervisor.fsproj (in 436 ms).
00:00:20 #15 [Verbose] > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\polyglot\builder\Supervisor\Supervisor.fsproj]
00:00:34 #16 [Verbose] > Supervisor -> C:\home\git\polyglot\target\polyglot\builder\Supervisor\bin\Release\net9.0\win-x64\Supervisor.dll
00:00:37 #17 [Verbose] > Supervisor -> C:\home\git\polyglot\apps\spiral\dist\
00:00:37 #18 [Debug] executeAsync / exitCode: 0 / output.Length: 713
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # Eval (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#r
@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
dard2.1/FSharp.Control.AsyncSeq.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
0/System.Reactive.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
netstandard2.0/System.Reactive.Linq.dll"
#r
@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"
#r
@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li
b/net6.0/System.CommandLine.dll"
#r
@"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.com
mon/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Common.dll"
#r
@"../../../../../../../.nuget/packages/microsoft.aspnetcore.http.connections.cli
ent/7.0.0/lib/net7.0/Microsoft.AspNetCore.Http.Connections.Client.dll"
#r
@"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.common/7.0.0
/lib/net7.0/Microsoft.AspNetCore.SignalR.Common.dll"
#r
@"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client/7.0.0
/lib/net7.0/Microsoft.AspNetCore.SignalR.Client.dll"
#r
@"../../../../../../../.nuget/packages/microsoft.aspnetcore.signalr.client.core/
7.0.0/lib/net7.0/Microsoft.AspNetCore.SignalR.Client.Core.dll"
#r
@"../../../../../../../.nuget/packages/fsharp.json/0.4.1/lib/netstandard2.0/FSha
rp.Json.dll"
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Common.fs
#!import ../../lib/fsharp/CommonFSharp.fs
#!import ../../lib/fsharp/Threading.fs
#!import ../../lib/fsharp/Async.fs
#!import ../../lib/fsharp/AsyncSeq.fs
#!import ../../lib/fsharp/Networking.fs
#!import ../../lib/fsharp/Runtime.fs
#!import ../../lib/fsharp/FileSystem.fs
#!import ../../apps/builder/Builder.fs
#!import ../../apps/spiral/Supervisor.fs
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldValue : string) (newValue : string) (input :
string) =
input.Replace (oldValue, newValue)
let inline split separator (input : string) =
input.Split separator
let inline spli...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module CommonFSharp =
open Common
/// ## getUnionCaseName
let inline getUnionCaseName<'T> (x: 'T) =
match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
| case, _ -> case.Name
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Threading =
open Common
/// ## newDisposableToken
let inline newDisposableToken (mergeToken:
System.Threading.CancellationToken option) =
let cts = new System.Threading.CancellationTokenSource ()
let cts =
match mergeToken with
| None -> cts
| Some mergeToken ->
System.Threading.CancellationTokenSource.CreateLinkedTokenSource
[[| cts.Token; mergeToken |]]
let disposable = newDisposable cts.Cancel
cts.Token, disposable
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Async =
open Common
/// ## choice
let inline choice asyncs = async {
let e = Event<_> ()
use cts = new System.Threading.CancellationTokenSource ()
let fn =
asyncs
|> Seq.map (fun a -> async {
let! x = a
e.Trigger x
})
|> Async.Parallel
|> Async.Ignore
Async.Start (fn, cts.Token)
let! result = Async.AwaitEvent e.Publish
cts.Cancel ()
return result
}
/// ## map
let inline map fn a = async {
let! x = a
return fn x
}
/// ## catch
let inline catch a =
a
|> Async.Catch
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module AsyncSeq =
open Common
/// ## subscribeEvent
let inline subscribeEvent (event: IEvent<'H, 'A>) map =
let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
'A>(event.AddHandler, event.RemoveHandler)
System.Reactive.Linq.Observable.Select (observable, fun event -> map
event.EventArgs)
|> FSharp.Control.AsyncSeq.ofObservableBuffered
let subscribeToken (token : System.Threading.CancellationToken) =
let tcs = new System.Threading.Tasks.TaskCompletionSource ()
System.Action tcs.SetResult |> token.Register |> ignore
let start = System.DateTime.Now.Ticks
FSharp.Control.AsyncSeq.unfoldAsync
(fun (...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Networking =
open Common
/// ## testPortOpen
let inline testPortOpen port = async {
let! ct = Async.CancellationToken
use client = new System.Net.Sockets.TcpClient ()
try
do! client.ConnectAsync ("127.0.0.1", port, ct) |>
Async.awaitValueTaskUnit
return true
with ex ->
trace Verbose (fun () -> $"testPortOpen / ex: {ex |>
printException}") getLocals
return false
}
let inline testPortOpenTimeout timeout port = async {
let! result =
testPortOpen port
|> Async.runWithTimeoutAsync timeout
return
match result with
| None -> false
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Runtime =
open Common
/// ## isWindows
let isWindows =
fun () ->
System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform
System.Runtime.InteropServices.OSPlatform.Windows
|> memoize
/// ## getExecutableSuffix
let inline getExecutableSuffix () =
if isWindows ()
then ".exe"
else ""
/// ## splitCommand
type private CommandParseStep =
| Start
| Path of quoted: bool
| Arguments
let splitCommand (command: string) =
let rec loop (path, args) chars step =
match chars, step with
| ('"' | '\'') :: tail, _ when path = "" -> loop (pat...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module FileSystem =
open Common
/// ## Operators
module Operators =
let inline (</>) a b =
System.IO.Path.Combine (a, b)
open Operators
/// ## createTempDirectoryName
let inline createTempDirectoryName () =
let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name
System.IO.Path.GetTempPath ()
</> $"!{root}"
</> string (newGuidFromDateTime System.DateTime.Now)
/// ## createTempDirectory
let inline createTempDirectory () =
let tempFolder = createTempDirectoryName ()
let result = System.IO.Directory.CreateDirectory tempFolder
if not result.Exists then
let ge...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Builder =
open Common
open FileSystem.Operators
/// ## buildProject
let inline buildProject runtime outputDir path = async {
let fullPath = path |> System.IO.Path.GetFullPath
let fileDir = fullPath |> System.IO.Path.GetDirectoryName
let extension = fullPath |> System.IO.Path.GetExtension
let getLocals () = $"fullPath: {fullPath} / {getLocals ()}"
trace Debug (fun () -> "buildProject") getLocals
match extension with
| ".fsproj" -> ()
| _ -> failwith "Invalid project file"
let runtimes =
runtime
|> Option.map List.singleton
|> Option.defaultValue [[ "linux-x64"; "wi...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Supervisor =
open Common
open FileSystem.Operators
open Microsoft.AspNetCore.SignalR.Client
/// ## sendJson
let inline sendJson (port : int) (json : string) = async {
let! portOpen = Networking.testPortOpen port
if portOpen then
try
let connection =
HubConnectionBuilder().WithUrl($"http://127.0.0.1:{port}").Build()
do! connection.StartAsync () |> Async.AwaitTask
let! result =
connection.InvokeAsync<string>("ClientToServerMsg", json) |> Async.AwaitTask
do! connection.StopAsync () |> Async.AwaitTask
trace Debug (fun () -> $"sendJson / port: {port} / json: {json}
/...
── fsharp ──────────────────────────────────────────────────────────────────────
open Common
open FileSystem.Operators
── fsharp ──────────────────────────────────────────────────────────────────────
open System
open System.Collections.Generic
open System.IO
open System.Text
open System.Threading
// open FSharp.Compiler
// open FSharp.Compiler.Interactive.Shell
// open FSharp.Compiler.Diagnostics
// open FSharp.Compiler.EditorServices
── fsharp ──────────────────────────────────────────────────────────────────────
let inline mapErrors (severity, errors, lastTopLevelIndex) allCode =
let allCodeLineLength =
allCode |> String.split [[| '\n' |]] |> Array.length
errors
|> List.map (fun (_, error) ->
match error with
| Supervisor.FatalError message ->
(
severity, message, 0, ("", (0, 0), (0, 0))
)
|> List.singleton
| Supervisor.TracedError data ->
data.trace
|> List.truncate 5
|> List.append [[ data.message ]]
|> List.map (fun message ->
(
severity, message, 0, ("", (0, 0), (0, 0))
)
)
| Supervisor.PackageErrors data
| Supervisor.TokenizerErrors data
| Supervisor.ParserErrors data
| Supervisor.TypeErrors data ->
data.errors
|> List.filter (fun ((rangeStart, _), _) ->
trace Debug (fun () -> $"Eval.mapErrors / rangeStart.line:
{rangeStart.line} / lastTopLevelIndex: {lastTopLevelIndex} / allCodeLineLength:
{allCodeLineLength} / filtered: {rangeStart.line > allCodeLineLength}")
getLocals
rangeStart.line > allCodeLineLength
)
|> List.map (fun ((rangeStart, rangeEnd), message) ->
(
severity,
message,
0,
(
(data.uri |> System.IO.Path.GetFileName),
(
(match lastTopLevelIndex with
| Some i when rangeStart.line >= i +
allCodeLineLength + 3 ->
rangeStart.line - allCodeLineLength - 2
| _ -> rangeStart.line - allCodeLineLength),
(match lastTopLevelIndex with
| Some i when rangeStart.line >= i +
allCodeLineLength + 3 ->
rangeStart.character - 4
| _ -> rangeStart.character)
),
(
(match lastTopLevelIndex with
| Some i when rangeStart.line >= i +
allCodeLineLength + 3 ->
rangeEnd.line - allCodeLineLength - 2
| _ -> rangeEnd.line - allCodeLineLength),
(match lastTopLevelIndex with
| Some i when rangeStart.line >= i +
allCodeLineLength + 3 ->
rangeEnd.character - 4
| _ -> rangeEnd.character)
)
)
)
)
)
|> List.collect id
|> List.toArray
── fsharp ──────────────────────────────────────────────────────────────────────
let spiralExDir = Path.GetTempPath () </> "!spiral-ex"
let maxTermCountPath = spiralExDir </> "max_term_count.txt"
let mutable allCode = ""
── fsharp ──────────────────────────────────────────────────────────────────────
let log2 (text : string) =
if traceLevel = TraceLevel.Verbose then
try
let tmpPath = Path.GetTempPath ()
let logDir = Path.Combine (tmpPath, "_log_spiral_kernel")
Directory.CreateDirectory logDir |> ignore
let dateTimeStr = DateTime.Now.ToString "yyyy-MM-dd HH-mm-ss-fff"
let logFile = Path.Combine (logDir,
$"log_{dateTimeStr}_{Random().Next()}.txt")
let dateTimeStr = DateTime.Now.ToString "yyyy-MM-dd HH:mm:ss.fff"
let fileName = "SpiralScriptHelpers"
File.AppendAllText (logFile, $"{dateTimeStr} {fileName}
{text}{Environment.NewLine}") |> ignore
with ex ->
trace Debug (fun () -> $"V.log / ex: {ex |> printException}")
getLocals
── fsharp ──────────────────────────────────────────────────────────────────────
let log (text : string) =
if traceLevel = TraceLevel.Verbose then
try
let tmpPath = Path.GetTempPath ()
let logDir = Path.Combine (tmpPath, "_log_spiral_kernel")
Directory.CreateDirectory logDir |> ignore
let logFile = Path.Combine (logDir, "log.txt")
let dateTimeStr = DateTime.Now.ToString "yyyy-MM-dd HH:mm:ss.fff"
let fileName = "SpiralScriptHelpers"
File.AppendAllText (logFile, $"{dateTimeStr} {fileName}
{text}{Environment.NewLine}") |> ignore
with ex ->
trace Debug (fun () -> $"SpiralScriptHelpers.log / ex: {ex |>
printException}") getLocals
log2 text
── fsharp ──────────────────────────────────────────────────────────────────────
let assemblyName = Reflection.Assembly.GetEntryAssembly().GetName().Name
let inline startTokenRangeWatcher () =
if [[ "dotnet-repl" ]] |> List.contains assemblyName |> not then
let tmpSpiralDir = Path.GetTempPath () </> "!dotnet-interactive-spiral"
let tmpCodeDir = tmpSpiralDir </> "code"
let tmpTokensDir = tmpSpiralDir </> "tokens"
[[ tmpSpiralDir; tmpCodeDir; tmpTokensDir ]]
|> List.iter (fun dir -> if Directory.Exists dir |> not then
Directory.CreateDirectory dir |> ignore)
let stream, disposable = FileSystem.watchDirectory (fun _ -> false)
tmpCodeDir
try
let port = Supervisor.getCompilerPort () + 2
let existingFilesChild =
tmpCodeDir
|> System.IO.Directory.GetFiles
|> Array.map (fun codePath -> async {
try
let tokensPath = tmpTokensDir </> (codePath |>
System.IO.Path.GetFileName)
if File.Exists tokensPath |> not then
let! tokens = codePath |>
Supervisor.getFileTokenRange port None
match tokens with
| Some tokens ->
do!
tokens
|> FSharp.Json.Json.serialize
|> FileSystem.writeAllTextAsync tokensPath
| None ->
log $"Eval.watchDirectory / GetFiles / tokens:
None / {getLocals ()}"
with ex ->
log $"Eval.watchDirectory / GetFiles / ex: {ex |>
printException} / {getLocals ()}"
})
|> Async.Sequential
|> Async.Ignore
let streamAsyncChild =
stream
|> FSharp.Control.AsyncSeq.iterAsyncParallel (fun (ticks, event)
-> async {
try
let getLocals () = $"ticks: {ticks} / event: {event} /
{getLocals ()}"
match event with
| FileSystem.FileSystemChange.Changed (path, _) ->
let codePath = tmpCodeDir </> path
do!
codePath
|> FileSystem.waitForFileAccess (Some (
System.IO.FileAccess.Read,
System.IO.FileShare.Read
))
|> Async.runWithTimeoutAsync 1000
|> Async.Ignore
let! tokens = codePath |>
Supervisor.getFileTokenRange port None
match tokens with
| Some tokens ->
do!
tokens
|> FSharp.Json.Json.serialize
|> FileSystem.writeAllTextAsync
(tmpTokensDir </> path)
| None ->
log $"Eval.watchDirectory / iterAsyncParallel /
tokens: None / {getLocals ()}"
| _ -> ()
with ex ->
log $"Eval.watchDirectory / iterAsyncParallel / ex: {ex
|> printException} / {getLocals ()}"
})
async {
do! Async.Sleep 3000
existingFilesChild |> Async.StartImmediate
streamAsyncChild |> Async.Start
}
|> Async.Start
with ex ->
log $"Eval / ex: {ex |> printException}"
disposable
else newDisposable (fun () -> ())
── fsharp ──────────────────────────────────────────────────────────────────────
let inline eval
(fsi_eval:
string
-> System.Threading.CancellationToken
-> Choice<'a,Exception> * (TraceLevel * string * int * (string * (int *
int) * (int * int))) array)
(cancellationToken: Option<System.Threading.CancellationToken>)
(code: string)
=
log $"Eval / code: %A{code}"
let rawCellCode =
if code |> String.trim <> "// // trace"
then code |> String.replace "\r\n" "\n"
else
if traceLevel = Info
then traceLevel <- Verbose
else traceLevel <- Info
traceDump <- traceLevel = Verbose
"inl main () = ()"
let lines = rawCellCode |> String.split [[| '\n' |]]
if lines |> Array.exists (fun line -> line |> String.startsWith "#r " &&
line |> String.endsWith "\"") then
let cancellationToken = defaultArg cancellationToken
System.Threading.CancellationToken.None
let ch, errors = fsi_eval code cancellationToken
match ch with
| Choice1Of2 v -> Ok(v), errors
| Choice2Of2 ex -> Error(ex), errors
else
try
let lastBlock =
lines
|> Array.tryFindBack (fun line ->
line |> String.length > 0
&& line.[[0]] <> ' '
)
let hasMain =
lastBlock
|> Option.exists (fun line ->
line |> String.startsWith "inl main "
|| line |> String.startsWith "let main "
)
let cellCode, lastTopLevelIndex =
if hasMain
then rawCellCode, None
else
let lastTopLevelIndex, _ =
(lines |> Array.indexed, (None, false))
||> Array.foldBack (fun (i, line) (lastTopLevelIndex,
finished) ->
trace Debug (fun () -> $"i: {i} / line: '{line}' /
lastTopLevelIndex: {lastTopLevelIndex} / finished: {finished}") getLocals
match line with
| _ when finished -> lastTopLevelIndex, true
| "" -> lastTopLevelIndex, false
| line when
line |> String.startsWith " "
|| line |> String.startsWith "// " ->
lastTopLevelIndex, false
| line when
line |> String.startsWith "open "
|| line |> String.startsWith "prototype "
|| line |> String.startsWith "instance "
|| line |> String.startsWith "type "
|| line |> String.startsWith "union "
|| line |> String.startsWith "nominal " ->
lastTopLevelIndex, true
| line when
line |> String.startsWith "inl "
|| line |> String.startsWith "let " ->
let m =
System.Text.RegularExpressions.Regex.Match (
line,
@"^(inl|let) +([[~\(\w]][[\w\d']]*(?:|
*[[~\w]][[\w\d']]*\)|, *[[~\w]][[\w\d']]*)) +[[:=]]"
)
trace Debug (fun () -> $"m: '{m}' /
m.Groups.Count: {m.Groups.Count}") getLocals
if m.Groups.Count = 3
then Some i, false
else lastTopLevelIndex, true
| _ -> Some i, false
)
let code =
match lastTopLevelIndex with
| Some lastTopLevelIndex ->
lines
|> Array.mapi (fun i line ->
match i with
| i when i < lastTopLevelIndex -> line
| i when i = lastTopLevelIndex -> $"\nlet main
() =\n {line}"
| _ when line |> String.trim = "" -> ""
| _ -> $" {line}"
)
|> String.concat "\n"
| None -> $"{rawCellCode}\n\ninl main () = ()\n"
code, lastTopLevelIndex
let newAllCode = $"{allCode}\n\n{cellCode}"
let rustArgs =
lines
|> Array.tryPick (fun line ->
if line |> String.startsWith "// // rust="
then line |> String.split [[| '=' |]] |> Array.tryItem 1
else None
)
let timeout =
lines
|> Array.tryPick (fun line ->
if line |> String.startsWith "// // timeout="
then line |> String.split [[| '=' |]] |> Array.tryItem 1 |>
Option.map int
else None
)
|> Option.defaultValue (60000 * 60)
let printCode =
lines
|> Array.tryPick (fun line ->
if line |> String.startsWith "// // print_code="
then line |> String.split [[| '=' |]] |> Array.tryItem 1 |>
Option.map ((=) "true")
else None
)
|> Option.defaultValue true
let maxTermCount =
lines
|> Array.tryPick (fun line ->
if line |> String.startsWith "// // max_term_count="
then line |> String.split [[| '=' |]] |> Array.tryItem 1 |>
Option.map int
else None
)
async {
try
let! mainPath, disposable = newAllCode |>
Supervisor.persistCode
use _ = disposable
match maxTermCount with
| Some maxTermCount ->
do! maxTermCount |> string |>
FileSystem.writeAllTextAsync maxTermCountPath
| None -> ()
let port = Supervisor.getCompilerPort ()
let! codeChoice =
mainPath
|> Supervisor.buildFile timeout port cancellationToken
|> Async.catch
|> Async.runWithTimeoutAsync timeout
match maxTermCount with
| Some _ -> do! FileSystem.deleteFileAsync maxTermCountPath
|> Async.Ignore
| None -> ()
let code =
match codeChoice with
| Some (Ok code) -> Some code
| Some (Error ex) ->
log $"Eval / errors: {ex |> printException}"
None
| _ -> None
match code with
| Some (Some code, spiralErrors) ->
let spiralErrors =
mapErrors (Warning, spiralErrors, lastTopLevelIndex)
allCode
let inline _trace (fn : unit -> string) =
if traceLevel = Info
then fn () |> System.Console.WriteLine
else trace Info (fun () ->
$"SpiralScriptHelpers.Eval / {fn ()}") getLocals
if printCode
then _trace (fun () -> if rustArgs |> Option.isSome then
$"\n.fsx:\n{code}" else code)
let! rustResult =
if rustArgs |> Option.isNone || lastTopLevelIndex =
None
then None |> Async.init
else
async {
// let hash = $"repl_{code |>
Crypto.hashText}"
let hash = $"spiral_eval"
let! fsprojPath = code |>
Builder.persistCodeProject [["Fable.Core"]] [[]] hash
let projectDir = fsprojPath |>
Path.GetDirectoryName
let outDir = projectDir </> $"target/{hash}"
let libLinkTargetPath = projectDir </>
"target/fable-library-rust"
let libLinkPath = outDir </>
$"fable_modules/fable-library-rust"
if Directory.Exists libLinkTargetPath |> not
then libLinkTargetPath |>
Directory.CreateDirectory |> ignore
libLinkPath |> Path.GetDirectoryName |>
Directory.CreateDirectory |> ignore
let libLinkPathInfo = DirectoryInfo
libLinkPath
if libLinkPathInfo.Exists &&
libLinkPathInfo.LinkTarget = null then
Directory.Delete (libLinkPath, true)
if libLinkPath |> Directory.Exists |> not
then
Directory.CreateSymbolicLink
(libLinkPath, libLinkTargetPath)
|> ignore
let! exitCode, result =
Runtime.executeWithOptionsAsync
{
Command = $@"dotnet fable
{fsprojPath} --optimize --lang rs --extension .rs --outDir {outDir}"
CancellationToken =
cancellationToken
WorkingDirectory = None
OnLine = None
}
if exitCode <> 0
then return Some (Error result)
else
let rsPath = outDir </> $"{hash}.rs"
let! rsCode = rsPath |>
FileSystem.readAllTextAsync
let mainCode = "pub fn main() ->
Result<(), String> { Ok(()) }"
let cached = rsCode |> String.contains
mainCode
let rsCode =
if cached
then rsCode
else rsCode |> String.replace "),);"
"));"
if printCode
then _trace (fun () ->
$"\n.rs:\n{rsCode}")
if not cached
then do!
$"{rsCode}\n\n{mainCode}\n"
|> FileSystem.writeAllTextAsync
rsPath
let cargoTomlPath = outDir </>
$"Cargo.toml"
let cargoTomlContent = $"""[[package]]
name = "{hash}"
version = "0.0.1"
edition = "2021"
[[workspace]]
[[dependencies]]
fable_library_rust = {{ path = "fable_modules/fable-library-rust", optional =
true, default-features = false }}
clap = {{}}
num-complex = {{}}
pyo3 = "~0.21.0-beta.0"
[[features]]
default = [["fable_library_rust/default",
"fable_library_rust/static_do_bindings"]]
[[[[bin]]]]
name = "{hash}"
path = "{hash}.rs"
"""
do! cargoTomlContent |>
FileSystem.writeAllTextExists cargoTomlPath
let! exitCode, result =
Runtime.executeWithOptionsAsync
{
Command = $@"cargo run
--release --manifest-path {cargoTomlPath}"
CancellationToken =
cancellationToken
WorkingDirectory = None
OnLine = None
}
if exitCode = 0 then
try
let result =
result
|> String.split [[| '\n' |]]
|> Array.skipWhile (fun line
->
line |> String.contains
@"[[optimized]] target" |> not
)
|> Array.skip 2
|> String.concat "\n"
return Some (Ok result)
with ex ->
return $"ex:
{ex}\nresult:\n{result}" |> Error |> Some
else
return Some (Error result)
}
let cancellationToken = defaultArg cancellationToken
System.Threading.CancellationToken.None
let fsxResult =
if rustArgs |> Option.isSome
then None
else
try
let ch, errors = fsi_eval code
cancellationToken
let errors =
errors
|> Array.map (fun (e1, e2, e3, _) ->
(e1, e2, e3, ("", (0, 0), (0, 0)))
)
Some (ch, errors)
with ex ->
trace Critical (fun () ->
$"SpiralScriptHelpers.Eval / ex: {ex |> printException}") getLocals
None
match fsxResult, rustResult with
| Some (ch, errors), None ->
let errors = errors |> Array.append spiralErrors
match ch with
| Choice1Of2 v ->
allCode <- newAllCode
return Ok(v), errors
| Choice2Of2 ex -> return Error ex, errors
| _, Some result ->
let result, errors =
match result with
| Ok result -> result, [[||]]
| Error error ->
"",
[[|
(
TraceLevel.Critical, error, 0, ("",
(0, 0), (0, 0))
)
|]]
let header = if printCode then ".rs output:\n" else
""
let ch, errors2 = fsi_eval
$"\"\"\"{header}{result}\n\"\"\"" cancellationToken
let errors =
errors
|> Array.append spiralErrors
|> Array.append errors2
match ch with
| Choice1Of2 v ->
allCode <- newAllCode
return Ok(v), errors
| Choice2Of2 ex ->
return Error ex, errors
| _ ->
let ch, errors = fsi_eval "()" cancellationToken
match ch with
| Choice1Of2 v ->
allCode <- newAllCode
return Ok(v), errors
| Choice2Of2 ex ->
return Error ex, errors
| Some (None, errors) when errors |> List.isEmpty |> not ->
return errors.[[0]] |> fst |> Exception |> Error,
mapErrors (TraceLevel.Critical, errors,
lastTopLevelIndex) allCode
| _ ->
return Error (Exception "Spiral error or timeout"),
[[|
(
TraceLevel.Critical, "Diag: Spiral error or
timeout", 0, ("", (0, 0), (0, 0))
)
|]]
with ex ->
log $"Eval / ex: {ex |> printException}"
return Error (Exception $"Spiral error or timeout (4_) / ex:
{ex |> printException}"),
[[|
(
TraceLevel.Critical, $"Diag: Spiral error or timeout
(4) / ex: {ex |> printException}", 0, ("", (0, 0), (0, 0))
)
|]]
}
|> Async.runWithTimeoutStrict timeout
|> Option.defaultValue (
Error (Exception "Spiral error or timeout (2)"),
[[|
(
TraceLevel.Critical, "Diag: Spiral error or timeout
(2)", 0, ("", (0, 0), (0, 0))
)
|]]
)
with ex ->
log $"Eval / ex: {ex |> printException}"
Error (Exception $"Spiral error or timeout (3) / ex: {ex |>
printException}"),
[[|
(
TraceLevel.Critical, $"Diag: Spiral error or timeout (3) /
ex: {ex |> printException}", 0, ("", (0, 0), (0, 0))
)
|]]
[NbConvertApp] Converting notebook Eval.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 373116 bytes to Eval.dib.html
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Eval.dib
00:00:00 #2 [Debug] parseDibCode / output: Fs / file: Eval.dib
In [ ]:
{ . "$ScriptDir/../apps/scheduler/build.ps1" } | Invoke-Block
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\apps\scheduler
00:00:00 #4 [Verbose] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #6 [Debug] runWithTimeoutAsync / timeout: 500
00:00:00 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805
00:00:01 #11 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 Tasks.dib -Retries 3""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:03 #12 [Verbose] >
00:00:03 #13 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 #14 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 #15 [Verbose] > │ ## Tasks (Polyglot) │
00:00:03 #16 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:03 #17 [Verbose] >
00:00:03 #18 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:03 #19 [Verbose] > // // test
00:00:03 #20 [Verbose] >
00:00:03 #21 [Verbose] > open testing
00:00:07 #22 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0036-3261-6138-659f9ccc76bc\main.spi
00:00:09 #23 [Verbose] >
00:00:09 #24 [Verbose] > ╭─[ 5.75s - stdout ]───────────────────────────────────────────────────────────╮
00:00:09 #25 [Verbose] > │ () │
00:00:09 #26 [Verbose] > │ │
00:00:09 #27 [Verbose] > │ │
00:00:09 #28 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #29 [Verbose] >
00:00:09 #30 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #31 [Verbose] > inl types () =
00:00:09 #32 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::string::String\")>]]
00:00:09 #33 [Verbose] > type std_string_String = class end"
00:00:09 #34 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"&$0\")>]] type Ref<'T> =
00:00:09 #35 [Verbose] > class end"
00:00:09 #36 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"str\")>]] type Str = class
00:00:09 #37 [Verbose] > end"
00:00:09 #38 [Verbose] >
00:00:09 #39 [Verbose] > inl emit_expr forall a t. (args : a) (code : string) : t =
00:00:09 #40 [Verbose] > real
00:00:09 #41 [Verbose] > $"Fable.Core.RustInterop.emitRustExpr !args !code" : t
00:00:09 #42 [Verbose] >
00:00:09 #43 [Verbose] >
00:00:09 #44 [Verbose] > nominal std_string = $"std_string_String"
00:00:09 #45 [Verbose] > nominal ref' t = $"Ref<`t>"
00:00:09 #46 [Verbose] > nominal str = $"Str"
00:00:09 #47 [Verbose] >
00:00:09 #48 [Verbose] > inl format_debug forall t. (x : t) : std_string =
00:00:09 #49 [Verbose] > real
00:00:09 #50 [Verbose] > emit_expr `t `std_string x "format!(\"{:?}\", $0)"
00:00:09 #51 [Verbose] >
00:00:09 #52 [Verbose] > inl format_pretty forall t. (x : t) : std_string =
00:00:09 #53 [Verbose] > real
00:00:09 #54 [Verbose] > emit_expr `t `std_string x "format!(\"{:#?}\", $0)"
00:00:09 #55 [Verbose] >
00:00:09 #56 [Verbose] > inl to_std_string (str : ref' str) : std_string =
00:00:09 #57 [Verbose] > // inl str = join str
00:00:09 #58 [Verbose] > // // emit_expr () $"\"!str.to_string()\""
00:00:09 #59 [Verbose] > // // emit_expr () $"\"alloc::string::to_string(!str)\""
00:00:09 #60 [Verbose] > // emit_expr str "($0).to_string()"
00:00:09 #61 [Verbose] > emit_expr str $"\"String::from(core::ops::Deref::deref($0))\""
00:00:09 #62 [Verbose] > // emit_expr str $"\"String::from(*$0)\""
00:00:09 #63 [Verbose] > // emit_expr () $"\"String::from(!str)\""
00:00:09 #64 [Verbose] >
00:00:09 #65 [Verbose] > inl format forall t. (x : t) : std_string =
00:00:09 #66 [Verbose] > real
00:00:09 #67 [Verbose] > inl result : std_string =
00:00:09 #68 [Verbose] > typecase t with
00:00:09 #69 [Verbose] > | string => to_std_string x
00:00:09 #70 [Verbose] > | std_string => x
00:00:09 #71 [Verbose] > | _ => format_pretty `t x
00:00:09 #72 [Verbose] > result
00:00:09 #73 [Verbose] >
00:00:09 #74 [Verbose] > inl raw_string_literal (s : string) : ref' str =
00:00:09 #75 [Verbose] > emit_expr () $"\"r#\\\"\" + !s + \"\\\"#\""
00:00:09 #76 [Verbose] >
00:00:09 #77 [Verbose] > inl (~#) (s : string) : ref' str =
00:00:09 #78 [Verbose] > raw_string_literal s
00:00:09 #79 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0036-3586-8603-88885a4b928a\main.spi
00:00:09 #80 [Verbose] >
00:00:09 #81 [Verbose] > ╭─[ 281.20ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #82 [Verbose] > │ () │
00:00:09 #83 [Verbose] > │ │
00:00:09 #84 [Verbose] > │ │
00:00:09 #85 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #86 [Verbose] >
00:00:09 #87 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #88 [Verbose] > nominal task_name = string
00:00:09 #89 [Verbose] >
00:00:09 #90 [Verbose] > union manual_scheduling =
00:00:09 #91 [Verbose] > | WithSuggestion
00:00:09 #92 [Verbose] > | WithoutSuggestion
00:00:09 #93 [Verbose] >
00:00:09 #94 [Verbose] > union recurrency_offset =
00:00:09 #95 [Verbose] > | Days : i32
00:00:09 #96 [Verbose] > | Weeks : i32
00:00:09 #97 [Verbose] > | Months : i32
00:00:09 #98 [Verbose] >
00:00:09 #99 [Verbose] > union day_of_week =
00:00:09 #100 [Verbose] > | Sunday
00:00:09 #101 [Verbose] > | Monday
00:00:09 #102 [Verbose] > | Tuesday
00:00:09 #103 [Verbose] > | Wednesday
00:00:09 #104 [Verbose] > | Thursday
00:00:09 #105 [Verbose] > | Friday
00:00:09 #106 [Verbose] > | Saturday
00:00:09 #107 [Verbose] >
00:00:09 #108 [Verbose] > union month =
00:00:09 #109 [Verbose] > | January
00:00:09 #110 [Verbose] > | February
00:00:09 #111 [Verbose] > | March
00:00:09 #112 [Verbose] > | April
00:00:09 #113 [Verbose] > | May
00:00:09 #114 [Verbose] > | June
00:00:09 #115 [Verbose] > | July
00:00:09 #116 [Verbose] > | August
00:00:09 #117 [Verbose] > | September
00:00:09 #118 [Verbose] > | October
00:00:09 #119 [Verbose] > | November
00:00:09 #120 [Verbose] > | December
00:00:09 #121 [Verbose] >
00:00:09 #122 [Verbose] > nominal day = i32
00:00:09 #123 [Verbose] > nominal year = i32
00:00:09 #124 [Verbose] >
00:00:09 #125 [Verbose] > union fixed_recurrency =
00:00:09 #126 [Verbose] > | Weekly : day_of_week
00:00:09 #127 [Verbose] > | Monthly : day
00:00:09 #128 [Verbose] > | Yearly : day * month
00:00:09 #129 [Verbose] >
00:00:09 #130 [Verbose] > union recurrency =
00:00:09 #131 [Verbose] > | Offset : recurrency_offset
00:00:09 #132 [Verbose] > | Fixed : list fixed_recurrency
00:00:09 #133 [Verbose] >
00:00:09 #134 [Verbose] > union scheduling =
00:00:09 #135 [Verbose] > | Manual : manual_scheduling
00:00:09 #136 [Verbose] > | Recurrent : recurrency
00:00:09 #137 [Verbose] >
00:00:09 #138 [Verbose] > type task =
00:00:09 #139 [Verbose] > {
00:00:09 #140 [Verbose] > name : task_name
00:00:09 #141 [Verbose] > scheduling : scheduling
00:00:09 #142 [Verbose] > }
00:00:09 #143 [Verbose] >
00:00:09 #144 [Verbose] > type date =
00:00:09 #145 [Verbose] > {
00:00:09 #146 [Verbose] > year : year
00:00:09 #147 [Verbose] > month : month
00:00:09 #148 [Verbose] > day : day
00:00:09 #149 [Verbose] > }
00:00:09 #150 [Verbose] >
00:00:09 #151 [Verbose] > union status =
00:00:09 #152 [Verbose] > | Postponed : option ()
00:00:09 #153 [Verbose] >
00:00:09 #154 [Verbose] > type event =
00:00:09 #155 [Verbose] > {
00:00:09 #156 [Verbose] > date : date
00:00:09 #157 [Verbose] > status : status
00:00:09 #158 [Verbose] > }
00:00:09 #159 [Verbose] >
00:00:09 #160 [Verbose] > type task_template =
00:00:09 #161 [Verbose] > {
00:00:09 #162 [Verbose] > task : task
00:00:09 #163 [Verbose] > events : list event
00:00:09 #164 [Verbose] > }
00:00:10 #165 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0036-3612-1290-18be17d7e359\main.spi
00:00:10 #166 [Verbose] >
00:00:10 #167 [Verbose] > ╭─[ 240.76ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #168 [Verbose] > │ () │
00:00:10 #169 [Verbose] > │ │
00:00:10 #170 [Verbose] > │ │
00:00:10 #171 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #172 [Verbose] >
00:00:10 #173 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #174 [Verbose] > // // test
00:00:10 #175 [Verbose] > // // rust=
00:00:10 #176 [Verbose] >
00:00:10 #177 [Verbose] > types ()
00:00:10 #178 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0036-3637-3715-37e8053c07b3\main.spi
00:00:31 #179 [Verbose] >
00:00:31 #180 [Verbose] > ╭─[ 21.48s - return value ]────────────────────────────────────────────────────╮
00:00:31 #181 [Verbose] > │ .rs output: │
00:00:31 #182 [Verbose] > │ │
00:00:31 #183 [Verbose] > │ │
00:00:31 #184 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 #185 [Verbose] >
00:00:31 #186 [Verbose] > ╭─[ 21.49s - stdout ]──────────────────────────────────────────────────────────╮
00:00:31 #187 [Verbose] > │ │
00:00:31 #188 [Verbose] > │ .fsx: │
00:00:31 #189 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>] type │
00:00:31 #190 [Verbose] > │ std_string_String = class end │
00:00:31 #191 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&$0")>] type Ref<'T> = class end │
00:00:31 #192 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("str")>] type Str = class end │
00:00:31 #193 [Verbose] > │ let rec method0 () : unit = │
00:00:31 #194 [Verbose] > │ () │
00:00:31 #195 [Verbose] > │ method0() │
00:00:31 #196 [Verbose] > │ │
00:00:31 #197 [Verbose] > │ .rs: │
00:00:31 #198 [Verbose] > │ #![allow(dead_code,)] │
00:00:31 #199 [Verbose] > │ #![allow(non_camel_case_types,)] │
00:00:31 #200 [Verbose] > │ #![allow(non_snake_case,)] │
00:00:31 #201 [Verbose] > │ #![allow(non_upper_case_globals,)] │
00:00:31 #202 [Verbose] > │ #![allow(unreachable_code,)] │
00:00:31 #203 [Verbose] > │ #![allow(unused_attributes,)] │
00:00:31 #204 [Verbose] > │ #![allow(unused_imports,)] │
00:00:31 #205 [Verbose] > │ #![allow(unused_macros,)] │
00:00:31 #206 [Verbose] > │ #![allow(unused_parens,)] │
00:00:31 #207 [Verbose] > │ #![allow(unused_variables,)] │
00:00:31 #208 [Verbose] > │ mod module_ccfa04bf { │
00:00:31 #209 [Verbose] > │ pub mod Spiral_eval { │
00:00:31 #210 [Verbose] > │ use super::*; │
00:00:31 #211 [Verbose] > │ use fable_library_rust::Native_::on_startup; │
00:00:31 #212 [Verbose] > │ pub fn method0() { (); } │
00:00:31 #213 [Verbose] > │ on_startup!(Spiral_eval::method0()); │
00:00:31 #214 [Verbose] > │ } │
00:00:31 #215 [Verbose] > │ } │
00:00:31 #216 [Verbose] > │ pub use module_ccfa04bf::*; │
00:00:31 #217 [Verbose] > │ │
00:00:31 #218 [Verbose] > │ │
00:00:31 #219 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 #220 [Verbose] >
00:00:31 #221 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:31 #222 [Verbose] > // // test
00:00:31 #223 [Verbose] > // // rust=
00:00:31 #224 [Verbose] >
00:00:31 #225 [Verbose] > inl get_tasks () : list task_template =
00:00:31 #226 [Verbose] > [[
00:00:31 #227 [Verbose] > {
00:00:31 #228 [Verbose] > task =
00:00:31 #229 [Verbose] > {
00:00:31 #230 [Verbose] > name = task_name "01"
00:00:31 #231 [Verbose] > scheduling = Manual WithSuggestion
00:00:31 #232 [Verbose] > }
00:00:31 #233 [Verbose] > events = [[]]
00:00:31 #234 [Verbose] > }
00:00:31 #235 [Verbose] > {
00:00:31 #236 [Verbose] > task =
00:00:31 #237 [Verbose] > {
00:00:31 #238 [Verbose] > name = task_name "02"
00:00:31 #239 [Verbose] > scheduling = Manual WithSuggestion
00:00:31 #240 [Verbose] > }
00:00:31 #241 [Verbose] > events = [[]]
00:00:31 #242 [Verbose] > }
00:00:31 #243 [Verbose] > {
00:00:31 #244 [Verbose] > task =
00:00:31 #245 [Verbose] > {
00:00:31 #246 [Verbose] > name = task_name "03"
00:00:31 #247 [Verbose] > scheduling = Manual WithSuggestion
00:00:31 #248 [Verbose] > }
00:00:31 #249 [Verbose] > events = [[]]
00:00:31 #250 [Verbose] > }
00:00:31 #251 [Verbose] > ]]
00:00:31 #252 [Verbose] >
00:00:31 #253 [Verbose] > types ()
00:00:31 #254 [Verbose] > get_tasks () |> format_pretty |> console.write_line
00:00:31 #255 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0036-5787-8796-89342384c76f\main.spi
00:00:36 #256 [Verbose] >
00:00:36 #257 [Verbose] > ╭─[ 5.19s - return value ]─────────────────────────────────────────────────────╮
00:00:36 #258 [Verbose] > │ .rs output: │
00:00:36 #259 [Verbose] > │ UH2_0( │
00:00:36 #260 [Verbose] > │ UH0_1, │
00:00:36 #261 [Verbose] > │ "01", │
00:00:36 #262 [Verbose] > │ US4_0( │
00:00:36 #263 [Verbose] > │ US3_0, │
00:00:36 #264 [Verbose] > │ ), │
00:00:36 #265 [Verbose] > │ UH2_0( │
00:00:36 #266 [Verbose] > │ UH0_1, │
00:00:36 #267 [Verbose] > │ "02", │
00:00:36 #268 [Verbose] > │ US4_0( │
00:00:36 #269 [Verbose] > │ US3_0, │
00:00:36 #270 [Verbose] > │ ), │
00:00:36 #271 [Verbose] > │ UH2_0( │
00:00:36 #272 [Verbose] > │ UH0_1, │
00:00:36 #273 [Verbose] > │ "03", │
00:00:36 #274 [Verbose] > │ US4_0( │
00:00:36 #275 [Verbose] > │ US3_0, │
00:00:36 #276 [Verbose] > │ ), │
00:00:36 #277 [Verbose] > │ UH2_1, │
00:00:36 #278 [Verbose] > │ ), │
00:00:36 #279 [Verbose] > │ ), │
00:00:36 #280 [Verbose] > │ ) │
00:00:36 #281 [Verbose] > │ │
00:00:36 #282 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 #283 [Verbose] >
00:00:36 #284 [Verbose] > ╭─[ 5.21s - stdout ]───────────────────────────────────────────────────────────╮
00:00:36 #285 [Verbose] > │ │
00:00:36 #286 [Verbose] > │ .fsx: │
00:00:36 #287 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>] type │
00:00:36 #288 [Verbose] > │ std_string_String = class end │
00:00:36 #289 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&$0")>] type Ref<'T> = class end │
00:00:36 #290 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("str")>] type Str = class end │
00:00:36 #291 [Verbose] > │ type [<Struct>] US0 = │
00:00:36 #292 [Verbose] > │ | US0_0 │
00:00:36 #293 [Verbose] > │ | US0_1 │
00:00:36 #294 [Verbose] > │ | US0_2 │
00:00:36 #295 [Verbose] > │ | US0_3 │
00:00:36 #296 [Verbose] > │ | US0_4 │
00:00:36 #297 [Verbose] > │ | US0_5 │
00:00:36 #298 [Verbose] > │ | US0_6 │
00:00:36 #299 [Verbose] > │ | US0_7 │
00:00:36 #300 [Verbose] > │ | US0_8 │
00:00:36 #301 [Verbose] > │ | US0_9 │
00:00:36 #302 [Verbose] > │ | US0_10 │
00:00:36 #303 [Verbose] > │ | US0_11 │
00:00:36 #304 [Verbose] > │ and [<Struct>] US2 = │
00:00:36 #305 [Verbose] > │ | US2_0 │
00:00:36 #306 [Verbose] > │ | US2_1 │
00:00:36 #307 [Verbose] > │ and [<Struct>] US1 = │
00:00:36 #308 [Verbose] > │ | US1_0 of f0_0 : US2 │
00:00:36 #309 [Verbose] > │ and UH0 = │
00:00:36 #310 [Verbose] > │ | UH0_0 of int32 * US0 * int32 * US1 * UH0 │
00:00:36 #311 [Verbose] > │ | UH0_1 │
00:00:36 #312 [Verbose] > │ and [<Struct>] US3 = │
00:00:36 #313 [Verbose] > │ | US3_0 │
00:00:36 #314 [Verbose] > │ | US3_1 │
00:00:36 #315 [Verbose] > │ and [<Struct>] US7 = │
00:00:36 #316 [Verbose] > │ | US7_0 │
00:00:36 #317 [Verbose] > │ | US7_1 │
00:00:36 #318 [Verbose] > │ | US7_2 │
00:00:36 #319 [Verbose] > │ | US7_3 │
00:00:36 #320 [Verbose] > │ | US7_4 │
00:00:36 #321 [Verbose] > │ | US7_5 │
00:00:36 #322 [Verbose] > │ | US7_6 │
00:00:36 #323 [Verbose] > │ and [<Struct>] US6 = │
00:00:36 #324 [Verbose] > │ | US6_0 of f0_0 : int32 │
00:00:36 #325 [Verbose] > │ | US6_1 of f1_0 : US7 │
00:00:36 #326 [Verbose] > │ | US6_2 of f2_0 : int32 * f2_1 : US0 │
00:00:36 #327 [Verbose] > │ and UH1 = │
00:00:36 #328 [Verbose] > │ | UH1_0 of US6 * UH1 │
00:00:36 #329 [Verbose] > │ | UH1_1 │
00:00:36 #330 [Verbose] > │ and [<Struct>] US8 = │
00:00:36 #331 [Verbose] > │ | US8_0 of f0_0 : int32 │
00:00:36 #332 [Verbose] > │ | US8_1 of f1_0 : int32 │
00:00:36 #333 [Verbose] > │ | US8_2 of f2_0 : int32 │
00:00:36 #334 [Verbose] > │ and [<Struct>] US5 = │
00:00:36 #335 [Verbose] > │ | US5_0 of f0_0 : UH1 │
00:00:36 #336 [Verbose] > │ | US5_1 of f1_0 : US8 │
00:00:36 #337 [Verbose] > │ and [<Struct>] US4 = │
00:00:36 #338 [Verbose] > │ | US4_0 of f0_0 : US3 │
00:00:36 #339 [Verbose] > │ | US4_1 of f1_0 : US5 │
00:00:36 #340 [Verbose] > │ and UH2 = │
00:00:36 #341 [Verbose] > │ | UH2_0 of UH0 * string * US4 * UH2 │
00:00:36 #342 [Verbose] > │ | UH2_1 │
00:00:36 #343 [Verbose] > │ let rec method0 () : unit = │
00:00:36 #344 [Verbose] > │ let v0 : UH0 = UH0_1 │
00:00:36 #345 [Verbose] > │ let v1 : string = "01" │
00:00:36 #346 [Verbose] > │ let v2 : US3 = US3_0 │
00:00:36 #347 [Verbose] > │ let v3 : US4 = US4_0(v2) │
00:00:36 #348 [Verbose] > │ let v4 : UH0 = UH0_1 │
00:00:36 #349 [Verbose] > │ let v5 : string = "02" │
00:00:36 #350 [Verbose] > │ let v6 : US3 = US3_0 │
00:00:36 #351 [Verbose] > │ let v7 : US4 = US4_0(v6) │
00:00:36 #352 [Verbose] > │ let v8 : UH0 = UH0_1 │
00:00:36 #353 [Verbose] > │ let v9 : string = "03" │
00:00:36 #354 [Verbose] > │ let v10 : US3 = US3_0 │
00:00:36 #355 [Verbose] > │ let v11 : US4 = US4_0(v10) │
00:00:36 #356 [Verbose] > │ let v12 : UH2 = UH2_1 │
00:00:36 #357 [Verbose] > │ let v13 : UH2 = UH2_0(v8, v9, v11, v12) │
00:00:36 #358 [Verbose] > │ let v14 : UH2 = UH2_0(v4, v5, v7, v13) │
00:00:36 #359 [Verbose] > │ let v15 : UH2 = UH2_0(v0, v1, v3, v14) │
00:00:36 #360 [Verbose] > │ let v16 : string = "format!(\"{:#?}\", $0)" │
00:00:36 #361 [Verbose] > │ let v17 : std_string_String = Fable.Core.RustInterop.emitRustExpr v15 │
00:00:36 #362 [Verbose] > │ v16 │
00:00:36 #363 [Verbose] > │ System.Console.WriteLine v17 │
00:00:36 #364 [Verbose] > │ () │
00:00:36 #365 [Verbose] > │ method0() │
00:00:36 #366 [Verbose] > │ │
00:00:36 #367 [Verbose] > │ .rs: │
00:00:36 #368 [Verbose] > │ #![allow(dead_code,)] │
00:00:36 #369 [Verbose] > │ #![allow(non_camel_case_types,)] │
00:00:36 #370 [Verbose] > │ #![allow(non_snake_case,)] │
00:00:36 #371 [Verbose] > │ #![allow(non_upper_case_globals,)] │
00:00:36 #372 [Verbose] > │ #![allow(unreachable_code,)] │
00:00:36 #373 [Verbose] > │ #![allow(unused_attributes,)] │
00:00:36 #374 [Verbose] > │ #![allow(unused_imports,)] │
00:00:36 #375 [Verbose] > │ #![allow(unused_macros,)] │
00:00:36 #376 [Verbose] > │ #![allow(unused_parens,)] │
00:00:36 #377 [Verbose] > │ #![allow(unused_variables,)] │
00:00:36 #378 [Verbose] > │ mod module_ccfa04bf { │
00:00:36 #379 [Verbose] > │ pub mod Spiral_eval { │
00:00:36 #380 [Verbose] > │ use super::*; │
00:00:36 #381 [Verbose] > │ use fable_library_rust::Native_::LrcPtr; │
00:00:36 #382 [Verbose] > │ use fable_library_rust::Native_::MutCell; │
00:00:36 #383 [Verbose] > │ use fable_library_rust::Native_::on_startup; │
00:00:36 #384 [Verbose] > │ use fable_library_rust::String_::printfn; │
00:00:36 #385 [Verbose] > │ use fable_library_rust::String_::string; │
00:00:36 #386 [Verbose] > │ #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:36 #387 [Verbose] > │ pub enum US0 { │
00:00:36 #388 [Verbose] > │ US0_0, │
00:00:36 #389 [Verbose] > │ US0_1, │
00:00:36 #390 [Verbose] > │ US0_2, │
00:00:36 #391 [Verbose] > │ US0_3, │
00:00:36 #392 [Verbose] > │ US0_4, │
00:00:36 #393 [Verbose] > │ US0_5, │
00:00:36 #394 [Verbose] > │ US0_6, │
00:00:36 #395 [Verbose] > │ US0_7, │
00:00:36 #396 [Verbose] > │ US0_8, │
00:00:36 #397 [Verbose] > │ US0_9, │
00:00:36 #398 [Verbose] > │ US0_10, │
00:00:36 #399 [Verbose] > │ US0_11, │
00:00:36 #400 [Verbose] > │ } │
00:00:36 #401 [Verbose] > │ impl Spiral_eval::US0 { │
00:00:36 #402 [Verbose] > │ pub fn get_IsUS0_0(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:36 #403 [Verbose] > │ ()) │
00:00:36 #404 [Verbose] > │ -> bool { │
00:00:36 #405 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:36 #406 [Verbose] > │ } │
00:00:36 #407 [Verbose] > │ pub fn get_IsUS0_1(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:36 #408 [Verbose] > │ ()) │
00:00:36 #409 [Verbose] > │ -> bool { │
00:00:36 #410 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:36 #411 [Verbose] > │ } │
00:00:36 #412 [Verbose] > │ pub fn get_IsUS0_2(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:36 #413 [Verbose] > │ ()) │
00:00:36 #414 [Verbose] > │ -> bool { │
00:00:36 #415 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:36 #416 [Verbose] > │ } │
00:00:36 #417 [Verbose] > │ pub fn get_IsUS0_3(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:36 #418 [Verbose] > │ ()) │
00:00:36 #419 [Verbose] > │ -> bool { │
00:00:36 #420 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:36 #421 [Verbose] > │ } │
00:00:36 #422 [Verbose] > │ pub fn get_IsUS0_4(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:36 #423 [Verbose] > │ ()) │
00:00:36 #424 [Verbose] > │ -> bool { │
00:00:36 #425 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:36 #426 [Verbose] > │ } │
00:00:36 #427 [Verbose] > │ pub fn get_IsUS0_5(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:36 #428 [Verbose] > │ ()) │
00:00:36 #429 [Verbose] > │ -> bool { │
00:00:36 #430 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:36 #431 [Verbose] > │ } │
00:00:36 #432 [Verbose] > │ pub fn get_IsUS0_6(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:36 #433 [Verbose] > │ ()) │
00:00:36 #434 [Verbose] > │ -> bool { │
00:00:36 #435 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:36 #436 [Verbose] > │ } │
00:00:36 #437 [Verbose] > │ pub fn get_IsUS0_7(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:36 #438 [Verbose] > │ ()) │
00:00:36 #439 [Verbose] > │ -> bool { │
00:00:36 #440 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:36 #441 [Verbose] > │ } │
00:00:36 #442 [Verbose] > │ pub fn get_IsUS0_8(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:36 #443 [Verbose] > │ ()) │
00:00:36 #444 [Verbose] > │ -> bool { │
00:00:36 #445 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:36 #446 [Verbose] > │ } │
00:00:36 #447 [Verbose] > │ pub fn get_IsUS0_9(this_: &MutCell<Spiral_eval::US0>, unitArg: │
00:00:36 #448 [Verbose] > │ ()) │
00:00:36 #449 [Verbose] > │ -> bool { │
00:00:36 #450 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:36 #451 [Verbose] > │ } │
00:00:36 #452 [Verbose] > │ pub fn get_IsUS0_10(this_: &MutCell<Spiral_eval::US0>, │
00:00:36 #453 [Verbose] > │ unitArg: ()) -> bool { │
00:00:36 #454 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:36 #455 [Verbose] > │ } │
00:00:36 #456 [Verbose] > │ pub fn get_IsUS0_11(this_: &MutCell<Spiral_eval::US0>, │
00:00:36 #457 [Verbose] > │ unitArg: ()) -> bool { │
00:00:36 #458 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:36 #459 [Verbose] > │ } │
00:00:36 #460 [Verbose] > │ } │
00:00:36 #461 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US0 { │
00:00:36 #462 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:36 #463 [Verbose] > │ { │
00:00:36 #464 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:36 #465 [Verbose] > │ } │
00:00:36 #466 [Verbose] > │ } │
00:00:36 #467 [Verbose] > │ #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:36 #468 [Verbose] > │ pub enum US2 { US2_0, US2_1, } │
00:00:36 #469 [Verbose] > │ impl Spiral_eval::US2 { │
00:00:36 #470 [Verbose] > │ pub fn get_IsUS2_0(this_: &MutCell<Spiral_eval::US2>, unitArg: │
00:00:36 #471 [Verbose] > │ ()) │
00:00:36 #472 [Verbose] > │ -> bool { │
00:00:36 #473 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:36 #474 [Verbose] > │ } │
00:00:36 #475 [Verbose] > │ pub fn get_IsUS2_1(this_: &MutCell<Spiral_eval::US2>, unitArg: │
00:00:36 #476 [Verbose] > │ ()) │
00:00:36 #477 [Verbose] > │ -> bool { │
00:00:36 #478 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:36 #479 [Verbose] > │ } │
00:00:36 #480 [Verbose] > │ } │
00:00:36 #481 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US2 { │
00:00:36 #482 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:36 #483 [Verbose] > │ { │
00:00:36 #484 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:36 #485 [Verbose] > │ } │
00:00:37 #486 [Verbose] > │ } │
00:00:37 #487 [Verbose] > │ #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:37 #488 [Verbose] > │ pub enum US1 { US1_0(Spiral_eval::US2), } │
00:00:37 #489 [Verbose] > │ impl Spiral_eval::US1 { │
00:00:37 #490 [Verbose] > │ pub fn get_IsUS1_0(this_: &MutCell<Spiral_eval::US1>, unitArg: │
00:00:37 #491 [Verbose] > │ ()) │
00:00:37 #492 [Verbose] > │ -> bool { │
00:00:37 #493 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:37 #494 [Verbose] > │ } │
00:00:37 #495 [Verbose] > │ } │
00:00:37 #496 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US1 { │
00:00:37 #497 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:37 #498 [Verbose] > │ { │
00:00:37 #499 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:37 #500 [Verbose] > │ } │
00:00:37 #501 [Verbose] > │ } │
00:00:37 #502 [Verbose] > │ #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:37 #503 [Verbose] > │ pub enum UH0 { │
00:00:37 #504 [Verbose] > │ UH0_0(i32, Spiral_eval::US0, i32, Spiral_eval::US1, │
00:00:37 #505 [Verbose] > │ LrcPtr<Spiral_eval::UH0>), │
00:00:37 #506 [Verbose] > │ UH0_1, │
00:00:37 #507 [Verbose] > │ } │
00:00:37 #508 [Verbose] > │ impl Spiral_eval::UH0 { │
00:00:37 #509 [Verbose] > │ pub fn get_IsUH0_0(this_: LrcPtr<Spiral_eval::UH0>, unitArg: ()) │
00:00:37 #510 [Verbose] > │ -> bool { │
00:00:37 #511 [Verbose] > │ if let Spiral_eval::UH0::UH0_0(this__0_0, this__0_1, │
00:00:37 #512 [Verbose] > │ this__0_2, this__0_3, │
00:00:37 #513 [Verbose] > │ this__0_4) = this_.as_ref() { │
00:00:37 #514 [Verbose] > │ true │
00:00:37 #515 [Verbose] > │ } else { false } │
00:00:37 #516 [Verbose] > │ } │
00:00:37 #517 [Verbose] > │ pub fn get_IsUH0_1(this_: LrcPtr<Spiral_eval::UH0>, unitArg: ()) │
00:00:37 #518 [Verbose] > │ -> bool { │
00:00:37 #519 [Verbose] > │ if let Spiral_eval::UH0::UH0_1 = this_.as_ref() { │
00:00:37 #520 [Verbose] > │ true │
00:00:37 #521 [Verbose] > │ } else { false } │
00:00:37 #522 [Verbose] > │ } │
00:00:37 #523 [Verbose] > │ } │
00:00:37 #524 [Verbose] > │ impl core::fmt::Display for Spiral_eval::UH0 { │
00:00:37 #525 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:37 #526 [Verbose] > │ { │
00:00:37 #527 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:37 #528 [Verbose] > │ } │
00:00:37 #529 [Verbose] > │ } │
00:00:37 #530 [Verbose] > │ #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:37 #531 [Verbose] > │ pub enum US3 { US3_0, US3_1, } │
00:00:37 #532 [Verbose] > │ impl Spiral_eval::US3 { │
00:00:37 #533 [Verbose] > │ pub fn get_IsUS3_0(this_: &MutCell<Spiral_eval::US3>, unitArg: │
00:00:37 #534 [Verbose] > │ ()) │
00:00:37 #535 [Verbose] > │ -> bool { │
00:00:37 #536 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:37 #537 [Verbose] > │ } │
00:00:37 #538 [Verbose] > │ pub fn get_IsUS3_1(this_: &MutCell<Spiral_eval::US3>, unitArg: │
00:00:37 #539 [Verbose] > │ ()) │
00:00:37 #540 [Verbose] > │ -> bool { │
00:00:37 #541 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:37 #542 [Verbose] > │ } │
00:00:37 #543 [Verbose] > │ } │
00:00:37 #544 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US3 { │
00:00:37 #545 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:37 #546 [Verbose] > │ { │
00:00:37 #547 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:37 #548 [Verbose] > │ } │
00:00:37 #549 [Verbose] > │ } │
00:00:37 #550 [Verbose] > │ #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:37 #551 [Verbose] > │ pub enum US7 { US7_0, US7_1, US7_2, US7_3, US7_4, US7_5, US7_6, } │
00:00:37 #552 [Verbose] > │ impl Spiral_eval::US7 { │
00:00:37 #553 [Verbose] > │ pub fn get_IsUS7_0(this_: &MutCell<Spiral_eval::US7>, unitArg: │
00:00:37 #554 [Verbose] > │ ()) │
00:00:37 #555 [Verbose] > │ -> bool { │
00:00:37 #556 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:37 #557 [Verbose] > │ } │
00:00:37 #558 [Verbose] > │ pub fn get_IsUS7_1(this_: &MutCell<Spiral_eval::US7>, unitArg: │
00:00:37 #559 [Verbose] > │ ()) │
00:00:37 #560 [Verbose] > │ -> bool { │
00:00:37 #561 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:37 #562 [Verbose] > │ } │
00:00:37 #563 [Verbose] > │ pub fn get_IsUS7_2(this_: &MutCell<Spiral_eval::US7>, unitArg: │
00:00:37 #564 [Verbose] > │ ()) │
00:00:37 #565 [Verbose] > │ -> bool { │
00:00:37 #566 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:37 #567 [Verbose] > │ } │
00:00:37 #568 [Verbose] > │ pub fn get_IsUS7_3(this_: &MutCell<Spiral_eval::US7>, unitArg: │
00:00:37 #569 [Verbose] > │ ()) │
00:00:37 #570 [Verbose] > │ -> bool { │
00:00:37 #571 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:37 #572 [Verbose] > │ } │
00:00:37 #573 [Verbose] > │ pub fn get_IsUS7_4(this_: &MutCell<Spiral_eval::US7>, unitArg: │
00:00:37 #574 [Verbose] > │ ()) │
00:00:37 #575 [Verbose] > │ -> bool { │
00:00:37 #576 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:37 #577 [Verbose] > │ } │
00:00:37 #578 [Verbose] > │ pub fn get_IsUS7_5(this_: &MutCell<Spiral_eval::US7>, unitArg: │
00:00:37 #579 [Verbose] > │ ()) │
00:00:37 #580 [Verbose] > │ -> bool { │
00:00:37 #581 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:37 #582 [Verbose] > │ } │
00:00:37 #583 [Verbose] > │ pub fn get_IsUS7_6(this_: &MutCell<Spiral_eval::US7>, unitArg: │
00:00:37 #584 [Verbose] > │ ()) │
00:00:37 #585 [Verbose] > │ -> bool { │
00:00:37 #586 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:37 #587 [Verbose] > │ } │
00:00:37 #588 [Verbose] > │ } │
00:00:37 #589 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US7 { │
00:00:37 #590 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:37 #591 [Verbose] > │ { │
00:00:37 #592 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:37 #593 [Verbose] > │ } │
00:00:37 #594 [Verbose] > │ } │
00:00:37 #595 [Verbose] > │ #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:37 #596 [Verbose] > │ pub enum US6 { │
00:00:37 #597 [Verbose] > │ US6_0(i32), │
00:00:37 #598 [Verbose] > │ US6_1(Spiral_eval::US7), │
00:00:37 #599 [Verbose] > │ US6_2(i32, Spiral_eval::US0), │
00:00:37 #600 [Verbose] > │ } │
00:00:37 #601 [Verbose] > │ impl Spiral_eval::US6 { │
00:00:37 #602 [Verbose] > │ pub fn get_IsUS6_0(this_: &MutCell<Spiral_eval::US6>, unitArg: │
00:00:37 #603 [Verbose] > │ ()) │
00:00:37 #604 [Verbose] > │ -> bool { │
00:00:37 #605 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:37 #606 [Verbose] > │ } │
00:00:37 #607 [Verbose] > │ pub fn get_IsUS6_1(this_: &MutCell<Spiral_eval::US6>, unitArg: │
00:00:37 #608 [Verbose] > │ ()) │
00:00:37 #609 [Verbose] > │ -> bool { │
00:00:37 #610 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:37 #611 [Verbose] > │ } │
00:00:37 #612 [Verbose] > │ pub fn get_IsUS6_2(this_: &MutCell<Spiral_eval::US6>, unitArg: │
00:00:37 #613 [Verbose] > │ ()) │
00:00:37 #614 [Verbose] > │ -> bool { │
00:00:37 #615 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:37 #616 [Verbose] > │ } │
00:00:37 #617 [Verbose] > │ } │
00:00:37 #618 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US6 { │
00:00:37 #619 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:37 #620 [Verbose] > │ { │
00:00:37 #621 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:37 #622 [Verbose] > │ } │
00:00:37 #623 [Verbose] > │ } │
00:00:37 #624 [Verbose] > │ #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:37 #625 [Verbose] > │ pub enum UH1 { │
00:00:37 #626 [Verbose] > │ UH1_0(Spiral_eval::US6, LrcPtr<Spiral_eval::UH1>), │
00:00:37 #627 [Verbose] > │ UH1_1, │
00:00:37 #628 [Verbose] > │ } │
00:00:37 #629 [Verbose] > │ impl Spiral_eval::UH1 { │
00:00:37 #630 [Verbose] > │ pub fn get_IsUH1_0(this_: LrcPtr<Spiral_eval::UH1>, unitArg: ()) │
00:00:37 #631 [Verbose] > │ -> bool { │
00:00:37 #632 [Verbose] > │ if let Spiral_eval::UH1::UH1_0(this__0_0, this__0_1) = │
00:00:37 #633 [Verbose] > │ this_.as_ref() { │
00:00:37 #634 [Verbose] > │ true │
00:00:37 #635 [Verbose] > │ } else { false } │
00:00:37 #636 [Verbose] > │ } │
00:00:37 #637 [Verbose] > │ pub fn get_IsUH1_1(this_: LrcPtr<Spiral_eval::UH1>, unitArg: ()) │
00:00:37 #638 [Verbose] > │ -> bool { │
00:00:37 #639 [Verbose] > │ if let Spiral_eval::UH1::UH1_1 = this_.as_ref() { │
00:00:37 #640 [Verbose] > │ true │
00:00:37 #641 [Verbose] > │ } else { false } │
00:00:37 #642 [Verbose] > │ } │
00:00:37 #643 [Verbose] > │ } │
00:00:37 #644 [Verbose] > │ impl core::fmt::Display for Spiral_eval::UH1 { │
00:00:37 #645 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:37 #646 [Verbose] > │ { │
00:00:37 #647 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:37 #648 [Verbose] > │ } │
00:00:37 #649 [Verbose] > │ } │
00:00:37 #650 [Verbose] > │ #[derive(Clone, Copy, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:37 #651 [Verbose] > │ pub enum US8 { US8_0(i32), US8_1(i32), US8_2(i32), } │
00:00:37 #652 [Verbose] > │ impl Spiral_eval::US8 { │
00:00:37 #653 [Verbose] > │ pub fn get_IsUS8_0(this_: &MutCell<Spiral_eval::US8>, unitArg: │
00:00:37 #654 [Verbose] > │ ()) │
00:00:37 #655 [Verbose] > │ -> bool { │
00:00:37 #656 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:37 #657 [Verbose] > │ } │
00:00:37 #658 [Verbose] > │ pub fn get_IsUS8_1(this_: &MutCell<Spiral_eval::US8>, unitArg: │
00:00:37 #659 [Verbose] > │ ()) │
00:00:37 #660 [Verbose] > │ -> bool { │
00:00:37 #661 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:37 #662 [Verbose] > │ } │
00:00:37 #663 [Verbose] > │ pub fn get_IsUS8_2(this_: &MutCell<Spiral_eval::US8>, unitArg: │
00:00:37 #664 [Verbose] > │ ()) │
00:00:37 #665 [Verbose] > │ -> bool { │
00:00:37 #666 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:37 #667 [Verbose] > │ } │
00:00:37 #668 [Verbose] > │ } │
00:00:37 #669 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US8 { │
00:00:37 #670 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:37 #671 [Verbose] > │ { │
00:00:37 #672 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:37 #673 [Verbose] > │ } │
00:00:37 #674 [Verbose] > │ } │
00:00:37 #675 [Verbose] > │ #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:37 #676 [Verbose] > │ pub enum US5 { │
00:00:37 #677 [Verbose] > │ US5_0(LrcPtr<Spiral_eval::UH1>), │
00:00:37 #678 [Verbose] > │ US5_1(Spiral_eval::US8), │
00:00:37 #679 [Verbose] > │ } │
00:00:37 #680 [Verbose] > │ impl Spiral_eval::US5 { │
00:00:37 #681 [Verbose] > │ pub fn get_IsUS5_0(this_: &MutCell<Spiral_eval::US5>, unitArg: │
00:00:37 #682 [Verbose] > │ ()) │
00:00:37 #683 [Verbose] > │ -> bool { │
00:00:37 #684 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:37 #685 [Verbose] > │ } │
00:00:37 #686 [Verbose] > │ pub fn get_IsUS5_1(this_: &MutCell<Spiral_eval::US5>, unitArg: │
00:00:37 #687 [Verbose] > │ ()) │
00:00:37 #688 [Verbose] > │ -> bool { │
00:00:37 #689 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:37 #690 [Verbose] > │ } │
00:00:37 #691 [Verbose] > │ } │
00:00:37 #692 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US5 { │
00:00:37 #693 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:37 #694 [Verbose] > │ { │
00:00:37 #695 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:37 #696 [Verbose] > │ } │
00:00:37 #697 [Verbose] > │ } │
00:00:37 #698 [Verbose] > │ #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:37 #699 [Verbose] > │ pub enum US4 { US4_0(Spiral_eval::US3), US4_1(Spiral_eval::US5), } │
00:00:37 #700 [Verbose] > │ impl Spiral_eval::US4 { │
00:00:37 #701 [Verbose] > │ pub fn get_IsUS4_0(this_: &MutCell<Spiral_eval::US4>, unitArg: │
00:00:37 #702 [Verbose] > │ ()) │
00:00:37 #703 [Verbose] > │ -> bool { │
00:00:37 #704 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:37 #705 [Verbose] > │ } │
00:00:37 #706 [Verbose] > │ pub fn get_IsUS4_1(this_: &MutCell<Spiral_eval::US4>, unitArg: │
00:00:37 #707 [Verbose] > │ ()) │
00:00:37 #708 [Verbose] > │ -> bool { │
00:00:37 #709 [Verbose] > │ if unreachable!() { true } else { false } │
00:00:37 #710 [Verbose] > │ } │
00:00:37 #711 [Verbose] > │ } │
00:00:37 #712 [Verbose] > │ impl core::fmt::Display for Spiral_eval::US4 { │
00:00:37 #713 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:37 #714 [Verbose] > │ { │
00:00:37 #715 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:37 #716 [Verbose] > │ } │
00:00:37 #717 [Verbose] > │ } │
00:00:37 #718 [Verbose] > │ #[derive(Clone, Debug, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:37 #719 [Verbose] > │ pub enum UH2 { │
00:00:37 #720 [Verbose] > │ UH2_0(LrcPtr<Spiral_eval::UH0>, string, Spiral_eval::US4, │
00:00:37 #721 [Verbose] > │ LrcPtr<Spiral_eval::UH2>), │
00:00:37 #722 [Verbose] > │ UH2_1, │
00:00:37 #723 [Verbose] > │ } │
00:00:37 #724 [Verbose] > │ impl Spiral_eval::UH2 { │
00:00:37 #725 [Verbose] > │ pub fn get_IsUH2_0(this_: LrcPtr<Spiral_eval::UH2>, unitArg: ()) │
00:00:37 #726 [Verbose] > │ -> bool { │
00:00:37 #727 [Verbose] > │ if let Spiral_eval::UH2::UH2_0(this__0_0, this__0_1, │
00:00:37 #728 [Verbose] > │ this__0_2, this__0_3) = │
00:00:37 #729 [Verbose] > │ this_.as_ref() { │
00:00:37 #730 [Verbose] > │ true │
00:00:37 #731 [Verbose] > │ } else { false } │
00:00:37 #732 [Verbose] > │ } │
00:00:37 #733 [Verbose] > │ pub fn get_IsUH2_1(this_: LrcPtr<Spiral_eval::UH2>, unitArg: ()) │
00:00:37 #734 [Verbose] > │ -> bool { │
00:00:37 #735 [Verbose] > │ if let Spiral_eval::UH2::UH2_1 = this_.as_ref() { │
00:00:37 #736 [Verbose] > │ true │
00:00:37 #737 [Verbose] > │ } else { false } │
00:00:37 #738 [Verbose] > │ } │
00:00:37 #739 [Verbose] > │ } │
00:00:37 #740 [Verbose] > │ impl core::fmt::Display for Spiral_eval::UH2 { │
00:00:37 #741 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:37 #742 [Verbose] > │ { │
00:00:37 #743 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:37 #744 [Verbose] > │ } │
00:00:37 #745 [Verbose] > │ } │
00:00:37 #746 [Verbose] > │ pub fn method0() { │
00:00:37 #747 [Verbose] > │ let v17: std::string::String = │
00:00:37 #748 [Verbose] > │ format!("{:#?}", │
00:00:37 #749 [Verbose] > │ LrcPtr::new(Spiral_eval::UH2::UH2_0(LrcPtr::new(Spiral_eval::UH0::UH0_1), │
00:00:37 #750 [Verbose] > │ │
00:00:37 #751 [Verbose] > │ string("01"), │
00:00:37 #752 [Verbose] > │ │
00:00:37 #753 [Verbose] > │ Spiral_eval::US4::US4_0(Spiral_eval::US3::US3_0), │
00:00:37 #754 [Verbose] > │ │
00:00:37 #755 [Verbose] > │ LrcPtr::new(Spiral_eval::UH2::UH2_0(LrcPtr::new(Spiral_eval::UH0::UH0_1), │
00:00:37 #756 [Verbose] > │ │
00:00:37 #757 [Verbose] > │ string("02"), │
00:00:37 #758 [Verbose] > │ │
00:00:37 #759 [Verbose] > │ Spiral_eval::US4::US4_0(Spiral_eval::US3::US3_0), │
00:00:37 #760 [Verbose] > │ │
00:00:37 #761 [Verbose] > │ LrcPtr::new(Spiral_eval::UH2::UH2_0(LrcPtr::new(Spiral_eval::UH0::UH0_1), │
00:00:37 #762 [Verbose] > │ │
00:00:37 #763 [Verbose] > │ string("03"), │
00:00:37 #764 [Verbose] > │ │
00:00:37 #765 [Verbose] > │ Spiral_eval::US4::US4_0(Spiral_eval::US3::US3_0), │
00:00:37 #766 [Verbose] > │ │
00:00:37 #767 [Verbose] > │ LrcPtr::new(Spiral_eval::UH2::UH2_1)))))))); │
00:00:37 #768 [Verbose] > │ printfn!("{0}", v17); │
00:00:37 #769 [Verbose] > │ () │
00:00:37 #770 [Verbose] > │ } │
00:00:37 #771 [Verbose] > │ on_startup!(Spiral_eval::method0()); │
00:00:37 #772 [Verbose] > │ } │
00:00:37 #773 [Verbose] > │ } │
00:00:37 #774 [Verbose] > │ pub use module_ccfa04bf::*; │
00:00:37 #775 [Verbose] > │ │
00:00:37 #776 [Verbose] > │ │
00:00:37 #777 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 #778 [Verbose] >
00:00:37 #779 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:37 #780 [Verbose] > // // test
00:00:37 #781 [Verbose] > // // rust=
00:00:37 #782 [Verbose] >
00:00:37 #783 [Verbose] > get_tasks ()
00:00:37 #784 [Verbose] > |> listm'.try_item 0i32
00:00:37 #785 [Verbose] > |> fun (Some task) => task.task.name
00:00:37 #786 [Verbose] > |> _assert_eq (task_name "01")
00:00:37 #787 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0037-0328-2806-21ad01b54685\main.spi
00:00:41 #788 [Verbose] >
00:00:41 #789 [Verbose] > ╭─[ 4.13s - return value ]─────────────────────────────────────────────────────╮
00:00:41 #790 [Verbose] > │ .rs output: │
00:00:41 #791 [Verbose] > │ │
00:00:41 #792 [Verbose] > │ │
00:00:41 #793 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:41 #794 [Verbose] >
00:00:41 #795 [Verbose] > ╭─[ 4.14s - stdout ]───────────────────────────────────────────────────────────╮
00:00:41 #796 [Verbose] > │ │
00:00:41 #797 [Verbose] > │ .fsx: │
00:00:41 #798 [Verbose] > │ let rec method0 () : unit = │
00:00:41 #799 [Verbose] > │ let v3 : string = "01" │
00:00:41 #800 [Verbose] > │ let v4 : string = $"__expect / actual: %A{v3} / expected: %A{v3}" │
00:00:41 #801 [Verbose] > │ () │
00:00:41 #802 [Verbose] > │ method0() │
00:00:41 #803 [Verbose] > │ │
00:00:41 #804 [Verbose] > │ .rs: │
00:00:41 #805 [Verbose] > │ #![allow(dead_code,)] │
00:00:41 #806 [Verbose] > │ #![allow(non_camel_case_types,)] │
00:00:41 #807 [Verbose] > │ #![allow(non_snake_case,)] │
00:00:41 #808 [Verbose] > │ #![allow(non_upper_case_globals,)] │
00:00:41 #809 [Verbose] > │ #![allow(unreachable_code,)] │
00:00:41 #810 [Verbose] > │ #![allow(unused_attributes,)] │
00:00:41 #811 [Verbose] > │ #![allow(unused_imports,)] │
00:00:41 #812 [Verbose] > │ #![allow(unused_macros,)] │
00:00:41 #813 [Verbose] > │ #![allow(unused_parens,)] │
00:00:41 #814 [Verbose] > │ #![allow(unused_variables,)] │
00:00:41 #815 [Verbose] > │ mod module_ccfa04bf { │
00:00:41 #816 [Verbose] > │ pub mod Spiral_eval { │
00:00:41 #817 [Verbose] > │ use super::*; │
00:00:41 #818 [Verbose] > │ use fable_library_rust::Native_::on_startup; │
00:00:41 #819 [Verbose] > │ use fable_library_rust::String_::sprintf; │
00:00:41 #820 [Verbose] > │ use fable_library_rust::String_::string; │
00:00:41 #821 [Verbose] > │ pub fn method0() { │
00:00:41 #822 [Verbose] > │ let v4: string = │
00:00:41 #823 [Verbose] > │ sprintf!("__expect / actual: {:?} / expected: {:?}", │
00:00:41 #824 [Verbose] > │ string("01"), string("01")); │
00:00:41 #825 [Verbose] > │ () │
00:00:41 #826 [Verbose] > │ } │
00:00:41 #827 [Verbose] > │ on_startup!(Spiral_eval::method0()); │
00:00:41 #828 [Verbose] > │ } │
00:00:41 #829 [Verbose] > │ } │
00:00:41 #830 [Verbose] > │ pub use module_ccfa04bf::*; │
00:00:41 #831 [Verbose] > │ │
00:00:41 #832 [Verbose] > │ │
00:00:41 #833 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:41 #834 [Verbose] >
00:00:41 #835 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:41 #836 [Verbose] > // // test
00:00:41 #837 [Verbose] >
00:00:41 #838 [Verbose] > ()
00:00:41 #839 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0037-0742-4279-4f25202cdf77\main.spi
00:00:41 #840 [Verbose] >
00:00:41 #841 [Verbose] > ╭─[ 395.08ms - stdout ]────────────────────────────────────────────────────────╮
00:00:41 #842 [Verbose] > │ let rec method0 () : unit = │
00:00:41 #843 [Verbose] > │ () │
00:00:41 #844 [Verbose] > │ method0() │
00:00:41 #845 [Verbose] > │ │
00:00:41 #846 [Verbose] > │ │
00:00:41 #847 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:43 #848 [Verbose] > [NbConvertApp] Converting notebook Tasks.dib.ipynb to html
00:00:43 #849 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:43 #850 [Verbose] > validate(nb)
00:00:44 #851 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:44 #852 [Verbose] > return _pygments_highlight(
00:00:44 #853 [Verbose] > [NbConvertApp] Writing 313715 bytes to Tasks.dib.html
00:00:45 #854 [Debug] executeAsync / exitCode: 0 / output.Length: 55902
00:00:45 #855 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: Tasks.dib
00:00:00 #2 [Debug] parseDibCode / output: Spi / file: Tasks.dib
In [ ]:
{ . "$ScriptDir/../apps/spiral/temp/test/build.ps1" } | Invoke-Block
── pwsh ────────────────────────────────────────────────────────────────────────
. ../../../../scripts/nbs_header.ps1
. ../../../../scripts/core.ps1
── pwsh ────────────────────────────────────────────────────────────────────────
{ . ../../../../apps/spiral/dist/Supervisor$(GetExecutableSuffix)
--execute-command "pwsh -c `"../../../../scripts/invoke-dib.ps1 test.dib`"" } |
Invoke-Block -Retries 5
╭─[ 19.05s - stdout ]──────────────────────────────────────────────────────────╮
│ 00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:00 #2 [Debug] executeAsync / options: { Command = │
│ "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral │
│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port │
│ 13805 --default-int i32 --default-float f64" │
│ WorkingDirectory = None │
│ CancellationToken = Some System.Threading.CancellationToken │
│ OnLine = Some <fun:main@464-1020> } │
│ 00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral\temp\test │
│ 00:00:00 #4 [Verbose] > dll_path: │
│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language │
│ 2\artifacts\bin\The Spiral Language 2\release │
│ 00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: │
│ http://localhost:13805 │
│ 00:00:00 #6 [Debug] runWithTimeoutAsync / timeout: 500 │
│ 00:00:01 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │
│ 00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │
│ result.Length: │
│ 00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │
│ 13805 / retry: 0 │
│ 00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805 │
│ 00:00:01 #11 [Debug] executeAsync / options: { Command = "pwsh -c │
│ "../../../../scripts/invoke-dib.ps1 test.dib"" │
│ WorkingDirectory = None │
│ CancellationToken = Some System.Threading.CancellationToken │
│ OnLine = None } │
│ 00:00:03 #12 [Verbose] > │
│ 00:00:03 #13 [Verbose] > ── markdown │
│ ──────────────────────────────────────────────────────────────────── │
│ 00:00:03 #14 [Verbose] > │
│ ╭─────────────────────────────────────────────────────────────────────────── │
│ ───╮ │
│ 00:00:03 #15 [Verbose] > │ # test (Polyglot) │
│ │ │
│ 00:00:03 #16 [Verbose] > │
│ ╰─────────────────────────────────────────────────────────────────────────── │
│ ───╯ │
│ 00:00:03 #17 [Verbose] > │
│ 00:00:03 #18 [Verbose] > ── spiral │
│ ────────────────────────────────────────────────────────────────────── │
│ 00:00:03 #19 [Verbose] > // // test │
│ 00:00:03 #20 [Verbose] > │
│ 00:00:03 #21 [Verbose] > open testing │
│ 00:00:07 #22 [Verbose] > Building │
│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0037-2178-7860-7a6f3 │
│ 6788dc5\main.spi │
│ 00:00:10 #23 [Verbose] > │
│ 00:00:10 #24 [Verbose] > ╭─[ 6.30s - stdout │
│ ]───────────────────────────────────────────────────────────╮ │
│ 00:00:10 #25 [Verbose] > │ () │
│ │ │
│ 00:00:10 #26 [Verbose] > │ │
│ │
│ │ │
│ 00:00:10 #27 [Verbose] > │ │
│ │
│ │ │
│ 00:00:10 #28 [Verbose] > │
│ ╰─────────────────────────────────────────────────────────────────────────── │
│ ───╯ │
│ 00:00:10 #29 [Verbose] > │
│ 00:00:10 #30 [Verbose] > ── spiral │
│ ────────────────────────────────────────────────────────────────────── │
│ 00:00:10 #31 [Verbose] > nominal i = () │
│ 00:00:10 #32 [Verbose] > nominal e = () │
│ 00:00:10 #33 [Verbose] > nominal s = () │
│ 00:00:10 #34 [Verbose] > nominal n = () │
│ 00:00:10 #35 [Verbose] > nominal t = () │
│ 00:00:10 #36 [Verbose] > nominal f = () │
│ 00:00:10 #37 [Verbose] > nominal j = () │
│ 00:00:10 #38 [Verbose] > nominal p = () │
│ 00:00:10 #39 [Verbose] > │
│ 00:00:10 #40 [Verbose] > union sensing = │
│ 00:00:10 #41 [Verbose] > | Si : s * i │
│ 00:00:10 #42 [Verbose] > | Se : s * e │
│ 00:00:10 #43 [Verbose] > │
│ 00:00:10 #44 [Verbose] > union intuition = │
│ 00:00:10 #45 [Verbose] > | Ni : n * i │
│ 00:00:10 #46 [Verbose] > | Ne : n * e │
│ 00:00:10 #47 [Verbose] > │
│ 00:00:10 #48 [Verbose] > union thinking = │
│ 00:00:10 #49 [Verbose] > | Ti : t * i │
│ 00:00:10 #50 [Verbose] > | Te : t * e │
│ 00:00:10 #51 [Verbose] > │
│ 00:00:10 #52 [Verbose] > union feeling = │
│ 00:00:10 #53 [Verbose] > | Fi : f * i │
│ 00:00:10 #54 [Verbose] > | Fe : f * e │
│ 00:00:10 #55 [Verbose] > │
│ 00:00:10 #56 [Verbose] > union function_stack = │
│ 00:00:10 #57 [Verbose] > | FS : sensing * intuition * thinking * feeling │
│ 00:00:10 #58 [Verbose] > │
│ 00:00:10 #59 [Verbose] > union personality_type = │
│ 00:00:10 #60 [Verbose] > | ISTJ : i * s * t * j * function_stack │
│ 00:00:10 #61 [Verbose] > | ISFJ : i * s * f * j * function_stack │
│ 00:00:10 #62 [Verbose] > | INFJ : i * n * f * j * function_stack │
│ 00:00:10 #63 [Verbose] > | INTJ : i * n * t * j * function_stack │
│ 00:00:10 #64 [Verbose] > | ISTP : i * s * t * p * function_stack │
│ 00:00:10 #65 [Verbose] > | ISFP : i * s * f * p * function_stack │
│ 00:00:10 #66 [Verbose] > | INFP : i * n * f * p * function_stack │
│ 00:00:10 #67 [Verbose] > | INTP : i * n * t * p * function_stack │
│ 00:00:10 #68 [Verbose] > | ESTP : e * s * t * p * function_stack │
│ 00:00:10 #69 [Verbose] > | ESFP : e * s * f * p * function_stack │
│ 00:00:10 #70 [Verbose] > | ENFP : e * n * f * p * function_stack │
│ 00:00:10 #71 [Verbose] > | ENTP : e * n * t * p * function_stack │
│ 00:00:10 #72 [Verbose] > | ESTJ : e * s * t * j * function_stack │
│ 00:00:10 #73 [Verbose] > | ESFJ : e * s * f * j * function_stack │
│ 00:00:10 #74 [Verbose] > | ENFJ : e * n * f * j * function_stack │
│ 00:00:10 #75 [Verbose] > | ENTJ : e * n * t * j * function_stack │
│ 00:00:10 #76 [Verbose] > │
│ 00:00:10 #77 [Verbose] > │
│ 00:00:10 #78 [Verbose] > inl main () = │
│ 00:00:10 #79 [Verbose] > inl istj_stack = FS ((Si (s, i)), Ne (n, e), │
│ (Te (t, e)), (Fi (f, i))) │
│ 00:00:10 #80 [Verbose] > inl istj_personality = ISTJ (i, s, t, j, │
│ istj_stack) │
│ 00:00:10 #81 [Verbose] > // inl isfj_stack = FS ((Si (s, i)), Ne (n, e), │
│ (Fe (f, e)), (Ti (t, i))) │
│ 00:00:10 #82 [Verbose] > // inl isfj_personality = ISFJ (i, s, f, j, │
│ isfj_stack) │
│ 00:00:10 #83 [Verbose] > │
│ 00:00:10 #84 [Verbose] > ;[[ │
│ 00:00:10 #85 [Verbose] > istj_personality │
│ 00:00:10 #86 [Verbose] > ]] │
│ 00:00:10 #87 [Verbose] > |> fun x => $'$"%A{!x}"' : string │
│ 00:00:10 #88 [Verbose] > |> console.write_line │
│ 00:00:10 #89 [Verbose] > │
│ 00:00:10 #90 [Verbose] > inl main () = │
│ 00:00:10 #91 [Verbose] > $"!main ()" : () │
│ 00:00:10 #92 [Verbose] > Building │
│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0037-2545-4505-4b3b4 │
│ 43d93bc\main.spi │
│ 00:00:11 #93 [Verbose] > │
│ 00:00:11 #94 [Verbose] > ╭─[ 1.70s - stdout │
│ ]───────────────────────────────────────────────────────────╮ │
│ 00:00:11 #95 [Verbose] > │ type [<Struct>] US0 = │
│ │ │
│ 00:00:11 #96 [Verbose] > │ | US0_0 │
│ │ │
│ 00:00:11 #97 [Verbose] > │ | US0_1 │
│ │ │
│ 00:00:11 #98 [Verbose] > │ and [<Struct>] US1 = │
│ │ │
│ 00:00:11 #99 [Verbose] > │ | US1_0 │
│ │ │
│ 00:00:11 #100 [Verbose] > │ | US1_1 │
│ │ │
│ 00:00:11 #101 [Verbose] > │ and [<Struct>] US2 = │
│ │ │
│ 00:00:11 #102 [Verbose] > │ | US2_0 │
│ │ │
│ 00:00:11 #103 [Verbose] > │ | US2_1 │
│ │ │
│ 00:00:11 #104 [Verbose] > │ and [<Struct>] US3 = │
│ │ │
│ 00:00:11 #105 [Verbose] > │ | US3_0 │
│ │ │
│ 00:00:11 #106 [Verbose] > │ | US3_1 │
│ │ │
│ 00:00:11 #107 [Verbose] > │ and [<Struct>] US4 = │
│ │ │
│ 00:00:11 #108 [Verbose] > │ | US4_0 of f0_0 : US0 * f0_1 : US1 * f0_2 : │
│ US2 * f0_3 : US3 │ │
│ 00:00:11 #109 [Verbose] > │ and [<Struct>] US5 = │
│ │ │
│ 00:00:11 #110 [Verbose] > │ | US5_0 of f0_0 : US4 │
│ │ │
│ 00:00:11 #111 [Verbose] > │ | US5_1 of f1_0 : US4 │
│ │ │
│ 00:00:11 #112 [Verbose] > │ | US5_2 of f2_0 : US4 │
│ │ │
│ 00:00:11 #113 [Verbose] > │ | US5_3 of f3_0 : US4 │
│ │ │
│ 00:00:11 #114 [Verbose] > │ | US5_4 of f4_0 : US4 │
│ │ │
│ 00:00:11 #115 [Verbose] > │ | US5_5 of f5_0 : US4 │
│ │ │
│ 00:00:11 #116 [Verbose] > │ | US5_6 of f6_0 : US4 │
│ │ │
│ 00:00:11 #117 [Verbose] > │ | US5_7 of f7_0 : US4 │
│ │ │
│ 00:00:11 #118 [Verbose] > │ | US5_8 of f8_0 : US4 │
│ │ │
│ 00:00:11 #119 [Verbose] > │ | US5_9 of f9_0 : US4 │
│ │ │
│ 00:00:11 #120 [Verbose] > │ | US5_10 of f10_0 : US4 │
│ │ │
│ 00:00:11 #121 [Verbose] > │ | US5_11 of f11_0 : US4 │
│ │ │
│ 00:00:11 #122 [Verbose] > │ | US5_12 of f12_0 : US4 │
│ │ │
│ 00:00:11 #123 [Verbose] > │ | US5_13 of f13_0 : US4 │
│ │ │
│ 00:00:11 #124 [Verbose] > │ | US5_14 of f14_0 : US4 │
│ │ │
│ 00:00:11 #125 [Verbose] > │ | US5_15 of f15_0 : US4 │
│ │ │
│ 00:00:11 #126 [Verbose] > │ let rec method0 (v0 : (US5 [])) : (US5 []) = │
│ │ │
│ 00:00:11 #127 [Verbose] > │ v0 │
│ │ │
│ 00:00:11 #128 [Verbose] > │ and closure0 () () : unit = │
│ │ │
│ 00:00:11 #129 [Verbose] > │ let v0 : US0 = US0_1 │
│ │ │
│ 00:00:11 #130 [Verbose] > │ let v1 : US1 = US1_0 │
│ │ │
│ 00:00:11 #131 [Verbose] > │ let v2 : US2 = US2_0 │
│ │ │
│ 00:00:11 #132 [Verbose] > │ let v3 : US3 = US3_1 │
│ │ │
│ 00:00:11 #133 [Verbose] > │ let v4 : US4 = US4_0(v0, v1, v2, v3) │
│ │ │
│ 00:00:11 #134 [Verbose] > │ let v5 : US5 = US5_14(v4) │
│ │ │
│ 00:00:11 #135 [Verbose] > │ let v6 : (US5 []) = [|v5|] │
│ │ │
│ 00:00:11 #136 [Verbose] > │ let v7 : (US5 []) = method0(v6) │
│ │ │
│ 00:00:11 #137 [Verbose] > │ let v8 : string = $"%A{v7}" │
│ │ │
│ 00:00:11 #138 [Verbose] > │ System.Console.WriteLine v8 │
│ │ │
│ 00:00:11 #139 [Verbose] > │ () │
│ │ │
│ 00:00:11 #140 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
│ │ │
│ 00:00:11 #141 [Verbose] > │ v0 () │
│ │ │
│ 00:00:11 #142 [Verbose] > │ () │
│ │ │
│ 00:00:11 #143 [Verbose] > │ │
│ │
│ │ │
│ 00:00:11 #144 [Verbose] > │ [|US5_14 (US4_0 (US0_1, US1_0, US2_0, US3_1))|] │
│ │ │
│ 00:00:11 #145 [Verbose] > │ │
│ │
│ │ │
│ 00:00:11 #146 [Verbose] > │
│ ╰─────────────────────────────────────────────────────────────────────────── │
│ ───╯ │
│ 00:00:11 #147 [Verbose] > │
│ 00:00:11 #148 [Verbose] > ── fsharp │
│ ────────────────────────────────────────────────────────────────────── │
│ 00:00:11 #149 [Verbose] > type PhonologicalFeature = │
│ 00:00:11 #150 [Verbose] > | VowelFeature of │
│ 00:00:11 #151 [Verbose] > height: Height │
│ 00:00:11 #152 [Verbose] > * backness: Backness │
│ 00:00:11 #153 [Verbose] > * roundedness: Roundedness │
│ 00:00:11 #154 [Verbose] > * tone: Option<Tone> │
│ 00:00:11 #155 [Verbose] > * stress: Option<Stress> │
│ 00:00:11 #156 [Verbose] > * length: Option<Length> │
│ 00:00:11 #157 [Verbose] > | ConsonantFeature of │
│ 00:00:11 #158 [Verbose] > place: PlaceOfArticulation │
│ 00:00:11 #159 [Verbose] > * manner: MannerOfArticulation │
│ 00:00:11 #160 [Verbose] > * voicing: Voicing │
│ 00:00:11 #161 [Verbose] > * length: Option<Length> │
│ 00:00:11 #162 [Verbose] > | VowelHarmonyFeature │
│ 00:00:11 #163 [Verbose] > | PitchAccentFeature │
│ 00:00:11 #164 [Verbose] > │
│ 00:00:11 #165 [Verbose] > and Stress = Primary | Secondary │
│ 00:00:11 #166 [Verbose] > and Length = Long | Short | HalfLong │
│ 00:00:11 #167 [Verbose] > │
│ 00:00:11 #168 [Verbose] > and Height = │
│ 00:00:11 #169 [Verbose] > | High | NearHigh | HighMid │
│ 00:00:11 #170 [Verbose] > | Mid | LowMid | NearLow │
│ 00:00:11 #171 [Verbose] > | Low │
│ 00:00:11 #172 [Verbose] > │
│ 00:00:11 #173 [Verbose] > and Backness = Front | Central | Back │
│ 00:00:11 #174 [Verbose] > │
│ 00:00:11 #175 [Verbose] > and Roundedness = Rounded | Unrounded │
│ 00:00:11 #176 [Verbose] > │
│ 00:00:11 #177 [Verbose] > and PlaceOfArticulation = │
│ 00:00:11 #178 [Verbose] > | Bilabial | Labiodental | Dental │
│ 00:00:11 #179 [Verbose] > | Alveolar | Postalveolar | Retroflex │
│ 00:00:11 #180 [Verbose] > | Palatal | Velar | Uvular │
│ 00:00:11 #181 [Verbose] > | Pharyngeal | Epiglottal | Glottal │
│ 00:00:11 #182 [Verbose] > │
│ 00:00:11 #183 [Verbose] > and MannerOfArticulation = │
│ 00:00:11 #184 [Verbose] > | Plosive | Nasal | Trill │
│ 00:00:11 #185 [Verbose] > | TapOrFlap | Fricative | LateralFricative │
│ 00:00:11 #186 [Verbose] > | Approximant | LateralApproximant │
│ 00:00:11 #187 [Verbose] > │
│ 00:00:11 #188 [Verbose] > and Voicing = Voiced | Voiceless │
│ 00:00:11 #189 [Verbose] > │
│ 00:00:11 #190 [Verbose] > and SecondaryArticulation = │
│ 00:00:11 #191 [Verbose] > | Labialization | Palatalization | │
│ Velarization │
│ 00:00:11 #192 [Verbose] > | Pharyngealization | Aspiration │
│ 00:00:11 #193 [Verbose] > │
│ 00:00:11 #194 [Verbose] > and Tone = │
│ 00:00:11 #195 [Verbose] > | LevelTone of int │
│ 00:00:11 #196 [Verbose] > | ContourTone of int list │
│ 00:00:11 #197 [Verbose] > │
│ 00:00:11 #198 [Verbose] > and MorphologicalFeature = │
│ 00:00:11 #199 [Verbose] > | RootFeature of string │
│ 00:00:11 #200 [Verbose] > | AffixFeature of AffixType * string │
│ 00:00:11 #201 [Verbose] > | IncorporationFeature of string * │
│ MorphologicalFeature │
│ 00:00:11 #202 [Verbose] > | NonConcatenativePattern of string * string │
│ 00:00:11 #203 [Verbose] > | AgglutinativeAffixFeature of │
│ AgglutinativeAffixType * string │
│ 00:00:11 #204 [Verbose] > | HonorificFeature of HonorificType * string │
│ 00:00:11 #205 [Verbose] > │
│ 00:00:11 #206 [Verbose] > and AgglutinativeAffixType = Suffix | Prefix │
│ 00:00:11 #207 [Verbose] > │
│ 00:00:11 #208 [Verbose] > and HonorificType = VerbHonorific | NounHonorific │
│ 00:00:11 #209 [Verbose] > │
│ 00:00:11 #210 [Verbose] > and AffixType = │
│ 00:00:11 #211 [Verbose] > | Prefix | Suffix | Infix │
│ 00:00:11 #212 [Verbose] > | Circumfix │
│ 00:00:11 #213 [Verbose] > │
│ 00:00:11 #214 [Verbose] > type SyntacticFeature = │
│ 00:00:11 #215 [Verbose] > | WordFeature of MorphologicalFeature list * │
│ LexicalCategory │
│ 00:00:11 #216 [Verbose] > | PhraseFeature of PhraseType * │
│ SyntacticFeature list │
│ 00:00:11 #217 [Verbose] > | GrammaticalRelation of │
│ GrammaticalRelationType * SyntacticFeature list │
│ 00:00:11 #218 [Verbose] > | SOVOrderFeature │
│ 00:00:11 #219 [Verbose] > | TopicCommentFeature │
│ 00:00:11 #220 [Verbose] > │
│ 00:00:11 #221 [Verbose] > and GrammaticalRelationType = │
│ 00:00:11 #222 [Verbose] > | Ergative | Absolutive | Nominative │
│ 00:00:11 #223 [Verbose] > | Accusative │
│ 00:00:11 #224 [Verbose] > │
│ 00:00:11 #225 [Verbose] > and LexicalCategory = │
│ 00:00:11 #226 [Verbose] > | Noun | Verb | Adjective │
│ 00:00:11 #227 [Verbose] > | Adverb | Pronoun | Preposition │
│ 00:00:11 #228 [Verbose] > | Conjunction | Determiner | Interjection │
│ 00:00:11 #229 [Verbose] > │
│ 00:00:11 #230 [Verbose] > and PhraseType = │
│ 00:00:11 #231 [Verbose] > | NP | VP | AP │
│ 00:00:11 #232 [Verbose] > | PP | CP │
│ 00:00:11 #233 [Verbose] > │
│ 00:00:11 #234 [Verbose] > and SemanticFeature = │
│ 00:00:11 #235 [Verbose] > | Meaning of string │
│ 00:00:11 #236 [Verbose] > | SemanticRole of SemanticRoleType * │
│ SemanticFeature │
│ 00:00:11 #237 [Verbose] > │
│ 00:00:11 #238 [Verbose] > and SemanticRoleType = │
│ 00:00:11 #239 [Verbose] > | Agent | Patient | Instrument │
│ 00:00:11 #240 [Verbose] > | Location | Time | Cause │
│ 00:00:11 #241 [Verbose] > │
│ 00:00:11 #242 [Verbose] > and PragmaticFeature = │
│ 00:00:11 #243 [Verbose] > | UseContext of string │
│ 00:00:11 #244 [Verbose] > | PolitenessLevel of Politeness │
│ 00:00:11 #245 [Verbose] > | SpeechAct of SpeechActType │
│ 00:00:11 #246 [Verbose] > | SpeechLevel of SpeechLevelType │
│ 00:00:11 #247 [Verbose] > │
│ 00:00:11 #248 [Verbose] > and Politeness = Formal | Informal | Neutral │
│ 00:00:11 #249 [Verbose] > │
│ 00:00:11 #250 [Verbose] > and SpeechActType = │
│ 00:00:11 #251 [Verbose] > | Assertive | Directive | Commissive │
│ 00:00:11 #252 [Verbose] > | Expressive | Declarative │
│ 00:00:11 #253 [Verbose] > │
│ 00:00:11 #254 [Verbose] > and SpeechLevelType = │
│ 00:00:11 #255 [Verbose] > | FormalHigh | FormalLow | InformalHigh │
│ 00:00:11 #256 [Verbose] > | InformalLow | Neutral │
│ 00:00:11 #257 [Verbose] > │
│ 00:00:12 #258 [Verbose] > type LinguisticFeature = │
│ 00:00:12 #259 [Verbose] > | Phonological of PhonologicalFeature │
│ 00:00:12 #260 [Verbose] > | Morphological of MorphologicalFeature │
│ 00:00:12 #261 [Verbose] > | Syntactic of SyntacticFeature │
│ 00:00:12 #262 [Verbose] > | Semantic of SemanticFeature │
│ 00:00:12 #263 [Verbose] > | Pragmatic of PragmaticFeature │
│ 00:00:12 #264 [Verbose] > │
│ 00:00:12 #265 [Verbose] > type LanguageConstruct = │
│ 00:00:12 #266 [Verbose] > | LanguageElement of LinguisticFeature │
│ 00:00:12 #267 [Verbose] > | LanguageStructure of LanguageConstruct list │
│ 00:00:12 #268 [Verbose] > | TranslationElement of TranslationFeature │
│ 00:00:12 #269 [Verbose] > │
│ 00:00:12 #270 [Verbose] > and TranslationFeature = │
│ 00:00:12 #271 [Verbose] > | LinkedPhonological of PhonologicalFeature * │
│ PhonologicalFeature │
│ 00:00:12 #272 [Verbose] > | LinkedMorphological of MorphologicalFeature │
│ * MorphologicalFeature │
│ 00:00:12 #273 [Verbose] > | LinkedSyntactic of SyntacticFeature * │
│ SyntacticFeature │
│ 00:00:12 #274 [Verbose] > | LinkedSemantic of SemanticFeature * │
│ SemanticFeature │
│ 00:00:12 #275 [Verbose] > │
│ 00:00:12 #276 [Verbose] > type Discourse = DiscourseUnit of │
│ LanguageConstruct list │
│ 00:00:12 #277 [Verbose] > │
│ 00:00:12 #278 [Verbose] > type LanguageModel = │
│ 00:00:12 #279 [Verbose] > | Model of discourse: Discourse │
│ 00:00:12 #280 [Verbose] > │
│ 00:00:12 #281 [Verbose] > ── fsharp - import │
│ ───────────────────────────────────────────────────────────── │
│ 00:00:12 #282 [Verbose] > #r │
│ 00:00:12 #283 [Verbose] > │
│ "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microso │
│ ft.A │
│ 00:00:12 #284 [Verbose] > spNetCore.Html.Abstractions.dll" │
│ 00:00:12 #285 [Verbose] > #r │
│ 00:00:12 #286 [Verbose] > │
│ "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microso │
│ ft.D │
│ 00:00:12 #287 [Verbose] > otNet.Interactive.dll" │
│ 00:00:12 #288 [Verbose] > #r │
│ 00:00:12 #289 [Verbose] > │
│ "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microso │
│ ft.D │
│ 00:00:12 #290 [Verbose] > otNet.Interactive.FSharp.dll" │
│ 00:00:12 #291 [Verbose] > #r │
│ 00:00:12 #292 [Verbose] > │
│ "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microso │
│ ft.D │
│ 00:00:12 #293 [Verbose] > otNet.Interactive.Formatting.dll" │
│ 00:00:12 #294 [Verbose] > open System │
│ 00:00:12 #295 [Verbose] > open System.IO │
│ 00:00:12 #296 [Verbose] > open System.Text │
│ 00:00:12 #297 [Verbose] > open Microsoft.DotNet.Interactive.Formatting │
│ 00:00:13 #298 [Verbose] > │
│ 00:00:13 #299 [Verbose] > ── fsharp - import │
│ ───────────────────────────────────────────────────────────── │
│ 00:00:13 #300 [Verbose] > #r │
│ 00:00:13 #301 [Verbose] > │
│ "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microso │
│ ft.D │
│ 00:00:13 #302 [Verbose] > otNet.Interactive.FSharp.dll" │
│ 00:00:13 #303 [Verbose] > open │
│ Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers │
│ 00:00:13 #304 [Verbose] > #r │
│ 00:00:13 #305 [Verbose] > │
│ "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microso │
│ ft.D │
│ 00:00:13 #306 [Verbose] > otNet.Interactive.dll" │
│ 00:00:13 #307 [Verbose] > open type Microsoft.DotNet.Interactive.Kernel │
│ 00:00:13 #308 [Verbose] > │
│ 00:00:13 #309 [Verbose] > ── fsharp - import │
│ ───────────────────────────────────────────────────────────── │
│ 00:00:13 #310 [Verbose] > type PhonologicalFeature = │
│ 00:00:13 #311 [Verbose] > | VowelFeature of │
│ 00:00:13 #312 [Verbose] > height: Height │
│ 00:00:13 #313 [Verbose] > * backness: Backness │
│ 00:00:13 #314 [Verbose] > * roundedness: Roundedness │
│ 00:00:13 #315 [Verbose] > * tone: Option<Tone> │
│ 00:00:13 #316 [Verbose] > * stress: Option<Stress> │
│ 00:00:13 #317 [Verbose] > * length: Option<Length> │
│ 00:00:13 #318 [Verbose] > | ConsonantFeature of │
│ 00:00:13 #319 [Verbose] > place: PlaceOfArticulation │
│ 00:00:13 #320 [Verbose] > * manner: MannerOfArticulation │
│ 00:00:13 #321 [Verbose] > * voicing: Voicing │
│ 00:00:13 #322 [Verbose] > * length: Option<Length> │
│ 00:00:13 #323 [Verbose] > | VowelHarmonyFeature │
│ 00:00:13 #324 [Verbose] > | PitchAccentFeature │
│ 00:00:13 #325 [Verbose] > │
│ 00:00:13 #326 [Verbose] > and Stress = Primary | Secondary │
│ 00:00:13 #327 [Verbose] > and Length = Long | Short | HalfLong │
│ 00:00:13 #328 [Verbose] > │
│ 00:00:13 #329 [Verbose] > and Height = │
│ 00:00:13 #330 [Verbose] > | High | NearHigh | HighMid │
│ 00:00:13 #331 [Verbose] > | Mid | LowMid | NearLow │
│ 00:00:13 #332 [Verbose] > | Low │
│ 00:00:13 #333 [Verbose] > │
│ 00:00:13 #334 [Verbose] > and Backness = Front | Central | Back │
│ 00:00:13 #335 [Verbose] > │
│ 00:00:13 #336 [Verbose] > and Roundedness = Rounded | Unrounded │
│ 00:00:13 #337 [Verbose] > │
│ 00:00:13 #338 [Verbose] > and PlaceOfArticulation = │
│ 00:00:13 #339 [Verbose] > | Bilabial | Labiodental | Dental │
│ 00:00:13 #340 [Verbose] > | Alv... │
│ 00:00:14 #341 [Verbose] > │
│ 00:00:14 #342 [Verbose] > ── fsharp │
│ ────────────────────────────────────────────────────────────────────── │
│ 00:00:14 #343 [Verbose] > let testEnglish = │
│ 00:00:14 #344 [Verbose] > Model( │
│ 00:00:14 #345 [Verbose] > DiscourseUnit [[ │
│ 00:00:14 #346 [Verbose] > LanguageElement (Phonological │
│ (ConsonantFeature (Alveolar, Nasal, │
│ 00:00:14 #347 [Verbose] > Voiced, Some(HalfLong)))); │
│ 00:00:14 #348 [Verbose] > LanguageElement (Phonological │
│ (VowelFeature (High, Front, Unrounded, │
│ 00:00:14 #349 [Verbose] > Some(LevelTone 1), Some(Primary), Some(Short)))); │
│ 00:00:14 #350 [Verbose] > LanguageElement (Phonological │
│ (VowelFeature (Low, Front, Unrounded, │
│ 00:00:14 #351 [Verbose] > Some(LevelTone 2), Some(Secondary), Some(Long)))); │
│ 00:00:14 #352 [Verbose] > LanguageElement (Phonological │
│ (ConsonantFeature (Velar, Plosive, │
│ 00:00:14 #353 [Verbose] > Voiceless, Some(HalfLong)))); │
│ 00:00:14 #354 [Verbose] > LanguageElement (Morphological │
│ (RootFeature "I")); │
│ 00:00:14 #355 [Verbose] > LanguageElement (Morphological │
│ (RootFeature "see")); │
│ 00:00:14 #356 [Verbose] > LanguageElement (Morphological │
│ (RootFeature "a")); │
│ 00:00:14 #357 [Verbose] > LanguageElement (Morphological │
│ (RootFeature "cat")); │
│ 00:00:14 #358 [Verbose] > LanguageElement (Syntactic │
│ (PhraseFeature (NP, [[WordFeature │
│ 00:00:14 #359 [Verbose] > ([[RootFeature "I"]], Pronoun)]]))); │
│ 00:00:14 #360 [Verbose] > LanguageElement (Syntactic │
│ (PhraseFeature (VP, [[WordFeature │
│ 00:00:14 #361 [Verbose] > ([[RootFeature "see"]], Verb)]]))); │
│ 00:00:14 #362 [Verbose] > LanguageElement (Syntactic │
│ (PhraseFeature (NP, [[WordFeature │
│ 00:00:14 #363 [Verbose] > ([[RootFeature "a"; RootFeature "cat"]], │
│ Noun)]]))); │
│ 00:00:14 #364 [Verbose] > LanguageElement (Semantic (Meaning │
│ "Perception act of a feline by │
│ 00:00:14 #365 [Verbose] > the speaker")); │
│ 00:00:14 #366 [Verbose] > LanguageElement (Pragmatic (UseContext │
│ "Statement of an action being │
│ 00:00:14 #367 [Verbose] > observed")) │
│ 00:00:14 #368 [Verbose] > ]] │
│ 00:00:14 #369 [Verbose] > ) │
│ 00:00:14 #370 [Verbose] > │
│ 00:00:14 #371 [Verbose] > let testPortuguese = │
│ 00:00:14 #372 [Verbose] > Model( │
│ 00:00:14 #373 [Verbose] > DiscourseUnit [[ │
│ 00:00:14 #374 [Verbose] > LanguageElement (Phonological │
│ (VowelFeature (High, Front, Unrounded, │
│ 00:00:14 #375 [Verbose] > Some(LevelTone 1), Some(Primary), Some(Short)))); │
│ 00:00:14 #376 [Verbose] > LanguageElement (Phonological │
│ (VowelFeature (Low, Front, Unrounded, │
│ 00:00:14 #377 [Verbose] > Some(LevelTone 2), Some(Secondary), Some(Long)))); │
│ 00:00:14 #378 [Verbose] > LanguageElement (Phonological │
│ (VowelFeature (Mid, Back, Rounded, │
│ 00:00:14 #379 [Verbose] > Some(LevelTone 3), Some(Primary), Some(Short)))); │
│ 00:00:14 #380 [Verbose] > LanguageElement (Phonological │
│ (ConsonantFeature (Velar, Plosive, │
│ 00:00:14 #381 [Verbose] > Voiceless, Some(HalfLong)))); │
│ 00:00:14 #382 [Verbose] > LanguageElement (Morphological │
│ (RootFeature "Eu")); │
│ 00:00:14 #383 [Verbose] > LanguageElement (Morphological │
│ (RootFeature "ver" |> ignore; │
│ 00:00:14 #384 [Verbose] > AffixFeature (Suffix, "o"))); │
│ 00:00:14 #385 [Verbose] > LanguageElement (Morphological │
│ (RootFeature "um")); │
│ 00:00:14 #386 [Verbose] > LanguageElement (Morphological │
│ (RootFeature "gato")); │
│ 00:00:14 #387 [Verbose] > LanguageElement (Syntactic │
│ (PhraseFeature (NP, [[WordFeature │
│ 00:00:14 #388 [Verbose] > ([[RootFeature "Eu"]], Pronoun)]]))); │
│ 00:00:14 #389 [Verbose] > LanguageElement (Syntactic │
│ (PhraseFeature (VP, [[WordFeature │
│ 00:00:14 #390 [Verbose] > ([[RootFeature "vejo"]], Verb)]]))); │
│ 00:00:14 #391 [Verbose] > LanguageElement (Syntactic │
│ (PhraseFeature (NP, [[WordFeature │
│ 00:00:14 #392 [Verbose] > ([[RootFeature "um"; RootFeature "gato"]], │
│ Noun)]]))); │
│ 00:00:14 #393 [Verbose] > LanguageElement (Semantic (Meaning │
│ "Ação de percepção de um felino │
│ 00:00:14 #394 [Verbose] > pelo falante")); │
│ 00:00:14 #395 [Verbose] > LanguageElement (Pragmatic (UseContext │
│ "Declaração de uma ação sendo │
│ 00:00:14 #396 [Verbose] > observada")) │
│ 00:00:14 #397 [Verbose] > ]] │
│ 00:00:14 #398 [Verbose] > ) │
│ 00:00:14 #399 [Verbose] > │
│ 00:00:14 #400 [Verbose] > let testKorean = │
│ 00:00:14 #401 [Verbose] > Model( │
│ 00:00:14 #402 [Verbose] > DiscourseUnit [[ │
│ 00:00:14 #403 [Verbose] > LanguageElement (Phonological │
│ (ConsonantFeature (Alveolar, Nasal, │
│ 00:00:14 #404 [Verbose] > Voiced, Some(Short)))); │
│ 00:00:14 #405 [Verbose] > LanguageElement (Phonological │
│ (VowelFeature (High, Back, Rounded, │
│ 00:00:14 #406 [Verbose] > None, None, Some(Short)))); │
│ 00:00:14 #407 [Verbose] > LanguageElement (Phonological │
│ (VowelFeature (Mid, Front, Unrounded, │
│ 00:00:14 #408 [Verbose] > None, None, Some(Long)))); │
│ 00:00:14 #409 [Verbose] > LanguageElement (Phonological │
│ (ConsonantFeature (Bilabial, Plosive, │
│ 00:00:14 #410 [Verbose] > Voiceless, Some(Short)))); │
│ 00:00:14 #411 [Verbose] > LanguageElement (Morphological │
│ (RootFeature "나")); │
│ 00:00:14 #412 [Verbose] > LanguageElement (Morphological │
│ (RootFeature "보다")); │
│ 00:00:14 #413 [Verbose] > LanguageElement (Morphological │
│ (AffixFeature (Suffix, "아"))); │
│ 00:00:14 #414 [Verbose] > LanguageElement (Morphological │
│ (RootFeature "고양이")); │
│ 00:00:14 #415 [Verbose] > LanguageElement (Syntactic │
│ (PhraseFeature (NP, [[WordFeature │
│ 00:00:14 #416 [Verbose] > ([[RootFeature "나"]], Pronoun)]]))); │
│ 00:00:14 #417 [Verbose] > LanguageElement (Syntactic │
│ (PhraseFeature (VP, [[WordFeature │
│ 00:00:14 #418 [Verbose] > ([[RootFeature "보다"; AffixFeature (Suffix, │
│ "아")]], Verb)]]))); │
│ 00:00:14 #419 [Verbose] > LanguageElement (Syntactic │
│ (PhraseFeature (NP, [[WordFeature │
│ 00:00:14 #420 [Verbose] > ([[RootFeature "고양이"]], Noun)]]))); │
│ 00:00:14 #421 [Verbose] > LanguageElement (Semantic (Meaning │
│ "화자에 의한 고양이의 관찰 │
│ 00:00:14 #422 [Verbose] > 행위")); │
│ 00:00:14 #423 [Verbose] > LanguageElement (Pragmatic (UseContext │
│ "관찰되고 있는 행동의 진술")) │
│ 00:00:14 #424 [Verbose] > ]] │
│ 00:00:14 #425 [Verbose] > ) │
│ 00:00:14 #426 [Verbose] > │
│ 00:00:14 #427 [Verbose] > ── markdown │
│ ──────────────────────────────────────────────────────────────────── │
│ 00:00:14 #428 [Verbose] > │
│ ╭─────────────────────────────────────────────────────────────────────────── │
│ ───╮ │
│ 00:00:14 #429 [Verbose] > │ ## main │
│ │ │
│ 00:00:14 #430 [Verbose] > │
│ ╰─────────────────────────────────────────────────────────────────────────── │
│ ───╯ │
│ 00:00:14 #431 [Verbose] > │
│ 00:00:14 #432 [Verbose] > ── spiral │
│ ────────────────────────────────────────────────────────────────────── │
│ 00:00:14 #433 [Verbose] > inl main (_args : array_base string) = │
│ 00:00:14 #434 [Verbose] > 0i32 │
│ 00:00:14 #435 [Verbose] > │
│ 00:00:14 #436 [Verbose] > inl main () = │
│ 00:00:14 #437 [Verbose] > $"let main args = !main args" : () │
│ 00:00:14 #438 [Verbose] > Building │
│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0037-2941-4124-4ad8e │
│ aa1cac1\main.spi │
│ 00:00:14 #439 [Verbose] > │
│ 00:00:14 #440 [Verbose] > ╭─[ 251.55ms - stdout │
│ ]────────────────────────────────────────────────────────╮ │
│ 00:00:14 #441 [Verbose] > │ let rec closure0 () (v0 : (string [])) : int32 = │
│ │ │
│ 00:00:14 #442 [Verbose] > │ 0 │
│ │ │
│ 00:00:14 #443 [Verbose] > │ let v0 : ((string []) -> int32) = closure0() │
│ │ │
│ 00:00:14 #444 [Verbose] > │ let main args = v0 args │
│ │ │
│ 00:00:14 #445 [Verbose] > │ () │
│ │ │
│ 00:00:14 #446 [Verbose] > │ │
│ │
│ │ │
│ 00:00:14 #447 [Verbose] > │ │
│ │
│ │ │
│ 00:00:14 #448 [Verbose] > │
│ ╰─────────────────────────────────────────────────────────────────────────── │
│ ───╯ │
│ 00:00:14 #449 [Verbose] > │
│ 00:00:14 #450 [Verbose] > ── spiral │
│ ────────────────────────────────────────────────────────────────────── │
│ 00:00:14 #451 [Verbose] > inl app () = │
│ 00:00:14 #452 [Verbose] > "test" |> console.write_line │
│ 00:00:14 #453 [Verbose] > 0i32 │
│ 00:00:14 #454 [Verbose] > │
│ 00:00:14 #455 [Verbose] > inl main () = │
│ 00:00:14 #456 [Verbose] > print_static "<test>" │
│ 00:00:14 #457 [Verbose] > │
│ 00:00:14 #458 [Verbose] > app │
│ 00:00:14 #459 [Verbose] > |> dyn │
│ 00:00:14 #460 [Verbose] > |> ignore │
│ 00:00:14 #461 [Verbose] > │
│ 00:00:14 #462 [Verbose] > print_static "</test>" │
│ 00:00:14 #463 [Verbose] > Building │
│ c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0037-2966-6653-61192 │
│ bad58c3\main.spi │
│ 00:00:14 #464 [Verbose] > <test> │
│ 00:00:14 #465 [Verbose] > </test> │
│ 00:00:14 #466 [Verbose] > │
│ 00:00:14 #467 [Verbose] > ╭─[ 276.11ms - stdout │
│ ]────────────────────────────────────────────────────────╮ │
│ 00:00:14 #468 [Verbose] > │ let rec closure0 () () : int32 = │
│ │ │
│ 00:00:14 #469 [Verbose] > │ let v0 : string = "test" │
│ │ │
│ 00:00:14 #470 [Verbose] > │ System.Console.WriteLine v0 │
│ │ │
│ 00:00:14 #471 [Verbose] > │ 0 │
│ │ │
│ 00:00:14 #472 [Verbose] > │ let v0 : (unit -> int32) = closure0() │
│ │ │
│ 00:00:14 #473 [Verbose] > │ () │
│ │ │
│ 00:00:14 #474 [Verbose] > │ │
│ │
│ │ │
│ 00:00:14 #475 [Verbose] > │ │
│ │
│ │ │
│ 00:00:14 #476 [Verbose] > │
│ ╰─────────────────────────────────────────────────────────────────────────── │
│ ───╯ │
│ 00:00:16 #477 [Verbose] > [NbConvertApp] Converting notebook test.dib.ipynb │
│ to html │
│ 00:00:16 #478 [Verbose] > │
│ C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__ │
│ .py:93: MissingIDFieldWarning: Code cell is missing an id field, this will │
│ become a hard error in future nbformat versions. You may want to use │
│ `normalize()` on your notebooks before validations (available since nbformat │
│ 5.1.4). Previous versions of nbformat are fixing this issue transparently, │
│ and will stop doing so in the future. │
│ 00:00:16 #479 [Verbose] > validate(nb) │
│ 00:00:17 #480 [Verbose] > │
│ C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters │
│ \highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on │
│ Python 3 │
│ 00:00:17 #481 [Verbose] > return _pygments_highlight( │
│ 00:00:17 #482 [Verbose] > [NbConvertApp] Writing 321590 bytes to │
│ test.dib.html │
│ 00:00:18 #483 [Debug] executeAsync / exitCode: 0 / output.Length: 19479 │
│ 00:00:18 #484 [Debug] main / executeCommand / exitCode: 0 │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── pwsh ────────────────────────────────────────────────────────────────────────
{ . ../../../../apps/parser/dist/DibParser$(GetExecutableSuffix) test.dib spi }
| Invoke-Block
╭─[ 498.98ms - stdout ]────────────────────────────────────────────────────────╮
│ 00:00:00 #1 [Debug] writeDibCode / output: Spi / path: test.dib │
│ 00:00:00 #2 [Debug] parseDibCode / output: Spi / file: test.dib │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── pwsh ────────────────────────────────────────────────────────────────────────
{ . ../../../../apps/spiral/dist/Supervisor$(GetExecutableSuffix) --build-file
test.spi test.fsx --timeout 10000 } | Invoke-Block
╭─[ 4.19s - stdout ]───────────────────────────────────────────────────────────╮
│ 00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60 │
│ 00:00:00 #2 [Debug] executeAsync / options: { Command = │
│ "dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral │
│ Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port │
│ 13805 --default-int i32 --default-float f64" │
│ WorkingDirectory = None │
│ CancellationToken = Some System.Threading.CancellationToken │
│ OnLine = Some <fun:main@425-297> } │
│ 00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\apps\spiral\temp\test │
│ 00:00:00 #4 [Verbose] > dll_path: │
│ C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language │
│ 2\artifacts\bin\The Spiral Language 2\release │
│ 00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: │
│ http://localhost:13805 │
│ 00:00:00 #6 [Debug] runWithTimeoutAsync / timeout: 500 │
│ 00:00:00 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0 │
│ 00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / │
│ result.Length: │
│ 00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: │
│ 13805 / retry: 0 │
│ 00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805 │
│ 00:00:01 #11 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:01 #12 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:01 #13 [Debug] sendJson / port: 13805 / json: │
│ {"FileOpen":{"spiText":"// // # test (Polyglot)\n\nnominal i = ()\nnominal e │
│ = ()\nnominal s = ()\nnominal n = ()\nnominal t = ()\nnominal f = │
│ ()\nnominal j = ()\nnominal p = ()\n\nunion sensing =\n | Si : s * i\n │
│ | Se : s * e\n\nunion intuition =\n | Ni : n * i\n | Ne : n * │
│ e\n\nunion thinking =\n | Ti : t * i\n | Te : t * e\n\nunion feeling │
│ =\n | Fi : f * i\n | Fe : f * e\n\nunion function_stack =\n | FS : │
│ sensing * intuition * thinking * feeling\n\nunion personality_type =\n | │
│ ISTJ : i * s * t * j * function_stack\n | ISFJ : i * s * f * j * │
│ function_stack\n | INFJ : i * n * f * j * function_stack\n | INTJ : i │
│ * n * t * j * function_stack\n | ISTP : i * s * t * p * function_stack\n │
│ | ISFP : i * s * f * p * function_stack\n | INFP : i * n * f * p * │
│ function_stack\n | INTP : i * n * t * p * function_stack\n | ESTP : e │
│ * s * t * p * function_stack\n | ESFP : e * s * f * p * function_stack\n │
│ | ENFP : e * n * f * p * function_stack\n | ENTP : e * n * t * p * │
│ function_stack\n | ESTJ : e * s * t * j * function_stack\n | ESFJ : e │
│ * s * f * j * function_stack\n | ENFJ : e * n * f * j * function_stack\n │
│ | ENTJ : e * n * t * j * function_stack\n\n\ninl main () =\n inl │
│ istj_stack = FS ((Si (s, i)), Ne (n, e), (Te (t, e)), (Fi (f, i)))\n inl │
│ istj_personality = ISTJ (i, s, t, j, istj_stack)\n // inl isfj_stack = FS │
│ ((Si (s, i)), Ne (n, e), (Fe (f, e)), (Ti (t, i)))\n // inl │
│ isfj_personality = ISFJ (i, s, f, j, isfj_stack)\n\n ;[\n │
│ istj_personality\n ]\n |\u003E fun x =\u003E │
│ $\u0027$\u0022%A{!x}\u0022\u0027 : string\n |\u003E │
│ console.write_line\n\ninl main () =\n $\u0022!main ()\u0022 : ()\n\n// // │
│ ## main\n\ninl main (_args : array_base string) =\n 0i32\n\ninl main () │
│ =\n $\u0022let main args = !main args\u0022 : ()\n\ninl app () =\n │
│ \u0022test\u0022 |\u003E console.write_line\n 0i32\n\ninl main () =\n │
│ print_static \u0022\u003Ctest\u003E\u0022\n\n app\n |\u003E dyn\n │
│ |\u003E ignore\n\n print_static │
│ \u0022\u003C/test\u003E\u0022\n","uri":"file:///c:/home/git/polyglot/apps/sp │
│ iral/temp/test/test.spi"}} / result.Length: │
│ 00:00:01 #14 [Debug] sendJson / port: 13805 / json: │
│ {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/apps/sp │
│ iral/temp/test/test.spi"}} / result.Length: │
│ 00:00:01 #15 [Verbose] > Building │
│ c:\home\git\polyglot\apps\spiral\temp\test\test.spi │
│ 00:00:02 #16 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:03 #17 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: │
│ [] / typeErrorCount: 0 │
│ 00:00:03 #18 [Verbose] > <test> │
│ 00:00:03 #19 [Verbose] > </test> │
│ 00:00:03 #20 [Debug] buildFile / takeWhileInclusive / fsxContent: let rec │
│ closure0 () () : int32 = │
│ let v0 : string = "test" │
│ System.Console.WriteLine v0 │
│ 0 │
│ let v0 : (unit -> int32) = closure0() │
│ () │
│ / errors: [] / typeErrorCount: 0 │
│ 00:00:03 #21 [Debug] watchWithFilter / Disposing watch stream / filter: │
│ FileName, LastWrite │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── pwsh ────────────────────────────────────────────────────────────────────────
dotnet fable --optimize --lang rs --extension .rs
╭─[ 3.18s - stdout ]───────────────────────────────────────────────────────────╮
│ Fable 4.14.0: F# to Rust compiler (status: alpha) │
│ │
│ Thanks to the contributor! @davidpodhola │
│ Stand with Ukraine! https://standwithukraine.com.ua/ │
│ │
│ Parsing test.fsproj... │
│ Retrieving project options from cache, in case of issues run `dotnet fable │
│ clean` or try `--noCache` option. │
│ Project and references (1 source files) parsed in 185ms │
│ │
│ Started Fable compilation... │
│ │
│ Fable compilation finished in 1405ms │
│ │
│ .\test.fsx(6,0): (6,2) warning FABLE: For Rust, support for F# static and │
│ module do bindings is disabled by default. It can be enabled with the │
│ 'static_do_bindings' feature. Use at your own risk! │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── pwsh ────────────────────────────────────────────────────────────────────────
(Get-Content test.rs) `
-replace [[regex]]::Escape("),);"), "));" `
| Set-Content test.rs
── pwsh ────────────────────────────────────────────────────────────────────────
cargo fmt --
── pwsh ────────────────────────────────────────────────────────────────────────
cargo build --release
╭─[ 9.06s - stdout ]───────────────────────────────────────────────────────────╮
│ Compiling spiral_temp_test v0.0.1 │
│ (C:\home\git\polyglot\apps\spiral\temp\test) │
│ warning: the item `any` is imported redundantly │
│ --> apps\spiral\temp\test\./main.rs:11:27 │
│ | │
│ 11 | use proptest::arbitrary::{any, Arbitrary}; │
│ | ^^^ │
│ 12 | use proptest::prelude::*; │
│ | -------------------- the item `any` is already imported here │
│ | │
│ = note: `#[warn(unused_imports)]` on by default │
│ │
│ warning: the item `Arbitrary` is imported redundantly │
│ --> apps\spiral\temp\test\./main.rs:11:32 │
│ | │
│ 11 | use proptest::arbitrary::{any, Arbitrary}; │
│ | ^^^^^^^^^ │
│ 12 | use proptest::prelude::*; │
│ | -------------------- the item `Arbitrary` is already imported │
│ here │
│ │
│ warning: unused import: `info` │
│ --> apps\spiral\temp\test\./main.rs:190:15 │
│ | │
│ 190 | use tracing::{info, Level}; │
│ | ^^^^ │
│ │
│ warning: associated items `new`, `add_item`, and `remove_item` are │
│ never used │
│ --> apps\spiral\temp\test\./main.rs:46:8 │
│ | │
│ 45 | impl Cart { │
│ | --------- associated items in this implementation │
│ 46 | fn new() -> Cart { │
│ | ^^^ │
│ ... │
│ 50 | fn add_item(&mut self, item: Item) { │
│ | ^^^^^^^^ │
│ ... │
│ 56 | fn remove_item(&mut self, item: &Item) { │
│ | ^^^^^^^^^^^ │
│ | │
│ = note: `#[warn(dead_code)]` on by default │
│ │
│ warning: function `parse_comment` is never used │
│ --> apps\spiral\temp\test\./main.rs:124:4 │
│ | │
│ 124 | fn parse_comment(input: &str) -> IResult<&str, SpiralToken> { │
│ | ^^^^^^^^^^^^^ │
│ │
│ warning: function `parse_string` is never used │
│ --> apps\spiral\temp\test\./main.rs:130:4 │
│ | │
│ 130 | fn parse_string(input: &str) -> IResult<&str, SpiralToken> { │
│ | ^^^^^^^^^^^^ │
│ │
│ warning: function `parse_identifier` is never used │
│ --> apps\spiral\temp\test\./main.rs:145:4 │
│ | │
│ 145 | fn parse_identifier(input: &str) -> IResult<&str, SpiralToken> {[ │
│ 0m │
│ | ^^^^^^^^^^^^^^^^ │
│ │
│ warning: function `parse_integer` is never used │
│ --> apps\spiral\temp\test\./main.rs:157:4 │
│ | │
│ 157 | fn parse_integer(input: &str) -> IResult<&str, SpiralToken> { │
│ | ^^^^^^^^^^^^^ │
│ │
│ warning: function `parse_operator` is never used │
│ --> apps\spiral\temp\test\./main.rs:165:4 │
│ | │
│ 165 | fn parse_operator(input: &str) -> IResult<&str, SpiralToken> { │
│ | ^^^^^^^^^^^^^^ │
│ │
│ warning: function `parse_token` is never used │
│ --> apps\spiral\temp\test\./main.rs:170:4 │
│ | │
│ 170 | fn parse_token(input: &str) -> IResult<&str, SpiralToken> { │
│ | ^^^^^^^^^^^ │
│ │
│ warning: function `format_token` is never used │
│ --> apps\spiral\temp\test\./main.rs:180:4 │
│ | │
│ 180 | fn format_token(token: &SpiralToken) -> String { │
│ | ^^^^^^^^^^^^ │
│ │
│ warning: function `parse_expression` is never used │
│ --> apps\spiral\temp\test\./main.rs:213:4 │
│ | │
│ 213 | fn parse_expression(input: &str) -> IResult<&str, SpiralToken> {[ │
│ 0m │
│ | ^^^^^^^^^^^^^^^^ │
│ │
│ warning: `spiral_temp_test` (bin "spiral_temp_test") generated 12 │
│ warnings (run `cargo fix --bin "spiral_temp_test"` to apply 1 suggestion) │
│ Finished `release` profile [optimized] target(s) in 8.89s │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── pwsh ────────────────────────────────────────────────────────────────────────
$env:RUST_LOG="info"
{ cargo test --release } | Invoke-Block
╭─[ 24.64s - stdout ]──────────────────────────────────────────────────────────╮
│ Compiling spiral_temp_test v0.0.1 │
│ (C:\home\git\polyglot\apps\spiral\temp\test) │
│ warning: the item `any` is imported redundantly │
│ --> apps\spiral\temp\test\./main.rs:11:27 │
│ | │
│ 11 | use proptest::arbitrary::{any, Arbitrary}; │
│ | ^^^ │
│ 12 | use proptest::prelude::*; │
│ | -------------------- the item `any` is already imported here │
│ | │
│ = note: `#[warn(unused_imports)]` on by default │
│ │
│ warning: the item `Arbitrary` is imported redundantly │
│ --> apps\spiral\temp\test\./main.rs:11:32 │
│ | │
│ 11 | use proptest::arbitrary::{any, Arbitrary}; │
│ | ^^^^^^^^^ │
│ 12 | use proptest::prelude::*; │
│ | -------------------- the item `Arbitrary` is already imported │
│ here │
│ │
│ warning: `spiral_temp_test` (bin "spiral_temp_test" test) generated 2 │
│ warnings │
│ Finished `release` profile [optimized] target(s) in 24.23s │
│ Running unittests main.rs │
│ (C:\home\git\polyglot\target\release\deps\spiral_temp_test-0f3f76a0f233bf3e. │
│ exe) │
│ │
│ running 3 tests │
│ test test_parse_number ... ok │
│ 2024-03-21T04:38:15.859331Z INFO spiral_temp_test: │
│ input=Integer(94629172374519425) │
│ 2024-03-21T04:38:15.859447Z INFO spiral_temp_test: │
│ input=Integer(3178484649115092227) │
│ 2024-03-21T04:38:15.859509Z INFO spiral_temp_test: │
│ input=Operator("+") │
│ 2024-03-21T04:38:15.859584Z INFO spiral_temp_test: │
│ input=Identifier("Z3C2iN2Ben") │
│ 2024-03-21T04:38:15.859709Z INFO spiral_temp_test: │
│ input=Operator("/") │
│ 2024-03-21T04:38:15.859782Z INFO spiral_temp_test: │
│ input=Identifier("PkKfjEt35TUKXV4PBQrFzW") │
│ 2024-03-21T04:38:15.859827Z INFO spiral_temp_test: │
│ input=Operator("-") │
│ 2024-03-21T04:38:15.859909Z INFO spiral_temp_test: │
│ input=Integer(-335280020608852318) │
│ 2024-03-21T04:38:15.859979Z INFO spiral_temp_test: │
│ input=Comment("`>.F}-!)\\f<*/Zy&&5") │
│ 2024-03-21T04:38:15.860022Z INFO spiral_temp_test: │
│ input=Identifier("r22") │
│ 2024-03-21T04:38:15.860085Z INFO spiral_temp_test: │
│ input=StringLiteral("`PE") │
│ 2024-03-21T04:38:15.860140Z INFO spiral_temp_test: │
│ input=Identifier("xX7w2") │
│ 2024-03-21T04:38:15.860186Z INFO spiral_temp_test: │
│ input=Operator("/") │
│ 2024-03-21T04:38:15.860250Z INFO spiral_temp_test: │
│ input=Identifier("h6sphSU4fMaBgl2Q3sy") │
│ 2024-03-21T04:38:15.860298Z INFO spiral_temp_test: │
│ input=Operator("+") │
│ 2024-03-21T04:38:15.860414Z INFO spiral_temp_test: │
│ input=StringLiteral("$$rxMe%<zU%:S&=O(``dJ9l.U") │
│ 2024-03-21T04:38:15.860471Z INFO spiral_temp_test: │
│ input=Comment("T<r.'w:cH8('P:Z'D-&n\"") │
│ 2024-03-21T04:38:15.860521Z INFO spiral_temp_test: │
│ input=Identifier("no30") │
│ 2024-03-21T04:38:15.860610Z INFO spiral_temp_test: │
│ input=Identifier("Ju7uY9n2tTANODn7SA6FIXb98eSxJYK") │
│ 2024-03-21T04:38:15.860673Z INFO spiral_temp_test: │
│ input=Identifier("QfaYM6T7Auec") │
│ 2024-03-21T04:38:15.860723Z INFO spiral_temp_test: │
│ input=Identifier("zRuSY7Kniy6BH7W") │
│ 2024-03-21T04:38:15.860789Z INFO spiral_temp_test: │
│ input=Comment("%fToW JX%GC!%.P%]") │
│ 2024-03-21T04:38:15.860848Z INFO spiral_temp_test: │
│ input=Operator("(") │
│ 2024-03-21T04:38:15.860942Z INFO spiral_temp_test: │
│ input=Operator(")") │
│ 2024-03-21T04:38:15.860988Z INFO spiral_temp_test: │
│ input=Identifier("Ntvm26LB66hV6OYmhJnKx") │
│ 2024-03-21T04:38:15.861028Z INFO spiral_temp_test: │
│ input=Identifier("qsDPHyE9oXqB0fCa3GQMOYwAuSn6ItO1") │
│ 2024-03-21T04:38:15.861076Z INFO spiral_temp_test: │
│ input=StringLiteral("n```6a$:3'V") │
│ 2024-03-21T04:38:15.861130Z INFO spiral_temp_test: │
│ input=StringLiteral("") │
│ 2024-03-21T04:38:15.861198Z INFO spiral_temp_test: │
│ input=Comment("&CO|S'.uZ{%DB~]l`\"nC0$5>K") │
│ 2024-03-21T04:38:15.861276Z INFO spiral_temp_test: │
│ input=StringLiteral("gs/e@q~ydDPjQ*tDy:z ;V'%jok=k`") │
│ 2024-03-21T04:38:15.861328Z INFO spiral_temp_test: │
│ input=Integer(8958249561477099563) │
│ 2024-03-21T04:38:15.861397Z INFO spiral_temp_test: │
│ input=StringLiteral("m3akIYoe%q}0.t49{)$") │
│ 2024-03-21T04:38:15.861454Z INFO spiral_temp_test: │
│ input=StringLiteral("@fFt:~>Ou`K`%*") │
│ 2024-03-21T04:38:15.861518Z INFO spiral_temp_test: │
│ input=StringLiteral("2!}`cb&") │
│ 2024-03-21T04:38:15.861600Z INFO spiral_temp_test: │
│ input=Comment("v.<RO?gY4{}T\"8$$l+c&;;k`L-WlnH") │
│ 2024-03-21T04:38:15.861672Z INFO spiral_temp_test: │
│ input=StringLiteral("O3%w/9;@&!x{<?s[r/!n") │
│ 2024-03-21T04:38:15.861734Z INFO spiral_temp_test: │
│ input=Identifier("rU7apXjiS2i8je34stTQ2") │
│ 2024-03-21T04:38:15.861797Z INFO spiral_temp_test: │
│ input=Comment("Gui_/m\\r,{/+jBPL'.N]\"*Z") │
│ 2024-03-21T04:38:15.861862Z INFO spiral_temp_test: │
│ input=Identifier("joG8YmdVd9RaG4sfgOs2I2L4QR") │
│ 2024-03-21T04:38:15.861906Z INFO spiral_temp_test: │
│ input=Integer(-5506227394447409712) │
│ 2024-03-21T04:38:15.861972Z INFO spiral_temp_test: │
│ input=StringLiteral("|<+I%`d&%AU^Pr/.%*>C>=@/Ui<") │
│ 2024-03-21T04:38:15.862036Z INFO spiral_temp_test: │
│ input=StringLiteral("Ld51%A*&;<B^_7{A9/") │
│ 2024-03-21T04:38:15.862109Z INFO spiral_temp_test: │
│ input=Comment("$\\;ga<?$Q<\"/('\\/U,'==%<K\\S.?'5T?") │
│ 2024-03-21T04:38:15.862158Z INFO spiral_temp_test: │
│ input=StringLiteral("h&") │
│ 2024-03-21T04:38:15.862207Z INFO spiral_temp_test: │
│ input=Integer(-5924930190022759781) │
│ 2024-03-21T04:38:15.862253Z INFO spiral_temp_test: │
│ input=Integer(80194745136691555) │
│ 2024-03-21T04:38:15.862295Z INFO spiral_temp_test: │
│ input=Integer(720665291740138939) │
│ 2024-03-21T04:38:15.862348Z INFO spiral_temp_test: │
│ input=StringLiteral("e[$5WA$") │
│ 2024-03-21T04:38:15.862407Z INFO spiral_temp_test: │
│ input=StringLiteral("-*(3`:}O&yE}`EYS3iS:'/") │
│ 2024-03-21T04:38:15.862459Z INFO spiral_temp_test: │
│ input=Operator("-") │
│ 2024-03-21T04:38:15.862517Z INFO spiral_temp_test: │
│ input=Operator("/") │
│ 2024-03-21T04:38:15.862570Z INFO spiral_temp_test: │
│ input=Integer(3850679552787048817) │
│ 2024-03-21T04:38:15.862624Z INFO spiral_temp_test: │
│ input=Operator("/") │
│ 2024-03-21T04:38:15.862701Z INFO spiral_temp_test: │
│ input=Integer(2586933826389455697) │
│ 2024-03-21T04:38:15.862778Z INFO spiral_temp_test: │
│ input=Operator("=") │
│ 2024-03-21T04:38:15.862859Z INFO spiral_temp_test: │
│ input=StringLiteral("-`&=M'G") │
│ 2024-03-21T04:38:15.862904Z INFO spiral_temp_test: │
│ input=Integer(-47775894675691964) │
│ 2024-03-21T04:38:15.862977Z INFO spiral_temp_test: │
│ input=Identifier("z06ZnR6HsKOwzepyW1EhHsrlpjR") │
│ 2024-03-21T04:38:15.863026Z INFO spiral_temp_test: │
│ input=Operator(")") │
│ 2024-03-21T04:38:15.863061Z INFO spiral_temp_test: │
│ input=Identifier("e1Xs4Lr3lc1fzDljgsvK1ArUU") │
│ 2024-03-21T04:38:15.863101Z INFO spiral_temp_test: │
│ input=Identifier("aeBWJz") │
│ 2024-03-21T04:38:15.863155Z INFO spiral_temp_test: │
│ input=Operator("(") │
│ 2024-03-21T04:38:15.863202Z INFO spiral_temp_test: │
│ input=Integer(-4662730000078126781) │
│ 2024-03-21T04:38:15.863263Z INFO spiral_temp_test: │
│ input=StringLiteral("N ~~'cc+{g9UJ08 A") │
│ 2024-03-21T04:38:15.863315Z INFO spiral_temp_test: │
│ input=StringLiteral("T[?") │
│ 2024-03-21T04:38:15.863361Z INFO spiral_temp_test: │
│ input=Identifier("zeu3Hqh") │
│ 2024-03-21T04:38:15.863409Z INFO spiral_temp_test: │
│ input=Integer(6631513743841481087) │
│ 2024-03-21T04:38:15.863465Z INFO spiral_temp_test: │
│ input=Comment("d[H#N2iLLJy~IuZ?") │
│ 2024-03-21T04:38:15.863532Z INFO spiral_temp_test: │
│ input=StringLiteral("bB#<[e$}==.me#;C?N=&V:v+=@.~") │
│ 2024-03-21T04:38:15.863597Z INFO spiral_temp_test: │
│ input=Integer(-2367743564342471635) │
│ 2024-03-21T04:38:15.863677Z INFO spiral_temp_test: │
│ input=Integer(-5601349245287045229) │
│ 2024-03-21T04:38:15.863745Z INFO spiral_temp_test: │
│ input=Identifier("znfmRmXqbXT") │
│ 2024-03-21T04:38:15.863898Z INFO spiral_temp_test: │
│ input=StringLiteral("]5'hbL(%{zk$v =!") │
│ 2024-03-21T04:38:15.863938Z INFO spiral_temp_test: │
│ input=StringLiteral("?#*jn$*q($(&") │
│ 2024-03-21T04:38:15.863965Z INFO spiral_temp_test: │
│ input=Operator("*") │
│ 2024-03-21T04:38:15.863989Z INFO spiral_temp_test: │
│ input=Comment("p$kHW*") │
│ 2024-03-21T04:38:15.864029Z INFO spiral_temp_test: │
│ input=Operator(")") │
│ 2024-03-21T04:38:15.864076Z INFO spiral_temp_test: │
│ input=Integer(8015753370043201543) │
│ 2024-03-21T04:38:15.864131Z INFO spiral_temp_test: │
│ input=StringLiteral("^Lb&") │
│ 2024-03-21T04:38:15.864178Z INFO spiral_temp_test: │
│ input=StringLiteral("F:") │
│ 2024-03-21T04:38:15.864228Z INFO spiral_temp_test: │
│ input=Operator("-") │
│ 2024-03-21T04:38:15.864285Z INFO spiral_temp_test: │
│ input=Operator("(") │
│ 2024-03-21T04:38:15.864336Z INFO spiral_temp_test: │
│ input=Comment("") │
│ 2024-03-21T04:38:15.864382Z INFO spiral_temp_test: │
│ input=Operator(")") │
│ 2024-03-21T04:38:15.864430Z INFO spiral_temp_test: │
│ input=Integer(6468903785665108331) │
│ 2024-03-21T04:38:15.864474Z INFO spiral_temp_test: │
│ input=Operator("*") │
│ 2024-03-21T04:38:15.864529Z INFO spiral_temp_test: │
│ input=Comment("]\"O..") │
│ 2024-03-21T04:38:15.864576Z INFO spiral_temp_test: │
│ input=Identifier("F82Nn") │
│ 2024-03-21T04:38:15.864626Z INFO spiral_temp_test: │
│ input=StringLiteral(".") │
│ 2024-03-21T04:38:15.864673Z INFO spiral_temp_test: │
│ input=Integer(5607166609854111972) │
│ 2024-03-21T04:38:15.864729Z INFO spiral_temp_test: │
│ input=Comment("%'?x.)") │
│ 2024-03-21T04:38:15.864783Z INFO spiral_temp_test: │
│ input=StringLiteral("%&0%") │
│ 2024-03-21T04:38:15.864844Z INFO spiral_temp_test: │
│ input=StringLiteral("/c'^=d<V4n;'qq:2") │
│ 2024-03-21T04:38:15.864901Z INFO spiral_temp_test: │
│ input=Comment("z&=") │
│ 2024-03-21T04:38:15.864956Z INFO spiral_temp_test: │
│ input=Operator(")") │
│ 2024-03-21T04:38:15.865022Z INFO spiral_temp_test: │
│ input=StringLiteral("?%A$=HPbAt~q=cm_</)") │
│ 2024-03-21T04:38:15.865087Z INFO spiral_temp_test: │
│ input=Identifier("cfncgErzYsM4b0HY6i7Y6M") │
│ 2024-03-21T04:38:15.865143Z INFO spiral_temp_test: │
│ input=StringLiteral("/hbr'3`H/&r_") │
│ 2024-03-21T04:38:15.865194Z INFO spiral_temp_test: │
│ input=Integer(-1285122239712328269) │
│ 2024-03-21T04:38:15.865247Z INFO spiral_temp_test: │
│ input=StringLiteral("P[") │
│ 2024-03-21T04:38:15.865314Z INFO spiral_temp_test: │
│ input=Comment("=h,Hb&V$%<Mf$<<G`!D*jst&`%a:\":") │
│ 2024-03-21T04:38:15.865399Z INFO spiral_temp_test: │
│ input=Identifier("H86uB0QK0z9w4m01aOqz2Z3") │
│ 2024-03-21T04:38:15.865445Z INFO spiral_temp_test: │
│ input=StringLiteral("e$`Xl=h$*9=fZm&/@.=83':cw$") │
│ 2024-03-21T04:38:15.865489Z INFO spiral_temp_test: │
│ input=Operator("=") │
│ 2024-03-21T04:38:15.865542Z INFO spiral_temp_test: │
│ input=StringLiteral("s#") │
│ 2024-03-21T04:38:15.865622Z INFO spiral_temp_test: │
│ input=Operator(")") │
│ 2024-03-21T04:38:15.865654Z INFO spiral_temp_test: │
│ input=Integer(2774354520992401146) │
│ 2024-03-21T04:38:15.865679Z INFO spiral_temp_test: │
│ input=Operator(")") │
│ 2024-03-21T04:38:15.865728Z INFO spiral_temp_test: │
│ input=StringLiteral("`.*K&C6fO$5`R^vb") │
│ 2024-03-21T04:38:15.865802Z INFO spiral_temp_test: │
│ input=Identifier("m0LCC6KlVN1QiIn8egGxeIdI8Vntisr3E") │
│ 2024-03-21T04:38:15.865846Z INFO spiral_temp_test: │
│ input=Integer(126079587614156052) │
│ 2024-03-21T04:38:15.865900Z INFO spiral_temp_test: │
│ input=Identifier("P3") │
│ 2024-03-21T04:38:15.865954Z INFO spiral_temp_test: │
│ input=Comment("}TD") │
│ 2024-03-21T04:38:15.866060Z INFO spiral_temp_test: │
│ input=Comment("") │
│ 2024-03-21T04:38:15.866101Z INFO spiral_temp_test: │
│ input=Identifier("cUaFHOr5t3") │
│ 2024-03-21T04:38:15.866127Z INFO spiral_temp_test: │
│ input=Operator("=") │
│ 2024-03-21T04:38:15.866158Z INFO spiral_temp_test: │
│ input=Comment("#8C.<a|<[v>*)`lV%Ei") │
│ 2024-03-21T04:38:15.866195Z INFO spiral_temp_test: │
│ input=Comment("`GU:;Np<X[&{pSim#c:,!TG>M") │
│ 2024-03-21T04:38:15.866217Z INFO spiral_temp_test: │
│ input=Integer(-77977506963546703) │
│ 2024-03-21T04:38:15.866240Z INFO spiral_temp_test: │
│ input=Comment("`^r/") │
│ 2024-03-21T04:38:15.866284Z INFO spiral_temp_test: │
│ input=Comment("}jGTB6.<`!\"/\\f?6z%B\\ERm+W6}/B") │
│ 2024-03-21T04:38:15.866312Z INFO spiral_temp_test: │
│ input=Operator("(") │
│ 2024-03-21T04:38:15.866337Z INFO spiral_temp_test: │
│ input=Identifier("O") │
│ 2024-03-21T04:38:15.866357Z INFO spiral_temp_test: │
│ input=Integer(-1521953159738105812) │
│ 2024-03-21T04:38:15.866386Z INFO spiral_temp_test: │
│ input=Identifier("SZvrkWhNxWY4R2npLq8") │
│ 2024-03-21T04:38:15.866420Z INFO spiral_temp_test: │
│ input=StringLiteral("Euf&{_l].Xmy;%b3N(1)Oo~") │
│ 2024-03-21T04:38:15.866450Z INFO spiral_temp_test: │
│ input=Operator("=") │
│ 2024-03-21T04:38:15.866474Z INFO spiral_temp_test: │
│ input=Identifier("pzl1pAFLyp") │
│ 2024-03-21T04:38:15.866495Z INFO spiral_temp_test: │
│ input=Integer(287064167416973029) │
│ 2024-03-21T04:38:15.866522Z INFO spiral_temp_test: │
│ input=Operator("/") │
│ 2024-03-21T04:38:15.866549Z INFO spiral_temp_test: │
│ input=Comment("o/u%?lJfMK=i^60/,") │
│ 2024-03-21T04:38:15.866573Z INFO spiral_temp_test: │
│ input=Operator("-") │
│ 2024-03-21T04:38:15.866604Z INFO spiral_temp_test: │
│ input=Comment("E5j6=<`A{+p{\\&1'XR`P6<yHvR\"") │
│ 2024-03-21T04:38:15.866636Z INFO spiral_temp_test: │
│ input=StringLiteral("A`.b<qkIiz") │
│ 2024-03-21T04:38:15.866666Z INFO spiral_temp_test: │
│ input=Identifier("on8vaqd903ClP575M74") │
│ 2024-03-21T04:38:15.866691Z INFO spiral_temp_test: │
│ input=Integer(-5928389522024896533) │
│ 2024-03-21T04:38:15.866745Z INFO spiral_temp_test: │
│ input=Integer(-2658140313057059422) │
│ 2024-03-21T04:38:15.866792Z INFO spiral_temp_test: │
│ input=Integer(1861809248938087245) │
│ 2024-03-21T04:38:15.866835Z INFO spiral_temp_test: │
│ input=StringLiteral("0o=%&") │
│ 2024-03-21T04:38:15.866870Z INFO spiral_temp_test: │
│ input=Integer(-6459221323834570737) │
│ 2024-03-21T04:38:15.866903Z INFO spiral_temp_test: │
│ input=Operator("=") │
│ 2024-03-21T04:38:15.866959Z INFO spiral_temp_test: │
│ input=Comment("f%ZKU:_T<qI:%<>*./s.a<5") │
│ 2024-03-21T04:38:15.866999Z INFO spiral_temp_test: │
│ input=Operator("=") │
│ 2024-03-21T04:38:15.867050Z INFO spiral_temp_test: │
│ input=Comment("5y/l${'-T3T%9OXom3oS!") │
│ 2024-03-21T04:38:15.867089Z INFO spiral_temp_test: │
│ input=Integer(-7126860519969926040) │
│ 2024-03-21T04:38:15.867121Z INFO spiral_temp_test: │
│ input=Integer(5288282471170831071) │
│ 2024-03-21T04:38:15.867162Z INFO spiral_temp_test: │
│ input=StringLiteral("/.bsLS:J&[{.!R$TT3=El") │
│ 2024-03-21T04:38:15.867248Z INFO spiral_temp_test: │
│ input=Identifier("VD2B5XHane4QONM0vdfB14C1") │
│ 2024-03-21T04:38:15.867329Z INFO spiral_temp_test: │
│ input=Comment("=zmHYr%.,Eg{sd?elzS") │
│ 2024-03-21T04:38:15.867391Z INFO spiral_temp_test: │
│ input=StringLiteral("`ri/H?b*$>e_4II/W>H`X>Q&%.Tzu") │
│ 2024-03-21T04:38:15.867432Z INFO spiral_temp_test: │
│ input=Integer(-3828124372727694012) │
│ 2024-03-21T04:38:15.867470Z INFO spiral_temp_test: │
│ input=Operator("=") │
│ 2024-03-21T04:38:15.867520Z INFO spiral_temp_test: │
│ input=Identifier("QQefPfS33QBNyR8dAQWQ5P2b") │
│ 2024-03-21T04:38:15.867558Z INFO spiral_temp_test: │
│ input=Operator("*") │
│ 2024-03-21T04:38:15.867592Z INFO spiral_temp_test: │
│ input=StringLiteral("(^") │
│ 2024-03-21T04:38:15.867640Z INFO spiral_temp_test: │
│ input=Comment("U]/=K$+?/4CxDjZXqm<|~") │
│ 2024-03-21T04:38:15.867675Z INFO spiral_temp_test: │
│ input=Integer(-2792238052538610880) │
│ 2024-03-21T04:38:15.867713Z INFO spiral_temp_test: │
│ input=Comment("^/F:\"k/DO") │
│ 2024-03-21T04:38:15.867767Z INFO spiral_temp_test: │
│ input=StringLiteral("=?!'?Ob}?:^*l}w2zJ6") │
│ 2024-03-21T04:38:15.867804Z INFO spiral_temp_test: │
│ input=StringLiteral("") │
│ 2024-03-21T04:38:15.867835Z INFO spiral_temp_test: │
│ input=StringLiteral("") │
│ 2024-03-21T04:38:15.867867Z INFO spiral_temp_test: │
│ input=Operator("/") │
│ 2024-03-21T04:38:15.867895Z INFO spiral_temp_test: │
│ input=Integer(-8998300153494223692) │
│ 2024-03-21T04:38:15.867933Z INFO spiral_temp_test: │
│ input=StringLiteral("5n.?{pOr}A*v*&]") │
│ 2024-03-21T04:38:15.867980Z INFO spiral_temp_test: │
│ input=Comment("d:3i<Vq\"N1%B\\qWQ]&n") │
│ 2024-03-21T04:38:15.868030Z INFO spiral_temp_test: │
│ input=Comment("A\"o/#{a?L.Uw!A^*2") │
│ 2024-03-21T04:38:15.868072Z INFO spiral_temp_test: │
│ input=Identifier("HihMLkm8XnB") │
│ 2024-03-21T04:38:15.868119Z INFO spiral_temp_test: │
│ input=Comment("T1-$b\\PC\"(ko'1p,wSW:R/") │
│ 2024-03-21T04:38:15.868158Z INFO spiral_temp_test: │
│ input=Comment("P") │
│ 2024-03-21T04:38:15.868202Z INFO spiral_temp_test: │
│ input=StringLiteral("[j ' :`$$uJ}xn@x") │
│ 2024-03-21T04:38:15.868255Z INFO spiral_temp_test: │
│ input=Comment("_Z?.0&&fCk(dFG?4A'<%A{?G%") │
│ 2024-03-21T04:38:15.868293Z INFO spiral_temp_test: │
│ input=Identifier("R6L") │
│ 2024-03-21T04:38:15.868324Z INFO spiral_temp_test: │
│ input=Integer(3687771187371053535) │
│ 2024-03-21T04:38:15.868360Z INFO spiral_temp_test: │
│ input=Operator("*") │
│ 2024-03-21T04:38:15.868398Z INFO spiral_temp_test: │
│ input=Comment("}/?&") │
│ 2024-03-21T04:38:15.868428Z INFO spiral_temp_test: │
│ input=Operator("-") │
│ 2024-03-21T04:38:15.868460Z INFO spiral_temp_test: │
│ input=Integer(-8846186367420825029) │
│ 2024-03-21T04:38:15.868514Z INFO spiral_temp_test: │
│ input=Comment("OZkWY~JTZ[lE`i+v696U\\Vkv$'\"S{A") │
│ 2024-03-21T04:38:15.868550Z INFO spiral_temp_test: │
│ input=Integer(8873735796467036443) │
│ 2024-03-21T04:38:15.868589Z INFO spiral_temp_test: │
│ input=Comment("<3F{49") │
│ 2024-03-21T04:38:15.868622Z INFO spiral_temp_test: │
│ input=Integer(-9098585990199763363) │
│ 2024-03-21T04:38:15.868662Z INFO spiral_temp_test: │
│ input=Identifier("C2Ptdfd0UjTwf") │
│ 2024-03-21T04:38:15.868703Z INFO spiral_temp_test: │
│ input=StringLiteral("NY;]*;z.'") │
│ 2024-03-21T04:38:15.868751Z INFO spiral_temp_test: │
│ input=Identifier("U9x9LEWG2hm5TYeH12ve4fZ7") │
│ 2024-03-21T04:38:15.868796Z INFO spiral_temp_test: │
│ input=StringLiteral(",q<'u0`JW'a?lY?") │
│ 2024-03-21T04:38:15.868847Z INFO spiral_temp_test: │
│ input=Comment("<'US`DB9*hhDS%$zP{S#LE") │
│ 2024-03-21T04:38:15.868899Z INFO spiral_temp_test: │
│ input=Comment("O s{`o>+I6*-Hb{q/t?C&,") │
│ 2024-03-21T04:38:15.868943Z INFO spiral_temp_test: │
│ input=StringLiteral("(jaZ*!H$") │
│ 2024-03-21T04:38:15.868977Z INFO spiral_temp_test: │
│ input=Integer(-6542091963429941339) │
│ 2024-03-21T04:38:15.869008Z INFO spiral_temp_test: │
│ input=Identifier("feIiD2") │
│ 2024-03-21T04:38:15.869053Z INFO spiral_temp_test: │
│ input=Identifier("IM291pOY4NXw74v6uMS54wCW") │
│ 2024-03-21T04:38:15.869091Z INFO spiral_temp_test: │
│ input=StringLiteral(".t?Bw>HU)Nef") │
│ 2024-03-21T04:38:15.869128Z INFO spiral_temp_test: │
│ input=Operator("-") │
│ 2024-03-21T04:38:15.869172Z INFO spiral_temp_test: │
│ input=StringLiteral("Rdz av:D%=s<gBd$LUFm`B") │
│ 2024-03-21T04:38:15.869220Z INFO spiral_temp_test: │
│ input=Comment("Zfrj:hMng\\4:Hz'%%`") │
│ 2024-03-21T04:38:15.869271Z INFO spiral_temp_test: │
│ input=StringLiteral(" ?mL2/EXNdn#gsp$v~S^") │
│ 2024-03-21T04:38:15.869320Z INFO spiral_temp_test: │
│ input=StringLiteral("x$wi%AhN*e}<3ugQ1>") │
│ 2024-03-21T04:38:15.869367Z INFO spiral_temp_test: │
│ input=Identifier("uIVJUM1dM32OzqadKq2") │
│ 2024-03-21T04:38:15.869403Z INFO spiral_temp_test: │
│ input=Operator("+") │
│ 2024-03-21T04:38:15.869440Z INFO spiral_temp_test: │
│ input=Comment("k") │
│ 2024-03-21T04:38:15.869475Z INFO spiral_temp_test: │
│ input=StringLiteral("T$") │
│ 2024-03-21T04:38:15.869518Z INFO spiral_temp_test: │
│ input=StringLiteral("@H(bVlj7<~*?k-nKF@5G") │
│ 2024-03-21T04:38:15.869582Z INFO spiral_temp_test: │
│ input=StringLiteral("@r*[NPy?+:F$p/>aAd`!H`m}`") │
│ 2024-03-21T04:38:15.869635Z INFO spiral_temp_test: │
│ input=Operator("/") │
│ 2024-03-21T04:38:15.869672Z INFO spiral_temp_test: │
│ input=Integer(878304052841672116) │
│ 2024-03-21T04:38:15.869721Z INFO spiral_temp_test: │
│ input=StringLiteral("I4%0`:% *h/&fOiA'HjO|}Hi") │
│ 2024-03-21T04:38:15.869770Z INFO spiral_temp_test: │
│ input=Identifier("Jw25IWTEm9L83VQM84jgVie6x") │
│ 2024-03-21T04:38:15.869823Z INFO spiral_temp_test: │
│ input=Integer(-6949475766288147250) │
│ 2024-03-21T04:38:15.869934Z INFO spiral_temp_test: │
│ input=StringLiteral("JiYg/") │
│ 2024-03-21T04:38:15.870001Z INFO spiral_temp_test: │
│ input=Comment("SU.sG%X.?}q<") │
│ 2024-03-21T04:38:15.870036Z INFO spiral_temp_test: │
│ input=StringLiteral("6$-<;^=$$=K!?") │
│ 2024-03-21T04:38:15.870062Z INFO spiral_temp_test: │
│ input=Comment("{@") │
│ 2024-03-21T04:38:15.870082Z INFO spiral_temp_test: │
│ input=Integer(-9066064545252486158) │
│ 2024-03-21T04:38:15.870134Z INFO spiral_temp_test: │
│ input=Comment("\"#q?U:yzh:>i>\"1.F\\V$K5/c<qT|<") │
│ 2024-03-21T04:38:15.870171Z INFO spiral_temp_test: │
│ input=StringLiteral(";") │
│ 2024-03-21T04:38:15.870196Z INFO spiral_temp_test: │
│ input=Operator(")") │
│ 2024-03-21T04:38:15.870228Z INFO spiral_temp_test: │
│ input=Comment("a.v_J<Z2`/x!>2NL\\#b\\b%+3<QG") │
│ 2024-03-21T04:38:15.870249Z INFO spiral_temp_test: │
│ input=Integer(-1452039987006964422) │
│ 2024-03-21T04:38:15.870269Z INFO spiral_temp_test: │
│ input=Integer(3204492871326197256) │
│ 2024-03-21T04:38:15.870290Z INFO spiral_temp_test: │
│ input=Operator("*") │
│ 2024-03-21T04:38:15.870323Z INFO spiral_temp_test: │
│ input=StringLiteral("* w.SqnhfV3?X=i%{^`:{%]?619P=f=") │
│ 2024-03-21T04:38:15.870349Z INFO spiral_temp_test: │
│ input=Operator("(") │
│ 2024-03-21T04:38:15.870371Z INFO spiral_temp_test: │
│ input=Identifier("k0Icp0") │
│ 2024-03-21T04:38:15.870394Z INFO spiral_temp_test: │
│ input=Comment("Qc<{") │
│ 2024-03-21T04:38:15.870427Z INFO spiral_temp_test: │
│ input=Comment("~2L{+?3>{;Y..hPb<{hZ3d?atA|]:") │
│ 2024-03-21T04:38:15.870456Z INFO spiral_temp_test: │
│ input=StringLiteral("&j%[Mw.{%2") │
│ 2024-03-21T04:38:15.870484Z INFO spiral_temp_test: │
│ input=Comment(">Z=,") │
│ 2024-03-21T04:38:15.870511Z INFO spiral_temp_test: │
│ input=Identifier("mj8cki3uE3B6FS") │
│ 2024-03-21T04:38:15.870554Z INFO spiral_temp_test: │
│ input=Comment("i$<F)pArC") │
│ 2024-03-21T04:38:15.870607Z INFO spiral_temp_test: │
│ input=Identifier("T1b2m158Hz79ypfT8Uo5k7") │
│ 2024-03-21T04:38:15.870630Z INFO spiral_temp_test: │
│ input=Integer(-4810054403061275616) │
│ 2024-03-21T04:38:15.870650Z INFO spiral_temp_test: │
│ input=Integer(7051739944843187856) │
│ 2024-03-21T04:38:15.870671Z INFO spiral_temp_test: │
│ input=Operator("*") │
│ 2024-03-21T04:38:15.870695Z INFO spiral_temp_test: │
│ input=Comment("{v,`%v1fKp") │
│ 2024-03-21T04:38:15.870728Z INFO spiral_temp_test: │
│ input=Identifier("xJYD3X5uOj7dS8k57sA7Tu20x9Ip8Of") │
│ 2024-03-21T04:38:15.870753Z INFO spiral_temp_test: │
│ input=Operator("-") │
│ 2024-03-21T04:38:15.870784Z INFO spiral_temp_test: │
│ input=Comment("CXGE*ujn%J_Y:I`?DA 4p**11rY") │
│ 2024-03-21T04:38:15.870819Z INFO spiral_temp_test: │
│ input=StringLiteral("Xqt%j}&#`Z=?u<7xmYEeaB$YT:hxL[") │
│ 2024-03-21T04:38:15.870844Z INFO spiral_temp_test: │
│ input=Identifier("k") │
│ 2024-03-21T04:38:15.870867Z INFO spiral_temp_test: │
│ input=Comment("2* ]iY'") │
│ 2024-03-21T04:38:15.870889Z INFO spiral_temp_test: │
│ input=Operator("/") │
│ 2024-03-21T04:38:15.870916Z INFO spiral_temp_test: │
│ input=Identifier("cN0H2KO3y3OXvYXc") │
│ 2024-03-21T04:38:15.870938Z INFO spiral_temp_test: │
│ input=Integer(-6384171204667046977) │
│ 2024-03-21T04:38:15.870962Z INFO spiral_temp_test: │
│ input=Operator("(") │
│ 2024-03-21T04:38:15.870993Z INFO spiral_temp_test: │
│ input=Comment("\"{p.%g,z,H/\"j?F4JW{U#o|n-{") │
│ 2024-03-21T04:38:15.871017Z INFO spiral_temp_test: │
│ input=Operator("/") │
│ 2024-03-21T04:38:15.871047Z INFO spiral_temp_test: │
│ input=Identifier("vwf2CZRCTJEI76xUTgP3pctYveLg") │
│ 2024-03-21T04:38:15.871077Z INFO spiral_temp_test: │
│ input=Comment("?U$_WN/+~'f`H") │
│ 2024-03-21T04:38:15.871108Z INFO spiral_temp_test: │
│ input=Comment("wK'n]b-lh~S*XCn?=;C&`-}0A") │
│ 2024-03-21T04:38:15.873035Z INFO spiral_temp_test: │
│ input=StringLiteral("_%7New$1<`@Em/,Io54") │
│ 2024-03-21T04:38:15.873084Z INFO spiral_temp_test: │
│ input=Comment("`&o$WL\"s4Bjb=_&i&,m") │
│ 2024-03-21T04:38:15.873142Z INFO spiral_temp_test: │
│ input=Operator("(") │
│ 2024-03-21T04:38:15.873200Z INFO spiral_temp_test: │
│ input=Operator("+") │
│ 2024-03-21T04:38:15.873229Z INFO spiral_temp_test: │
│ input=StringLiteral("'j?2") │
│ 2024-03-21T04:38:15.873257Z INFO spiral_temp_test: │
│ input=StringLiteral("'vvU'05jd.<%l") │
│ 2024-03-21T04:38:15.873284Z INFO spiral_temp_test: │
│ input=Operator("=") │
│ test prop_parse_format_idempotent ... ok │
│ test │
│ adding_and_then_removing_an_item_from_the_cart_leaves_the_cart_unchanged ... │
│ ok │
│ │
│ test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; │
│ finished in 0.17s │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── pwsh ────────────────────────────────────────────────────────────────────────
{ . $ScriptDir/../../../../target/release/spiral_temp_test$(GetExecutableSuffix)
} | Invoke-Block
╭─[ 80.75ms - stdout ]─────────────────────────────────────────────────────────╮
│ app=test │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook build.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 364738 bytes to build.dib.html
In [ ]:
{ . "$ScriptDir/../apps/plot/build.ps1" } | Invoke-Block
Finished `release` profile [optimized] target(s) in 0.58s
In [ ]:
{ . "$ScriptDir/../lib/spiral/build.ps1" } | Invoke-Block
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\lib\spiral
00:00:00 #4 [Verbose] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #6 [Debug] runWithTimeoutAsync / timeout: 500
00:00:00 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805
00:00:01 #11 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 testing.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:03 #12 [Verbose] >
00:00:03 #13 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 #14 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 #15 [Verbose] > │ # testing │
00:00:03 #16 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:04 #17 [Verbose] >
00:00:04 #18 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:04 #19 [Verbose] > inl __expect fn log b a =
00:00:04 #20 [Verbose] > inl result = fn a b
00:00:04 #21 [Verbose] > inl result =
00:00:04 #22 [Verbose] > result || join result
00:00:04 #23 [Verbose] > if log
00:00:04 #24 [Verbose] > then $"$\"__expect / actual: %A{!a} / expected: %A{!b}\""
00:00:04 #25 [Verbose] > else "__expect"
00:00:04 #26 [Verbose] > |> assert result
00:00:04 #27 [Verbose] >
00:00:04 #28 [Verbose] > inl __assert_approx_eq log e b a = __expect (fun a b => abs (b - a) < (e |>
00:00:04 #29 [Verbose] > optionm.defaultWith 0.00000001)) log b a
00:00:04 #30 [Verbose] > inl _assert_approx_eq e b a = __assert_approx_eq true e b a
00:00:04 #31 [Verbose] >
00:00:04 #32 [Verbose] > inl __assert_eq log b a = __expect (=) log b a
00:00:04 #33 [Verbose] > inl _assert_eq b a = __assert_eq true b a
00:00:04 #34 [Verbose] >
00:00:04 #35 [Verbose] > inl __assert_ne log b a = __expect (fun a b => a = b |> fun x => join x |> not)
00:00:04 #36 [Verbose] > log b a
00:00:04 #37 [Verbose] > inl _assert_ne b a = __assert_ne true b a
00:00:04 #38 [Verbose] >
00:00:04 #39 [Verbose] > inl __assert_gt log b a = __expect (>) log b a
00:00:04 #40 [Verbose] > inl _assert_gt b a = __assert_gt true b a
00:00:04 #41 [Verbose] >
00:00:04 #42 [Verbose] > inl __assert_ge log b a = __expect (>=) log b a
00:00:04 #43 [Verbose] > inl _assert_ge b a = __assert_ge true b a
00:00:04 #44 [Verbose] >
00:00:04 #45 [Verbose] > inl __assert_lt log b a = __expect (<) log b a
00:00:04 #46 [Verbose] > inl _assert_lt b a = __assert_lt true b a
00:00:04 #47 [Verbose] >
00:00:04 #48 [Verbose] > inl __assert_le log b a = __expect (<=) log b a
00:00:04 #49 [Verbose] > inl _assert_le b a = __assert_le true b a
00:00:04 #50 [Verbose] >
00:00:04 #51 [Verbose] > inl _throws (fn : () -> ()) : option string =
00:00:04 #52 [Verbose] > inl none = None : option string
00:00:04 #53 [Verbose] > inl some (s : string) = Some s
00:00:04 #54 [Verbose] > $"try !fn (); !none with ex -> !some ex.Message"
00:00:07 #55 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-2753-5308-5da949d059d5\main.spi
00:00:09 #56 [Verbose] >
00:00:09 #57 [Verbose] > ╭─[ 5.83s - stdout ]───────────────────────────────────────────────────────────╮
00:00:09 #58 [Verbose] > │ () │
00:00:09 #59 [Verbose] > │ │
00:00:09 #60 [Verbose] > │ │
00:00:09 #61 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #62 [Verbose] >
00:00:09 #63 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #64 [Verbose] > // // test
00:00:09 #65 [Verbose] >
00:00:09 #66 [Verbose] > 1f64
00:00:09 #67 [Verbose] > |> _assert_approx_eq (Some 3) 2
00:00:09 #68 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-3096-9657-97f9756e4990\main.spi
00:00:10 #69 [Verbose] >
00:00:10 #70 [Verbose] > ╭─[ 788.95ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #71 [Verbose] > │ let rec method0 () : unit = │
00:00:10 #72 [Verbose] > │ let v0 : string = $"__expect / actual: %A{1.0} / expected: %A{2.0}" │
00:00:10 #73 [Verbose] > │ () │
00:00:10 #74 [Verbose] > │ method0() │
00:00:10 #75 [Verbose] > │ │
00:00:10 #76 [Verbose] > │ │
00:00:10 #77 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #78 [Verbose] >
00:00:10 #79 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #80 [Verbose] > // // test
00:00:10 #81 [Verbose] >
00:00:10 #82 [Verbose] > (dyn 1f64)
00:00:10 #83 [Verbose] > |> _assert_approx_eq (Some 3) 2
00:00:10 #84 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-3175-7566-70f85a522b71\main.spi
00:00:11 #85 [Verbose] >
00:00:11 #86 [Verbose] > ╭─[ 431.06ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #87 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:11 #88 [Verbose] > │ v0 │
00:00:11 #89 [Verbose] > │ and method0 () : unit = │
00:00:11 #90 [Verbose] > │ let v0 : float = 1.0 │
00:00:11 #91 [Verbose] > │ let v1 : float = 2.0 - v0 │
00:00:11 #92 [Verbose] > │ let v2 : float = -v1 │
00:00:11 #93 [Verbose] > │ let v3 : bool = v1 >= v2 │
00:00:11 #94 [Verbose] > │ let v4 : float = │
00:00:11 #95 [Verbose] > │ if v3 then │
00:00:11 #96 [Verbose] > │ v1 │
00:00:11 #97 [Verbose] > │ else │
00:00:11 #98 [Verbose] > │ v2 │
00:00:11 #99 [Verbose] > │ let v5 : bool = v4 < 3.0 │
00:00:11 #100 [Verbose] > │ let v7 : bool = │
00:00:11 #101 [Verbose] > │ if v5 then │
00:00:11 #102 [Verbose] > │ true │
00:00:11 #103 [Verbose] > │ else │
00:00:11 #104 [Verbose] > │ method1(v5) │
00:00:11 #105 [Verbose] > │ let v8 : string = $"__expect / actual: %A{v0} / expected: %A{2.0}" │
00:00:11 #106 [Verbose] > │ let v9 : bool = v7 = false │
00:00:11 #107 [Verbose] > │ if v9 then │
00:00:11 #108 [Verbose] > │ failwith<unit> v8 │
00:00:11 #109 [Verbose] > │ method0() │
00:00:11 #110 [Verbose] > │ │
00:00:11 #111 [Verbose] > │ │
00:00:11 #112 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #113 [Verbose] >
00:00:11 #114 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #115 [Verbose] > inl print_and_return x =
00:00:11 #116 [Verbose] > $"printfn $\"print_and_return / x: {!x}\""
00:00:11 #117 [Verbose] > x
00:00:11 #118 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-3219-1980-185c2dc3530b\main.spi
00:00:11 #119 [Verbose] >
00:00:11 #120 [Verbose] > ╭─[ 232.43ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #121 [Verbose] > │ () │
00:00:11 #122 [Verbose] > │ │
00:00:11 #123 [Verbose] > │ │
00:00:11 #124 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #125 [Verbose] > [NbConvertApp] Converting notebook testing.dib.ipynb to html
00:00:13 #126 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:13 #127 [Verbose] > validate(nb)
00:00:13 #128 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:13 #129 [Verbose] > return _pygments_highlight(
00:00:14 #130 [Verbose] > [NbConvertApp] Writing 282881 bytes to testing.dib.html
00:00:14 #131 [Debug] executeAsync / exitCode: 0 / output.Length: 6372
00:00:14 #132 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\lib\spiral
00:00:00 #4 [Verbose] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #6 [Debug] runWithTimeoutAsync / timeout: 500
00:00:00 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805
00:00:01 #11 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 common.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:03 #12 [Verbose] >
00:00:03 #13 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 #14 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 #15 [Verbose] > │ # common │
00:00:03 #16 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:03 #17 [Verbose] >
00:00:03 #18 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:03 #19 [Verbose] > // // test
00:00:03 #20 [Verbose] >
00:00:03 #21 [Verbose] > open testing
00:00:07 #22 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-4287-8750-8e419d157cae\main.spi
00:00:09 #23 [Verbose] >
00:00:09 #24 [Verbose] > ╭─[ 5.97s - stdout ]───────────────────────────────────────────────────────────╮
00:00:09 #25 [Verbose] > │ () │
00:00:09 #26 [Verbose] > │ │
00:00:09 #27 [Verbose] > │ │
00:00:09 #28 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #29 [Verbose] >
00:00:09 #30 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #31 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #32 [Verbose] > │ ## types │
00:00:09 #33 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #34 [Verbose] >
00:00:09 #35 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #36 [Verbose] > nominal any = $"obj"
00:00:09 #37 [Verbose] > nominal disposable = $"System.IDisposable"
00:00:09 #38 [Verbose] > nominal exn = $"exn"
00:00:09 #39 [Verbose] > nominal guid = $"System.Guid"
00:00:09 #40 [Verbose] > nominal unativeint = $"unativeint"
00:00:09 #41 [Verbose] >
00:00:09 #42 [Verbose] > let array x = x
00:00:09 #43 [Verbose] >
00:00:09 #44 [Verbose] > inl unativeint forall t {int}. (n : t) : unativeint =
00:00:09 #45 [Verbose] > $"unativeint !n"
00:00:09 #46 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-4639-3971-38002f7fe250\main.spi
00:00:10 #47 [Verbose] >
00:00:10 #48 [Verbose] > ╭─[ 293.96ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #49 [Verbose] > │ () │
00:00:10 #50 [Verbose] > │ │
00:00:10 #51 [Verbose] > │ │
00:00:10 #52 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #53 [Verbose] >
00:00:10 #54 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #55 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #56 [Verbose] > │ ## prototype │
00:00:10 #57 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #58 [Verbose] >
00:00:10 #59 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #60 [Verbose] > prototype (~:>) r : forall t. t -> r
00:00:10 #61 [Verbose] > prototype append t : t -> t -> t
00:00:10 #62 [Verbose] > prototype of_string t : string -> t
00:00:10 #63 [Verbose] > prototype to_string t : t -> string
00:00:10 #64 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-4668-6897-63c4fa06e3d8\main.spi
00:00:10 #65 [Verbose] >
00:00:10 #66 [Verbose] > ╭─[ 231.56ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #67 [Verbose] > │ () │
00:00:10 #68 [Verbose] > │ │
00:00:10 #69 [Verbose] > │ │
00:00:10 #70 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #71 [Verbose] >
00:00:10 #72 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #73 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #74 [Verbose] > │ ## null │
00:00:10 #75 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #76 [Verbose] >
00:00:10 #77 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #78 [Verbose] > inl null forall t. () : t =
00:00:10 #79 [Verbose] > $"null |> unbox<`t>"
00:00:10 #80 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-4692-9251-981934ba0c30\main.spi
00:00:10 #81 [Verbose] >
00:00:10 #82 [Verbose] > ╭─[ 242.79ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #83 [Verbose] > │ () │
00:00:10 #84 [Verbose] > │ │
00:00:10 #85 [Verbose] > │ │
00:00:10 #86 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #87 [Verbose] >
00:00:10 #88 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #89 [Verbose] > inl i64 forall t. (x : t) : i64 =
00:00:10 #90 [Verbose] > $"int64 !x"
00:00:10 #91 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-4717-1700-104d2a1f8a15\main.spi
00:00:10 #92 [Verbose] >
00:00:10 #93 [Verbose] > ╭─[ 287.35ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #94 [Verbose] > │ () │
00:00:10 #95 [Verbose] > │ │
00:00:10 #96 [Verbose] > │ │
00:00:10 #97 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #98 [Verbose] >
00:00:10 #99 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #100 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #101 [Verbose] > │ ## pair │
00:00:10 #102 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #103 [Verbose] >
00:00:10 #104 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #105 [Verbose] > type pair a b = $"(`a * `b)"
00:00:10 #106 [Verbose] >
00:00:10 #107 [Verbose] > inl pair x y =
00:00:10 #108 [Verbose] > x, y
00:00:10 #109 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-4746-4662-451e0c8f516e\main.spi
00:00:11 #110 [Verbose] >
00:00:11 #111 [Verbose] > ╭─[ 203.86ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #112 [Verbose] > │ () │
00:00:11 #113 [Verbose] > │ │
00:00:11 #114 [Verbose] > │ │
00:00:11 #115 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #116 [Verbose] >
00:00:11 #117 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #118 [Verbose] > // // test
00:00:11 #119 [Verbose] >
00:00:11 #120 [Verbose] > pair 1i32 2i32
00:00:11 #121 [Verbose] > |> _assert_eq (1, 2)
00:00:11 #122 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-4767-6711-667e02221b2f\main.spi
00:00:11 #123 [Verbose] >
00:00:11 #124 [Verbose] > ╭─[ 759.76ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #125 [Verbose] > │ let rec method0 () : unit = │
00:00:11 #126 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (1, 2)} / expected: │
00:00:11 #127 [Verbose] > │ %A{struct (1, 2)}" │
00:00:11 #128 [Verbose] > │ () │
00:00:11 #129 [Verbose] > │ method0() │
00:00:11 #130 [Verbose] > │ │
00:00:11 #131 [Verbose] > │ │
00:00:11 #132 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #133 [Verbose] >
00:00:11 #134 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #135 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #136 [Verbose] > │ ## new_pair │
00:00:11 #137 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #138 [Verbose] >
00:00:11 #139 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #140 [Verbose] > inl new_pair forall a b. (a : a) (b : b) : pair a b =
00:00:11 #141 [Verbose] > $"!a, !b"
00:00:11 #142 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-4843-4361-4e3f70d2d3c5\main.spi
00:00:12 #143 [Verbose] >
00:00:12 #144 [Verbose] > ╭─[ 223.24ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #145 [Verbose] > │ () │
00:00:12 #146 [Verbose] > │ │
00:00:12 #147 [Verbose] > │ │
00:00:12 #148 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #149 [Verbose] >
00:00:12 #150 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #151 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #152 [Verbose] > │ ## from_pair │
00:00:12 #153 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #154 [Verbose] >
00:00:12 #155 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #156 [Verbose] > inl from_pair forall a b. (pair : pair a b) : a * b =
00:00:12 #157 [Verbose] > $"let (a, b) = !pair"
00:00:12 #158 [Verbose] > $"a", $"b"
00:00:12 #159 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-4866-6655-691276d2dce8\main.spi
00:00:12 #160 [Verbose] >
00:00:12 #161 [Verbose] > ╭─[ 237.84ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #162 [Verbose] > │ () │
00:00:12 #163 [Verbose] > │ │
00:00:12 #164 [Verbose] > │ │
00:00:12 #165 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #166 [Verbose] >
00:00:12 #167 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #168 [Verbose] > // // test
00:00:12 #169 [Verbose] >
00:00:12 #170 [Verbose] > new_pair "a" 1i32
00:00:12 #171 [Verbose] > |> from_pair
00:00:12 #172 [Verbose] > |> _assert_eq ("a", 1i32)
00:00:12 #173 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-4890-9044-9b6eb7dc26c4\main.spi
00:00:12 #174 [Verbose] >
00:00:12 #175 [Verbose] > ╭─[ 339.72ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #176 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:12 #177 [Verbose] > │ v0 │
00:00:12 #178 [Verbose] > │ and method0 () : unit = │
00:00:12 #179 [Verbose] > │ let v0 : string = "a" │
00:00:12 #180 [Verbose] > │ let v1 : (string * int32) = v0, 1 │
00:00:12 #181 [Verbose] > │ let (a, b) = v1 │
00:00:12 #182 [Verbose] > │ let v2 : string = a │
00:00:12 #183 [Verbose] > │ let v3 : int32 = b │
00:00:12 #184 [Verbose] > │ let v4 : bool = v2 = "a" │
00:00:12 #185 [Verbose] > │ let v6 : bool = │
00:00:12 #186 [Verbose] > │ if v4 then │
00:00:12 #187 [Verbose] > │ let v5 : bool = v3 = 1 │
00:00:12 #188 [Verbose] > │ v5 │
00:00:12 #189 [Verbose] > │ else │
00:00:12 #190 [Verbose] > │ false │
00:00:12 #191 [Verbose] > │ let v8 : bool = │
00:00:12 #192 [Verbose] > │ if v6 then │
00:00:12 #193 [Verbose] > │ true │
00:00:12 #194 [Verbose] > │ else │
00:00:12 #195 [Verbose] > │ method1(v6) │
00:00:12 #196 [Verbose] > │ let v9 : string = $"__expect / actual: %A{struct (v2, v3)} / expected: │
00:00:12 #197 [Verbose] > │ %A{struct (v0, 1)}" │
00:00:12 #198 [Verbose] > │ let v10 : bool = v8 = false │
00:00:12 #199 [Verbose] > │ if v10 then │
00:00:12 #200 [Verbose] > │ failwith<unit> v9 │
00:00:12 #201 [Verbose] > │ method0() │
00:00:12 #202 [Verbose] > │ │
00:00:12 #203 [Verbose] > │ │
00:00:12 #204 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #205 [Verbose] >
00:00:12 #206 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #207 [Verbose] > // // test
00:00:12 #208 [Verbose] >
00:00:12 #209 [Verbose] > new_pair "a" (new_pair 1i32 "b")
00:00:12 #210 [Verbose] > |> from_pair
00:00:12 #211 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-4925-2556-29de2148286d\main.spi
00:00:12 #212 [Verbose] >
00:00:12 #213 [Verbose] > ╭─[ 323.70ms - return value ]──────────────────────────────────────────────────╮
00:00:12 #214 [Verbose] > │ <details open="open" class="dni-treeview"><summary><span │
00:00:12 #215 [Verbose] > │ class="dni-code-hint"><code>(a, (1, │
00:00:12 #216 [Verbose] > │ b))</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><t │
00:00:12 #217 [Verbose] > │ d>Item1</td><td><div │
00:00:12 #218 [Verbose] > │ class="dni-plaintext"><pre>a</pre></div></td></tr><tr><td>Item2</td><td><det │
00:00:12 #219 [Verbose] > │ ails class="dni-treeview"><summary><span class="dni-code-hint"><code>(1, │
00:00:12 #220 [Verbose] > │ b)</code></span></summary><div><table><thead><tr></tr></thead><tbody><tr><td │
00:00:12 #221 [Verbose] > │ >Item1</td><td><div │
00:00:12 #222 [Verbose] > │ class="dni-plaintext"><pre>1</pre></div></td></tr><tr><td>Item2</td><td><div │
00:00:12 #223 [Verbose] > │ class="dni-plaintext"><pre>b</pre></div></td></tr></tbody></table></div></de │
00:00:12 #224 [Verbose] > │ tails></td></tr></tbody></table></div></details><style> │
00:00:12 #225 [Verbose] > │ .dni-code-hint { │
00:00:12 #226 [Verbose] > │ font-style: italic; │
00:00:12 #227 [Verbose] > │ overflow: hidden; │
00:00:12 #228 [Verbose] > │ white-space: nowrap; │
00:00:12 #229 [Verbose] > │ } │
00:00:12 #230 [Verbose] > │ .dni-treev... │
00:00:12 #231 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #232 [Verbose] >
00:00:12 #233 [Verbose] > ╭─[ 340.83ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #234 [Verbose] > │ let rec method0 () : struct (string * (int32 * string)) = │
00:00:12 #235 [Verbose] > │ let v0 : string = "b" │
00:00:12 #236 [Verbose] > │ let v1 : (int32 * string) = 1, v0 │
00:00:12 #237 [Verbose] > │ let v2 : string = "a" │
00:00:12 #238 [Verbose] > │ let v3 : (string * (int32 * string)) = v2, v1 │
00:00:12 #239 [Verbose] > │ let (a, b) = v3 │
00:00:12 #240 [Verbose] > │ let v4 : string = a │
00:00:12 #241 [Verbose] > │ let v5 : (int32 * string) = b │
00:00:12 #242 [Verbose] > │ struct (v4, v5) │
00:00:12 #243 [Verbose] > │ method0() │
00:00:13 #244 [Verbose] > │ │
00:00:13 #245 [Verbose] > │ │
00:00:13 #246 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #247 [Verbose] >
00:00:13 #248 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #249 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #250 [Verbose] > │ ## log_level_type │
00:00:13 #251 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #252 [Verbose] >
00:00:13 #253 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #254 [Verbose] > union log_level_type =
00:00:13 #255 [Verbose] > | Verbose
00:00:13 #256 [Verbose] > | Debug
00:00:13 #257 [Verbose] > | Info
00:00:13 #258 [Verbose] > | Warning
00:00:13 #259 [Verbose] > | Critical
00:00:13 #260 [Verbose] >
00:00:13 #261 [Verbose] > instance to_string log_level_type = function
00:00:13 #262 [Verbose] > | Verbose => "Verbose"
00:00:13 #263 [Verbose] > | Debug => "Debug"
00:00:13 #264 [Verbose] > | Info => "Info"
00:00:13 #265 [Verbose] > | Warning => "Warning"
00:00:13 #266 [Verbose] > | Critical => "Critical"
00:00:13 #267 [Verbose] >
00:00:13 #268 [Verbose] > instance of_string log_level_type = function
00:00:13 #269 [Verbose] > | "Verbose" => Verbose
00:00:13 #270 [Verbose] > | "Debug" => Debug
00:00:13 #271 [Verbose] > | "Info" => Info
00:00:13 #272 [Verbose] > | "Warning" => Warning
00:00:13 #273 [Verbose] > | "Critical" => Critical
00:00:13 #274 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-4960-6059-630970887c17\main.spi
00:00:13 #275 [Verbose] >
00:00:13 #276 [Verbose] > ╭─[ 202.40ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #277 [Verbose] > │ () │
00:00:13 #278 [Verbose] > │ │
00:00:13 #279 [Verbose] > │ │
00:00:13 #280 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #281 [Verbose] >
00:00:13 #282 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #283 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #284 [Verbose] > │ ## to_any │
00:00:13 #285 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #286 [Verbose] >
00:00:13 #287 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #288 [Verbose] > inl to_any forall t. (obj : t) : any =
00:00:13 #289 [Verbose] > $"!obj"
00:00:13 #290 [Verbose] >
00:00:13 #291 [Verbose] > instance (~:>) any = to_any
00:00:13 #292 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-4981-8113-89585bf5432d\main.spi
00:00:13 #293 [Verbose] >
00:00:13 #294 [Verbose] > ╭─[ 191.10ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #295 [Verbose] > │ () │
00:00:13 #296 [Verbose] > │ │
00:00:13 #297 [Verbose] > │ │
00:00:13 #298 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #299 [Verbose] >
00:00:13 #300 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #301 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #302 [Verbose] > │ ## (/@) │
00:00:13 #303 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #304 [Verbose] >
00:00:13 #305 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #306 [Verbose] > inl (/@) a b =
00:00:13 #307 [Verbose] > b |> append a
00:00:13 #308 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-5000-0086-01216def2f5a\main.spi
00:00:13 #309 [Verbose] >
00:00:13 #310 [Verbose] > ╭─[ 206.48ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #311 [Verbose] > │ () │
00:00:13 #312 [Verbose] > │ │
00:00:13 #313 [Verbose] > │ │
00:00:13 #314 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #315 [Verbose] >
00:00:13 #316 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #317 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #318 [Verbose] > │ ## unbox │
00:00:13 #319 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #320 [Verbose] >
00:00:13 #321 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #322 [Verbose] > inl unbox forall t u. (x : t) : u =
00:00:13 #323 [Verbose] > $"!x |> unbox<`u>"
00:00:13 #324 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-5021-2190-2ec7e1edc1d2\main.spi
00:00:13 #325 [Verbose] >
00:00:13 #326 [Verbose] > ╭─[ 166.35ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #327 [Verbose] > │ () │
00:00:13 #328 [Verbose] > │ │
00:00:13 #329 [Verbose] > │ │
00:00:13 #330 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #331 [Verbose] >
00:00:13 #332 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #333 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #334 [Verbose] > │ ## (/+) │
00:00:13 #335 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #336 [Verbose] >
00:00:13 #337 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #338 [Verbose] > inl (/+) forall t. (a : t) (b : t) : t =
00:00:13 #339 [Verbose] > $"!a + !b"
00:00:13 #340 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-5038-3897-30d5aaa24168\main.spi
00:00:13 #341 [Verbose] >
00:00:13 #342 [Verbose] > ╭─[ 203.91ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #343 [Verbose] > │ () │
00:00:13 #344 [Verbose] > │ │
00:00:13 #345 [Verbose] > │ │
00:00:13 #346 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #347 [Verbose] >
00:00:13 #348 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #349 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #350 [Verbose] > │ ## (||>) │
00:00:13 #351 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #352 [Verbose] >
00:00:14 #353 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #354 [Verbose] > inl (||>) (arg1, arg2) fn =
00:00:14 #355 [Verbose] > arg2 |> fn arg1
00:00:14 #356 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-5060-6013-64022eaa68d8\main.spi
00:00:14 #357 [Verbose] >
00:00:14 #358 [Verbose] > ╭─[ 226.96ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #359 [Verbose] > │ () │
00:00:14 #360 [Verbose] > │ │
00:00:14 #361 [Verbose] > │ │
00:00:14 #362 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #363 [Verbose] >
00:00:14 #364 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #365 [Verbose] > // // test
00:00:14 #366 [Verbose] >
00:00:14 #367 [Verbose] > (3i32, 2i32)
00:00:14 #368 [Verbose] > ||> fun a b => a - b
00:00:14 #369 [Verbose] > |> _assert_eq 1
00:00:14 #370 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-5082-8295-8568f0a22f18\main.spi
00:00:14 #371 [Verbose] >
00:00:14 #372 [Verbose] > ╭─[ 232.33ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #373 [Verbose] > │ let rec method0 () : unit = │
00:00:14 #374 [Verbose] > │ let v0 : string = $"__expect / actual: %A{1} / expected: %A{1}" │
00:00:14 #375 [Verbose] > │ () │
00:00:14 #376 [Verbose] > │ method0() │
00:00:14 #377 [Verbose] > │ │
00:00:14 #378 [Verbose] > │ │
00:00:14 #379 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #380 [Verbose] >
00:00:14 #381 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #382 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #383 [Verbose] > │ ## flip │
00:00:14 #384 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #385 [Verbose] >
00:00:14 #386 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #387 [Verbose] > inl flip fn a b =
00:00:14 #388 [Verbose] > fn b a
00:00:14 #389 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-5106-0660-073769d0a7c3\main.spi
00:00:14 #390 [Verbose] >
00:00:14 #391 [Verbose] > ╭─[ 258.56ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #392 [Verbose] > │ () │
00:00:14 #393 [Verbose] > │ │
00:00:14 #394 [Verbose] > │ │
00:00:14 #395 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #396 [Verbose] >
00:00:14 #397 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #398 [Verbose] > // // test
00:00:14 #399 [Verbose] >
00:00:14 #400 [Verbose] > (1i32, 2i32)
00:00:14 #401 [Verbose] > ||> flip pair
00:00:14 #402 [Verbose] > |> _assert_eq (2, 1)
00:00:14 #403 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-5132-3271-3d2b5aeb5849\main.spi
00:00:14 #404 [Verbose] >
00:00:14 #405 [Verbose] > ╭─[ 237.27ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #406 [Verbose] > │ let rec method0 () : unit = │
00:00:14 #407 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (2, 1)} / expected: │
00:00:14 #408 [Verbose] > │ %A{struct (2, 1)}" │
00:00:14 #409 [Verbose] > │ () │
00:00:14 #410 [Verbose] > │ method0() │
00:00:14 #411 [Verbose] > │ │
00:00:14 #412 [Verbose] > │ │
00:00:14 #413 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #414 [Verbose] >
00:00:14 #415 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #416 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #417 [Verbose] > │ ## join_body │
00:00:14 #418 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #419 [Verbose] >
00:00:14 #420 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #421 [Verbose] > inl join_body body acc x =
00:00:14 #422 [Verbose] > if var_is x |> not
00:00:14 #423 [Verbose] > then body acc x
00:00:14 #424 [Verbose] > else
00:00:14 #425 [Verbose] > inl acc = dyn acc
00:00:14 #426 [Verbose] > join body acc x
00:00:15 #427 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-5157-5707-5fc5e58207dc\main.spi
00:00:15 #428 [Verbose] >
00:00:15 #429 [Verbose] > ╭─[ 205.57ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #430 [Verbose] > │ () │
00:00:15 #431 [Verbose] > │ │
00:00:15 #432 [Verbose] > │ │
00:00:15 #433 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #434 [Verbose] >
00:00:15 #435 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #436 [Verbose] > // // test
00:00:15 #437 [Verbose] >
00:00:15 #438 [Verbose] > inl rec fold_list f s = function
00:00:15 #439 [Verbose] > | Cons (x, x') => fold_list f (f s x) x'
00:00:15 #440 [Verbose] > | Nil => s
00:00:15 #441 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-5177-7783-74c5475a6603\main.spi
00:00:15 #442 [Verbose] >
00:00:15 #443 [Verbose] > ╭─[ 233.15ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #444 [Verbose] > │ () │
00:00:15 #445 [Verbose] > │ │
00:00:15 #446 [Verbose] > │ │
00:00:15 #447 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #448 [Verbose] >
00:00:15 #449 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #450 [Verbose] > // // test
00:00:15 #451 [Verbose] >
00:00:15 #452 [Verbose] > [[5i32; 4; join 3; 2; 1]]
00:00:15 #453 [Verbose] > |> fold_list (+) 0
00:00:15 #454 [Verbose] > |> _assert_eq 15
00:00:15 #455 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-5201-0138-0ddd3ca9a394\main.spi
00:00:15 #456 [Verbose] >
00:00:15 #457 [Verbose] > ╭─[ 304.86ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #458 [Verbose] > │ let rec method1 () : int32 = │
00:00:15 #459 [Verbose] > │ 3 │
00:00:15 #460 [Verbose] > │ and method2 (v0 : bool) : bool = │
00:00:15 #461 [Verbose] > │ v0 │
00:00:15 #462 [Verbose] > │ and method0 () : unit = │
00:00:15 #463 [Verbose] > │ let v0 : int32 = method1() │
00:00:15 #464 [Verbose] > │ let v1 : int32 = 9 + v0 │
00:00:15 #465 [Verbose] > │ let v2 : int32 = v1 + 2 │
00:00:15 #466 [Verbose] > │ let v3 : int32 = v2 + 1 │
00:00:15 #467 [Verbose] > │ let v4 : bool = v3 = 15 │
00:00:15 #468 [Verbose] > │ let v6 : bool = │
00:00:15 #469 [Verbose] > │ if v4 then │
00:00:15 #470 [Verbose] > │ true │
00:00:15 #471 [Verbose] > │ else │
00:00:15 #472 [Verbose] > │ method2(v4) │
00:00:15 #473 [Verbose] > │ let v7 : string = $"__expect / actual: %A{v3} / expected: %A{15}" │
00:00:15 #474 [Verbose] > │ let v8 : bool = v6 = false │
00:00:15 #475 [Verbose] > │ if v8 then │
00:00:15 #476 [Verbose] > │ failwith<unit> v7 │
00:00:15 #477 [Verbose] > │ method0() │
00:00:15 #478 [Verbose] > │ │
00:00:15 #479 [Verbose] > │ │
00:00:15 #480 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #481 [Verbose] >
00:00:15 #482 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #483 [Verbose] > // // test
00:00:15 #484 [Verbose] >
00:00:15 #485 [Verbose] > [[5i32; 4; join 3; 2; 1]]
00:00:15 #486 [Verbose] > |> fold_list (join_body (+)) 0
00:00:15 #487 [Verbose] > |> _assert_eq 15
00:00:15 #488 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-5233-3348-3a2b31e7fda4\main.spi
00:00:15 #489 [Verbose] >
00:00:15 #490 [Verbose] > ╭─[ 241.72ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #491 [Verbose] > │ let rec method1 () : int32 = │
00:00:15 #492 [Verbose] > │ 3 │
00:00:15 #493 [Verbose] > │ and method2 (v0 : int32, v1 : int32) : int32 = │
00:00:15 #494 [Verbose] > │ let v2 : int32 = v1 + v0 │
00:00:15 #495 [Verbose] > │ v2 │
00:00:15 #496 [Verbose] > │ and method3 (v0 : bool) : bool = │
00:00:15 #497 [Verbose] > │ v0 │
00:00:15 #498 [Verbose] > │ and method0 () : unit = │
00:00:15 #499 [Verbose] > │ let v0 : int32 = method1() │
00:00:15 #500 [Verbose] > │ let v1 : int32 = 9 │
00:00:15 #501 [Verbose] > │ let v2 : int32 = method2(v0, v1) │
00:00:15 #502 [Verbose] > │ let v3 : int32 = v2 + 2 │
00:00:15 #503 [Verbose] > │ let v4 : int32 = v3 + 1 │
00:00:15 #504 [Verbose] > │ let v5 : bool = v4 = 15 │
00:00:15 #505 [Verbose] > │ let v7 : bool = │
00:00:15 #506 [Verbose] > │ if v5 then │
00:00:15 #507 [Verbose] > │ true │
00:00:15 #508 [Verbose] > │ else │
00:00:15 #509 [Verbose] > │ method3(v5) │
00:00:15 #510 [Verbose] > │ let v8 : string = $"__expect / actual: %A{v4} / expected: %A{15}" │
00:00:15 #511 [Verbose] > │ let v9 : bool = v7 = false │
00:00:15 #512 [Verbose] > │ if v9 then │
00:00:15 #513 [Verbose] > │ failwith<unit> v8 │
00:00:15 #514 [Verbose] > │ method0() │
00:00:15 #515 [Verbose] > │ │
00:00:15 #516 [Verbose] > │ │
00:00:15 #517 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #518 [Verbose] >
00:00:15 #519 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #520 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #521 [Verbose] > │ ## join_body_unit │
00:00:15 #522 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #523 [Verbose] >
00:00:15 #524 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #525 [Verbose] > inl join_body_unit body d x =
00:00:15 #526 [Verbose] > if var_is d |> not
00:00:15 #527 [Verbose] > then body x
00:00:15 #528 [Verbose] > else
00:00:15 #529 [Verbose] > inl x = dyn x
00:00:15 #530 [Verbose] > join body x
00:00:16 #531 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-5258-5891-5e10f9d3fff8\main.spi
00:00:16 #532 [Verbose] >
00:00:16 #533 [Verbose] > ╭─[ 236.47ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #534 [Verbose] > │ () │
00:00:16 #535 [Verbose] > │ │
00:00:16 #536 [Verbose] > │ │
00:00:16 #537 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #538 [Verbose] >
00:00:16 #539 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #540 [Verbose] > // // test
00:00:16 #541 [Verbose] >
00:00:16 #542 [Verbose] > [[5i32; 4; join 3; 2; 1]]
00:00:16 #543 [Verbose] > |> fold_list (fun acc n => join_body_unit ((+) acc) n n) 0
00:00:16 #544 [Verbose] > |> _assert_eq 15
00:00:16 #545 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-5282-8275-88c20fa71e42\main.spi
00:00:16 #546 [Verbose] >
00:00:16 #547 [Verbose] > ╭─[ 227.02ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #548 [Verbose] > │ let rec method1 () : int32 = │
00:00:16 #549 [Verbose] > │ 3 │
00:00:16 #550 [Verbose] > │ and method2 (v0 : int32) : int32 = │
00:00:16 #551 [Verbose] > │ let v1 : int32 = 9 + v0 │
00:00:16 #552 [Verbose] > │ v1 │
00:00:16 #553 [Verbose] > │ and method3 (v0 : bool) : bool = │
00:00:16 #554 [Verbose] > │ v0 │
00:00:16 #555 [Verbose] > │ and method0 () : unit = │
00:00:16 #556 [Verbose] > │ let v0 : int32 = method1() │
00:00:16 #557 [Verbose] > │ let v1 : int32 = method2(v0) │
00:00:16 #558 [Verbose] > │ let v2 : int32 = v1 + 2 │
00:00:16 #559 [Verbose] > │ let v3 : int32 = v2 + 1 │
00:00:16 #560 [Verbose] > │ let v4 : bool = v3 = 15 │
00:00:16 #561 [Verbose] > │ let v6 : bool = │
00:00:16 #562 [Verbose] > │ if v4 then │
00:00:16 #563 [Verbose] > │ true │
00:00:16 #564 [Verbose] > │ else │
00:00:16 #565 [Verbose] > │ method3(v4) │
00:00:16 #566 [Verbose] > │ let v7 : string = $"__expect / actual: %A{v3} / expected: %A{15}" │
00:00:16 #567 [Verbose] > │ let v8 : bool = v6 = false │
00:00:16 #568 [Verbose] > │ if v8 then │
00:00:16 #569 [Verbose] > │ failwith<unit> v7 │
00:00:16 #570 [Verbose] > │ method0() │
00:00:16 #571 [Verbose] > │ │
00:00:16 #572 [Verbose] > │ │
00:00:16 #573 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #574 [Verbose] >
00:00:16 #575 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #576 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #577 [Verbose] > │ ## run_target │
00:00:16 #578 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #579 [Verbose] >
00:00:16 #580 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #581 [Verbose] > union target_runtime =
00:00:16 #582 [Verbose] > | Native
00:00:16 #583 [Verbose] > | Wasm
00:00:16 #584 [Verbose] >
00:00:16 #585 [Verbose] > union target =
00:00:16 #586 [Verbose] > | Rust : target_runtime
00:00:16 #587 [Verbose] > | Fsharp
00:00:16 #588 [Verbose] >
00:00:16 #589 [Verbose] > inl run_target forall t. (fn : target -> (() -> t)) : t =
00:00:16 #590 [Verbose] > $"let mutable result = None"
00:00:16 #591 [Verbose] > $"#if FABLE_COMPILER_RUST"
00:00:16 #592 [Verbose] > $"#if \!WASM"
00:00:16 #593 [Verbose] > fn (Rust Native) () |> fun x => $"!x"
00:00:16 #594 [Verbose] > $"#else"
00:00:16 #595 [Verbose] > fn (Rust Wasm) () |> fun x => $"!x"
00:00:16 #596 [Verbose] > $"#endif"
00:00:16 #597 [Verbose] > $"#else"
00:00:16 #598 [Verbose] > fn Fsharp () |> fun x => $"!x"
00:00:16 #599 [Verbose] > $"#endif"
00:00:16 #600 [Verbose] > $"|> fun x -> result <- Some x"
00:00:16 #601 [Verbose] > $"result |> Option.get"
00:00:16 #602 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-5306-0685-0d9c75bee10e\main.spi
00:00:16 #603 [Verbose] >
00:00:16 #604 [Verbose] > ╭─[ 224.25ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #605 [Verbose] > │ () │
00:00:16 #606 [Verbose] > │ │
00:00:16 #607 [Verbose] > │ │
00:00:16 #608 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #609 [Verbose] >
00:00:16 #610 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #611 [Verbose] > // // test
00:00:16 #612 [Verbose] >
00:00:16 #613 [Verbose] > run_target function
00:00:16 #614 [Verbose] > | Fsharp => fun () => $"1uy"
00:00:16 #615 [Verbose] > | Rust (Native) => fun () => $"2uy"
00:00:16 #616 [Verbose] > | Rust (Wasm) => fun () => $"3uy"
00:00:16 #617 [Verbose] > |> _assert_eq 1u8
00:00:16 #618 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-5329-2939-2788e394f3a8\main.spi
00:00:17 #619 [Verbose] >
00:00:17 #620 [Verbose] > ╭─[ 362.71ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #621 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:17 #622 [Verbose] > │ v0 │
00:00:17 #623 [Verbose] > │ and method0 () : unit = │
00:00:17 #624 [Verbose] > │ let mutable result = None │
00:00:17 #625 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:17 #626 [Verbose] > │ #if !WASM │
00:00:17 #627 [Verbose] > │ let v0 : uint8 = 2uy │
00:00:17 #628 [Verbose] > │ v0 │
00:00:17 #629 [Verbose] > │ #else │
00:00:17 #630 [Verbose] > │ let v1 : uint8 = 3uy │
00:00:17 #631 [Verbose] > │ v1 │
00:00:17 #632 [Verbose] > │ #endif │
00:00:17 #633 [Verbose] > │ #else │
00:00:17 #634 [Verbose] > │ let v2 : uint8 = 1uy │
00:00:17 #635 [Verbose] > │ v2 │
00:00:17 #636 [Verbose] > │ #endif │
00:00:17 #637 [Verbose] > │ |> fun x -> result <- Some x │
00:00:17 #638 [Verbose] > │ let v3 : uint8 = result |> Option.get │
00:00:17 #639 [Verbose] > │ let v4 : bool = v3 = 1uy │
00:00:17 #640 [Verbose] > │ let v6 : bool = │
00:00:17 #641 [Verbose] > │ if v4 then │
00:00:17 #642 [Verbose] > │ true │
00:00:17 #643 [Verbose] > │ else │
00:00:17 #644 [Verbose] > │ method1(v4) │
00:00:17 #645 [Verbose] > │ let v7 : string = $"__expect / actual: %A{v3} / expected: %A{1uy}" │
00:00:17 #646 [Verbose] > │ let v8 : bool = v6 = false │
00:00:17 #647 [Verbose] > │ if v8 then │
00:00:17 #648 [Verbose] > │ failwith<unit> v7 │
00:00:17 #649 [Verbose] > │ method0() │
00:00:17 #650 [Verbose] > │ │
00:00:17 #651 [Verbose] > │ │
00:00:17 #652 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #653 [Verbose] >
00:00:17 #654 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #655 [Verbose] > // // test
00:00:17 #656 [Verbose] > // // rust=
00:00:17 #657 [Verbose] >
00:00:17 #658 [Verbose] > run_target function
00:00:17 #659 [Verbose] > | Fsharp => fun () => $"1uy"
00:00:17 #660 [Verbose] > | Rust (Native) => fun () => $"2uy"
00:00:17 #661 [Verbose] > | Rust (Wasm) => fun () => $"3uy"
00:00:17 #662 [Verbose] > |> (=) 2u8
00:00:17 #663 [Verbose] > |> _assert_eq true
00:00:17 #664 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-5367-6707-623c1d1685bf\main.spi
00:00:21 #665 [Verbose] >
00:00:21 #666 [Verbose] > ╭─[ 4.87s - return value ]─────────────────────────────────────────────────────╮
00:00:21 #667 [Verbose] > │ .rs output: │
00:00:21 #668 [Verbose] > │ │
00:00:21 #669 [Verbose] > │ │
00:00:21 #670 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #671 [Verbose] >
00:00:21 #672 [Verbose] > ╭─[ 4.87s - stdout ]───────────────────────────────────────────────────────────╮
00:00:21 #673 [Verbose] > │ │
00:00:21 #674 [Verbose] > │ .fsx: │
00:00:21 #675 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:21 #676 [Verbose] > │ v0 │
00:00:21 #677 [Verbose] > │ and method0 () : unit = │
00:00:21 #678 [Verbose] > │ let mutable result = None │
00:00:21 #679 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:21 #680 [Verbose] > │ #if !WASM │
00:00:21 #681 [Verbose] > │ let v0 : uint8 = 2uy │
00:00:21 #682 [Verbose] > │ v0 │
00:00:21 #683 [Verbose] > │ #else │
00:00:21 #684 [Verbose] > │ let v1 : uint8 = 3uy │
00:00:21 #685 [Verbose] > │ v1 │
00:00:21 #686 [Verbose] > │ #endif │
00:00:21 #687 [Verbose] > │ #else │
00:00:21 #688 [Verbose] > │ let v2 : uint8 = 1uy │
00:00:21 #689 [Verbose] > │ v2 │
00:00:21 #690 [Verbose] > │ #endif │
00:00:21 #691 [Verbose] > │ |> fun x -> result <- Some x │
00:00:21 #692 [Verbose] > │ let v3 : uint8 = result |> Option.get │
00:00:21 #693 [Verbose] > │ let v4 : bool = 2uy = v3 │
00:00:21 #694 [Verbose] > │ let v6 : bool = │
00:00:21 #695 [Verbose] > │ if v4 then │
00:00:21 #696 [Verbose] > │ true │
00:00:21 #697 [Verbose] > │ else │
00:00:21 #698 [Verbose] > │ method1(v4) │
00:00:21 #699 [Verbose] > │ let v7 : string = $"__expect / actual: %A{v4} / expected: %A{true}" │
00:00:21 #700 [Verbose] > │ let v8 : bool = v6 = false │
00:00:21 #701 [Verbose] > │ if v8 then │
00:00:21 #702 [Verbose] > │ failwith<unit> v7 │
00:00:21 #703 [Verbose] > │ method0() │
00:00:21 #704 [Verbose] > │ │
00:00:21 #705 [Verbose] > │ .rs: │
00:00:21 #706 [Verbose] > │ #![allow(dead_code,)] │
00:00:21 #707 [Verbose] > │ #![allow(non_camel_case_types,)] │
00:00:21 #708 [Verbose] > │ #![allow(non_snake_case,)] │
00:00:21 #709 [Verbose] > │ #![allow(non_upper_case_globals,)] │
00:00:21 #710 [Verbose] > │ #![allow(unreachable_code,)] │
00:00:21 #711 [Verbose] > │ #![allow(unused_attributes,)] │
00:00:21 #712 [Verbose] > │ #![allow(unused_imports,)] │
00:00:21 #713 [Verbose] > │ #![allow(unused_macros,)] │
00:00:21 #714 [Verbose] > │ #![allow(unused_parens,)] │
00:00:21 #715 [Verbose] > │ #![allow(unused_variables,)] │
00:00:21 #716 [Verbose] > │ mod module_ccfa04bf { │
00:00:21 #717 [Verbose] > │ pub mod Spiral_eval { │
00:00:21 #718 [Verbose] > │ use super::*; │
00:00:21 #719 [Verbose] > │ use fable_library_rust::Native_::MutCell; │
00:00:21 #720 [Verbose] > │ use fable_library_rust::Native_::on_startup; │
00:00:21 #721 [Verbose] > │ use fable_library_rust::Option_::getValue; │
00:00:21 #722 [Verbose] > │ use fable_library_rust::String_::sprintf; │
00:00:21 #723 [Verbose] > │ pub fn method1(v0: bool) -> bool { v0 } │
00:00:21 #724 [Verbose] > │ pub fn method0() { │
00:00:21 #725 [Verbose] > │ let result: MutCell<Option<u8>> = MutCell::new(None::<u8>); │
00:00:21 #726 [Verbose] > │ result.set(Some(2_u8)); │
00:00:21 #727 [Verbose] > │ { │
00:00:21 #728 [Verbose] > │ let v4: bool = 2_u8 == getValue(result.get().clone()); │
00:00:21 #729 [Verbose] > │ if (if v4 { true } else { Spiral_eval::method1(v4) }) == │
00:00:21 #730 [Verbose] > │ false │
00:00:21 #731 [Verbose] > │ { │
00:00:21 #732 [Verbose] > │ panic!("{}", │
00:00:21 #733 [Verbose] > │ sprintf!("__expect / actual: {:?} / expected: │
00:00:21 #734 [Verbose] > │ {:?}", v4, true)); │
00:00:21 #735 [Verbose] > │ } │
00:00:21 #736 [Verbose] > │ } │
00:00:21 #737 [Verbose] > │ } │
00:00:21 #738 [Verbose] > │ on_startup!(Spiral_eval::method0()); │
00:00:21 #739 [Verbose] > │ } │
00:00:21 #740 [Verbose] > │ } │
00:00:21 #741 [Verbose] > │ pub use module_ccfa04bf::*; │
00:00:21 #742 [Verbose] > │ │
00:00:21 #743 [Verbose] > │ │
00:00:21 #744 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #745 [Verbose] >
00:00:21 #746 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 #747 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 #748 [Verbose] > │ ## nameof │
00:00:21 #749 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #750 [Verbose] >
00:00:21 #751 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #752 [Verbose] > inl nameof x : string =
00:00:21 #753 [Verbose] > $"nameof !x"
00:00:22 #754 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-5856-5661-51b9104ae009\main.spi
00:00:22 #755 [Verbose] >
00:00:22 #756 [Verbose] > ╭─[ 453.99ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #757 [Verbose] > │ () │
00:00:22 #758 [Verbose] > │ │
00:00:22 #759 [Verbose] > │ │
00:00:22 #760 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #761 [Verbose] >
00:00:22 #762 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 #763 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 #764 [Verbose] > │ ## get_environment_variable │
00:00:22 #765 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #766 [Verbose] >
00:00:22 #767 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #768 [Verbose] > inl get_environment_variable (var : string) : string =
00:00:22 #769 [Verbose] > $"System.Environment.GetEnvironmentVariable !var"
00:00:22 #770 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-5902-0274-0e11b53489fc\main.spi
00:00:22 #771 [Verbose] >
00:00:22 #772 [Verbose] > ╭─[ 176.22ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #773 [Verbose] > │ () │
00:00:22 #774 [Verbose] > │ │
00:00:22 #775 [Verbose] > │ │
00:00:22 #776 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #777 [Verbose] >
00:00:22 #778 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 #779 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 #780 [Verbose] > │ ## new_raw_guid │
00:00:22 #781 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #782 [Verbose] >
00:00:22 #783 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #784 [Verbose] > inl new_raw_guid () : guid =
00:00:22 #785 [Verbose] > $"`guid.NewGuid ()"
00:00:22 #786 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0038-5920-2067-29c9783264b2\main.spi
00:00:22 #787 [Verbose] >
00:00:22 #788 [Verbose] > ╭─[ 200.22ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #789 [Verbose] > │ () │
00:00:22 #790 [Verbose] > │ │
00:00:22 #791 [Verbose] > │ │
00:00:22 #792 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 #793 [Verbose] > [NbConvertApp] Converting notebook common.dib.ipynb to html
00:00:25 #794 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:25 #795 [Verbose] > validate(nb)
00:00:25 #796 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:25 #797 [Verbose] > return _pygments_highlight(
00:00:26 #798 [Verbose] > [NbConvertApp] Writing 338115 bytes to common.dib.html
00:00:26 #799 [Debug] executeAsync / exitCode: 0 / output.Length: 44832
00:00:26 #800 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\lib\spiral
00:00:00 #4 [Verbose] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #6 [Debug] runWithTimeoutAsync / timeout: 500
00:00:00 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805
00:00:01 #11 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 console.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:03 #12 [Verbose] >
00:00:03 #13 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 #14 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 #15 [Verbose] > │ # console │
00:00:03 #16 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:03 #17 [Verbose] >
00:00:03 #18 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:03 #19 [Verbose] > // // test
00:00:03 #20 [Verbose] >
00:00:03 #21 [Verbose] > open testing
00:00:07 #22 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-1033-3332-3570ed9e5981\main.spi
00:00:09 #23 [Verbose] >
00:00:09 #24 [Verbose] > ╭─[ 6.09s - stdout ]───────────────────────────────────────────────────────────╮
00:00:09 #25 [Verbose] > │ () │
00:00:09 #26 [Verbose] > │ │
00:00:09 #27 [Verbose] > │ │
00:00:09 #28 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #29 [Verbose] >
00:00:09 #30 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #31 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #32 [Verbose] > │ ## write_line │
00:00:09 #33 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #34 [Verbose] >
00:00:09 #35 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #36 [Verbose] > inl write_line obj : () =
00:00:09 #37 [Verbose] > $"System.Console.WriteLine !obj"
00:00:10 #38 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-1393-9371-9337ff5c522d\main.spi
00:00:10 #39 [Verbose] >
00:00:10 #40 [Verbose] > ╭─[ 271.09ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #41 [Verbose] > │ () │
00:00:10 #42 [Verbose] > │ │
00:00:10 #43 [Verbose] > │ │
00:00:10 #44 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #45 [Verbose] >
00:00:10 #46 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #47 [Verbose] > inl write_line_ ~obj : () =
00:00:10 #48 [Verbose] > $"System.Console.WriteLine !obj"
00:00:10 #49 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-1420-2054-29d209ed2a50\main.spi
00:00:10 #50 [Verbose] >
00:00:10 #51 [Verbose] > ╭─[ 247.74ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #52 [Verbose] > │ () │
00:00:10 #53 [Verbose] > │ │
00:00:10 #54 [Verbose] > │ │
00:00:10 #55 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #56 [Verbose] >
00:00:10 #57 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #58 [Verbose] > nominal console_color = $"System.ConsoleColor"
00:00:10 #59 [Verbose] >
00:00:10 #60 [Verbose] > inl reset_color () : () =
00:00:10 #61 [Verbose] > run_target function
00:00:10 #62 [Verbose] > | Fsharp => fun () => $"System.Console.ResetColor ()"
00:00:10 #63 [Verbose] > | _ => fun () => ()
00:00:10 #64 [Verbose] >
00:00:10 #65 [Verbose] > inl set_foreground_color (color : console_color) : () =
00:00:10 #66 [Verbose] > run_target function
00:00:10 #67 [Verbose] > | Fsharp => fun () => $"System.Console.ForegroundColor <- !color"
00:00:10 #68 [Verbose] > | _ => fun () => ()
00:00:10 #69 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-1445-4563-4c56c3fa7d84\main.spi
00:00:10 #70 [Verbose] >
00:00:10 #71 [Verbose] > ╭─[ 261.93ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #72 [Verbose] > │ () │
00:00:10 #73 [Verbose] > │ │
00:00:10 #74 [Verbose] > │ │
00:00:10 #75 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #76 [Verbose] > [NbConvertApp] Converting notebook console.dib.ipynb to html
00:00:12 #77 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:12 #78 [Verbose] > validate(nb)
00:00:13 #79 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:13 #80 [Verbose] > return _pygments_highlight(
00:00:13 #81 [Verbose] > [NbConvertApp] Writing 276933 bytes to console.dib.html
00:00:14 #82 [Debug] executeAsync / exitCode: 0 / output.Length: 3869
00:00:14 #83 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\lib\spiral
00:00:00 #4 [Verbose] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 #6 [Debug] runWithTimeoutAsync / timeout: 500
00:00:01 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805
00:00:01 #11 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 math.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:04 #12 [Verbose] >
00:00:04 #13 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 #14 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 #15 [Verbose] > │ # math │
00:00:04 #16 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:04 #17 [Verbose] >
00:00:04 #18 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:04 #19 [Verbose] > // // test
00:00:04 #20 [Verbose] >
00:00:04 #21 [Verbose] > open testing
00:00:07 #22 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-2544-4411-4c68e0b61cbd\main.spi
00:00:10 #23 [Verbose] >
00:00:10 #24 [Verbose] > ╭─[ 6.20s - stdout ]───────────────────────────────────────────────────────────╮
00:00:10 #25 [Verbose] > │ () │
00:00:10 #26 [Verbose] > │ │
00:00:10 #27 [Verbose] > │ │
00:00:10 #28 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #29 [Verbose] >
00:00:10 #30 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #31 [Verbose] > // // test
00:00:10 #32 [Verbose] >
00:00:10 #33 [Verbose] > 2 * 2 / 0.4f64 |> sqrt
00:00:10 #34 [Verbose] > |> _assert_approx_eq None 3.1622776601683795
00:00:10 #35 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-2897-9714-9495c5608460\main.spi
00:00:11 #36 [Verbose] >
00:00:11 #37 [Verbose] > ╭─[ 767.58ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #38 [Verbose] > │ let rec method0 () : unit = │
00:00:11 #39 [Verbose] > │ let v0 : string = $"__expect / actual: %A{3.1622776601683795} / │
00:00:11 #40 [Verbose] > │ expected: %A{3.1622776601683795}" │
00:00:11 #41 [Verbose] > │ () │
00:00:11 #42 [Verbose] > │ method0() │
00:00:11 #43 [Verbose] > │ │
00:00:11 #44 [Verbose] > │ │
00:00:11 #45 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #46 [Verbose] >
00:00:11 #47 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #48 [Verbose] > // // test
00:00:11 #49 [Verbose] >
00:00:11 #50 [Verbose] > 2f64 / 3
00:00:11 #51 [Verbose] > |> _assert_approx_eq None 0.6666666666666666
00:00:11 #52 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-2972-7284-7d4e7f3822ad\main.spi
00:00:11 #53 [Verbose] >
00:00:11 #54 [Verbose] > ╭─[ 238.11ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #55 [Verbose] > │ let rec method0 () : unit = │
00:00:11 #56 [Verbose] > │ let v0 : string = $"__expect / actual: %A{0.6666666666666666} / │
00:00:11 #57 [Verbose] > │ expected: %A{0.6666666666666666}" │
00:00:11 #58 [Verbose] > │ () │
00:00:11 #59 [Verbose] > │ method0() │
00:00:11 #60 [Verbose] > │ │
00:00:11 #61 [Verbose] > │ │
00:00:11 #62 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #63 [Verbose] >
00:00:11 #64 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #65 [Verbose] > // // test
00:00:11 #66 [Verbose] >
00:00:11 #67 [Verbose] > 2f64 |> log
00:00:11 #68 [Verbose] > |> _assert_approx_eq None 0.6931471805599453
00:00:11 #69 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-2997-9708-96fb44a5a55a\main.spi
00:00:11 #70 [Verbose] >
00:00:11 #71 [Verbose] > ╭─[ 237.50ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #72 [Verbose] > │ let rec method0 () : unit = │
00:00:11 #73 [Verbose] > │ let v0 : string = $"__expect / actual: %A{0.6931471805599453} / │
00:00:11 #74 [Verbose] > │ expected: %A{0.6931471805599453}" │
00:00:11 #75 [Verbose] > │ () │
00:00:11 #76 [Verbose] > │ method0() │
00:00:11 #77 [Verbose] > │ │
00:00:11 #78 [Verbose] > │ │
00:00:11 #79 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #80 [Verbose] >
00:00:11 #81 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #82 [Verbose] > // // test
00:00:11 #83 [Verbose] >
00:00:11 #84 [Verbose] > pi
00:00:11 #85 [Verbose] > |> _assert_approx_eq None 3.141592653589793f64
00:00:11 #86 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-3021-2143-23d55cf536f2\main.spi
00:00:11 #87 [Verbose] >
00:00:11 #88 [Verbose] > ╭─[ 203.31ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #89 [Verbose] > │ let rec method0 () : unit = │
00:00:11 #90 [Verbose] > │ let v0 : string = $"__expect / actual: %A{3.141592653589793} / expected: │
00:00:11 #91 [Verbose] > │ %A{3.141592653589793}" │
00:00:11 #92 [Verbose] > │ () │
00:00:11 #93 [Verbose] > │ method0() │
00:00:11 #94 [Verbose] > │ │
00:00:11 #95 [Verbose] > │ │
00:00:11 #96 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #97 [Verbose] >
00:00:11 #98 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #99 [Verbose] > // // test
00:00:11 #100 [Verbose] >
00:00:11 #101 [Verbose] > pi |> cos
00:00:11 #102 [Verbose] > |> _assert_eq -1f64
00:00:11 #103 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-3042-4200-4a3e552730d9\main.spi
00:00:11 #104 [Verbose] >
00:00:11 #105 [Verbose] > ╭─[ 216.24ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #106 [Verbose] > │ let rec method0 () : unit = │
00:00:11 #107 [Verbose] > │ let v0 : string = $"__expect / actual: %A{-1.0} / expected: %A{-1.0}" │
00:00:11 #108 [Verbose] > │ () │
00:00:11 #109 [Verbose] > │ method0() │
00:00:11 #110 [Verbose] > │ │
00:00:11 #111 [Verbose] > │ │
00:00:11 #112 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #113 [Verbose] >
00:00:11 #114 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #115 [Verbose] > // // test
00:00:11 #116 [Verbose] >
00:00:11 #117 [Verbose] > pi
00:00:11 #118 [Verbose] > |> cos
00:00:11 #119 [Verbose] > |> fun n => n / 2f64
00:00:11 #120 [Verbose] > |> _assert_approx_eq None -0.5
00:00:12 #121 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-3063-6396-657b0119ef93\main.spi
00:00:12 #122 [Verbose] >
00:00:12 #123 [Verbose] > ╭─[ 314.61ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #124 [Verbose] > │ let rec method0 () : unit = │
00:00:12 #125 [Verbose] > │ let v0 : string = $"__expect / actual: %A{-0.5} / expected: %A{-0.5}" │
00:00:12 #126 [Verbose] > │ () │
00:00:12 #127 [Verbose] > │ method0() │
00:00:12 #128 [Verbose] > │ │
00:00:12 #129 [Verbose] > │ │
00:00:12 #130 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #131 [Verbose] >
00:00:12 #132 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #133 [Verbose] > // // test
00:00:12 #134 [Verbose] >
00:00:12 #135 [Verbose] > pi / 2 |> cos
00:00:12 #136 [Verbose] > |> _assert_approx_eq None 0.00000000000000006123233995736766f64
00:00:12 #137 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-3096-9655-925868e07853\main.spi
00:00:12 #138 [Verbose] >
00:00:12 #139 [Verbose] > ╭─[ 225.24ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #140 [Verbose] > │ let rec method0 () : unit = │
00:00:12 #141 [Verbose] > │ let v0 : string = $"__expect / actual: %A{6.123233995736766E-17} / │
00:00:12 #142 [Verbose] > │ expected: %A{6.123233995736766E-17}" │
00:00:12 #143 [Verbose] > │ () │
00:00:12 #144 [Verbose] > │ method0() │
00:00:12 #145 [Verbose] > │ │
00:00:12 #146 [Verbose] > │ │
00:00:12 #147 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #148 [Verbose] >
00:00:12 #149 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #150 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #151 [Verbose] > │ ## atan2 │
00:00:12 #152 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #153 [Verbose] >
00:00:12 #154 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #155 [Verbose] > inl atan2 (y : f64) (x : f64) =
00:00:12 #156 [Verbose] > $"System.Math.Atan2 (!y, !x)" : f64
00:00:12 #157 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-3119-1922-12dd34c98ce5\main.spi
00:00:12 #158 [Verbose] >
00:00:12 #159 [Verbose] > ╭─[ 241.52ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #160 [Verbose] > │ () │
00:00:12 #161 [Verbose] > │ │
00:00:12 #162 [Verbose] > │ │
00:00:12 #163 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #164 [Verbose] >
00:00:12 #165 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #166 [Verbose] > // // test
00:00:12 #167 [Verbose] >
00:00:12 #168 [Verbose] > 0 |> atan2 1
00:00:12 #169 [Verbose] > |> _assert_eq 1.5707963267948966
00:00:12 #170 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-3143-4324-4e1a345725a6\main.spi
00:00:13 #171 [Verbose] >
00:00:13 #172 [Verbose] > ╭─[ 487.82ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #173 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:13 #174 [Verbose] > │ v0 │
00:00:13 #175 [Verbose] > │ and method0 () : unit = │
00:00:13 #176 [Verbose] > │ let v0 : float = System.Math.Atan2 (1.0, 0.0) │
00:00:13 #177 [Verbose] > │ let v1 : bool = v0 = 1.5707963267948966 │
00:00:13 #178 [Verbose] > │ let v3 : bool = │
00:00:13 #179 [Verbose] > │ if v1 then │
00:00:13 #180 [Verbose] > │ true │
00:00:13 #181 [Verbose] > │ else │
00:00:13 #182 [Verbose] > │ method1(v1) │
00:00:13 #183 [Verbose] > │ let v4 : string = $"__expect / actual: %A{v0} / expected: │
00:00:13 #184 [Verbose] > │ %A{1.5707963267948966}" │
00:00:13 #185 [Verbose] > │ let v5 : bool = v3 = false │
00:00:13 #186 [Verbose] > │ if v5 then │
00:00:13 #187 [Verbose] > │ failwith<unit> v4 │
00:00:13 #188 [Verbose] > │ method0() │
00:00:13 #189 [Verbose] > │ │
00:00:13 #190 [Verbose] > │ │
00:00:13 #191 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #192 [Verbose] >
00:00:13 #193 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #194 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #195 [Verbose] > │ ## e │
00:00:13 #196 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #197 [Verbose] >
00:00:13 #198 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #199 [Verbose] > inl e () =
00:00:13 #200 [Verbose] > exp 1f64
00:00:13 #201 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-3193-9320-9cea28c12f16\main.spi
00:00:13 #202 [Verbose] >
00:00:13 #203 [Verbose] > ╭─[ 170.64ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #204 [Verbose] > │ () │
00:00:13 #205 [Verbose] > │ │
00:00:13 #206 [Verbose] > │ │
00:00:13 #207 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #208 [Verbose] >
00:00:13 #209 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #210 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #211 [Verbose] > │ ## floor │
00:00:13 #212 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #213 [Verbose] >
00:00:13 #214 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #215 [Verbose] > inl floor forall t {float}. (x : t) : t =
00:00:13 #216 [Verbose] > $"floor !x"
00:00:13 #217 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-3210-1070-170cb1ed1284\main.spi
00:00:13 #218 [Verbose] >
00:00:13 #219 [Verbose] > ╭─[ 180.94ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #220 [Verbose] > │ () │
00:00:13 #221 [Verbose] > │ │
00:00:13 #222 [Verbose] > │ │
00:00:13 #223 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #224 [Verbose] >
00:00:13 #225 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #226 [Verbose] > // // test
00:00:13 #227 [Verbose] >
00:00:13 #228 [Verbose] > 0.6 |> floor
00:00:13 #229 [Verbose] > |> _assert_eq 0f64
00:00:13 #230 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-3229-2902-2dff745b3388\main.spi
00:00:13 #231 [Verbose] >
00:00:13 #232 [Verbose] > ╭─[ 263.49ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #233 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:13 #234 [Verbose] > │ v0 │
00:00:13 #235 [Verbose] > │ and method0 () : unit = │
00:00:13 #236 [Verbose] > │ let v0 : float = floor 0.6 │
00:00:13 #237 [Verbose] > │ let v1 : bool = v0 = 0.0 │
00:00:13 #238 [Verbose] > │ let v3 : bool = │
00:00:13 #239 [Verbose] > │ if v1 then │
00:00:13 #240 [Verbose] > │ true │
00:00:13 #241 [Verbose] > │ else │
00:00:13 #242 [Verbose] > │ method1(v1) │
00:00:13 #243 [Verbose] > │ let v4 : string = $"__expect / actual: %A{v0} / expected: %A{0.0}" │
00:00:13 #244 [Verbose] > │ let v5 : bool = v3 = false │
00:00:13 #245 [Verbose] > │ if v5 then │
00:00:13 #246 [Verbose] > │ failwith<unit> v4 │
00:00:13 #247 [Verbose] > │ method0() │
00:00:13 #248 [Verbose] > │ │
00:00:13 #249 [Verbose] > │ │
00:00:13 #250 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #251 [Verbose] >
00:00:13 #252 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #253 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #254 [Verbose] > │ ## log_base │
00:00:13 #255 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #256 [Verbose] >
00:00:13 #257 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #258 [Verbose] > inl log_base (new_base : f64) (a : f64) =
00:00:13 #259 [Verbose] > $"System.Math.Log (!a, !new_base)" : f64
00:00:14 #260 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-3256-5638-534a0eaa0660\main.spi
00:00:14 #261 [Verbose] >
00:00:14 #262 [Verbose] > ╭─[ 225.86ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #263 [Verbose] > │ () │
00:00:14 #264 [Verbose] > │ │
00:00:14 #265 [Verbose] > │ │
00:00:14 #266 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #267 [Verbose] >
00:00:14 #268 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #269 [Verbose] > // // test
00:00:14 #270 [Verbose] >
00:00:14 #271 [Verbose] > 100 |> log_base 10
00:00:14 #272 [Verbose] > |> _assert_eq 2
00:00:14 #273 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-3279-7911-790bd1b098ce\main.spi
00:00:14 #274 [Verbose] >
00:00:14 #275 [Verbose] > ╭─[ 195.87ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #276 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:14 #277 [Verbose] > │ v0 │
00:00:14 #278 [Verbose] > │ and method0 () : unit = │
00:00:14 #279 [Verbose] > │ let v0 : float = System.Math.Log (100.0, 10.0) │
00:00:14 #280 [Verbose] > │ let v1 : bool = v0 = 2.0 │
00:00:14 #281 [Verbose] > │ let v3 : bool = │
00:00:14 #282 [Verbose] > │ if v1 then │
00:00:14 #283 [Verbose] > │ true │
00:00:14 #284 [Verbose] > │ else │
00:00:14 #285 [Verbose] > │ method1(v1) │
00:00:14 #286 [Verbose] > │ let v4 : string = $"__expect / actual: %A{v0} / expected: %A{2.0}" │
00:00:14 #287 [Verbose] > │ let v5 : bool = v3 = false │
00:00:14 #288 [Verbose] > │ if v5 then │
00:00:14 #289 [Verbose] > │ failwith<unit> v4 │
00:00:14 #290 [Verbose] > │ method0() │
00:00:14 #291 [Verbose] > │ │
00:00:14 #292 [Verbose] > │ │
00:00:14 #293 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #294 [Verbose] >
00:00:14 #295 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #296 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #297 [Verbose] > │ ## round │
00:00:14 #298 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #299 [Verbose] >
00:00:14 #300 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #301 [Verbose] > inl round forall t {float}. (x : t) : t =
00:00:14 #302 [Verbose] > $"round !x"
00:00:14 #303 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-3299-9960-9d0ee6c14f1b\main.spi
00:00:14 #304 [Verbose] >
00:00:14 #305 [Verbose] > ╭─[ 244.98ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #306 [Verbose] > │ () │
00:00:14 #307 [Verbose] > │ │
00:00:14 #308 [Verbose] > │ │
00:00:14 #309 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #310 [Verbose] >
00:00:14 #311 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #312 [Verbose] > // // test
00:00:14 #313 [Verbose] >
00:00:14 #314 [Verbose] > 0.5 |> round
00:00:14 #315 [Verbose] > |> _assert_eq 0f64
00:00:14 #316 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-3324-2443-2fe586e8e8eb\main.spi
00:00:14 #317 [Verbose] >
00:00:14 #318 [Verbose] > ╭─[ 196.78ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #319 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:14 #320 [Verbose] > │ v0 │
00:00:14 #321 [Verbose] > │ and method0 () : unit = │
00:00:14 #322 [Verbose] > │ let v0 : float = round 0.5 │
00:00:14 #323 [Verbose] > │ let v1 : bool = v0 = 0.0 │
00:00:14 #324 [Verbose] > │ let v3 : bool = │
00:00:14 #325 [Verbose] > │ if v1 then │
00:00:14 #326 [Verbose] > │ true │
00:00:14 #327 [Verbose] > │ else │
00:00:14 #328 [Verbose] > │ method1(v1) │
00:00:14 #329 [Verbose] > │ let v4 : string = $"__expect / actual: %A{v0} / expected: %A{0.0}" │
00:00:14 #330 [Verbose] > │ let v5 : bool = v3 = false │
00:00:14 #331 [Verbose] > │ if v5 then │
00:00:14 #332 [Verbose] > │ failwith<unit> v4 │
00:00:14 #333 [Verbose] > │ method0() │
00:00:14 #334 [Verbose] > │ │
00:00:14 #335 [Verbose] > │ │
00:00:14 #336 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #337 [Verbose] >
00:00:14 #338 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #339 [Verbose] > // // test
00:00:14 #340 [Verbose] >
00:00:14 #341 [Verbose] > 0.6 |> round
00:00:14 #342 [Verbose] > |> _assert_eq 1f64
00:00:14 #343 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-3345-4531-49c4c4be89bb\main.spi
00:00:14 #344 [Verbose] >
00:00:14 #345 [Verbose] > ╭─[ 205.96ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #346 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:14 #347 [Verbose] > │ v0 │
00:00:14 #348 [Verbose] > │ and method0 () : unit = │
00:00:14 #349 [Verbose] > │ let v0 : float = round 0.6 │
00:00:14 #350 [Verbose] > │ let v1 : bool = v0 = 1.0 │
00:00:14 #351 [Verbose] > │ let v3 : bool = │
00:00:14 #352 [Verbose] > │ if v1 then │
00:00:14 #353 [Verbose] > │ true │
00:00:14 #354 [Verbose] > │ else │
00:00:14 #355 [Verbose] > │ method1(v1) │
00:00:14 #356 [Verbose] > │ let v4 : string = $"__expect / actual: %A{v0} / expected: %A{1.0}" │
00:00:14 #357 [Verbose] > │ let v5 : bool = v3 = false │
00:00:14 #358 [Verbose] > │ if v5 then │
00:00:14 #359 [Verbose] > │ failwith<unit> v4 │
00:00:14 #360 [Verbose] > │ method0() │
00:00:14 #361 [Verbose] > │ │
00:00:14 #362 [Verbose] > │ │
00:00:14 #363 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #364 [Verbose] >
00:00:14 #365 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #366 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #367 [Verbose] > │ ## square │
00:00:14 #368 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #369 [Verbose] >
00:00:14 #370 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #371 [Verbose] > inl square x =
00:00:14 #372 [Verbose] > x ** 2
00:00:15 #373 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-3366-6673-68455263b7eb\main.spi
00:00:15 #374 [Verbose] >
00:00:15 #375 [Verbose] > ╭─[ 231.31ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #376 [Verbose] > │ () │
00:00:15 #377 [Verbose] > │ │
00:00:15 #378 [Verbose] > │ │
00:00:15 #379 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #380 [Verbose] >
00:00:15 #381 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #382 [Verbose] > // // test
00:00:15 #383 [Verbose] >
00:00:15 #384 [Verbose] > 5f64
00:00:15 #385 [Verbose] > |> sqrt
00:00:15 #386 [Verbose] > |> square
00:00:15 #387 [Verbose] > |> _assert_approx_eq None 5
00:00:15 #388 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-3390-9011-900b904b1780\main.spi
00:00:15 #389 [Verbose] >
00:00:15 #390 [Verbose] > ╭─[ 187.01ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #391 [Verbose] > │ let rec method0 () : unit = │
00:00:15 #392 [Verbose] > │ let v0 : string = $"__expect / actual: %A{5.000000000000001} / expected: │
00:00:15 #393 [Verbose] > │ %A{5.0}" │
00:00:15 #394 [Verbose] > │ () │
00:00:15 #395 [Verbose] > │ method0() │
00:00:15 #396 [Verbose] > │ │
00:00:15 #397 [Verbose] > │ │
00:00:15 #398 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #399 [Verbose] >
00:00:15 #400 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #401 [Verbose] > // // test
00:00:15 #402 [Verbose] >
00:00:15 #403 [Verbose] > e () |> square
00:00:15 #404 [Verbose] > |> _assert_approx_eq None 7.3890560989306495
00:00:15 #405 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-3409-0912-07d14496094f\main.spi
00:00:15 #406 [Verbose] >
00:00:15 #407 [Verbose] > ╭─[ 246.21ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #408 [Verbose] > │ let rec method0 () : unit = │
00:00:15 #409 [Verbose] > │ let v0 : string = $"__expect / actual: %A{7.3890560989306495} / │
00:00:15 #410 [Verbose] > │ expected: %A{7.3890560989306495}" │
00:00:15 #411 [Verbose] > │ () │
00:00:15 #412 [Verbose] > │ method0() │
00:00:15 #413 [Verbose] > │ │
00:00:15 #414 [Verbose] > │ │
00:00:15 #415 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #416 [Verbose] > [NbConvertApp] Converting notebook math.dib.ipynb to html
00:00:17 #417 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:17 #418 [Verbose] > validate(nb)
00:00:18 #419 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:18 #420 [Verbose] > return _pygments_highlight(
00:00:18 #421 [Verbose] > [NbConvertApp] Writing 302883 bytes to math.dib.html
00:00:19 #422 [Debug] executeAsync / exitCode: 0 / output.Length: 22970
00:00:19 #423 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\lib\spiral
00:00:00 #4 [Verbose] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #6 [Debug] runWithTimeoutAsync / timeout: 500
00:00:00 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805
00:00:01 #11 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 \"optionm'.dib\"""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:03 #12 [Verbose] >
00:00:03 #13 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 #14 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 #15 [Verbose] > │ # optionm │
00:00:03 #16 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:03 #17 [Verbose] >
00:00:03 #18 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:03 #19 [Verbose] > // // test
00:00:03 #20 [Verbose] >
00:00:03 #21 [Verbose] > open testing
00:00:07 #22 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-4471-7164-74087bfccd4e\main.spi
00:00:09 #23 [Verbose] >
00:00:09 #24 [Verbose] > ╭─[ 5.74s - stdout ]───────────────────────────────────────────────────────────╮
00:00:09 #25 [Verbose] > │ () │
00:00:09 #26 [Verbose] > │ │
00:00:09 #27 [Verbose] > │ │
00:00:09 #28 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #29 [Verbose] >
00:00:09 #30 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #31 [Verbose] > open rust_operators
00:00:09 #32 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-4799-9997-90f7b2b29a69\main.spi
00:00:09 #33 [Verbose] >
00:00:09 #34 [Verbose] > ╭─[ 271.69ms - stdout ]────────────────────────────────────────────────────────╮
00:00:09 #35 [Verbose] > │ () │
00:00:09 #36 [Verbose] > │ │
00:00:09 #37 [Verbose] > │ │
00:00:09 #38 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #39 [Verbose] >
00:00:09 #40 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #41 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #42 [Verbose] > │ ## default_value │
00:00:09 #43 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #44 [Verbose] >
00:00:09 #45 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #46 [Verbose] > inl default_value d =
00:00:09 #47 [Verbose] > optionm.defaultWith d
00:00:10 #48 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-4827-2772-28af492b4de9\main.spi
00:00:10 #49 [Verbose] >
00:00:10 #50 [Verbose] > ╭─[ 276.79ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #51 [Verbose] > │ () │
00:00:10 #52 [Verbose] > │ │
00:00:10 #53 [Verbose] > │ │
00:00:10 #54 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #55 [Verbose] >
00:00:10 #56 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #57 [Verbose] > // // test
00:00:10 #58 [Verbose] >
00:00:10 #59 [Verbose] > None
00:00:10 #60 [Verbose] > |> default_value 3i32
00:00:10 #61 [Verbose] > |> _assert_eq 3i32
00:00:10 #62 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-4855-5531-5f1b9057613b\main.spi
00:00:10 #63 [Verbose] >
00:00:10 #64 [Verbose] > ╭─[ 804.29ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #65 [Verbose] > │ let rec method0 () : unit = │
00:00:10 #66 [Verbose] > │ let v0 : string = $"__expect / actual: %A{3} / expected: %A{3}" │
00:00:10 #67 [Verbose] > │ () │
00:00:10 #68 [Verbose] > │ method0() │
00:00:10 #69 [Verbose] > │ │
00:00:10 #70 [Verbose] > │ │
00:00:10 #71 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #72 [Verbose] >
00:00:10 #73 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #74 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #75 [Verbose] > │ ## (/??) │
00:00:10 #76 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #77 [Verbose] >
00:00:10 #78 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #79 [Verbose] > inl (/??) a b =
00:00:10 #80 [Verbose] > a |> default_value b
00:00:11 #81 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-4936-3628-30ed20ad29ca\main.spi
00:00:11 #82 [Verbose] >
00:00:11 #83 [Verbose] > ╭─[ 248.09ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #84 [Verbose] > │ () │
00:00:11 #85 [Verbose] > │ │
00:00:11 #86 [Verbose] > │ │
00:00:11 #87 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #88 [Verbose] >
00:00:11 #89 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #90 [Verbose] > // // test
00:00:11 #91 [Verbose] >
00:00:11 #92 [Verbose] > None /?? 3i32
00:00:11 #93 [Verbose] > |> _assert_eq 3i32
00:00:11 #94 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-4961-6141-667620b76d32\main.spi
00:00:11 #95 [Verbose] >
00:00:11 #96 [Verbose] > ╭─[ 253.45ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #97 [Verbose] > │ let rec method0 () : unit = │
00:00:11 #98 [Verbose] > │ let v0 : string = $"__expect / actual: %A{3} / expected: %A{3}" │
00:00:11 #99 [Verbose] > │ () │
00:00:11 #100 [Verbose] > │ method0() │
00:00:11 #101 [Verbose] > │ │
00:00:11 #102 [Verbose] > │ │
00:00:11 #103 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #104 [Verbose] >
00:00:11 #105 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #106 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #107 [Verbose] > │ ## default_with │
00:00:11 #108 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #109 [Verbose] >
00:00:11 #110 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #111 [Verbose] > inl default_with fn =
00:00:11 #112 [Verbose] > function Some x => x | None => fn ()
00:00:11 #113 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-4987-8723-8ace8b33a4a9\main.spi
00:00:11 #114 [Verbose] >
00:00:11 #115 [Verbose] > ╭─[ 317.04ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #116 [Verbose] > │ () │
00:00:11 #117 [Verbose] > │ │
00:00:11 #118 [Verbose] > │ │
00:00:11 #119 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #120 [Verbose] >
00:00:11 #121 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #122 [Verbose] > // // test
00:00:11 #123 [Verbose] >
00:00:11 #124 [Verbose] > None
00:00:11 #125 [Verbose] > |> default_with (fun () => 3i32)
00:00:11 #126 [Verbose] > |> _assert_eq 3i32
00:00:11 #127 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-5019-1919-1295cda905ae\main.spi
00:00:11 #128 [Verbose] >
00:00:11 #129 [Verbose] > ╭─[ 192.29ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #130 [Verbose] > │ let rec method0 () : unit = │
00:00:12 #131 [Verbose] > │ let v0 : string = $"__expect / actual: %A{3} / expected: %A{3}" │
00:00:12 #132 [Verbose] > │ () │
00:00:12 #133 [Verbose] > │ method0() │
00:00:12 #134 [Verbose] > │ │
00:00:12 #135 [Verbose] > │ │
00:00:12 #136 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #137 [Verbose] >
00:00:12 #138 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #139 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #140 [Verbose] > │ ## choose │
00:00:12 #141 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #142 [Verbose] >
00:00:12 #143 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #144 [Verbose] > inl choose fn a b =
00:00:12 #145 [Verbose] > match a, b with
00:00:12 #146 [Verbose] > | Some x, Some y => fn x y |> Some
00:00:12 #147 [Verbose] > | _ => None
00:00:12 #148 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-5039-3901-360c555e4d00\main.spi
00:00:12 #149 [Verbose] >
00:00:12 #150 [Verbose] > ╭─[ 207.36ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #151 [Verbose] > │ () │
00:00:12 #152 [Verbose] > │ │
00:00:12 #153 [Verbose] > │ │
00:00:12 #154 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #155 [Verbose] >
00:00:12 #156 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #157 [Verbose] > // // test
00:00:12 #158 [Verbose] >
00:00:12 #159 [Verbose] > (Some 2i32, Some 3)
00:00:12 #160 [Verbose] > ||> choose (+)
00:00:12 #161 [Verbose] > |> _assert_eq (Some 5)
00:00:12 #162 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-5060-6004-6647f317a11f\main.spi
00:00:13 #163 [Verbose] >
00:00:13 #164 [Verbose] > ╭─[ 974.86ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #165 [Verbose] > │ type [<Struct>] US0 = │
00:00:13 #166 [Verbose] > │ | US0_0 │
00:00:13 #167 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:13 #168 [Verbose] > │ let rec method0 () : unit = │
00:00:13 #169 [Verbose] > │ let v3 : US0 = US0_1(5) │
00:00:13 #170 [Verbose] > │ let v4 : US0 = US0_1(5) │
00:00:13 #171 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:13 #172 [Verbose] > │ () │
00:00:13 #173 [Verbose] > │ method0() │
00:00:13 #174 [Verbose] > │ │
00:00:13 #175 [Verbose] > │ │
00:00:13 #176 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #177 [Verbose] >
00:00:13 #178 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #179 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #180 [Verbose] > │ ## iter │
00:00:13 #181 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #182 [Verbose] >
00:00:13 #183 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #184 [Verbose] > inl iter fn = function
00:00:13 #185 [Verbose] > | Some x => fn x
00:00:13 #186 [Verbose] > | None => ()
00:00:13 #187 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-5158-5871-502065dbb980\main.spi
00:00:13 #188 [Verbose] >
00:00:13 #189 [Verbose] > ╭─[ 229.27ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #190 [Verbose] > │ () │
00:00:13 #191 [Verbose] > │ │
00:00:13 #192 [Verbose] > │ │
00:00:13 #193 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #194 [Verbose] >
00:00:13 #195 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #196 [Verbose] > // // test
00:00:13 #197 [Verbose] >
00:00:13 #198 [Verbose] > inl n = mut 1i32
00:00:13 #199 [Verbose] > inl fn =
00:00:13 #200 [Verbose] > fun n' =>
00:00:13 #201 [Verbose] > n <- *n + n'
00:00:13 #202 [Verbose] > Some 1i32 |> iter fn
00:00:13 #203 [Verbose] > None |> iter fn
00:00:13 #204 [Verbose] > *n
00:00:13 #205 [Verbose] > |> _assert_eq 2i32
00:00:13 #206 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-5181-8163-8918d9d74906\main.spi
00:00:13 #207 [Verbose] >
00:00:13 #208 [Verbose] > ╭─[ 377.62ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #209 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:13 #210 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:13 #211 [Verbose] > │ v0 │
00:00:13 #212 [Verbose] > │ and method0 () : unit = │
00:00:13 #213 [Verbose] > │ let v0 : Mut0 = {l0 = 1} : Mut0 │
00:00:13 #214 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:13 #215 [Verbose] > │ let v2 : int32 = v1 + 1 │
00:00:13 #216 [Verbose] > │ v0.l0 <- v2 │
00:00:13 #217 [Verbose] > │ let v3 : int32 = v0.l0 │
00:00:13 #218 [Verbose] > │ let v4 : bool = v3 = 2 │
00:00:13 #219 [Verbose] > │ let v6 : bool = │
00:00:13 #220 [Verbose] > │ if v4 then │
00:00:13 #221 [Verbose] > │ true │
00:00:13 #222 [Verbose] > │ else │
00:00:13 #223 [Verbose] > │ method1(v4) │
00:00:13 #224 [Verbose] > │ let v7 : string = $"__expect / actual: %A{v3} / expected: %A{2}" │
00:00:13 #225 [Verbose] > │ let v8 : bool = v6 = false │
00:00:13 #226 [Verbose] > │ if v8 then │
00:00:13 #227 [Verbose] > │ failwith<unit> v7 │
00:00:13 #228 [Verbose] > │ method0() │
00:00:13 #229 [Verbose] > │ │
00:00:13 #230 [Verbose] > │ │
00:00:13 #231 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #232 [Verbose] >
00:00:13 #233 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #234 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #235 [Verbose] > │ ## option' │
00:00:13 #236 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #237 [Verbose] >
00:00:13 #238 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #239 [Verbose] > nominal option' t = $"`t option"
00:00:13 #240 [Verbose] >
00:00:13 #241 [Verbose] > inl unbox forall t. (x : option' t) : option t =
00:00:13 #242 [Verbose] > inl some x : option t = Some x
00:00:13 #243 [Verbose] > inl none : option t = None
00:00:13 #244 [Verbose] > $"!x |> Option.map !some |> Option.defaultValue !none"
00:00:13 #245 [Verbose] >
00:00:13 #246 [Verbose] > inl box forall t. (x : option t) : option' t =
00:00:13 #247 [Verbose] > match x with
00:00:13 #248 [Verbose] > | Some x => $"Some !x"
00:00:13 #249 [Verbose] > | None => $"None"
00:00:13 #250 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-5220-2066-233948eba46d\main.spi
00:00:14 #251 [Verbose] >
00:00:14 #252 [Verbose] > ╭─[ 216.24ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #253 [Verbose] > │ () │
00:00:14 #254 [Verbose] > │ │
00:00:14 #255 [Verbose] > │ │
00:00:14 #256 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #257 [Verbose] >
00:00:14 #258 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #259 [Verbose] > // // test
00:00:14 #260 [Verbose] >
00:00:14 #261 [Verbose] > inl x = Some 3i32
00:00:14 #262 [Verbose] > inl y : option i32 = None
00:00:14 #263 [Verbose] > inl x' = x |> box |> unbox
00:00:14 #264 [Verbose] > inl y' = y |> box |> unbox
00:00:14 #265 [Verbose] > (x', y') |> _assert_eq (x, y)
00:00:14 #266 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-5242-4245-421823ce3beb\main.spi
00:00:14 #267 [Verbose] >
00:00:14 #268 [Verbose] > ╭─[ 318.76ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #269 [Verbose] > │ type [<Struct>] US0 = │
00:00:14 #270 [Verbose] > │ | US0_0 │
00:00:14 #271 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:14 #272 [Verbose] > │ let rec closure0 () (v0 : int32) : US0 = │
00:00:14 #273 [Verbose] > │ US0_1(v0) │
00:00:14 #274 [Verbose] > │ and method1 (v0 : bool) : bool = │
00:00:14 #275 [Verbose] > │ v0 │
00:00:14 #276 [Verbose] > │ and method0 () : unit = │
00:00:14 #277 [Verbose] > │ let v0 : int32 option = Some 3 │
00:00:14 #278 [Verbose] > │ let v1 : (int32 -> US0) = closure0() │
00:00:14 #279 [Verbose] > │ let v2 : US0 = US0_0 │
00:00:14 #280 [Verbose] > │ let v3 : US0 = v0 |> Option.map v1 |> Option.defaultValue v2 │
00:00:14 #281 [Verbose] > │ let v4 : int32 option = None │
00:00:14 #282 [Verbose] > │ let v5 : US0 = US0_0 │
00:00:14 #283 [Verbose] > │ let v6 : US0 = v4 |> Option.map v1 |> Option.defaultValue v5 │
00:00:14 #284 [Verbose] > │ let v11 : bool = │
00:00:14 #285 [Verbose] > │ match v3 with │
00:00:14 #286 [Verbose] > │ | US0_1(v9) -> (* Some *) │
00:00:14 #287 [Verbose] > │ let v10 : bool = v9 = 3 │
00:00:14 #288 [Verbose] > │ v10 │
00:00:14 #289 [Verbose] > │ | _ -> │
00:00:14 #290 [Verbose] > │ false │
00:00:14 #291 [Verbose] > │ let v13 : bool = │
00:00:14 #292 [Verbose] > │ if v11 then │
00:00:14 #293 [Verbose] > │ match v6 with │
00:00:14 #294 [Verbose] > │ | US0_0 -> (* None *) │
00:00:14 #295 [Verbose] > │ true │
00:00:14 #296 [Verbose] > │ | _ -> │
00:00:14 #297 [Verbose] > │ false │
00:00:14 #298 [Verbose] > │ else │
00:00:14 #299 [Verbose] > │ false │
00:00:14 #300 [Verbose] > │ let v15 : bool = │
00:00:14 #301 [Verbose] > │ if v13 then │
00:00:14 #302 [Verbose] > │ true │
00:00:14 #303 [Verbose] > │ else │
00:00:14 #304 [Verbose] > │ method1(v13) │
00:00:14 #305 [Verbose] > │ let v16 : US0 = US0_1(3) │
00:00:14 #306 [Verbose] > │ let v17 : US0 = US0_0 │
00:00:14 #307 [Verbose] > │ let v18 : string = $"__expect / actual: %A{struct (v3, v6)} / expected: │
00:00:14 #308 [Verbose] > │ %A{struct (v16, v17)}" │
00:00:14 #309 [Verbose] > │ let v19 : bool = v15 = false │
00:00:14 #310 [Verbose] > │ if v19 then │
00:00:14 #311 [Verbose] > │ failwith<unit> v18 │
00:00:14 #312 [Verbose] > │ method0() │
00:00:14 #313 [Verbose] > │ │
00:00:14 #314 [Verbose] > │ │
00:00:14 #315 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #316 [Verbose] >
00:00:14 #317 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #318 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #319 [Verbose] > │ ## map │
00:00:14 #320 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #321 [Verbose] >
00:00:14 #322 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #323 [Verbose] > inl map forall t u. (fn : t -> u) (x : option' t) : option' u =
00:00:14 #324 [Verbose] > inl x = join x
00:00:14 #325 [Verbose] > inl fn = join fn
00:00:14 #326 [Verbose] > !\($'"!x.map(|x| !fn(x))"')
00:00:14 #327 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-5276-7641-76582f467ce7\main.spi
00:00:14 #328 [Verbose] >
00:00:14 #329 [Verbose] > ╭─[ 191.36ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #330 [Verbose] > │ () │
00:00:14 #331 [Verbose] > │ │
00:00:14 #332 [Verbose] > │ │
00:00:14 #333 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #334 [Verbose] >
00:00:14 #335 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #336 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #337 [Verbose] > │ ## flatten │
00:00:14 #338 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #339 [Verbose] >
00:00:14 #340 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #341 [Verbose] > inl flatten x =
00:00:14 #342 [Verbose] > match x with
00:00:14 #343 [Verbose] > | Some (Some x) => Some x
00:00:14 #344 [Verbose] > | _ => None
00:00:14 #345 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-5295-9590-97bed09e988d\main.spi
00:00:14 #346 [Verbose] >
00:00:14 #347 [Verbose] > ╭─[ 216.18ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #348 [Verbose] > │ () │
00:00:14 #349 [Verbose] > │ │
00:00:14 #350 [Verbose] > │ │
00:00:14 #351 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #352 [Verbose] >
00:00:14 #353 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #354 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #355 [Verbose] > │ ## unwrap │
00:00:14 #356 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #357 [Verbose] >
00:00:14 #358 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #359 [Verbose] > inl unwrap forall t. (x : option' t) : t =
00:00:14 #360 [Verbose] > !\($'"!x.unwrap()"')
00:00:14 #361 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-5318-1821-1bb9f899d364\main.spi
00:00:14 #362 [Verbose] >
00:00:14 #363 [Verbose] > ╭─[ 199.62ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #364 [Verbose] > │ () │
00:00:14 #365 [Verbose] > │ │
00:00:14 #366 [Verbose] > │ │
00:00:14 #367 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #368 [Verbose] >
00:00:14 #369 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #370 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #371 [Verbose] > │ ## unwrap_or │
00:00:15 #372 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #373 [Verbose] >
00:00:15 #374 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #375 [Verbose] > inl unwrap_or forall t. (def : t) (x : option' t) : t =
00:00:15 #376 [Verbose] > !\($'"!x.unwrap_or(!def)"')
00:00:15 #377 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-5338-3869-394149c6a4a9\main.spi
00:00:15 #378 [Verbose] >
00:00:15 #379 [Verbose] > ╭─[ 178.08ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #380 [Verbose] > │ () │
00:00:15 #381 [Verbose] > │ │
00:00:15 #382 [Verbose] > │ │
00:00:15 #383 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #384 [Verbose] >
00:00:15 #385 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #386 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #387 [Verbose] > │ ## rc_upgrade │
00:00:15 #388 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #389 [Verbose] >
00:00:15 #390 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #391 [Verbose] > inl rc_upgrade forall t. (x : rust.weak_rc t) : option (rust.rc t) =
00:00:15 #392 [Verbose] > inl x = join x
00:00:15 #393 [Verbose] > !\($'"std::rc::Weak::upgrade(&!x)"')
00:00:15 #394 [Verbose] > |> unbox
00:00:15 #395 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0039-5356-5684-532467de022d\main.spi
00:00:15 #396 [Verbose] >
00:00:15 #397 [Verbose] > ╭─[ 198.68ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #398 [Verbose] > │ () │
00:00:15 #399 [Verbose] > │ │
00:00:15 #400 [Verbose] > │ │
00:00:15 #401 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #402 [Verbose] > [NbConvertApp] Converting notebook optionm'.dib.ipynb to html
00:00:17 #403 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:17 #404 [Verbose] > validate(nb)
00:00:17 #405 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:17 #406 [Verbose] > return _pygments_highlight(
00:00:18 #407 [Verbose] > [NbConvertApp] Writing 306685 bytes to optionm'.dib.html
00:00:18 #408 [Debug] executeAsync / exitCode: 0 / output.Length: 22018
00:00:18 #409 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\lib\spiral
00:00:00 #4 [Verbose] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #6 [Debug] runWithTimeoutAsync / timeout: 500
00:00:00 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805
00:00:01 #11 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 \"am'.dib\"""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:03 #12 [Verbose] >
00:00:03 #13 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 #14 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 #15 [Verbose] > │ # am' │
00:00:03 #16 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:03 #17 [Verbose] >
00:00:03 #18 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:03 #19 [Verbose] > // // test
00:00:03 #20 [Verbose] >
00:00:03 #21 [Verbose] > open testing
00:00:03 #22 [Verbose] >
00:00:03 #23 [Verbose] > prototype append t : t -> t -> t
00:00:07 #24 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-0426-2661-27bae957cba8\main.spi
00:00:09 #25 [Verbose] >
00:00:09 #26 [Verbose] > ╭─[ 6.06s - stdout ]───────────────────────────────────────────────────────────╮
00:00:09 #27 [Verbose] > │ () │
00:00:09 #28 [Verbose] > │ │
00:00:09 #29 [Verbose] > │ │
00:00:09 #30 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #31 [Verbose] >
00:00:09 #32 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #33 [Verbose] > open rust_operators
00:00:10 #34 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-0773-7334-7d1a3cfb2756\main.spi
00:00:10 #35 [Verbose] >
00:00:10 #36 [Verbose] > ╭─[ 272.83ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #37 [Verbose] > │ () │
00:00:10 #38 [Verbose] > │ │
00:00:10 #39 [Verbose] > │ │
00:00:10 #40 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #41 [Verbose] >
00:00:10 #42 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #43 [Verbose] > inl types () =
00:00:10 #44 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"[[$0]]\")>]] type Slice<'T> =
00:00:10 #45 [Verbose] > class end"
00:00:10 #46 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"[[$0; $1]]\")>]] type
00:00:10 #47 [Verbose] > Slice'<'T, 'U> = class end"
00:00:10 #48 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Vec<$0>\")>]] type Vec<'T> =
00:00:10 #49 [Verbose] > class end"
00:00:10 #50 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-0801-0104-00207ee1c6be\main.spi
00:00:10 #51 [Verbose] >
00:00:10 #52 [Verbose] > ╭─[ 262.16ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #53 [Verbose] > │ () │
00:00:10 #54 [Verbose] > │ │
00:00:10 #55 [Verbose] > │ │
00:00:10 #56 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #57 [Verbose] >
00:00:10 #58 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #59 [Verbose] > nominal slice t = $"Slice<`t>"
00:00:10 #60 [Verbose] > nominal slice' t u = $"Slice'<`t, `u>"
00:00:10 #61 [Verbose] > nominal vec t = $"Vec<`t>"
00:00:10 #62 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-0827-2706-23d90517df6a\main.spi
00:00:10 #63 [Verbose] >
00:00:10 #64 [Verbose] > ╭─[ 216.41ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #65 [Verbose] > │ () │
00:00:10 #66 [Verbose] > │ │
00:00:10 #67 [Verbose] > │ │
00:00:10 #68 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #69 [Verbose] >
00:00:10 #70 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #71 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #72 [Verbose] > │ ## append │
00:00:10 #73 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #74 [Verbose] >
00:00:10 #75 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #76 [Verbose] > instance append a dim {int; number} t =
00:00:10 #77 [Verbose] > am.append
00:00:10 #78 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-0849-4919-454780be8f7a\main.spi
00:00:10 #79 [Verbose] >
00:00:10 #80 [Verbose] > ╭─[ 246.99ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #81 [Verbose] > │ () │
00:00:10 #82 [Verbose] > │ │
00:00:10 #83 [Verbose] > │ │
00:00:10 #84 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #85 [Verbose] >
00:00:10 #86 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #87 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #88 [Verbose] > │ ## /@ │
00:00:10 #89 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #90 [Verbose] >
00:00:10 #91 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #92 [Verbose] > inl (/@) a b =
00:00:10 #93 [Verbose] > b |> append a
00:00:11 #94 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-0874-7460-7b458678d737\main.spi
00:00:11 #95 [Verbose] >
00:00:11 #96 [Verbose] > ╭─[ 241.15ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #97 [Verbose] > │ () │
00:00:11 #98 [Verbose] > │ │
00:00:11 #99 [Verbose] > │ │
00:00:11 #100 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #101 [Verbose] >
00:00:11 #102 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #103 [Verbose] > // // test
00:00:11 #104 [Verbose] >
00:00:11 #105 [Verbose] > a ;[[ "a"; "b" ]] /@ a ;[[ "c"; "d" ]]
00:00:11 #106 [Verbose] > |> _assert_eq (a ;[[ "a"; "b"; "c"; "d" ]] : _ i32 _)
00:00:11 #107 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-0899-9903-92d870310fa0\main.spi
00:00:12 #108 [Verbose] >
00:00:12 #109 [Verbose] > ╭─[ 1.47s - stdout ]───────────────────────────────────────────────────────────╮
00:00:12 #110 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:12 #111 [Verbose] > │ let rec method1 (v0 : (string [])) : (string []) = │
00:00:12 #112 [Verbose] > │ v0 │
00:00:12 #113 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:12 #114 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:12 #115 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:12 #116 [Verbose] > │ v3 │
00:00:12 #117 [Verbose] > │ and method3 (v0 : (string []), v1 : (string []), v2 : int32) : bool = │
00:00:12 #118 [Verbose] > │ let v3 : int32 = v0.Length │
00:00:12 #119 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:12 #120 [Verbose] > │ if v4 then │
00:00:12 #121 [Verbose] > │ let v5 : string = v0.[int v2] │
00:00:12 #122 [Verbose] > │ let v6 : string = v1.[int v2] │
00:00:12 #123 [Verbose] > │ let v7 : bool = v5 = v6 │
00:00:12 #124 [Verbose] > │ if v7 then │
00:00:12 #125 [Verbose] > │ let v8 : int32 = v2 + 1 │
00:00:12 #126 [Verbose] > │ method3(v0, v1, v8) │
00:00:12 #127 [Verbose] > │ else │
00:00:12 #128 [Verbose] > │ false │
00:00:12 #129 [Verbose] > │ else │
00:00:12 #130 [Verbose] > │ true │
00:00:12 #131 [Verbose] > │ and method4 (v0 : bool) : bool = │
00:00:12 #132 [Verbose] > │ v0 │
00:00:12 #133 [Verbose] > │ and method0 () : unit = │
00:00:12 #134 [Verbose] > │ let v0 : string = "a" │
00:00:12 #135 [Verbose] > │ let v1 : string = "b" │
00:00:12 #136 [Verbose] > │ let v2 : (string []) = [|v0; v1|] │
00:00:12 #137 [Verbose] > │ let v3 : (string []) = method1(v2) │
00:00:12 #138 [Verbose] > │ let v4 : string = "c" │
00:00:12 #139 [Verbose] > │ let v5 : string = "d" │
00:00:12 #140 [Verbose] > │ let v6 : (string []) = [|v4; v5|] │
00:00:12 #141 [Verbose] > │ let v7 : (string []) = method1(v6) │
00:00:12 #142 [Verbose] > │ let v8 : int32 = v3.Length │
00:00:12 #143 [Verbose] > │ let v9 : int32 = v7.Length │
00:00:12 #144 [Verbose] > │ let v10 : int32 = v8 + v9 │
00:00:12 #145 [Verbose] > │ let v11 : (string []) = Array.zeroCreate<string> (v10) │
00:00:12 #146 [Verbose] > │ let v12 : Mut0 = {l0 = 0} : Mut0 │
00:00:12 #147 [Verbose] > │ while method2(v10, v12) do │
00:00:12 #148 [Verbose] > │ let v14 : int32 = v12.l0 │
00:00:12 #149 [Verbose] > │ let v15 : bool = v14 < v8 │
00:00:12 #150 [Verbose] > │ let v19 : string = │
00:00:12 #151 [Verbose] > │ if v15 then │
00:00:12 #152 [Verbose] > │ let v16 : string = v3.[int v14] │
00:00:12 #153 [Verbose] > │ v16 │
00:00:12 #154 [Verbose] > │ else │
00:00:12 #155 [Verbose] > │ let v17 : int32 = v14 - v8 │
00:00:12 #156 [Verbose] > │ let v18 : string = v7.[int v17] │
00:00:12 #157 [Verbose] > │ v18 │
00:00:12 #158 [Verbose] > │ v11.[int v14] <- v19 │
00:00:12 #159 [Verbose] > │ let v20 : int32 = v14 + 1 │
00:00:12 #160 [Verbose] > │ v12.l0 <- v20 │
00:00:12 #161 [Verbose] > │ () │
00:00:12 #162 [Verbose] > │ let v21 : (string []) = [|v0; v1; v4; v5|] │
00:00:12 #163 [Verbose] > │ let v22 : (string []) = method1(v21) │
00:00:12 #164 [Verbose] > │ let v23 : int32 = v11.Length │
00:00:12 #165 [Verbose] > │ let v24 : int32 = v22.Length │
00:00:12 #166 [Verbose] > │ let v25 : bool = v23 = v24 │
00:00:12 #167 [Verbose] > │ let v26 : bool = v25 <> true │
00:00:12 #168 [Verbose] > │ let v29 : bool = │
00:00:12 #169 [Verbose] > │ if v26 then │
00:00:12 #170 [Verbose] > │ false │
00:00:12 #171 [Verbose] > │ else │
00:00:12 #172 [Verbose] > │ let v27 : int32 = 0 │
00:00:12 #173 [Verbose] > │ method3(v11, v22, v27) │
00:00:12 #174 [Verbose] > │ let v31 : bool = │
00:00:12 #175 [Verbose] > │ if v29 then │
00:00:12 #176 [Verbose] > │ true │
00:00:12 #177 [Verbose] > │ else │
00:00:12 #178 [Verbose] > │ method4(v29) │
00:00:12 #179 [Verbose] > │ let v32 : string = $"__expect / actual: %A{v11} / expected: %A{v22}" │
00:00:12 #180 [Verbose] > │ let v33 : bool = v31 = false │
00:00:12 #181 [Verbose] > │ if v33 then │
00:00:12 #182 [Verbose] > │ failwith<unit> v32 │
00:00:12 #183 [Verbose] > │ method0() │
00:00:12 #184 [Verbose] > │ │
00:00:12 #185 [Verbose] > │ │
00:00:12 #186 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #187 [Verbose] >
00:00:12 #188 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #189 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #190 [Verbose] > │ ## collect │
00:00:12 #191 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #192 [Verbose] >
00:00:12 #193 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #194 [Verbose] > inl collect forall t r. (fn : t -> a i32 r) (items : a i32 t) : a i32 r =
00:00:12 #195 [Verbose] > items
00:00:12 #196 [Verbose] > |> am.map fn
00:00:12 #197 [Verbose] > |> am.fold (/@) (a ;[[]])
00:00:12 #198 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1049-4928-474f6c2884ff\main.spi
00:00:12 #199 [Verbose] >
00:00:12 #200 [Verbose] > ╭─[ 229.43ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #201 [Verbose] > │ () │
00:00:12 #202 [Verbose] > │ │
00:00:12 #203 [Verbose] > │ │
00:00:12 #204 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #205 [Verbose] >
00:00:12 #206 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #207 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #208 [Verbose] > │ ## choose │
00:00:12 #209 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #210 [Verbose] >
00:00:12 #211 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #212 [Verbose] > inl choose f l =
00:00:12 #213 [Verbose] > (l, [[]])
00:00:12 #214 [Verbose] > ||> am.foldBack fun x acc =>
00:00:12 #215 [Verbose] > match f x with
00:00:12 #216 [Verbose] > | Some y => y :: acc
00:00:12 #217 [Verbose] > | None => acc
00:00:12 #218 [Verbose] > |> listm.toArray
00:00:13 #219 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1072-7244-74272db59189\main.spi
00:00:13 #220 [Verbose] >
00:00:13 #221 [Verbose] > ╭─[ 331.80ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #222 [Verbose] > │ () │
00:00:13 #223 [Verbose] > │ │
00:00:13 #224 [Verbose] > │ │
00:00:13 #225 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #226 [Verbose] >
00:00:13 #227 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #228 [Verbose] > // // test
00:00:13 #229 [Verbose] >
00:00:13 #230 [Verbose] > (am.init 10i32 id : a _ _)
00:00:13 #231 [Verbose] > |> choose (fun x => if x % 2 = 0 then Some x else None)
00:00:13 #232 [Verbose] > |> _assert_eq (a ;[[ 0; 2; 4; 6; 8 ]] : _ i32 _)
00:00:13 #233 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1105-0599-0c89f1a69c3b\main.spi
00:00:13 #234 [Verbose] >
00:00:13 #235 [Verbose] > ╭─[ 558.82ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #236 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:13 #237 [Verbose] > │ and UH0 = │
00:00:13 #238 [Verbose] > │ | UH0_0 of int32 * UH0 │
00:00:13 #239 [Verbose] > │ | UH0_1 │
00:00:13 #240 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : UH0} │
00:00:13 #241 [Verbose] > │ and [<Struct>] US0 = │
00:00:13 #242 [Verbose] > │ | US0_0 │
00:00:13 #243 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:13 #244 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:13 #245 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:13 #246 [Verbose] > │ let v2 : bool = v1 < 10 │
00:00:13 #247 [Verbose] > │ v2 │
00:00:13 #248 [Verbose] > │ and method2 (v0 : int32, v1 : Mut1) : bool = │
00:00:13 #249 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:13 #250 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:13 #251 [Verbose] > │ v3 │
00:00:13 #252 [Verbose] > │ and method4 (v0 : UH0, v1 : int32) : int32 = │
00:00:13 #253 [Verbose] > │ match v0 with │
00:00:13 #254 [Verbose] > │ | UH0_0(v2, v3) -> (* Cons *) │
00:00:13 #255 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:13 #256 [Verbose] > │ method4(v3, v4) │
00:00:13 #257 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:13 #258 [Verbose] > │ v1 │
00:00:13 #259 [Verbose] > │ and method5 (v0 : (int32 []), v1 : UH0, v2 : int32) : int32 = │
00:00:13 #260 [Verbose] > │ match v1 with │
00:00:13 #261 [Verbose] > │ | UH0_0(v3, v4) -> (* Cons *) │
00:00:13 #262 [Verbose] > │ v0.[int v2] <- v3 │
00:00:13 #263 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:13 #264 [Verbose] > │ method5(v0, v4, v5) │
00:00:13 #265 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:13 #266 [Verbose] > │ v2 │
00:00:13 #267 [Verbose] > │ and method3 (v0 : UH0) : (int32 []) = │
00:00:13 #268 [Verbose] > │ let v1 : int32 = 0 │
00:00:13 #269 [Verbose] > │ let v2 : int32 = method4(v0, v1) │
00:00:13 #270 [Verbose] > │ let v3 : (int32 []) = Array.zeroCreate<int32> (v2) │
00:00:13 #271 [Verbose] > │ let v4 : int32 = 0 │
00:00:13 #272 [Verbose] > │ let v5 : int32 = method5(v3, v0, v4) │
00:00:13 #273 [Verbose] > │ v3 │
00:00:13 #274 [Verbose] > │ and method6 (v0 : (int32 [])) : (int32 []) = │
00:00:13 #275 [Verbose] > │ v0 │
00:00:13 #276 [Verbose] > │ and method7 (v0 : (int32 []), v1 : (int32 []), v2 : int32) : bool = │
00:00:13 #277 [Verbose] > │ let v3 : int32 = v0.Length │
00:00:13 #278 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:13 #279 [Verbose] > │ if v4 then │
00:00:13 #280 [Verbose] > │ let v5 : int32 = v0.[int v2] │
00:00:13 #281 [Verbose] > │ let v6 : int32 = v1.[int v2] │
00:00:13 #282 [Verbose] > │ let v7 : bool = v5 = v6 │
00:00:13 #283 [Verbose] > │ if v7 then │
00:00:13 #284 [Verbose] > │ let v8 : int32 = v2 + 1 │
00:00:13 #285 [Verbose] > │ method7(v0, v1, v8) │
00:00:13 #286 [Verbose] > │ else │
00:00:13 #287 [Verbose] > │ false │
00:00:13 #288 [Verbose] > │ else │
00:00:13 #289 [Verbose] > │ true │
00:00:13 #290 [Verbose] > │ and method8 (v0 : bool) : bool = │
00:00:13 #291 [Verbose] > │ v0 │
00:00:13 #292 [Verbose] > │ and method0 () : unit = │
00:00:13 #293 [Verbose] > │ let v0 : (int32 []) = Array.zeroCreate<int32> (10) │
00:00:13 #294 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:13 #295 [Verbose] > │ while method1(v1) do │
00:00:13 #296 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:13 #297 [Verbose] > │ v0.[int v3] <- v3 │
00:00:13 #298 [Verbose] > │ let v4 : int32 = v3 + 1 │
00:00:13 #299 [Verbose] > │ v1.l0 <- v4 │
00:00:13 #300 [Verbose] > │ () │
00:00:13 #301 [Verbose] > │ let v5 : int32 = v0.Length │
00:00:13 #302 [Verbose] > │ let v6 : UH0 = UH0_1 │
00:00:13 #303 [Verbose] > │ let v7 : Mut1 = {l0 = 0; l1 = v6} : Mut1 │
00:00:13 #304 [Verbose] > │ while method2(v5, v7) do │
00:00:13 #305 [Verbose] > │ let v9 : int32 = v7.l0 │
00:00:13 #306 [Verbose] > │ let v10 : int32 = -v9 │
00:00:13 #307 [Verbose] > │ let v11 : int32 = v10 + v5 │
00:00:13 #308 [Verbose] > │ let v12 : int32 = v11 - 1 │
00:00:13 #309 [Verbose] > │ let v13 : UH0 = v7.l1 │
00:00:13 #310 [Verbose] > │ let v14 : int32 = v0.[int v12] │
00:00:13 #311 [Verbose] > │ let v15 : int32 = v14 % 2 │
00:00:13 #312 [Verbose] > │ let v16 : bool = v15 = 0 │
00:00:13 #313 [Verbose] > │ let v19 : US0 = │
00:00:13 #314 [Verbose] > │ if v16 then │
00:00:13 #315 [Verbose] > │ US0_1(v14) │
00:00:13 #316 [Verbose] > │ else │
00:00:13 #317 [Verbose] > │ US0_0 │
00:00:13 #318 [Verbose] > │ let v23 : UH0 = │
00:00:13 #319 [Verbose] > │ match v19 with │
00:00:13 #320 [Verbose] > │ | US0_0 -> (* None *) │
00:00:13 #321 [Verbose] > │ v13 │
00:00:13 #322 [Verbose] > │ | US0_1(v20) -> (* Some *) │
00:00:13 #323 [Verbose] > │ UH0_0(v20, v13) │
00:00:13 #324 [Verbose] > │ let v24 : int32 = v9 + 1 │
00:00:13 #325 [Verbose] > │ v7.l0 <- v24 │
00:00:13 #326 [Verbose] > │ v7.l1 <- v23 │
00:00:13 #327 [Verbose] > │ () │
00:00:13 #328 [Verbose] > │ let v25 : UH0 = v7.l1 │
00:00:13 #329 [Verbose] > │ let v26 : (int32 []) = method3(v25) │
00:00:13 #330 [Verbose] > │ let v27 : (int32 []) = [|0; 2; 4; 6; 8|] │
00:00:13 #331 [Verbose] > │ let v28 : (int32 []) = method6(v27) │
00:00:13 #332 [Verbose] > │ let v29 : int32 = v26.Length │
00:00:13 #333 [Verbose] > │ let v30 : int32 = v28.Length │
00:00:13 #334 [Verbose] > │ let v31 : bool = v29 = v30 │
00:00:13 #335 [Verbose] > │ let v32 : bool = v31 <> true │
00:00:13 #336 [Verbose] > │ let v35 : bool = │
00:00:13 #337 [Verbose] > │ if v32 then │
00:00:13 #338 [Verbose] > │ false │
00:00:13 #339 [Verbose] > │ else │
00:00:13 #340 [Verbose] > │ let v33 : int32 = 0 │
00:00:13 #341 [Verbose] > │ method7(v26, v28, v33) │
00:00:13 #342 [Verbose] > │ let v37 : bool = │
00:00:13 #343 [Verbose] > │ if v35 then │
00:00:13 #344 [Verbose] > │ true │
00:00:13 #345 [Verbose] > │ else │
00:00:13 #346 [Verbose] > │ method8(v35) │
00:00:13 #347 [Verbose] > │ let v38 : string = $"__expect / actual: %A{v26} / expected: %A{v28}" │
00:00:13 #348 [Verbose] > │ let v39 : bool = v37 = false │
00:00:13 #349 [Verbose] > │ if v39 then │
00:00:13 #350 [Verbose] > │ failwith<unit> v38 │
00:00:13 #351 [Verbose] > │ method0() │
00:00:13 #352 [Verbose] > │ │
00:00:13 #353 [Verbose] > │ │
00:00:13 #354 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #355 [Verbose] >
00:00:13 #356 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #357 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #358 [Verbose] > │ ## sum │
00:00:13 #359 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #360 [Verbose] >
00:00:13 #361 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #362 [Verbose] > inl sum (a' : a _ _) =
00:00:13 #363 [Verbose] > a' |> am.fold (+) 0
00:00:14 #364 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1167-6743-65f26079136b\main.spi
00:00:14 #365 [Verbose] >
00:00:14 #366 [Verbose] > ╭─[ 188.82ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #367 [Verbose] > │ () │
00:00:14 #368 [Verbose] > │ │
00:00:14 #369 [Verbose] > │ │
00:00:14 #370 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #371 [Verbose] >
00:00:14 #372 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #373 [Verbose] > // // test
00:00:14 #374 [Verbose] >
00:00:14 #375 [Verbose] > am.init 10i32 id
00:00:14 #376 [Verbose] > |> sum
00:00:14 #377 [Verbose] > |> _assert_eq 45
00:00:14 #378 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1186-8687-8926667eee5d\main.spi
00:00:14 #379 [Verbose] >
00:00:14 #380 [Verbose] > ╭─[ 268.66ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #381 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:14 #382 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : int32} │
00:00:14 #383 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:14 #384 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:14 #385 [Verbose] > │ let v2 : bool = v1 < 10 │
00:00:14 #386 [Verbose] > │ v2 │
00:00:14 #387 [Verbose] > │ and method2 (v0 : int32, v1 : Mut1) : bool = │
00:00:14 #388 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:14 #389 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:14 #390 [Verbose] > │ v3 │
00:00:14 #391 [Verbose] > │ and method3 (v0 : bool) : bool = │
00:00:14 #392 [Verbose] > │ v0 │
00:00:14 #393 [Verbose] > │ and method0 () : unit = │
00:00:14 #394 [Verbose] > │ let v0 : (int32 []) = Array.zeroCreate<int32> (10) │
00:00:14 #395 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:14 #396 [Verbose] > │ while method1(v1) do │
00:00:14 #397 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:14 #398 [Verbose] > │ v0.[int v3] <- v3 │
00:00:14 #399 [Verbose] > │ let v4 : int32 = v3 + 1 │
00:00:14 #400 [Verbose] > │ v1.l0 <- v4 │
00:00:14 #401 [Verbose] > │ () │
00:00:14 #402 [Verbose] > │ let v5 : int32 = v0.Length │
00:00:14 #403 [Verbose] > │ let v6 : Mut1 = {l0 = 0; l1 = 0} : Mut1 │
00:00:14 #404 [Verbose] > │ while method2(v5, v6) do │
00:00:14 #405 [Verbose] > │ let v8 : int32 = v6.l0 │
00:00:14 #406 [Verbose] > │ let v9 : int32 = v6.l1 │
00:00:14 #407 [Verbose] > │ let v10 : int32 = v0.[int v8] │
00:00:14 #408 [Verbose] > │ let v11 : int32 = v9 + v10 │
00:00:14 #409 [Verbose] > │ let v12 : int32 = v8 + 1 │
00:00:14 #410 [Verbose] > │ v6.l0 <- v12 │
00:00:14 #411 [Verbose] > │ v6.l1 <- v11 │
00:00:14 #412 [Verbose] > │ () │
00:00:14 #413 [Verbose] > │ let v13 : int32 = v6.l1 │
00:00:14 #414 [Verbose] > │ let v14 : bool = v13 = 45 │
00:00:14 #415 [Verbose] > │ let v16 : bool = │
00:00:14 #416 [Verbose] > │ if v14 then │
00:00:14 #417 [Verbose] > │ true │
00:00:14 #418 [Verbose] > │ else │
00:00:14 #419 [Verbose] > │ method3(v14) │
00:00:14 #420 [Verbose] > │ let v17 : string = $"__expect / actual: %A{v13} / expected: %A{45}" │
00:00:14 #421 [Verbose] > │ let v18 : bool = v16 = false │
00:00:14 #422 [Verbose] > │ if v18 then │
00:00:14 #423 [Verbose] > │ failwith<unit> v17 │
00:00:14 #424 [Verbose] > │ method0() │
00:00:14 #425 [Verbose] > │ │
00:00:14 #426 [Verbose] > │ │
00:00:14 #427 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #428 [Verbose] >
00:00:14 #429 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #430 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #431 [Verbose] > │ ## init_series │
00:00:14 #432 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #433 [Verbose] >
00:00:14 #434 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #435 [Verbose] > inl init_series start end inc =
00:00:14 #436 [Verbose] > inl total = conv ((end - start) / inc) + 1
00:00:14 #437 [Verbose] > am.init total (conv >> (*) inc >> (+) start) : a i32 _
00:00:14 #438 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1216-1635-1a3b8a766512\main.spi
00:00:14 #439 [Verbose] >
00:00:14 #440 [Verbose] > ╭─[ 213.68ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #441 [Verbose] > │ () │
00:00:14 #442 [Verbose] > │ │
00:00:14 #443 [Verbose] > │ │
00:00:14 #444 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #445 [Verbose] >
00:00:14 #446 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #447 [Verbose] > // // test
00:00:14 #448 [Verbose] >
00:00:14 #449 [Verbose] > init_series 0 1 0.5
00:00:14 #450 [Verbose] > |> _assert_eq (a ;[[0f64; 0.5; 1]])
00:00:14 #451 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1237-3781-3a0d12f577a6\main.spi
00:00:14 #452 [Verbose] >
00:00:14 #453 [Verbose] > ╭─[ 249.87ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #454 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:14 #455 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:14 #456 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:14 #457 [Verbose] > │ let v2 : bool = v1 < 3 │
00:00:14 #458 [Verbose] > │ v2 │
00:00:14 #459 [Verbose] > │ and method2 (v0 : (float [])) : (float []) = │
00:00:14 #460 [Verbose] > │ v0 │
00:00:14 #461 [Verbose] > │ and method3 (v0 : (float []), v1 : (float []), v2 : int32) : bool = │
00:00:14 #462 [Verbose] > │ let v3 : int32 = v0.Length │
00:00:14 #463 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:14 #464 [Verbose] > │ if v4 then │
00:00:14 #465 [Verbose] > │ let v5 : float = v0.[int v2] │
00:00:14 #466 [Verbose] > │ let v6 : float = v1.[int v2] │
00:00:14 #467 [Verbose] > │ let v7 : bool = v5 = v6 │
00:00:14 #468 [Verbose] > │ if v7 then │
00:00:14 #469 [Verbose] > │ let v8 : int32 = v2 + 1 │
00:00:14 #470 [Verbose] > │ method3(v0, v1, v8) │
00:00:14 #471 [Verbose] > │ else │
00:00:14 #472 [Verbose] > │ false │
00:00:14 #473 [Verbose] > │ else │
00:00:14 #474 [Verbose] > │ true │
00:00:14 #475 [Verbose] > │ and method4 (v0 : bool) : bool = │
00:00:14 #476 [Verbose] > │ v0 │
00:00:14 #477 [Verbose] > │ and method0 () : unit = │
00:00:14 #478 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (3) │
00:00:14 #479 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:14 #480 [Verbose] > │ while method1(v1) do │
00:00:14 #481 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:14 #482 [Verbose] > │ let v4 : float = float v3 │
00:00:14 #483 [Verbose] > │ let v5 : float = 0.5 * v4 │
00:00:14 #484 [Verbose] > │ v0.[int v3] <- v5 │
00:00:14 #485 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:14 #486 [Verbose] > │ v1.l0 <- v6 │
00:00:14 #487 [Verbose] > │ () │
00:00:14 #488 [Verbose] > │ let v7 : (float []) = [|0.0; 0.5; 1.0|] │
00:00:14 #489 [Verbose] > │ let v8 : (float []) = method2(v7) │
00:00:14 #490 [Verbose] > │ let v9 : int32 = v0.Length │
00:00:14 #491 [Verbose] > │ let v10 : int32 = v8.Length │
00:00:14 #492 [Verbose] > │ let v11 : bool = v9 = v10 │
00:00:14 #493 [Verbose] > │ let v12 : bool = v11 <> true │
00:00:14 #494 [Verbose] > │ let v15 : bool = │
00:00:14 #495 [Verbose] > │ if v12 then │
00:00:14 #496 [Verbose] > │ false │
00:00:14 #497 [Verbose] > │ else │
00:00:14 #498 [Verbose] > │ let v13 : int32 = 0 │
00:00:14 #499 [Verbose] > │ method3(v0, v8, v13) │
00:00:14 #500 [Verbose] > │ let v17 : bool = │
00:00:14 #501 [Verbose] > │ if v15 then │
00:00:14 #502 [Verbose] > │ true │
00:00:14 #503 [Verbose] > │ else │
00:00:14 #504 [Verbose] > │ method4(v15) │
00:00:14 #505 [Verbose] > │ let v18 : string = $"__expect / actual: %A{v0} / expected: %A{v8}" │
00:00:14 #506 [Verbose] > │ let v19 : bool = v17 = false │
00:00:14 #507 [Verbose] > │ if v19 then │
00:00:14 #508 [Verbose] > │ failwith<unit> v18 │
00:00:14 #509 [Verbose] > │ method0() │
00:00:14 #510 [Verbose] > │ │
00:00:14 #511 [Verbose] > │ │
00:00:14 #512 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #513 [Verbose] >
00:00:14 #514 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #515 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #516 [Verbose] > │ ## head │
00:00:14 #517 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #518 [Verbose] >
00:00:14 #519 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #520 [Verbose] > inl head (ar : a _ _) =
00:00:14 #521 [Verbose] > if var_is ar || length ar > 0
00:00:14 #522 [Verbose] > then index ar 0
00:00:14 #523 [Verbose] > else error_type "The length of the array should be greater than 0."
00:00:15 #524 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1265-6532-6b711fdf4a71\main.spi
00:00:15 #525 [Verbose] >
00:00:15 #526 [Verbose] > ╭─[ 192.02ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #527 [Verbose] > │ () │
00:00:15 #528 [Verbose] > │ │
00:00:15 #529 [Verbose] > │ │
00:00:15 #530 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #531 [Verbose] >
00:00:15 #532 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #533 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #534 [Verbose] > │ ## last │
00:00:15 #535 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #536 [Verbose] >
00:00:15 #537 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #538 [Verbose] > inl last (ar : a _ _) =
00:00:15 #539 [Verbose] > inl len = length ar
00:00:15 #540 [Verbose] > if var_is ar || len > 0
00:00:15 #541 [Verbose] > then index ar (len - 1)
00:00:15 #542 [Verbose] > else error_type "The length of the array should be greater than 0."
00:00:15 #543 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1284-8492-88753b68173c\main.spi
00:00:15 #544 [Verbose] >
00:00:15 #545 [Verbose] > ╭─[ 199.17ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #546 [Verbose] > │ () │
00:00:15 #547 [Verbose] > │ │
00:00:15 #548 [Verbose] > │ │
00:00:15 #549 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #550 [Verbose] >
00:00:15 #551 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #552 [Verbose] > // // test
00:00:15 #553 [Verbose] >
00:00:15 #554 [Verbose] > am.init 10i32 id
00:00:15 #555 [Verbose] > |> last
00:00:15 #556 [Verbose] > |> _assert_eq 9
00:00:15 #557 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1305-0511-031cebb20ae2\main.spi
00:00:15 #558 [Verbose] >
00:00:15 #559 [Verbose] > ╭─[ 246.00ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #560 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:15 #561 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:15 #562 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:15 #563 [Verbose] > │ let v2 : bool = v1 < 10 │
00:00:15 #564 [Verbose] > │ v2 │
00:00:15 #565 [Verbose] > │ and method2 (v0 : bool) : bool = │
00:00:15 #566 [Verbose] > │ v0 │
00:00:15 #567 [Verbose] > │ and method0 () : unit = │
00:00:15 #568 [Verbose] > │ let v0 : (int32 []) = Array.zeroCreate<int32> (10) │
00:00:15 #569 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:15 #570 [Verbose] > │ while method1(v1) do │
00:00:15 #571 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:15 #572 [Verbose] > │ v0.[int v3] <- v3 │
00:00:15 #573 [Verbose] > │ let v4 : int32 = v3 + 1 │
00:00:15 #574 [Verbose] > │ v1.l0 <- v4 │
00:00:15 #575 [Verbose] > │ () │
00:00:15 #576 [Verbose] > │ let v5 : int32 = v0.Length │
00:00:15 #577 [Verbose] > │ let v6 : int32 = v5 - 1 │
00:00:15 #578 [Verbose] > │ let v7 : int32 = v0.[int v6] │
00:00:15 #579 [Verbose] > │ let v8 : bool = v7 = 9 │
00:00:15 #580 [Verbose] > │ let v10 : bool = │
00:00:15 #581 [Verbose] > │ if v8 then │
00:00:15 #582 [Verbose] > │ true │
00:00:15 #583 [Verbose] > │ else │
00:00:15 #584 [Verbose] > │ method2(v8) │
00:00:15 #585 [Verbose] > │ let v11 : string = $"__expect / actual: %A{v7} / expected: %A{9}" │
00:00:15 #586 [Verbose] > │ let v12 : bool = v10 = false │
00:00:15 #587 [Verbose] > │ if v12 then │
00:00:15 #588 [Verbose] > │ failwith<unit> v11 │
00:00:15 #589 [Verbose] > │ method0() │
00:00:15 #590 [Verbose] > │ │
00:00:15 #591 [Verbose] > │ │
00:00:15 #592 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #593 [Verbose] >
00:00:15 #594 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #595 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #596 [Verbose] > │ ## try_pick │
00:00:15 #597 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #598 [Verbose] >
00:00:15 #599 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #600 [Verbose] > inl try_pick forall t u. (fn : t -> option u) (array : a _ t) : option u =
00:00:15 #601 [Verbose] > (array, None)
00:00:15 #602 [Verbose] > ||> am.foldBack fun x acc =>
00:00:15 #603 [Verbose] > match acc with
00:00:15 #604 [Verbose] > | Some _ => acc
00:00:15 #605 [Verbose] > | None => x |> fn
00:00:15 #606 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1332-3250-35504552bcdd\main.spi
00:00:15 #607 [Verbose] >
00:00:15 #608 [Verbose] > ╭─[ 209.67ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #609 [Verbose] > │ () │
00:00:15 #610 [Verbose] > │ │
00:00:15 #611 [Verbose] > │ │
00:00:15 #612 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #613 [Verbose] >
00:00:15 #614 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #615 [Verbose] > // // test
00:00:15 #616 [Verbose] >
00:00:15 #617 [Verbose] > am.init 10i32 id
00:00:15 #618 [Verbose] > |> try_pick (fun x => if x = 5i32 then Some x else None)
00:00:15 #619 [Verbose] > |> _assert_eq (Some 5i32)
00:00:15 #620 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1353-5342-5d72044a8745\main.spi
00:00:16 #621 [Verbose] >
00:00:16 #622 [Verbose] > ╭─[ 304.08ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #623 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:16 #624 [Verbose] > │ and [<Struct>] US0 = │
00:00:16 #625 [Verbose] > │ | US0_0 │
00:00:16 #626 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:16 #627 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : US0} │
00:00:16 #628 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:16 #629 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:16 #630 [Verbose] > │ let v2 : bool = v1 < 10 │
00:00:16 #631 [Verbose] > │ v2 │
00:00:16 #632 [Verbose] > │ and method2 (v0 : int32, v1 : Mut1) : bool = │
00:00:16 #633 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:16 #634 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:16 #635 [Verbose] > │ v3 │
00:00:16 #636 [Verbose] > │ and method3 (v0 : bool) : bool = │
00:00:16 #637 [Verbose] > │ v0 │
00:00:16 #638 [Verbose] > │ and method0 () : unit = │
00:00:16 #639 [Verbose] > │ let v0 : (int32 []) = Array.zeroCreate<int32> (10) │
00:00:16 #640 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:16 #641 [Verbose] > │ while method1(v1) do │
00:00:16 #642 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:16 #643 [Verbose] > │ v0.[int v3] <- v3 │
00:00:16 #644 [Verbose] > │ let v4 : int32 = v3 + 1 │
00:00:16 #645 [Verbose] > │ v1.l0 <- v4 │
00:00:16 #646 [Verbose] > │ () │
00:00:16 #647 [Verbose] > │ let v5 : int32 = v0.Length │
00:00:16 #648 [Verbose] > │ let v6 : US0 = US0_0 │
00:00:16 #649 [Verbose] > │ let v7 : Mut1 = {l0 = 0; l1 = v6} : Mut1 │
00:00:16 #650 [Verbose] > │ while method2(v5, v7) do │
00:00:16 #651 [Verbose] > │ let v9 : int32 = v7.l0 │
00:00:16 #652 [Verbose] > │ let v10 : int32 = -v9 │
00:00:16 #653 [Verbose] > │ let v11 : int32 = v10 + v5 │
00:00:16 #654 [Verbose] > │ let v12 : int32 = v11 - 1 │
00:00:16 #655 [Verbose] > │ let v13 : US0 = v7.l1 │
00:00:16 #656 [Verbose] > │ let v14 : int32 = v0.[int v12] │
00:00:16 #657 [Verbose] > │ let v21 : US0 = │
00:00:16 #658 [Verbose] > │ match v13 with │
00:00:16 #659 [Verbose] > │ | US0_0 -> (* None *) │
00:00:16 #660 [Verbose] > │ let v16 : bool = v14 = 5 │
00:00:16 #661 [Verbose] > │ if v16 then │
00:00:16 #662 [Verbose] > │ US0_1(v14) │
00:00:16 #663 [Verbose] > │ else │
00:00:16 #664 [Verbose] > │ US0_0 │
00:00:16 #665 [Verbose] > │ | US0_1(v15) -> (* Some *) │
00:00:16 #666 [Verbose] > │ v13 │
00:00:16 #667 [Verbose] > │ let v22 : int32 = v9 + 1 │
00:00:16 #668 [Verbose] > │ v7.l0 <- v22 │
00:00:16 #669 [Verbose] > │ v7.l1 <- v21 │
00:00:16 #670 [Verbose] > │ () │
00:00:16 #671 [Verbose] > │ let v23 : US0 = v7.l1 │
00:00:16 #672 [Verbose] > │ let v27 : bool = │
00:00:16 #673 [Verbose] > │ match v23 with │
00:00:16 #674 [Verbose] > │ | US0_1(v25) -> (* Some *) │
00:00:16 #675 [Verbose] > │ let v26 : bool = v25 = 5 │
00:00:16 #676 [Verbose] > │ v26 │
00:00:16 #677 [Verbose] > │ | _ -> │
00:00:16 #678 [Verbose] > │ false │
00:00:16 #679 [Verbose] > │ let v29 : bool = │
00:00:16 #680 [Verbose] > │ if v27 then │
00:00:16 #681 [Verbose] > │ true │
00:00:16 #682 [Verbose] > │ else │
00:00:16 #683 [Verbose] > │ method3(v27) │
00:00:16 #684 [Verbose] > │ let v30 : US0 = US0_1(5) │
00:00:16 #685 [Verbose] > │ let v31 : string = $"__expect / actual: %A{v23} / expected: %A{v30}" │
00:00:16 #686 [Verbose] > │ let v32 : bool = v29 = false │
00:00:16 #687 [Verbose] > │ if v32 then │
00:00:16 #688 [Verbose] > │ failwith<unit> v31 │
00:00:16 #689 [Verbose] > │ method0() │
00:00:16 #690 [Verbose] > │ │
00:00:16 #691 [Verbose] > │ │
00:00:16 #692 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #693 [Verbose] >
00:00:16 #694 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #695 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #696 [Verbose] > │ ## indexed' │
00:00:16 #697 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #698 [Verbose] >
00:00:16 #699 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #700 [Verbose] > inl indexed' forall t dim {int; number} dim' {int; number} u {number}. (ar : a
00:00:16 #701 [Verbose] > dim t) : a dim' (u * t) =
00:00:16 #702 [Verbose] > ((0, a ;[[]]), ar)
00:00:16 #703 [Verbose] > ||> am.fold fun (i, acc) x =>
00:00:16 #704 [Verbose] > i + 1, acc /@ a ;[[i, x]]
00:00:16 #705 [Verbose] > |> snd
00:00:16 #706 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1387-8706-86a20933d0ba\main.spi
00:00:16 #707 [Verbose] >
00:00:16 #708 [Verbose] > ╭─[ 194.95ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #709 [Verbose] > │ () │
00:00:16 #710 [Verbose] > │ │
00:00:16 #711 [Verbose] > │ │
00:00:16 #712 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #713 [Verbose] >
00:00:16 #714 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #715 [Verbose] > // // test
00:00:16 #716 [Verbose] >
00:00:16 #717 [Verbose] > am.init 3i32 ((*) 2)
00:00:16 #718 [Verbose] > |> indexed'
00:00:16 #719 [Verbose] > |> _assert_eq (a ;[[0i32, 0; 1, 2; 2, 4]] : a i32 _)
00:00:16 #720 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1406-0678-0537cabf08c1\main.spi
00:00:16 #721 [Verbose] >
00:00:16 #722 [Verbose] > ╭─[ 366.45ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #723 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:16 #724 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : int32; mutable l2 : (struct │
00:00:16 #725 [Verbose] > │ (int32 * int32) [])} │
00:00:16 #726 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:16 #727 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:16 #728 [Verbose] > │ let v2 : bool = v1 < 3 │
00:00:16 #729 [Verbose] > │ v2 │
00:00:16 #730 [Verbose] > │ and method2 (v0 : (struct (int32 * int32) [])) : (struct (int32 * int32) []) │
00:00:16 #731 [Verbose] > │ = │
00:00:16 #732 [Verbose] > │ v0 │
00:00:16 #733 [Verbose] > │ and method3 (v0 : int32, v1 : Mut1) : bool = │
00:00:16 #734 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:16 #735 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:16 #736 [Verbose] > │ v3 │
00:00:16 #737 [Verbose] > │ and method4 (v0 : int32, v1 : Mut0) : bool = │
00:00:16 #738 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:16 #739 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:16 #740 [Verbose] > │ v3 │
00:00:16 #741 [Verbose] > │ and method5 (v0 : (struct (int32 * int32) []), v1 : (struct (int32 * int32) │
00:00:16 #742 [Verbose] > │ []), v2 : int32) : bool = │
00:00:16 #743 [Verbose] > │ let v3 : int32 = v0.Length │
00:00:16 #744 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:16 #745 [Verbose] > │ if v4 then │
00:00:16 #746 [Verbose] > │ let struct (v5 : int32, v6 : int32) = v0.[int v2] │
00:00:16 #747 [Verbose] > │ let struct (v7 : int32, v8 : int32) = v1.[int v2] │
00:00:16 #748 [Verbose] > │ let v9 : bool = v5 = v7 │
00:00:16 #749 [Verbose] > │ let v11 : bool = │
00:00:16 #750 [Verbose] > │ if v9 then │
00:00:16 #751 [Verbose] > │ let v10 : bool = v6 = v8 │
00:00:16 #752 [Verbose] > │ v10 │
00:00:16 #753 [Verbose] > │ else │
00:00:16 #754 [Verbose] > │ false │
00:00:16 #755 [Verbose] > │ if v11 then │
00:00:16 #756 [Verbose] > │ let v12 : int32 = v2 + 1 │
00:00:16 #757 [Verbose] > │ method5(v0, v1, v12) │
00:00:16 #758 [Verbose] > │ else │
00:00:16 #759 [Verbose] > │ false │
00:00:16 #760 [Verbose] > │ else │
00:00:16 #761 [Verbose] > │ true │
00:00:16 #762 [Verbose] > │ and method6 (v0 : bool) : bool = │
00:00:16 #763 [Verbose] > │ v0 │
00:00:16 #764 [Verbose] > │ and method0 () : unit = │
00:00:16 #765 [Verbose] > │ let v0 : (int32 []) = Array.zeroCreate<int32> (3) │
00:00:16 #766 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:16 #767 [Verbose] > │ while method1(v1) do │
00:00:16 #768 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:16 #769 [Verbose] > │ let v4 : int32 = 2 * v3 │
00:00:16 #770 [Verbose] > │ v0.[int v3] <- v4 │
00:00:16 #771 [Verbose] > │ let v5 : int32 = v3 + 1 │
00:00:16 #772 [Verbose] > │ v1.l0 <- v5 │
00:00:16 #773 [Verbose] > │ () │
00:00:16 #774 [Verbose] > │ let v6 : (struct (int32 * int32) []) = [||] │
00:00:16 #775 [Verbose] > │ let v7 : (struct (int32 * int32) []) = method2(v6) │
00:00:16 #776 [Verbose] > │ let v8 : int32 = v0.Length │
00:00:16 #777 [Verbose] > │ let v9 : Mut1 = {l0 = 0; l1 = 0; l2 = v7} : Mut1 │
00:00:16 #778 [Verbose] > │ while method3(v8, v9) do │
00:00:16 #779 [Verbose] > │ let v11 : int32 = v9.l0 │
00:00:16 #780 [Verbose] > │ let struct (v12 : int32, v13 : (struct (int32 * int32) [])) = v9.l1, │
00:00:16 #781 [Verbose] > │ v9.l2 │
00:00:16 #782 [Verbose] > │ let v14 : int32 = v0.[int v11] │
00:00:16 #783 [Verbose] > │ let v15 : int32 = v12 + 1 │
00:00:16 #784 [Verbose] > │ let v16 : (struct (int32 * int32) []) = [|struct (v12, v14)|] │
00:00:16 #785 [Verbose] > │ let v17 : (struct (int32 * int32) []) = method2(v16) │
00:00:16 #786 [Verbose] > │ let v18 : int32 = v13.Length │
00:00:16 #787 [Verbose] > │ let v19 : int32 = v17.Length │
00:00:16 #788 [Verbose] > │ let v20 : int32 = v18 + v19 │
00:00:16 #789 [Verbose] > │ let v21 : (struct (int32 * int32) []) = Array.zeroCreate<struct │
00:00:16 #790 [Verbose] > │ (int32 * int32)> (v20) │
00:00:16 #791 [Verbose] > │ let v22 : Mut0 = {l0 = 0} : Mut0 │
00:00:16 #792 [Verbose] > │ while method4(v20, v22) do │
00:00:16 #793 [Verbose] > │ let v24 : int32 = v22.l0 │
00:00:16 #794 [Verbose] > │ let v25 : bool = v24 < v18 │
00:00:16 #795 [Verbose] > │ let struct (v31 : int32, v32 : int32) = │
00:00:16 #796 [Verbose] > │ if v25 then │
00:00:16 #797 [Verbose] > │ let struct (v26 : int32, v27 : int32) = v13.[int v24] │
00:00:16 #798 [Verbose] > │ struct (v26, v27) │
00:00:16 #799 [Verbose] > │ else │
00:00:16 #800 [Verbose] > │ let v28 : int32 = v24 - v18 │
00:00:16 #801 [Verbose] > │ let struct (v29 : int32, v30 : int32) = v17.[int v28] │
00:00:16 #802 [Verbose] > │ struct (v29, v30) │
00:00:16 #803 [Verbose] > │ v21.[int v24] <- struct (v31, v32) │
00:00:16 #804 [Verbose] > │ let v33 : int32 = v24 + 1 │
00:00:16 #805 [Verbose] > │ v22.l0 <- v33 │
00:00:16 #806 [Verbose] > │ () │
00:00:16 #807 [Verbose] > │ let v34 : int32 = v11 + 1 │
00:00:16 #808 [Verbose] > │ v9.l0 <- v34 │
00:00:16 #809 [Verbose] > │ v9.l1 <- v15 │
00:00:16 #810 [Verbose] > │ v9.l2 <- v21 │
00:00:16 #811 [Verbose] > │ () │
00:00:16 #812 [Verbose] > │ let struct (v35 : int32, v36 : (struct (int32 * int32) [])) = v9.l1, │
00:00:16 #813 [Verbose] > │ v9.l2 │
00:00:16 #814 [Verbose] > │ let v37 : (struct (int32 * int32) []) = [|struct (0, 0); struct (1, 2); │
00:00:16 #815 [Verbose] > │ struct (2, 4)|] │
00:00:16 #816 [Verbose] > │ let v38 : (struct (int32 * int32) []) = method2(v37) │
00:00:16 #817 [Verbose] > │ let v39 : int32 = v36.Length │
00:00:16 #818 [Verbose] > │ let v40 : int32 = v38.Length │
00:00:16 #819 [Verbose] > │ let v41 : bool = v39 = v40 │
00:00:16 #820 [Verbose] > │ let v42 : bool = v41 <> true │
00:00:16 #821 [Verbose] > │ let v45 : bool = │
00:00:16 #822 [Verbose] > │ if v42 then │
00:00:16 #823 [Verbose] > │ false │
00:00:16 #824 [Verbose] > │ else │
00:00:16 #825 [Verbose] > │ let v43 : int32 = 0 │
00:00:16 #826 [Verbose] > │ method5(v36, v38, v43) │
00:00:16 #827 [Verbose] > │ let v47 : bool = │
00:00:16 #828 [Verbose] > │ if v45 then │
00:00:16 #829 [Verbose] > │ true │
00:00:16 #830 [Verbose] > │ else │
00:00:16 #831 [Verbose] > │ method6(v45) │
00:00:16 #832 [Verbose] > │ let v48 : string = $"__expect / actual: %A{v36} / expected: %A{v38}" │
00:00:16 #833 [Verbose] > │ let v49 : bool = v47 = false │
00:00:16 #834 [Verbose] > │ if v49 then │
00:00:16 #835 [Verbose] > │ failwith<unit> v48 │
00:00:16 #836 [Verbose] > │ method0() │
00:00:16 #837 [Verbose] > │ │
00:00:16 #838 [Verbose] > │ │
00:00:16 #839 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #840 [Verbose] >
00:00:16 #841 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #842 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #843 [Verbose] > │ ## map_base │
00:00:16 #844 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #845 [Verbose] >
00:00:16 #846 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #847 [Verbose] > inl map_base forall t u. (fn : t -> u) (x : array_base t) : array_base u =
00:00:16 #848 [Verbose] > a x
00:00:16 #849 [Verbose] > |> am.map fn
00:00:16 #850 [Verbose] > |> fun (a x : _ i64 _) => x
00:00:16 #851 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1448-4815-42815fa5b38f\main.spi
00:00:16 #852 [Verbose] >
00:00:16 #853 [Verbose] > ╭─[ 208.67ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #854 [Verbose] > │ () │
00:00:16 #855 [Verbose] > │ │
00:00:16 #856 [Verbose] > │ │
00:00:16 #857 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #858 [Verbose] >
00:00:16 #859 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #860 [Verbose] > inl average forall el {number}. (array : a _ el) : el =
00:00:16 #861 [Verbose] > $"!array |> Array.average"
00:00:16 #862 [Verbose] >
00:00:16 #863 [Verbose] > inl length forall dim el {number}. (array : a dim el) : dim =
00:00:16 #864 [Verbose] > $"!array |> Array.length"
00:00:16 #865 [Verbose] >
00:00:16 #866 [Verbose] > inl parallel_map forall dim el el'. (fn : el -> el') (array : a dim el) : a dim
00:00:16 #867 [Verbose] > el' =
00:00:16 #868 [Verbose] > $"!array |> Array.Parallel.map !fn"
00:00:16 #869 [Verbose] >
00:00:16 #870 [Verbose] > inl sort_by forall dim el. (fn : el -> _) (array : a dim el) : a dim el =
00:00:16 #871 [Verbose] > $"!array |> Array.sortBy !fn"
00:00:16 #872 [Verbose] >
00:00:16 #873 [Verbose] > inl sort_descending forall dim el. (array : a dim el) : a dim el =
00:00:16 #874 [Verbose] > $"!array |> Array.sortDescending"
00:00:16 #875 [Verbose] >
00:00:16 #876 [Verbose] > inl transpose forall dim el. (array : a dim (a dim el)) : a dim (a dim el) =
00:00:16 #877 [Verbose] > $"!array |> Array.transpose"
00:00:16 #878 [Verbose] >
00:00:16 #879 [Verbose] > inl try_item forall dim el. (i : i32) (array : a dim el) : option el =
00:00:16 #880 [Verbose] > $"!array |> Array.tryItem !i" |> optionm'.unbox
00:00:17 #881 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1469-6917-6eedf3c50fbe\main.spi
00:00:17 #882 [Verbose] >
00:00:17 #883 [Verbose] > ╭─[ 233.45ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #884 [Verbose] > │ () │
00:00:17 #885 [Verbose] > │ │
00:00:17 #886 [Verbose] > │ │
00:00:17 #887 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #888 [Verbose] >
00:00:17 #889 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 #890 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 #891 [Verbose] > │ ## indexed │
00:00:17 #892 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #893 [Verbose] >
00:00:17 #894 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #895 [Verbose] > inl indexed (array : a _ _) =
00:00:17 #896 [Verbose] > (([[]], 0), array)
00:00:17 #897 [Verbose] > ||> am.fold fun (acc, i) x =>
00:00:17 #898 [Verbose] > (i, x) :: acc, i + 1
00:00:17 #899 [Verbose] > |> fst
00:00:17 #900 [Verbose] > |> listm.rev
00:00:17 #901 [Verbose] > |> listm.toArray
00:00:17 #902 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1493-9367-904519cbbe65\main.spi
00:00:17 #903 [Verbose] >
00:00:17 #904 [Verbose] > ╭─[ 211.47ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #905 [Verbose] > │ () │
00:00:17 #906 [Verbose] > │ │
00:00:17 #907 [Verbose] > │ │
00:00:17 #908 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #909 [Verbose] >
00:00:17 #910 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #911 [Verbose] > // // test
00:00:17 #912 [Verbose] >
00:00:17 #913 [Verbose] > am.init 3i32 ((*) 2)
00:00:17 #914 [Verbose] > |> indexed
00:00:17 #915 [Verbose] > |> _assert_eq (a ;[[0i32, 0; 1, 2; 2, 4]] : a i32 _)
00:00:17 #916 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1514-1450-19a64323b6ea\main.spi
00:00:17 #917 [Verbose] >
00:00:17 #918 [Verbose] > ╭─[ 341.96ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #919 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:17 #920 [Verbose] > │ and UH0 = │
00:00:17 #921 [Verbose] > │ | UH0_0 of int32 * int32 * UH0 │
00:00:17 #922 [Verbose] > │ | UH0_1 │
00:00:17 #923 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : UH0; mutable l2 : int32} │
00:00:17 #924 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:17 #925 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:17 #926 [Verbose] > │ let v2 : bool = v1 < 3 │
00:00:17 #927 [Verbose] > │ v2 │
00:00:17 #928 [Verbose] > │ and method2 (v0 : int32, v1 : Mut1) : bool = │
00:00:17 #929 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:17 #930 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:17 #931 [Verbose] > │ v3 │
00:00:17 #932 [Verbose] > │ and method3 (v0 : UH0, v1 : UH0) : UH0 = │
00:00:17 #933 [Verbose] > │ match v0 with │
00:00:17 #934 [Verbose] > │ | UH0_0(v2, v3, v4) -> (* Cons *) │
00:00:17 #935 [Verbose] > │ let v5 : UH0 = UH0_0(v2, v3, v1) │
00:00:17 #936 [Verbose] > │ method3(v4, v5) │
00:00:17 #937 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:17 #938 [Verbose] > │ v1 │
00:00:17 #939 [Verbose] > │ and method5 (v0 : UH0, v1 : int32) : int32 = │
00:00:17 #940 [Verbose] > │ match v0 with │
00:00:17 #941 [Verbose] > │ | UH0_0(v2, v3, v4) -> (* Cons *) │
00:00:17 #942 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:00:17 #943 [Verbose] > │ method5(v4, v5) │
00:00:17 #944 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:17 #945 [Verbose] > │ v1 │
00:00:17 #946 [Verbose] > │ and method6 (v0 : (struct (int32 * int32) []), v1 : UH0, v2 : int32) : int32 │
00:00:17 #947 [Verbose] > │ = │
00:00:17 #948 [Verbose] > │ match v1 with │
00:00:17 #949 [Verbose] > │ | UH0_0(v3, v4, v5) -> (* Cons *) │
00:00:17 #950 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:17 #951 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:00:17 #952 [Verbose] > │ method6(v0, v5, v6) │
00:00:17 #953 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:17 #954 [Verbose] > │ v2 │
00:00:17 #955 [Verbose] > │ and method4 (v0 : UH0) : (struct (int32 * int32) []) = │
00:00:17 #956 [Verbose] > │ let v1 : int32 = 0 │
00:00:17 #957 [Verbose] > │ let v2 : int32 = method5(v0, v1) │
00:00:17 #958 [Verbose] > │ let v3 : (struct (int32 * int32) []) = Array.zeroCreate<struct (int32 * │
00:00:17 #959 [Verbose] > │ int32)> (v2) │
00:00:17 #960 [Verbose] > │ let v4 : int32 = 0 │
00:00:17 #961 [Verbose] > │ let v5 : int32 = method6(v3, v0, v4) │
00:00:17 #962 [Verbose] > │ v3 │
00:00:17 #963 [Verbose] > │ and method7 (v0 : (struct (int32 * int32) [])) : (struct (int32 * int32) []) │
00:00:17 #964 [Verbose] > │ = │
00:00:17 #965 [Verbose] > │ v0 │
00:00:17 #966 [Verbose] > │ and method8 (v0 : (struct (int32 * int32) []), v1 : (struct (int32 * int32) │
00:00:17 #967 [Verbose] > │ []), v2 : int32) : bool = │
00:00:17 #968 [Verbose] > │ let v3 : int32 = v0.Length │
00:00:17 #969 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:17 #970 [Verbose] > │ if v4 then │
00:00:17 #971 [Verbose] > │ let struct (v5 : int32, v6 : int32) = v0.[int v2] │
00:00:17 #972 [Verbose] > │ let struct (v7 : int32, v8 : int32) = v1.[int v2] │
00:00:17 #973 [Verbose] > │ let v9 : bool = v5 = v7 │
00:00:17 #974 [Verbose] > │ let v11 : bool = │
00:00:17 #975 [Verbose] > │ if v9 then │
00:00:17 #976 [Verbose] > │ let v10 : bool = v6 = v8 │
00:00:17 #977 [Verbose] > │ v10 │
00:00:17 #978 [Verbose] > │ else │
00:00:17 #979 [Verbose] > │ false │
00:00:17 #980 [Verbose] > │ if v11 then │
00:00:17 #981 [Verbose] > │ let v12 : int32 = v2 + 1 │
00:00:17 #982 [Verbose] > │ method8(v0, v1, v12) │
00:00:17 #983 [Verbose] > │ else │
00:00:17 #984 [Verbose] > │ false │
00:00:17 #985 [Verbose] > │ else │
00:00:17 #986 [Verbose] > │ true │
00:00:17 #987 [Verbose] > │ and method9 (v0 : bool) : bool = │
00:00:17 #988 [Verbose] > │ v0 │
00:00:17 #989 [Verbose] > │ and method0 () : unit = │
00:00:17 #990 [Verbose] > │ let v0 : (int32 []) = Array.zeroCreate<int32> (3) │
00:00:17 #991 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:17 #992 [Verbose] > │ while method1(v1) do │
00:00:17 #993 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:17 #994 [Verbose] > │ let v4 : int32 = 2 * v3 │
00:00:17 #995 [Verbose] > │ v0.[int v3] <- v4 │
00:00:17 #996 [Verbose] > │ let v5 : int32 = v3 + 1 │
00:00:17 #997 [Verbose] > │ v1.l0 <- v5 │
00:00:17 #998 [Verbose] > │ () │
00:00:17 #999 [Verbose] > │ let v6 : int32 = v0.Length │
00:00:17 #1000 [Verbose] > │ let v7 : UH0 = UH0_1 │
00:00:17 #1001 [Verbose] > │ let v8 : Mut1 = {l0 = 0; l1 = v7; l2 = 0} : Mut1 │
00:00:17 #1002 [Verbose] > │ while method2(v6, v8) do │
00:00:17 #1003 [Verbose] > │ let v10 : int32 = v8.l0 │
00:00:17 #1004 [Verbose] > │ let struct (v11 : UH0, v12 : int32) = v8.l1, v8.l2 │
00:00:17 #1005 [Verbose] > │ let v13 : int32 = v0.[int v10] │
00:00:17 #1006 [Verbose] > │ let v14 : int32 = v12 + 1 │
00:00:17 #1007 [Verbose] > │ let v15 : int32 = v10 + 1 │
00:00:17 #1008 [Verbose] > │ let v16 : UH0 = UH0_0(v12, v13, v11) │
00:00:17 #1009 [Verbose] > │ v8.l0 <- v15 │
00:00:17 #1010 [Verbose] > │ v8.l1 <- v16 │
00:00:17 #1011 [Verbose] > │ v8.l2 <- v14 │
00:00:17 #1012 [Verbose] > │ () │
00:00:17 #1013 [Verbose] > │ let struct (v17 : UH0, v18 : int32) = v8.l1, v8.l2 │
00:00:17 #1014 [Verbose] > │ let v19 : UH0 = UH0_1 │
00:00:17 #1015 [Verbose] > │ let v20 : UH0 = method3(v17, v19) │
00:00:17 #1016 [Verbose] > │ let v21 : (struct (int32 * int32) []) = method4(v20) │
00:00:17 #1017 [Verbose] > │ let v22 : (struct (int32 * int32) []) = [|struct (0, 0); struct (1, 2); │
00:00:17 #1018 [Verbose] > │ struct (2, 4)|] │
00:00:17 #1019 [Verbose] > │ let v23 : (struct (int32 * int32) []) = method7(v22) │
00:00:17 #1020 [Verbose] > │ let v24 : int32 = v21.Length │
00:00:17 #1021 [Verbose] > │ let v25 : int32 = v23.Length │
00:00:17 #1022 [Verbose] > │ let v26 : bool = v24 = v25 │
00:00:17 #1023 [Verbose] > │ let v27 : bool = v26 <> true │
00:00:17 #1024 [Verbose] > │ let v30 : bool = │
00:00:17 #1025 [Verbose] > │ if v27 then │
00:00:17 #1026 [Verbose] > │ false │
00:00:17 #1027 [Verbose] > │ else │
00:00:17 #1028 [Verbose] > │ let v28 : int32 = 0 │
00:00:17 #1029 [Verbose] > │ method8(v21, v23, v28) │
00:00:17 #1030 [Verbose] > │ let v32 : bool = │
00:00:17 #1031 [Verbose] > │ if v30 then │
00:00:17 #1032 [Verbose] > │ true │
00:00:17 #1033 [Verbose] > │ else │
00:00:17 #1034 [Verbose] > │ method9(v30) │
00:00:17 #1035 [Verbose] > │ let v33 : string = $"__expect / actual: %A{v21} / expected: %A{v23}" │
00:00:17 #1036 [Verbose] > │ let v34 : bool = v32 = false │
00:00:17 #1037 [Verbose] > │ if v34 then │
00:00:17 #1038 [Verbose] > │ failwith<unit> v33 │
00:00:17 #1039 [Verbose] > │ method0() │
00:00:17 #1040 [Verbose] > │ │
00:00:17 #1041 [Verbose] > │ │
00:00:17 #1042 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #1043 [Verbose] >
00:00:17 #1044 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 #1045 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 #1046 [Verbose] > │ ## from_vec │
00:00:17 #1047 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #1048 [Verbose] >
00:00:17 #1049 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #1050 [Verbose] > inl from_vec forall dim el. (vec : vec el) : a dim el =
00:00:17 #1051 [Verbose] > inl vec = join vec
00:00:17 #1052 [Verbose] > !\($'"fable_library_rust::NativeArray_::array_from(!vec)"')
00:00:17 #1053 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1554-5464-5a6ff0785466\main.spi
00:00:17 #1054 [Verbose] >
00:00:17 #1055 [Verbose] > ╭─[ 210.08ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #1056 [Verbose] > │ () │
00:00:17 #1057 [Verbose] > │ │
00:00:17 #1058 [Verbose] > │ │
00:00:17 #1059 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #1060 [Verbose] >
00:00:17 #1061 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 #1062 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 #1063 [Verbose] > │ ## to_vec │
00:00:17 #1064 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #1065 [Verbose] >
00:00:17 #1066 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #1067 [Verbose] > inl to_vec forall t. (ar : array_base t) : vec t =
00:00:17 #1068 [Verbose] > inl ar = join ar
00:00:17 #1069 [Verbose] > !\($'"!ar.to_vec()"')
00:00:18 #1070 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1576-7624-71c5fd713c45\main.spi
00:00:18 #1071 [Verbose] >
00:00:18 #1072 [Verbose] > ╭─[ 617.42ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #1073 [Verbose] > │ () │
00:00:18 #1074 [Verbose] > │ │
00:00:18 #1075 [Verbose] > │ │
00:00:18 #1076 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #1077 [Verbose] >
00:00:18 #1078 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 #1079 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 #1080 [Verbose] > │ ## map_vec │
00:00:18 #1081 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #1082 [Verbose] >
00:00:18 #1083 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #1084 [Verbose] > inl map_vec forall dim t u. (fn : t -> u) (ar : a dim t) : a dim u =
00:00:18 #1085 [Verbose] > inl fn = join fn
00:00:18 #1086 [Verbose] > inl (a ar) = ar
00:00:18 #1087 [Verbose] > inl ar = ar |> to_vec
00:00:18 #1088 [Verbose] > !\($'"!ar.iter().map(|x| !fn(x.clone())).collect()"')
00:00:18 #1089 [Verbose] > |> from_vec
00:00:18 #1090 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1638-3849-3ae1b2f0a078\main.spi
00:00:18 #1091 [Verbose] >
00:00:18 #1092 [Verbose] > ╭─[ 223.13ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #1093 [Verbose] > │ () │
00:00:18 #1094 [Verbose] > │ │
00:00:18 #1095 [Verbose] > │ │
00:00:18 #1096 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #1097 [Verbose] >
00:00:18 #1098 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 #1099 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 #1100 [Verbose] > │ ## mapi_vec │
00:00:18 #1101 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #1102 [Verbose] >
00:00:18 #1103 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #1104 [Verbose] > inl mapi_vec forall dim t u. (fn : dim -> t -> u) (ar : a dim t) : a dim u =
00:00:18 #1105 [Verbose] > inl fn = join fn
00:00:18 #1106 [Verbose] > inl (a ar) = ar
00:00:18 #1107 [Verbose] > inl ar = ar |> to_vec
00:00:18 #1108 [Verbose] > !\($'"!ar.iter().enumerate().map(|(i, x)|
00:00:18 #1109 [Verbose] > !fn(i.try_into().unwrap())(x.clone())).collect()"')
00:00:18 #1110 [Verbose] > |> from_vec
00:00:18 #1111 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1662-6251-60d27a03af05\main.spi
00:00:19 #1112 [Verbose] >
00:00:19 #1113 [Verbose] > ╭─[ 190.21ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #1114 [Verbose] > │ () │
00:00:19 #1115 [Verbose] > │ │
00:00:19 #1116 [Verbose] > │ │
00:00:19 #1117 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1118 [Verbose] >
00:00:19 #1119 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 #1120 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 #1121 [Verbose] > │ ## filter_vec │
00:00:19 #1122 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1123 [Verbose] >
00:00:19 #1124 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #1125 [Verbose] > inl filter_vec forall dim t. (fn : t -> bool) (ar : a dim t) : a dim t =
00:00:19 #1126 [Verbose] > inl fn = join fn
00:00:19 #1127 [Verbose] > inl (a ar) = ar
00:00:19 #1128 [Verbose] > inl ar = ar |> to_vec
00:00:19 #1129 [Verbose] > !\($'"!ar.into_iter().filter(|x| !fn(x.clone().clone())).collect()"')
00:00:19 #1130 [Verbose] > |> from_vec
00:00:19 #1131 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1681-8157-820055ca0032\main.spi
00:00:19 #1132 [Verbose] >
00:00:19 #1133 [Verbose] > ╭─[ 200.41ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #1134 [Verbose] > │ () │
00:00:19 #1135 [Verbose] > │ │
00:00:19 #1136 [Verbose] > │ │
00:00:19 #1137 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1138 [Verbose] >
00:00:19 #1139 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 #1140 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 #1141 [Verbose] > │ ## vec_push │
00:00:19 #1142 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1143 [Verbose] >
00:00:19 #1144 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #1145 [Verbose] > inl vec_push forall el. (el : el) (vec : vec el) : vec el =
00:00:19 #1146 [Verbose] > inl el = join el
00:00:19 #1147 [Verbose] > inl vec = join vec
00:00:19 #1148 [Verbose] > !\($'"let mut !vec = !vec"')
00:00:19 #1149 [Verbose] > // inl vec = vec |> rust.to_mut
00:00:19 #1150 [Verbose] > !\($'"!vec.push(!el)"')
00:00:19 #1151 [Verbose] > !\($'"!vec"')
00:00:19 #1152 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1702-0216-05ad987e2a43\main.spi
00:00:19 #1153 [Verbose] >
00:00:19 #1154 [Verbose] > ╭─[ 214.46ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #1155 [Verbose] > │ () │
00:00:19 #1156 [Verbose] > │ │
00:00:19 #1157 [Verbose] > │ │
00:00:19 #1158 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1159 [Verbose] >
00:00:19 #1160 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 #1161 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 #1162 [Verbose] > │ ## vec_reverse │
00:00:19 #1163 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1164 [Verbose] >
00:00:19 #1165 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #1166 [Verbose] > inl vec_reverse forall el. (vec : vec el) : vec el =
00:00:19 #1167 [Verbose] > inl vec = join vec
00:00:19 #1168 [Verbose] > !\($'"let mut !vec = !vec"')
00:00:19 #1169 [Verbose] > !\($'"!vec.reverse()"')
00:00:19 #1170 [Verbose] > !\($'"!vec"')
00:00:19 #1171 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1724-2412-2810c4ac7b2a\main.spi
00:00:19 #1172 [Verbose] >
00:00:19 #1173 [Verbose] > ╭─[ 212.42ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #1174 [Verbose] > │ () │
00:00:19 #1175 [Verbose] > │ │
00:00:19 #1176 [Verbose] > │ │
00:00:19 #1177 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1178 [Verbose] >
00:00:19 #1179 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 #1180 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 #1181 [Verbose] > │ ## vec_retain │
00:00:19 #1182 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1183 [Verbose] >
00:00:19 #1184 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #1185 [Verbose] > inl vec_retain forall el. (fn : el -> bool) (vec : vec el) : vec el =
00:00:19 #1186 [Verbose] > inl vec = join vec
00:00:19 #1187 [Verbose] > inl fn = join fn
00:00:19 #1188 [Verbose] > !\($'"let mut !vec = !vec"')
00:00:19 #1189 [Verbose] > // inl vec = vec |> rust.to_mut
00:00:19 #1190 [Verbose] > !\($'"!vec.retain(|x| !fn(x.clone()))"')
00:00:19 #1191 [Verbose] > !\($'"!vec"')
00:00:19 #1192 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1745-4590-432e7354a0e9\main.spi
00:00:19 #1193 [Verbose] >
00:00:19 #1194 [Verbose] > ╭─[ 194.92ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #1195 [Verbose] > │ () │
00:00:19 #1196 [Verbose] > │ │
00:00:19 #1197 [Verbose] > │ │
00:00:19 #1198 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1199 [Verbose] >
00:00:19 #1200 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 #1201 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 #1202 [Verbose] > │ ## vec_sort_by_key │
00:00:19 #1203 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1204 [Verbose] >
00:00:19 #1205 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #1206 [Verbose] > inl vec_sort_by_key forall el t. (fn : el -> t) (vec : vec el) : vec el =
00:00:19 #1207 [Verbose] > inl vec = join vec
00:00:19 #1208 [Verbose] > inl fn = join fn
00:00:19 #1209 [Verbose] > !\($'"let mut !vec = !vec"')
00:00:19 #1210 [Verbose] > // inl vec = vec |> rust.to_mut
00:00:19 #1211 [Verbose] > !\($'"!vec.sort_by_key(|x| !fn(x.clone()))"')
00:00:19 #1212 [Verbose] > !\($'"!vec"')
00:00:20 #1213 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1765-6589-6c9da34ec5b6\main.spi
00:00:20 #1214 [Verbose] >
00:00:20 #1215 [Verbose] > ╭─[ 217.93ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #1216 [Verbose] > │ () │
00:00:20 #1217 [Verbose] > │ │
00:00:20 #1218 [Verbose] > │ │
00:00:20 #1219 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #1220 [Verbose] >
00:00:20 #1221 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 #1222 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 #1223 [Verbose] > │ ## vec_extend │
00:00:20 #1224 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #1225 [Verbose] >
00:00:20 #1226 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #1227 [Verbose] > inl vec_extend forall el. (el : vec el) (vec : vec el) : vec el =
00:00:20 #1228 [Verbose] > inl el = join el
00:00:20 #1229 [Verbose] > inl vec = join vec
00:00:20 #1230 [Verbose] > !\($'"let mut !vec = !vec"')
00:00:20 #1231 [Verbose] > // inl vec = vec |> rust.to_mut
00:00:20 #1232 [Verbose] > !\($'"!vec.extend(!el)"')
00:00:20 #1233 [Verbose] > !\($'"!vec"')
00:00:20 #1234 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1788-8808-88d06b586aac\main.spi
00:00:20 #1235 [Verbose] >
00:00:20 #1236 [Verbose] > ╭─[ 194.49ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #1237 [Verbose] > │ () │
00:00:20 #1238 [Verbose] > │ │
00:00:20 #1239 [Verbose] > │ │
00:00:20 #1240 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #1241 [Verbose] >
00:00:20 #1242 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 #1243 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 #1244 [Verbose] > │ ## vec_collect │
00:00:20 #1245 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #1246 [Verbose] >
00:00:20 #1247 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #1248 [Verbose] > inl vec_collect fn vec =
00:00:20 #1249 [Verbose] > ((;[[]] |> to_vec), (vec |> from_vec : _ i32 _))
00:00:20 #1250 [Verbose] > ||> am.fold fun acc x =>
00:00:20 #1251 [Verbose] > acc |> vec_extend (fn x)
00:00:20 #1252 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1807-0792-0a3c6a81673a\main.spi
00:00:20 #1253 [Verbose] >
00:00:20 #1254 [Verbose] > ╭─[ 183.76ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #1255 [Verbose] > │ () │
00:00:20 #1256 [Verbose] > │ │
00:00:20 #1257 [Verbose] > │ │
00:00:20 #1258 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #1259 [Verbose] >
00:00:20 #1260 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 #1261 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 #1262 [Verbose] > │ ## vec_collect_option │
00:00:20 #1263 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #1264 [Verbose] >
00:00:20 #1265 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #1266 [Verbose] > inl vec_collect_option vec =
00:00:20 #1267 [Verbose] > ((;[[]] |> to_vec |> Ok), (vec |> from_vec : _ i32 _))
00:00:20 #1268 [Verbose] > ||> am.fold fun acc x =>
00:00:20 #1269 [Verbose] > x
00:00:20 #1270 [Verbose] > |> resultm.unbox
00:00:20 #1271 [Verbose] > |> fun x =>
00:00:20 #1272 [Verbose] > match acc, x |> resultm.map optionm'.unbox with
00:00:20 #1273 [Verbose] > | Ok acc, Ok (Some x) => acc |> vec_extend x |> Ok
00:00:20 #1274 [Verbose] > | _, Error error => error |> Error
00:00:20 #1275 [Verbose] > | _ => acc
00:00:20 #1276 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1826-2690-267a879b2687\main.spi
00:00:20 #1277 [Verbose] >
00:00:20 #1278 [Verbose] > ╭─[ 228.15ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #1279 [Verbose] > │ () │
00:00:20 #1280 [Verbose] > │ │
00:00:20 #1281 [Verbose] > │ │
00:00:20 #1282 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #1283 [Verbose] >
00:00:20 #1284 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 #1285 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 #1286 [Verbose] > │ ## vec_collect_into │
00:00:20 #1287 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #1288 [Verbose] >
00:00:20 #1289 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #1290 [Verbose] > inl vec_collect_into forall (c : * -> * -> *) t e.
00:00:20 #1291 [Verbose] > (x : vec (c t e))
00:00:20 #1292 [Verbose] > : c (vec t) e
00:00:20 #1293 [Verbose] > =
00:00:20 #1294 [Verbose] > !\($'"!x.into_iter().collect()"')
00:00:20 #1295 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1850-5010-597994782426\main.spi
00:00:20 #1296 [Verbose] >
00:00:20 #1297 [Verbose] > ╭─[ 182.83ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #1298 [Verbose] > │ () │
00:00:20 #1299 [Verbose] > │ │
00:00:20 #1300 [Verbose] > │ │
00:00:20 #1301 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #1302 [Verbose] >
00:00:20 #1303 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 #1304 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 #1305 [Verbose] > │ ## vec_mapi │
00:00:20 #1306 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #1307 [Verbose] >
00:00:20 #1308 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #1309 [Verbose] > inl vec_mapi forall dim t u. (fn : dim -> t -> u) (ar : vec t) : vec u =
00:00:20 #1310 [Verbose] > inl fn = join fn
00:00:20 #1311 [Verbose] > inl ar = join ar
00:00:20 #1312 [Verbose] > !\($'"!ar.iter().enumerate().map(|(i, x)|
00:00:20 #1313 [Verbose] > !fn(i.try_into().unwrap())(x.clone())).collect()"')
00:00:21 #1314 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1868-6889-6f8a820f14e7\main.spi
00:00:21 #1315 [Verbose] >
00:00:21 #1316 [Verbose] > ╭─[ 184.59ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #1317 [Verbose] > │ () │
00:00:21 #1318 [Verbose] > │ │
00:00:21 #1319 [Verbose] > │ │
00:00:21 #1320 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #1321 [Verbose] >
00:00:21 #1322 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 #1323 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 #1324 [Verbose] > │ ## vec_map │
00:00:21 #1325 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #1326 [Verbose] >
00:00:21 #1327 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #1328 [Verbose] > inl vec_map forall t u. (fn : t -> u) (ar : vec t) : vec u =
00:00:21 #1329 [Verbose] > inl fn = join fn
00:00:21 #1330 [Verbose] > inl ar = join ar
00:00:21 #1331 [Verbose] > !\($'"!ar.iter().map(|x| !fn(x.clone())).collect()"')
00:00:21 #1332 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1887-8791-854f99ffc20d\main.spi
00:00:21 #1333 [Verbose] >
00:00:21 #1334 [Verbose] > ╭─[ 180.68ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #1335 [Verbose] > │ () │
00:00:21 #1336 [Verbose] > │ │
00:00:21 #1337 [Verbose] > │ │
00:00:21 #1338 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #1339 [Verbose] >
00:00:21 #1340 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 #1341 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 #1342 [Verbose] > │ ## enumerate │
00:00:21 #1343 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #1344 [Verbose] >
00:00:21 #1345 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #1346 [Verbose] > inl enumerate forall dim {int; number} t. (ar : a dim t) : a dim (unativeint *
00:00:21 #1347 [Verbose] > t) =
00:00:21 #1348 [Verbose] > inl (a ar) = ar
00:00:21 #1349 [Verbose] > inl ar = ar |> to_vec
00:00:21 #1350 [Verbose] > !\($'"!ar.into_iter().enumerate().map(std::rc::Rc::new).collect()"')
00:00:21 #1351 [Verbose] > |> from_vec
00:00:21 #1352 [Verbose] > |> map_vec from_pair
00:00:21 #1353 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1906-0635-02b20c535d47\main.spi
00:00:21 #1354 [Verbose] >
00:00:21 #1355 [Verbose] > ╭─[ 200.67ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #1356 [Verbose] > │ () │
00:00:21 #1357 [Verbose] > │ │
00:00:21 #1358 [Verbose] > │ │
00:00:21 #1359 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #1360 [Verbose] >
00:00:21 #1361 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 #1362 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 #1363 [Verbose] > │ ## slice' │
00:00:21 #1364 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #1365 [Verbose] >
00:00:21 #1366 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #1367 [Verbose] > inl slice' forall dim el. (x : option el) : slice' el dim =
00:00:21 #1368 [Verbose] > match x with
00:00:21 #1369 [Verbose] > | Some x => !\($'"[[!x]]"')
00:00:21 #1370 [Verbose] > | None =>
00:00:21 #1371 [Verbose] > !\($'"[[\\\"\\\".to_string()]]"') : slice' el dim
00:00:21 #1372 [Verbose] > // emit_expr `(()) `(slice' el dim) () ($'"[[@dim]]"' : string) :
00:00:21 #1373 [Verbose] > slice' el 10
00:00:21 #1374 [Verbose] > // !\( : string) : slice' el i32 // !\($'"[[]]"')
00:00:21 #1375 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1926-2699-2dd29321e7b9\main.spi
00:00:21 #1376 [Verbose] >
00:00:21 #1377 [Verbose] > ╭─[ 227.68ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #1378 [Verbose] > │ () │
00:00:21 #1379 [Verbose] > │ │
00:00:21 #1380 [Verbose] > │ │
00:00:21 #1381 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #1382 [Verbose] >
00:00:21 #1383 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 #1384 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 #1385 [Verbose] > │ ## as_slice │
00:00:21 #1386 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #1387 [Verbose] >
00:00:21 #1388 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #1389 [Verbose] > inl as_slice forall t. (x : array_base t) : rust.ref' (slice t) =
00:00:21 #1390 [Verbose] > inl x = x |> to_vec
00:00:21 #1391 [Verbose] > !\($'"!x.as_slice()"')
00:00:21 #1392 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-1950-5040-5e1cd9ad0a08\main.spi
00:00:21 #1393 [Verbose] >
00:00:21 #1394 [Verbose] > ╭─[ 213.77ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #1395 [Verbose] > │ () │
00:00:21 #1396 [Verbose] > │ │
00:00:21 #1397 [Verbose] > │ │
00:00:21 #1398 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #1399 [Verbose] > [NbConvertApp] Converting notebook am'.dib.ipynb to html
00:00:23 #1400 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:23 #1401 [Verbose] > validate(nb)
00:00:24 #1402 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:24 #1403 [Verbose] > return _pygments_highlight(
00:00:24 #1404 [Verbose] > [NbConvertApp] Writing 390324 bytes to am'.dib.html
00:00:25 #1405 [Debug] executeAsync / exitCode: 0 / output.Length: 88839
00:00:25 #1406 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\lib\spiral
00:00:00 #4 [Verbose] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 #6 [Debug] runWithTimeoutAsync / timeout: 500
00:00:01 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805
00:00:01 #11 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 \"sm'.dib\"""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:03 #12 [Verbose] >
00:00:03 #13 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 #14 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 #15 [Verbose] > │ # sm' │
00:00:03 #16 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:04 #17 [Verbose] >
00:00:04 #18 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:04 #19 [Verbose] > // // test
00:00:04 #20 [Verbose] >
00:00:04 #21 [Verbose] > open testing
00:00:07 #22 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3067-6789-64a770755425\main.spi
00:00:09 #23 [Verbose] >
00:00:09 #24 [Verbose] > ╭─[ 5.86s - stdout ]───────────────────────────────────────────────────────────╮
00:00:09 #25 [Verbose] > │ () │
00:00:09 #26 [Verbose] > │ │
00:00:09 #27 [Verbose] > │ │
00:00:09 #28 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #29 [Verbose] >
00:00:09 #30 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #31 [Verbose] > open rust_operators
00:00:10 #32 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3396-9683-94d4250daff5\main.spi
00:00:10 #33 [Verbose] >
00:00:10 #34 [Verbose] > ╭─[ 270.78ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #35 [Verbose] > │ () │
00:00:10 #36 [Verbose] > │ │
00:00:10 #37 [Verbose] > │ │
00:00:10 #38 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #39 [Verbose] >
00:00:10 #40 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #41 [Verbose] > inl types () =
00:00:10 #42 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"str\")>]] type Str = class
00:00:10 #43 [Verbose] > end"
00:00:10 #44 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"base64::DecodeError\")>]]
00:00:10 #45 [Verbose] > type base64_DecodeError = class end"
00:00:10 #46 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"borsh::io::Error\")>]] type
00:00:10 #47 [Verbose] > borsh_io_Error = class end"
00:00:10 #48 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"js_sys::JsString\")>]] type
00:00:10 #49 [Verbose] > js_sys_JsString = class end"
00:00:10 #50 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"serde_json::Error\")>]] type
00:00:10 #51 [Verbose] > serde_json_Error = class end"
00:00:10 #52 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"serde_json::Value\")>]] type
00:00:10 #53 [Verbose] > serde_json_Value = class end"
00:00:10 #54 [Verbose] > global "[[<Fable.Core.Erase;
00:00:10 #55 [Verbose] > Fable.Core.Emit(\"serde_wasm_bindgen::Error\")>]] type serde_wasm_bindgen_Error
00:00:10 #56 [Verbose] > = class end"
00:00:10 #57 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::str::Utf8Error\")>]]
00:00:10 #58 [Verbose] > type std_str_Utf8Error = class end"
00:00:10 #59 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::string::String\")>]]
00:00:10 #60 [Verbose] > type std_string_String = class end"
00:00:10 #61 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3424-2431-2ae2a46df85e\main.spi
00:00:10 #62 [Verbose] >
00:00:10 #63 [Verbose] > ╭─[ 249.98ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #64 [Verbose] > │ () │
00:00:10 #65 [Verbose] > │ │
00:00:10 #66 [Verbose] > │ │
00:00:10 #67 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #68 [Verbose] >
00:00:10 #69 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #70 [Verbose] > // // test
00:00:10 #71 [Verbose] >
00:00:10 #72 [Verbose] > inl types () =
00:00:10 #73 [Verbose] > rust.types ()
00:00:10 #74 [Verbose] > types ()
00:00:10 #75 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3449-4910-4825f50afb0f\main.spi
00:00:10 #76 [Verbose] >
00:00:10 #77 [Verbose] > ╭─[ 229.15ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #78 [Verbose] > │ () │
00:00:10 #79 [Verbose] > │ │
00:00:10 #80 [Verbose] > │ │
00:00:10 #81 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #82 [Verbose] >
00:00:10 #83 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #84 [Verbose] > nominal base64_decode_error = $"base64_DecodeError"
00:00:10 #85 [Verbose] > nominal borsh_io_error = $"borsh_io_Error"
00:00:10 #86 [Verbose] > nominal utf8_error = $"std_str_Utf8Error"
00:00:10 #87 [Verbose] > nominal json_value = $"serde_json_Value"
00:00:10 #88 [Verbose] > nominal json_error = $"serde_json_Error"
00:00:10 #89 [Verbose] > nominal serde_wasm_bindgen_error = $"serde_wasm_bindgen_Error"
00:00:10 #90 [Verbose] > nominal std_string = $"std_string_String"
00:00:10 #91 [Verbose] > nominal js_string = $"js_sys_JsString"
00:00:10 #92 [Verbose] > nominal str = $"Str"
00:00:10 #93 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3472-7220-751e831d40cf\main.spi
00:00:10 #94 [Verbose] >
00:00:10 #95 [Verbose] > ╭─[ 273.06ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #96 [Verbose] > │ () │
00:00:10 #97 [Verbose] > │ │
00:00:10 #98 [Verbose] > │ │
00:00:10 #99 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #100 [Verbose] >
00:00:10 #101 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #102 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #103 [Verbose] > │ ## raw_string_literal │
00:00:10 #104 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #105 [Verbose] >
00:00:10 #106 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #107 [Verbose] > inl raw_string_literal (s : string) : rust.ref' str =
00:00:10 #108 [Verbose] > !\($"\"r#\\\"\" + !s + \"\\\"#\"")
00:00:11 #109 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3500-0029-0755b5973e5f\main.spi
00:00:11 #110 [Verbose] >
00:00:11 #111 [Verbose] > ╭─[ 235.89ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #112 [Verbose] > │ () │
00:00:11 #113 [Verbose] > │ │
00:00:11 #114 [Verbose] > │ │
00:00:11 #115 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #116 [Verbose] >
00:00:11 #117 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #118 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #119 [Verbose] > │ ## raw_string_literal_static │
00:00:11 #120 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #121 [Verbose] >
00:00:11 #122 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #123 [Verbose] > inl raw_string_literal_static (s : string) : rust.static_ref' str =
00:00:11 #124 [Verbose] > !\($"\"r#\\\"\" + !s + \"\\\"#\"")
00:00:11 #125 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3524-2425-227c80aa89f0\main.spi
00:00:11 #126 [Verbose] >
00:00:11 #127 [Verbose] > ╭─[ 259.64ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #128 [Verbose] > │ () │
00:00:11 #129 [Verbose] > │ │
00:00:11 #130 [Verbose] > │ │
00:00:11 #131 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #132 [Verbose] >
00:00:11 #133 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #134 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #135 [Verbose] > │ ## include_str │
00:00:11 #136 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #137 [Verbose] >
00:00:11 #138 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #139 [Verbose] > inl include_str (path : string) : rust.ref' str =
00:00:11 #140 [Verbose] > !\($'"include_str\!(\\\"" + !path + "\\\")"')
00:00:11 #141 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3550-5063-50e6ce905d4b\main.spi
00:00:11 #142 [Verbose] >
00:00:11 #143 [Verbose] > ╭─[ 260.72ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #144 [Verbose] > │ () │
00:00:11 #145 [Verbose] > │ │
00:00:11 #146 [Verbose] > │ │
00:00:11 #147 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #148 [Verbose] >
00:00:11 #149 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #150 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #151 [Verbose] > │ ## contains │
00:00:11 #152 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #153 [Verbose] >
00:00:11 #154 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #155 [Verbose] > inl contains (value : string) (input : string) : bool =
00:00:11 #156 [Verbose] > $"!input.Contains !value"
00:00:11 #157 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3577-7713-7b2a76b9de3a\main.spi
00:00:11 #158 [Verbose] >
00:00:11 #159 [Verbose] > ╭─[ 251.15ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #160 [Verbose] > │ () │
00:00:11 #161 [Verbose] > │ │
00:00:11 #162 [Verbose] > │ │
00:00:11 #163 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #164 [Verbose] >
00:00:11 #165 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #166 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #167 [Verbose] > │ ## substring │
00:00:11 #168 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #169 [Verbose] >
00:00:11 #170 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #171 [Verbose] > inl substring forall t {int}. (start : t) (len : t) (str : string) : string =
00:00:11 #172 [Verbose] > $"!str.Substring (!start, !len)"
00:00:12 #173 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3602-0295-053569a912cc\main.spi
00:00:12 #174 [Verbose] >
00:00:12 #175 [Verbose] > ╭─[ 226.91ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #176 [Verbose] > │ () │
00:00:12 #177 [Verbose] > │ │
00:00:12 #178 [Verbose] > │ │
00:00:12 #179 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #180 [Verbose] >
00:00:12 #181 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #182 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #183 [Verbose] > │ ## split │
00:00:12 #184 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #185 [Verbose] >
00:00:12 #186 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #187 [Verbose] > inl split (separator : string) (str : string) : array_base string =
00:00:12 #188 [Verbose] > $"!str.Split !separator"
00:00:12 #189 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3625-2571-2fb5322256be\main.spi
00:00:12 #190 [Verbose] >
00:00:12 #191 [Verbose] > ╭─[ 264.11ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #192 [Verbose] > │ () │
00:00:12 #193 [Verbose] > │ │
00:00:12 #194 [Verbose] > │ │
00:00:12 #195 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #196 [Verbose] >
00:00:12 #197 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #198 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #199 [Verbose] > │ ## split_string │
00:00:12 #200 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #201 [Verbose] >
00:00:12 #202 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #203 [Verbose] > inl split_string (separator : array_base string) (str : string) : array_base
00:00:12 #204 [Verbose] > string =
00:00:12 #205 [Verbose] > $"!str.Split (!separator, StringSplitOptions.None)"
00:00:12 #206 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3652-5264-595c6736d471\main.spi
00:00:12 #207 [Verbose] >
00:00:12 #208 [Verbose] > ╭─[ 213.80ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #209 [Verbose] > │ () │
00:00:12 #210 [Verbose] > │ │
00:00:12 #211 [Verbose] > │ │
00:00:12 #212 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #213 [Verbose] >
00:00:12 #214 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #215 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #216 [Verbose] > │ ## as_str │
00:00:12 #217 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #218 [Verbose] >
00:00:12 #219 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #220 [Verbose] > inl as_str (s : string) : rust.ref' str =
00:00:12 #221 [Verbose] > inl s = join s
00:00:12 #222 [Verbose] > !\($'$"fable_library_rust::String_::LrcStr::as_str(&!s)"')
00:00:12 #223 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3674-7444-76c19b0b552f\main.spi
00:00:12 #224 [Verbose] >
00:00:12 #225 [Verbose] > ╭─[ 202.44ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #226 [Verbose] > │ () │
00:00:12 #227 [Verbose] > │ │
00:00:12 #228 [Verbose] > │ │
00:00:12 #229 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #230 [Verbose] >
00:00:12 #231 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #232 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #233 [Verbose] > │ ## from_std_string │
00:00:12 #234 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #235 [Verbose] >
00:00:12 #236 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #237 [Verbose] > inl from_std_string (str : std_string) : string =
00:00:12 #238 [Verbose] > inl str = join str
00:00:12 #239 [Verbose] > !\($'"fable_library_rust::String_::fromString(!str)"')
00:00:12 #240 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3695-9520-918b12b774de\main.spi
00:00:13 #241 [Verbose] >
00:00:13 #242 [Verbose] > ╭─[ 194.11ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #243 [Verbose] > │ () │
00:00:13 #244 [Verbose] > │ │
00:00:13 #245 [Verbose] > │ │
00:00:13 #246 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #247 [Verbose] >
00:00:13 #248 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #249 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #250 [Verbose] > │ ## ref_to_std_string │
00:00:13 #251 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #252 [Verbose] >
00:00:13 #253 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #254 [Verbose] > inl ref_to_std_string (str : rust.ref' str) : std_string =
00:00:13 #255 [Verbose] > !\($'"String::from(!str)"')
00:00:13 #256 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3715-1500-168c52971019\main.spi
00:00:13 #257 [Verbose] >
00:00:13 #258 [Verbose] > ╭─[ 198.73ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #259 [Verbose] > │ () │
00:00:13 #260 [Verbose] > │ │
00:00:13 #261 [Verbose] > │ │
00:00:13 #262 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #263 [Verbose] >
00:00:13 #264 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #265 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #266 [Verbose] > │ ## to_std_string │
00:00:13 #267 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #268 [Verbose] >
00:00:13 #269 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #270 [Verbose] > inl to_std_string (s : string) : std_string =
00:00:13 #271 [Verbose] > inl s = join s
00:00:13 #272 [Verbose] > s |> as_str |> ref_to_std_string
00:00:13 #273 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3735-3537-3b80cffb3ceb\main.spi
00:00:13 #274 [Verbose] >
00:00:13 #275 [Verbose] > ╭─[ 214.32ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #276 [Verbose] > │ () │
00:00:13 #277 [Verbose] > │ │
00:00:13 #278 [Verbose] > │ │
00:00:13 #279 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #280 [Verbose] >
00:00:13 #281 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #282 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #283 [Verbose] > │ ## as_str_std │
00:00:13 #284 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #285 [Verbose] >
00:00:13 #286 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #287 [Verbose] > inl as_str_std (s : std_string) : rust.ref' str =
00:00:13 #288 [Verbose] > inl s = join s
00:00:13 #289 [Verbose] > !\($'"!s.as_str()"')
00:00:13 #290 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3757-5732-54e5ef9d06e6\main.spi
00:00:13 #291 [Verbose] >
00:00:13 #292 [Verbose] > ╭─[ 251.39ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #293 [Verbose] > │ () │
00:00:13 #294 [Verbose] > │ │
00:00:13 #295 [Verbose] > │ │
00:00:13 #296 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #297 [Verbose] >
00:00:13 #298 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #299 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #300 [Verbose] > │ ## into_boxed_str │
00:00:13 #301 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #302 [Verbose] >
00:00:13 #303 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #304 [Verbose] > inl into_boxed_str (s : std_string) : rust.box str =
00:00:13 #305 [Verbose] > !\($'"!s.into_boxed_str()"')
00:00:13 #306 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3782-8292-83f42936043e\main.spi
00:00:13 #307 [Verbose] >
00:00:13 #308 [Verbose] > ╭─[ 209.79ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #309 [Verbose] > │ () │
00:00:13 #310 [Verbose] > │ │
00:00:13 #311 [Verbose] > │ │
00:00:13 #312 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #313 [Verbose] >
00:00:13 #314 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #315 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #316 [Verbose] > │ ## format' │
00:00:13 #317 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #318 [Verbose] >
00:00:13 #319 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #320 [Verbose] > inl format' x : std_string =
00:00:13 #321 [Verbose] > !\\(x, $'@@$"format\!(""{{}}"", $0)"')
00:00:14 #322 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3804-0471-0bf1d999c4a4\main.spi
00:00:14 #323 [Verbose] >
00:00:14 #324 [Verbose] > ╭─[ 194.49ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #325 [Verbose] > │ () │
00:00:14 #326 [Verbose] > │ │
00:00:14 #327 [Verbose] > │ │
00:00:14 #328 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #329 [Verbose] >
00:00:14 #330 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #331 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #332 [Verbose] > │ ## format_debug │
00:00:14 #333 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #334 [Verbose] >
00:00:14 #335 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #336 [Verbose] > inl format_debug x : string =
00:00:14 #337 [Verbose] > $"$\"%A{!x}\""
00:00:14 #338 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3824-2466-2ac34233c2b1\main.spi
00:00:14 #339 [Verbose] >
00:00:14 #340 [Verbose] > ╭─[ 213.07ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #341 [Verbose] > │ () │
00:00:14 #342 [Verbose] > │ │
00:00:14 #343 [Verbose] > │ │
00:00:14 #344 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #345 [Verbose] >
00:00:14 #346 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #347 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #348 [Verbose] > │ ## format_debug' │
00:00:14 #349 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #350 [Verbose] >
00:00:14 #351 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #352 [Verbose] > inl format_debug' x : std_string =
00:00:14 #353 [Verbose] > !\\(x, $'@@$"format\!(""{{:?}}"", $0)"')
00:00:14 #354 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3846-4665-449216c94faa\main.spi
00:00:14 #355 [Verbose] >
00:00:14 #356 [Verbose] > ╭─[ 226.28ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #357 [Verbose] > │ () │
00:00:14 #358 [Verbose] > │ │
00:00:14 #359 [Verbose] > │ │
00:00:14 #360 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #361 [Verbose] >
00:00:14 #362 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #363 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #364 [Verbose] > │ ## format_pretty' │
00:00:14 #365 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #366 [Verbose] >
00:00:14 #367 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #368 [Verbose] > inl format_pretty' x : std_string =
00:00:14 #369 [Verbose] > !\\(x, $'@@$"format\!(""{{:#?}}"", $0)"')
00:00:14 #370 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3869-6961-6605cf57d201\main.spi
00:00:14 #371 [Verbose] >
00:00:14 #372 [Verbose] > ╭─[ 200.12ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #373 [Verbose] > │ () │
00:00:14 #374 [Verbose] > │ │
00:00:14 #375 [Verbose] > │ │
00:00:14 #376 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #377 [Verbose] >
00:00:14 #378 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #379 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #380 [Verbose] > │ ## obj_to_string │
00:00:14 #381 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #382 [Verbose] >
00:00:14 #383 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #384 [Verbose] > inl obj_to_string x : string =
00:00:14 #385 [Verbose] > $"!x.ToString ()"
00:00:14 #386 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3890-9018-92c585f4e5bb\main.spi
00:00:15 #387 [Verbose] >
00:00:15 #388 [Verbose] > ╭─[ 230.47ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #389 [Verbose] > │ () │
00:00:15 #390 [Verbose] > │ │
00:00:15 #391 [Verbose] > │ │
00:00:15 #392 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #393 [Verbose] >
00:00:15 #394 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #395 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #396 [Verbose] > │ ## to_string any │
00:00:15 #397 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #398 [Verbose] >
00:00:15 #399 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #400 [Verbose] > instance to_string any =
00:00:15 #401 [Verbose] > obj_to_string
00:00:15 #402 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3913-1368-187d0742bb97\main.spi
00:00:15 #403 [Verbose] >
00:00:15 #404 [Verbose] > ╭─[ 227.14ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #405 [Verbose] > │ () │
00:00:15 #406 [Verbose] > │ │
00:00:15 #407 [Verbose] > │ │
00:00:15 #408 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #409 [Verbose] >
00:00:15 #410 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #411 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #412 [Verbose] > │ ## to_string result t u │
00:00:15 #413 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #414 [Verbose] >
00:00:15 #415 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #416 [Verbose] > instance to_string result t u = fun x =>
00:00:15 #417 [Verbose] > real
00:00:15 #418 [Verbose] > open rust
00:00:15 #419 [Verbose] > typecase (t * u) with
00:00:15 #420 [Verbose] > | string * string =>
00:00:15 #421 [Verbose] > match x with
00:00:15 #422 [Verbose] > | Ok x => x
00:00:15 #423 [Verbose] > | Error x => $'"Error: " + !x + ""' : string
00:00:15 #424 [Verbose] > | std_string * std_string =>
00:00:15 #425 [Verbose] > match x with
00:00:15 #426 [Verbose] > | Ok x => from_std_string x
00:00:15 #427 [Verbose] > | Error x => $'"Error: " + string !x + ""' : string
00:00:15 #428 [Verbose] > | _ => obj_to_string `u x
00:00:15 #429 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3936-3682-3254813ae007\main.spi
00:00:15 #430 [Verbose] >
00:00:15 #431 [Verbose] > ╭─[ 199.25ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #432 [Verbose] > │ () │
00:00:15 #433 [Verbose] > │ │
00:00:15 #434 [Verbose] > │ │
00:00:15 #435 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #436 [Verbose] >
00:00:15 #437 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #438 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #439 [Verbose] > │ ## serialize │
00:00:15 #440 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #441 [Verbose] >
00:00:15 #442 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #443 [Verbose] > inl serialize forall t. (x : t) : resultm.result' std_string json_error =
00:00:15 #444 [Verbose] > !\($'"serde_json::to_string(&!x)"')
00:00:15 #445 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3957-5731-5089c1f12099\main.spi
00:00:15 #446 [Verbose] >
00:00:15 #447 [Verbose] > ╭─[ 231.95ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #448 [Verbose] > │ () │
00:00:15 #449 [Verbose] > │ │
00:00:15 #450 [Verbose] > │ │
00:00:15 #451 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #452 [Verbose] >
00:00:15 #453 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #454 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #455 [Verbose] > │ ## deserialize │
00:00:15 #456 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #457 [Verbose] >
00:00:15 #458 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #459 [Verbose] > inl deserialize forall t. (json : string) : resultm.result' t std_string =
00:00:15 #460 [Verbose] > inl json = json |> as_str
00:00:15 #461 [Verbose] > !\($'"serde_json::from_str(&!json)"')
00:00:15 #462 [Verbose] > |> resultm.map_error' fun (x : json_error) => x |> format'
00:00:15 #463 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-3981-8101-8c1fdcb24e32\main.spi
00:00:15 #464 [Verbose] >
00:00:15 #465 [Verbose] > ╭─[ 210.40ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #466 [Verbose] > │ () │
00:00:15 #467 [Verbose] > │ │
00:00:15 #468 [Verbose] > │ │
00:00:15 #469 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #470 [Verbose] >
00:00:15 #471 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #472 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #473 [Verbose] > │ ## borsh_deserialize │
00:00:15 #474 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #475 [Verbose] >
00:00:15 #476 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #477 [Verbose] > inl borsh_deserialize forall t. (data : array_base u8) : resultm.result' t
00:00:15 #478 [Verbose] > std_string =
00:00:15 #479 [Verbose] > inl data = data |> am'.as_slice
00:00:15 #480 [Verbose] > !\($'"let mut !data = !data"')
00:00:15 #481 [Verbose] > inl result = !\($'"borsh::BorshDeserialize::deserialize(&mut !data)"')
00:00:15 #482 [Verbose] > result
00:00:15 #483 [Verbose] > |> resultm.map_error' fun (x : borsh_io_error) => x |> format'
00:00:16 #484 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-4002-0237-073b1dba2e13\main.spi
00:00:16 #485 [Verbose] >
00:00:16 #486 [Verbose] > ╭─[ 217.15ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #487 [Verbose] > │ () │
00:00:16 #488 [Verbose] > │ │
00:00:16 #489 [Verbose] > │ │
00:00:16 #490 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #491 [Verbose] >
00:00:16 #492 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #493 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #494 [Verbose] > │ ## deserialize_vec │
00:00:16 #495 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #496 [Verbose] >
00:00:16 #497 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #498 [Verbose] > inl deserialize_vec (value : json_value) : resultm.result' (am'.vec u8)
00:00:16 #499 [Verbose] > std_string =
00:00:16 #500 [Verbose] > inl value = join value
00:00:16 #501 [Verbose] > !\($'"serde_json::from_value(!value)"')
00:00:16 #502 [Verbose] > |> resultm.map_error' fun (x : json_error) => x |> format'
00:00:16 #503 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-4025-2526-2c2af1d6d20b\main.spi
00:00:16 #504 [Verbose] >
00:00:16 #505 [Verbose] > ╭─[ 247.52ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #506 [Verbose] > │ () │
00:00:16 #507 [Verbose] > │ │
00:00:16 #508 [Verbose] > │ │
00:00:16 #509 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #510 [Verbose] >
00:00:16 #511 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #512 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #513 [Verbose] > │ ## encode_uri_component │
00:00:16 #514 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #515 [Verbose] >
00:00:16 #516 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #517 [Verbose] > inl encode_uri_component (s : std_string) : js_string =
00:00:16 #518 [Verbose] > !\($'"js_sys::encode_uri_component(&!s)"')
00:00:16 #519 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-4049-4998-4feebf7e027a\main.spi
00:00:16 #520 [Verbose] >
00:00:16 #521 [Verbose] > ╭─[ 480.21ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #522 [Verbose] > │ () │
00:00:16 #523 [Verbose] > │ │
00:00:16 #524 [Verbose] > │ │
00:00:16 #525 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #526 [Verbose] >
00:00:16 #527 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #528 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #529 [Verbose] > │ ## strip_prefix │
00:00:16 #530 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #531 [Verbose] >
00:00:16 #532 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #533 [Verbose] > inl strip_prefix (prefix : char) (s : std_string) : optionm'.option' (rust.ref'
00:00:16 #534 [Verbose] > str) =
00:00:16 #535 [Verbose] > inl s = join s
00:00:16 #536 [Verbose] > !\($'"!s.strip_prefix(!prefix)"')
00:00:17 #537 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-4098-9842-933869d06e03\main.spi
00:00:17 #538 [Verbose] >
00:00:17 #539 [Verbose] > ╭─[ 213.76ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #540 [Verbose] > │ () │
00:00:17 #541 [Verbose] > │ │
00:00:17 #542 [Verbose] > │ │
00:00:17 #543 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #544 [Verbose] >
00:00:17 #545 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 #546 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 #547 [Verbose] > │ ## starts_with │
00:00:17 #548 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #549 [Verbose] >
00:00:17 #550 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #551 [Verbose] > inl starts_with (value : std_string) (s : std_string) : bool =
00:00:17 #552 [Verbose] > inl s = join s
00:00:17 #553 [Verbose] > !\($'"!s.starts_with(&!value)"')
00:00:17 #554 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-4120-2026-2650b2e582b5\main.spi
00:00:17 #555 [Verbose] >
00:00:17 #556 [Verbose] > ╭─[ 189.45ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #557 [Verbose] > │ () │
00:00:17 #558 [Verbose] > │ │
00:00:17 #559 [Verbose] > │ │
00:00:17 #560 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #561 [Verbose] >
00:00:17 #562 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 #563 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 #564 [Verbose] > │ ## base64_decode │
00:00:17 #565 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #566 [Verbose] >
00:00:17 #567 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #568 [Verbose] > inl base64_decode (s : std_string) : result std_string std_string =
00:00:17 #569 [Verbose] > fun () =>
00:00:17 #570 [Verbose] > inl s = join s
00:00:17 #571 [Verbose] > inl bytes : resultm.result' (am'.vec u8) base64_decode_error =
00:00:17 #572 [Verbose] >
00:00:17 #573 [Verbose] > !\($'"base64::Engine::decode(&base64::engine::general_purpose::STANDARD, !s)"')
00:00:17 #574 [Verbose] > inl bytes =
00:00:17 #575 [Verbose] > bytes
00:00:17 #576 [Verbose] > |> resultm.map_error' format'
00:00:17 #577 [Verbose] > |> resultm.try'
00:00:17 #578 [Verbose] > inl result : resultm.result' std_string utf8_error =
00:00:17 #579 [Verbose] > !\($'"std::str::from_utf8(&!bytes).map(String::from)"')
00:00:17 #580 [Verbose] > result
00:00:17 #581 [Verbose] > |> resultm.map_error' format'
00:00:17 #582 [Verbose] > |> fun x =>
00:00:17 #583 [Verbose] > join x ()
00:00:17 #584 [Verbose] > |> resultm.unbox
00:00:17 #585 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-4139-3996-3e9945534f56\main.spi
00:00:17 #586 [Verbose] >
00:00:17 #587 [Verbose] > ╭─[ 176.82ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #588 [Verbose] > │ () │
00:00:17 #589 [Verbose] > │ │
00:00:17 #590 [Verbose] > │ │
00:00:17 #591 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #592 [Verbose] >
00:00:17 #593 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 #594 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 #595 [Verbose] > │ ## concat_array_trailing │
00:00:17 #596 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #597 [Verbose] >
00:00:17 #598 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #599 [Verbose] > inl concat_array_trailing separator input =
00:00:17 #600 [Verbose] > ("", input)
00:00:17 #601 [Verbose] > ||> am.fold fun acc (x : string) =>
00:00:17 #602 [Verbose] > $'!acc + !x + !separator + ""'
00:00:17 #603 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-4158-5846-5dec8435320b\main.spi
00:00:17 #604 [Verbose] >
00:00:17 #605 [Verbose] > ╭─[ 177.22ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #606 [Verbose] > │ () │
00:00:17 #607 [Verbose] > │ │
00:00:17 #608 [Verbose] > │ │
00:00:17 #609 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #610 [Verbose] >
00:00:17 #611 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #612 [Verbose] > // // test
00:00:17 #613 [Verbose] > // // rust=
00:00:17 #614 [Verbose] >
00:00:17 #615 [Verbose] > ;[[
00:00:17 #616 [Verbose] > "1"
00:00:17 #617 [Verbose] > "2"
00:00:17 #618 [Verbose] > "3"
00:00:17 #619 [Verbose] > ]]
00:00:17 #620 [Verbose] > |> fun x =>
00:00:17 #621 [Verbose] > inl code = (a x : _ i32 _) |> concat_array_trailing "\n"
00:00:17 #622 [Verbose] > code
00:00:17 #623 [Verbose] > |> _assert_eq "1\n2\n3\n"
00:00:17 #624 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-4176-7636-7d921dcc7002\main.spi
00:00:23 #625 [Verbose] >
00:00:23 #626 [Verbose] > ╭─[ 5.93s - return value ]─────────────────────────────────────────────────────╮
00:00:23 #627 [Verbose] > │ .rs output: │
00:00:23 #628 [Verbose] > │ │
00:00:23 #629 [Verbose] > │ │
00:00:23 #630 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #631 [Verbose] >
00:00:23 #632 [Verbose] > ╭─[ 5.94s - stdout ]───────────────────────────────────────────────────────────╮
00:00:23 #633 [Verbose] > │ │
00:00:23 #634 [Verbose] > │ .fsx: │
00:00:23 #635 [Verbose] > │ type Mut0 = {mutable l0 : int32; mutable l1 : string} │
00:00:23 #636 [Verbose] > │ let rec method1 (v0 : (string [])) : (string []) = │
00:00:23 #637 [Verbose] > │ v0 │
00:00:23 #638 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:23 #639 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:23 #640 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:23 #641 [Verbose] > │ v3 │
00:00:23 #642 [Verbose] > │ and method3 (v0 : bool) : bool = │
00:00:23 #643 [Verbose] > │ v0 │
00:00:23 #644 [Verbose] > │ and method0 () : unit = │
00:00:23 #645 [Verbose] > │ let v0 : string = "1" │
00:00:23 #646 [Verbose] > │ let v1 : string = "2" │
00:00:23 #647 [Verbose] > │ let v2 : string = "3" │
00:00:23 #648 [Verbose] > │ let v3 : (string []) = [|v0; v1; v2|] │
00:00:23 #649 [Verbose] > │ let v4 : (string []) = method1(v3) │
00:00:23 #650 [Verbose] > │ let v5 : int32 = v4.Length │
00:00:23 #651 [Verbose] > │ let v6 : string = "" │
00:00:23 #652 [Verbose] > │ let v7 : Mut0 = {l0 = 0; l1 = v6} : Mut0 │
00:00:23 #653 [Verbose] > │ while method2(v5, v7) do │
00:00:23 #654 [Verbose] > │ let v9 : int32 = v7.l0 │
00:00:23 #655 [Verbose] > │ let v10 : string = v7.l1 │
00:00:23 #656 [Verbose] > │ let v11 : string = v4.[int v9] │
00:00:23 #657 [Verbose] > │ let v12 : string = "\n" │
00:00:23 #658 [Verbose] > │ let v13 : string = v10 + v11 + v12 + "" │
00:00:23 #659 [Verbose] > │ let v14 : int32 = v9 + 1 │
00:00:23 #660 [Verbose] > │ v7.l0 <- v14 │
00:00:23 #661 [Verbose] > │ v7.l1 <- v13 │
00:00:23 #662 [Verbose] > │ () │
00:00:23 #663 [Verbose] > │ let v15 : string = v7.l1 │
00:00:23 #664 [Verbose] > │ let v17 : bool = v15 = "1\n2\n3\n" │
00:00:23 #665 [Verbose] > │ let v19 : bool = │
00:00:23 #666 [Verbose] > │ if v17 then │
00:00:23 #667 [Verbose] > │ true │
00:00:23 #668 [Verbose] > │ else │
00:00:23 #669 [Verbose] > │ method3(v17) │
00:00:23 #670 [Verbose] > │ let v20 : string = "1\n2\n3\n" │
00:00:23 #671 [Verbose] > │ let v21 : string = $"__expect / actual: %A{v15} / expected: %A{v20}" │
00:00:23 #672 [Verbose] > │ let v22 : bool = v19 = false │
00:00:23 #673 [Verbose] > │ if v22 then │
00:00:23 #674 [Verbose] > │ failwith<unit> v21 │
00:00:23 #675 [Verbose] > │ method0() │
00:00:23 #676 [Verbose] > │ │
00:00:23 #677 [Verbose] > │ .rs: │
00:00:23 #678 [Verbose] > │ #![allow(dead_code,)] │
00:00:23 #679 [Verbose] > │ #![allow(non_camel_case_types,)] │
00:00:23 #680 [Verbose] > │ #![allow(non_snake_case,)] │
00:00:23 #681 [Verbose] > │ #![allow(non_upper_case_globals,)] │
00:00:23 #682 [Verbose] > │ #![allow(unreachable_code,)] │
00:00:23 #683 [Verbose] > │ #![allow(unused_attributes,)] │
00:00:23 #684 [Verbose] > │ #![allow(unused_imports,)] │
00:00:23 #685 [Verbose] > │ #![allow(unused_macros,)] │
00:00:23 #686 [Verbose] > │ #![allow(unused_parens,)] │
00:00:23 #687 [Verbose] > │ #![allow(unused_variables,)] │
00:00:23 #688 [Verbose] > │ mod module_ccfa04bf { │
00:00:23 #689 [Verbose] > │ pub mod Spiral_eval { │
00:00:23 #690 [Verbose] > │ use super::*; │
00:00:23 #691 [Verbose] > │ use fable_library_rust::Native_::LrcPtr; │
00:00:23 #692 [Verbose] > │ use fable_library_rust::Native_::MutCell; │
00:00:23 #693 [Verbose] > │ use fable_library_rust::Native_::on_startup; │
00:00:23 #694 [Verbose] > │ use fable_library_rust::NativeArray_::Array; │
00:00:23 #695 [Verbose] > │ use fable_library_rust::NativeArray_::count; │
00:00:23 #696 [Verbose] > │ use fable_library_rust::NativeArray_::new_array; │
00:00:23 #697 [Verbose] > │ use fable_library_rust::String_::append; │
00:00:23 #698 [Verbose] > │ use fable_library_rust::String_::sprintf; │
00:00:23 #699 [Verbose] > │ use fable_library_rust::String_::string; │
00:00:23 #700 [Verbose] > │ #[derive(Clone, Debug, Default, PartialEq, PartialOrd, Hash, Eq,)] │
00:00:23 #701 [Verbose] > │ pub struct Mut0 { │
00:00:23 #702 [Verbose] > │ pub l0: MutCell<i32>, │
00:00:23 #703 [Verbose] > │ pub l1: MutCell<string>, │
00:00:23 #704 [Verbose] > │ } │
00:00:23 #705 [Verbose] > │ impl core::fmt::Display for Spiral_eval::Mut0 { │
00:00:23 #706 [Verbose] > │ fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result │
00:00:23 #707 [Verbose] > │ { │
00:00:23 #708 [Verbose] > │ write!(f, "{}", core::any::type_name::<Self>()) │
00:00:23 #709 [Verbose] > │ } │
00:00:23 #710 [Verbose] > │ } │
00:00:23 #711 [Verbose] > │ pub fn method1(v0: Array<string>) -> Array<string> { v0 } │
00:00:23 #712 [Verbose] > │ pub fn method2(v0: i32, v1: LrcPtr<Spiral_eval::Mut0>) -> bool { │
00:00:23 #713 [Verbose] > │ v1.l0.get().clone() < v0 │
00:00:23 #714 [Verbose] > │ } │
00:00:23 #715 [Verbose] > │ pub fn method3(v0: bool) -> bool { v0 } │
00:00:23 #716 [Verbose] > │ pub fn method0() { │
00:00:23 #717 [Verbose] > │ let v4: Array<string> = │
00:00:23 #718 [Verbose] > │ Spiral_eval::method1(new_array(&[string("1"), string("2"), │
00:00:23 #719 [Verbose] > │ string("3")])); │
00:00:23 #720 [Verbose] > │ let v5: i32 = count(v4.clone()); │
00:00:23 #721 [Verbose] > │ let v7: LrcPtr<Spiral_eval::Mut0> = │
00:00:23 #722 [Verbose] > │ LrcPtr::new(Spiral_eval::Mut0{l0: MutCell::new(0_i32), │
00:00:23 #723 [Verbose] > │ l1: │
00:00:23 #724 [Verbose] > │ MutCell::new(string("")),}); │
00:00:23 #725 [Verbose] > │ while Spiral_eval::method2(v5, v7.clone()) { │
00:00:23 #726 [Verbose] > │ let v9: i32 = v7.l0.get().clone(); │
00:00:23 #727 [Verbose] > │ let v13: string = │
00:00:23 #728 [Verbose] > │ append(append(append(v7.l1.get().clone(), v4[ │
00:00:23 #729 [Verbose] > │ v9].clone()), │
00:00:23 #730 [Verbose] > │ string("\n")), string("")); │
00:00:23 #731 [Verbose] > │ let v14: i32 = v9 + 1_i32; │
00:00:23 #732 [Verbose] > │ v7.l0.set(v14); │
00:00:23 #733 [Verbose] > │ v7.l1.set(v13); │
00:00:23 #734 [Verbose] > │ () │
00:00:23 #735 [Verbose] > │ } │
00:00:23 #736 [Verbose] > │ { │
00:00:23 #737 [Verbose] > │ let v15: string = v7.l1.get().clone(); │
00:00:23 #738 [Verbose] > │ let v17: bool = v15.clone() == string("1\n2\n3\n"); │
00:00:23 #739 [Verbose] > │ if (if v17 { true } else { Spiral_eval::method3(v17) }) == │
00:00:23 #740 [Verbose] > │ false { │
00:00:23 #741 [Verbose] > │ panic!("{}", │
00:00:23 #742 [Verbose] > │ sprintf!("__expect / actual: {:?} / expected: │
00:00:23 #743 [Verbose] > │ {:?}", v15, string("1\n2\n3\n"))); │
00:00:23 #744 [Verbose] > │ } │
00:00:23 #745 [Verbose] > │ } │
00:00:23 #746 [Verbose] > │ } │
00:00:23 #747 [Verbose] > │ on_startup!(Spiral_eval::method0()); │
00:00:23 #748 [Verbose] > │ } │
00:00:23 #749 [Verbose] > │ } │
00:00:23 #750 [Verbose] > │ pub use module_ccfa04bf::*; │
00:00:23 #751 [Verbose] > │ │
00:00:23 #752 [Verbose] > │ │
00:00:23 #753 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #754 [Verbose] >
00:00:23 #755 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 #756 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 #757 [Verbose] > │ ## concat_list_trailing │
00:00:23 #758 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #759 [Verbose] >
00:00:23 #760 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 #761 [Verbose] > inl concat_list_trailing separator input =
00:00:23 #762 [Verbose] > ("", input)
00:00:23 #763 [Verbose] > ||> listm.fold fun acc (x : string) =>
00:00:23 #764 [Verbose] > $'!acc + !x + !separator + ""'
00:00:23 #765 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-4775-7510-720bdba42fa0\main.spi
00:00:23 #766 [Verbose] >
00:00:23 #767 [Verbose] > ╭─[ 197.88ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 #768 [Verbose] > │ () │
00:00:23 #769 [Verbose] > │ │
00:00:23 #770 [Verbose] > │ │
00:00:23 #771 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #772 [Verbose] >
00:00:23 #773 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 #774 [Verbose] > // // test
00:00:23 #775 [Verbose] > // // rust=
00:00:23 #776 [Verbose] >
00:00:23 #777 [Verbose] > [[
00:00:23 #778 [Verbose] > "1"
00:00:23 #779 [Verbose] > "2"
00:00:23 #780 [Verbose] > "3"
00:00:23 #781 [Verbose] > ]]
00:00:23 #782 [Verbose] > |> fun x =>
00:00:23 #783 [Verbose] > inl code = (x : _) |> sm'.concat_list_trailing "\n"
00:00:23 #784 [Verbose] > code
00:00:23 #785 [Verbose] > |> _assert_eq "1\n2\n3\n"
00:00:23 #786 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-4794-9498-967d74a560d1\main.spi
00:00:28 #787 [Verbose] >
00:00:28 #788 [Verbose] > ╭─[ 4.36s - return value ]─────────────────────────────────────────────────────╮
00:00:28 #789 [Verbose] > │ .rs output: │
00:00:28 #790 [Verbose] > │ │
00:00:28 #791 [Verbose] > │ │
00:00:28 #792 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 #793 [Verbose] >
00:00:28 #794 [Verbose] > ╭─[ 4.36s - stdout ]───────────────────────────────────────────────────────────╮
00:00:28 #795 [Verbose] > │ │
00:00:28 #796 [Verbose] > │ .fsx: │
00:00:28 #797 [Verbose] > │ let rec method1 (v0 : bool) : bool = │
00:00:28 #798 [Verbose] > │ v0 │
00:00:28 #799 [Verbose] > │ and method0 () : unit = │
00:00:28 #800 [Verbose] > │ let v0 : string = "" │
00:00:28 #801 [Verbose] > │ let v1 : string = "1" │
00:00:28 #802 [Verbose] > │ let v2 : string = "\n" │
00:00:28 #803 [Verbose] > │ let v3 : string = v0 + v1 + v2 + "" │
00:00:28 #804 [Verbose] > │ let v4 : string = "2" │
00:00:28 #805 [Verbose] > │ let v5 : string = v3 + v4 + v2 + "" │
00:00:28 #806 [Verbose] > │ let v6 : string = "3" │
00:00:28 #807 [Verbose] > │ let v7 : string = v5 + v6 + v2 + "" │
00:00:28 #808 [Verbose] > │ let v9 : bool = v7 = "1\n2\n3\n" │
00:00:28 #809 [Verbose] > │ let v11 : bool = │
00:00:28 #810 [Verbose] > │ if v9 then │
00:00:28 #811 [Verbose] > │ true │
00:00:28 #812 [Verbose] > │ else │
00:00:28 #813 [Verbose] > │ method1(v9) │
00:00:28 #814 [Verbose] > │ let v12 : string = "1\n2\n3\n" │
00:00:28 #815 [Verbose] > │ let v13 : string = $"__expect / actual: %A{v7} / expected: %A{v12}" │
00:00:28 #816 [Verbose] > │ let v14 : bool = v11 = false │
00:00:28 #817 [Verbose] > │ if v14 then │
00:00:28 #818 [Verbose] > │ failwith<unit> v13 │
00:00:28 #819 [Verbose] > │ method0() │
00:00:28 #820 [Verbose] > │ │
00:00:28 #821 [Verbose] > │ .rs: │
00:00:28 #822 [Verbose] > │ #![allow(dead_code,)] │
00:00:28 #823 [Verbose] > │ #![allow(non_camel_case_types,)] │
00:00:28 #824 [Verbose] > │ #![allow(non_snake_case,)] │
00:00:28 #825 [Verbose] > │ #![allow(non_upper_case_globals,)] │
00:00:28 #826 [Verbose] > │ #![allow(unreachable_code,)] │
00:00:28 #827 [Verbose] > │ #![allow(unused_attributes,)] │
00:00:28 #828 [Verbose] > │ #![allow(unused_imports,)] │
00:00:28 #829 [Verbose] > │ #![allow(unused_macros,)] │
00:00:28 #830 [Verbose] > │ #![allow(unused_parens,)] │
00:00:28 #831 [Verbose] > │ #![allow(unused_variables,)] │
00:00:28 #832 [Verbose] > │ mod module_ccfa04bf { │
00:00:28 #833 [Verbose] > │ pub mod Spiral_eval { │
00:00:28 #834 [Verbose] > │ use super::*; │
00:00:28 #835 [Verbose] > │ use fable_library_rust::Native_::on_startup; │
00:00:28 #836 [Verbose] > │ use fable_library_rust::String_::sprintf; │
00:00:28 #837 [Verbose] > │ use fable_library_rust::String_::string; │
00:00:28 #838 [Verbose] > │ pub fn method1(v0: bool) -> bool { v0 } │
00:00:28 #839 [Verbose] > │ pub fn method0() { │
00:00:28 #840 [Verbose] > │ let v7: string = string("1\n2\n3\n"); │
00:00:28 #841 [Verbose] > │ let v9: bool = v7.clone() == string("1\n2\n3\n"); │
00:00:28 #842 [Verbose] > │ if (if v9 { true } else { Spiral_eval::method1(v9) }) == false { │
00:00:28 #843 [Verbose] > │ panic!("{}", │
00:00:28 #844 [Verbose] > │ sprintf!("__expect / actual: {:?} / expected: {:?}", │
00:00:28 #845 [Verbose] > │ v7, string("1\n2\n3\n"))); │
00:00:28 #846 [Verbose] > │ } │
00:00:28 #847 [Verbose] > │ } │
00:00:28 #848 [Verbose] > │ on_startup!(Spiral_eval::method0()); │
00:00:28 #849 [Verbose] > │ } │
00:00:28 #850 [Verbose] > │ } │
00:00:28 #851 [Verbose] > │ pub use module_ccfa04bf::*; │
00:00:28 #852 [Verbose] > │ │
00:00:28 #853 [Verbose] > │ │
00:00:28 #854 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 #855 [Verbose] >
00:00:28 #856 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:28 #857 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:28 #858 [Verbose] > │ ## concat_list_heap_trailing │
00:00:28 #859 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 #860 [Verbose] >
00:00:28 #861 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:28 #862 [Verbose] > inl concat_list_heap_trailing separator input =
00:00:28 #863 [Verbose] > ("", input)
00:00:28 #864 [Verbose] > ||> listm.fold fun acc (x : string) =>
00:00:28 #865 [Verbose] > inl acc = acc |> to_std_string
00:00:28 #866 [Verbose] > inl x = x |> as_str
00:00:28 #867 [Verbose] > inl separator = separator |> as_str
00:00:28 #868 [Verbose] > !\($'"!acc + !x + !separator"')
00:00:28 #869 [Verbose] > |> from_std_string
00:00:28 #870 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-5233-3325-3c07781d3e24\main.spi
00:00:28 #871 [Verbose] >
00:00:28 #872 [Verbose] > ╭─[ 196.92ms - stdout ]────────────────────────────────────────────────────────╮
00:00:28 #873 [Verbose] > │ () │
00:00:28 #874 [Verbose] > │ │
00:00:28 #875 [Verbose] > │ │
00:00:28 #876 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 #877 [Verbose] >
00:00:28 #878 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:28 #879 [Verbose] > // // test
00:00:28 #880 [Verbose] > // // rust=
00:00:28 #881 [Verbose] >
00:00:28 #882 [Verbose] > types ()
00:00:28 #883 [Verbose] >
00:00:28 #884 [Verbose] > [[
00:00:28 #885 [Verbose] > "1"
00:00:28 #886 [Verbose] > "2"
00:00:28 #887 [Verbose] > "3"
00:00:28 #888 [Verbose] > ]]
00:00:28 #889 [Verbose] > |> fun x =>
00:00:28 #890 [Verbose] > inl code = (x : _) |> sm'.concat_list_heap_trailing "\n"
00:00:28 #891 [Verbose] > code
00:00:28 #892 [Verbose] > |> _assert_eq "1\n2\n3\n"
00:00:28 #893 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-5253-5328-5cddb0e5e47f\main.spi
00:00:33 #894 [Verbose] >
00:00:33 #895 [Verbose] > ╭─[ 5.34s - return value ]─────────────────────────────────────────────────────╮
00:00:33 #896 [Verbose] > │ .rs output: │
00:00:33 #897 [Verbose] > │ │
00:00:33 #898 [Verbose] > │ │
00:00:33 #899 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 #900 [Verbose] >
00:00:33 #901 [Verbose] > ╭─[ 5.36s - stdout ]───────────────────────────────────────────────────────────╮
00:00:33 #902 [Verbose] > │ │
00:00:33 #903 [Verbose] > │ .fsx: │
00:00:33 #904 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Func0<$0>")>] type Func0<'T> = class │
00:00:33 #905 [Verbose] > │ end │
00:00:33 #906 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Func1<$0, $1>")>] type Func0<'T, 'U> = │
00:00:33 #907 [Verbose] > │ class end │
00:00:33 #908 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Box<$0>")>] type Box<'T> = class end │
00:00:33 #909 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("dyn $0")>] type Dyn<'T> = class end │
00:00:33 #910 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn() -> $0")>] type Fn<'T> = class end │
00:00:33 #911 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn()")>] type FnUnit = class end │
00:00:33 #912 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("FnOnce() -> $0")>] type FnOnce<'T> = │
00:00:33 #913 [Verbose] > │ class end │
00:00:33 #914 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn($0, $1)")>] type ActionFn2<'T, 'U> = │
00:00:33 #915 [Verbose] > │ class end │
00:00:33 #916 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("impl $0")>] type Impl<'T> = class end │
00:00:33 #917 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("mut $0")>] type Mut<'T> = class end │
00:00:33 #918 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&$0")>] type Ref<'T> = class end │
00:00:33 #919 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&'static $0")>] type StaticRef<'T> = │
00:00:33 #920 [Verbose] > │ class end │
00:00:33 #921 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("MutCell<$0>")>] type MutCell<'T> = │
00:00:33 #922 [Verbose] > │ class end │
00:00:33 #923 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::any::Any")>] type std_any_Any = │
00:00:33 #924 [Verbose] > │ class end │
00:00:33 #925 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::cell::RefCell<$0>")>] type │
00:00:33 #926 [Verbose] > │ std_cell_RefCell<'T> = class end │
00:00:33 #927 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::pin::Pin<$0>")>] type │
00:00:33 #928 [Verbose] > │ std_pin_Pin<'T> = class end │
00:00:33 #929 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::rc::Rc<$0>")>] type std_rc_Rc<'T> │
00:00:33 #930 [Verbose] > │ = class end │
00:00:33 #931 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::rc::Weak<$0>")>] type │
00:00:33 #932 [Verbose] > │ std_rc_Weak<'T> = class end │
00:00:33 #933 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::sync::Arc<$0>")>] type │
00:00:33 #934 [Verbose] > │ std_sync_Arc<'T> = class end │
00:00:33 #935 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("str")>] type Str = class end │
00:00:33 #936 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("base64::DecodeError")>] type │
00:00:33 #937 [Verbose] > │ base64_DecodeError = class end │
00:00:33 #938 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("borsh::io::Error")>] type │
00:00:33 #939 [Verbose] > │ borsh_io_Error = class end │
00:00:33 #940 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("js_sys::JsString")>] type │
00:00:33 #941 [Verbose] > │ js_sys_JsString = class end │
00:00:33 #942 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_json::Error")>] type │
00:00:33 #943 [Verbose] > │ serde_json_Error = class end │
00:00:33 #944 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_json::Value")>] type │
00:00:33 #945 [Verbose] > │ serde_json_Value = class end │
00:00:33 #946 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_wasm_bindgen::Error")>] type │
00:00:33 #947 [Verbose] > │ serde_wasm_bindgen_Error = class end │
00:00:33 #948 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::str::Utf8Error")>] type │
00:00:33 #949 [Verbose] > │ std_str_Utf8Error = class end │
00:00:33 #950 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>] type │
00:00:33 #951 [Verbose] > │ std_string_String = class end │
00:00:33 #952 [Verbose] > │ let rec method1 () : string = │
00:00:33 #953 [Verbose] > │ let v0 : string = "" │
00:00:33 #954 [Verbose] > │ v0 │
00:00:33 #955 [Verbose] > │ and method2 (v0 : string) : string = │
00:00:33 #956 [Verbose] > │ v0 │
00:00:33 #957 [Verbose] > │ and method3 () : string = │
00:00:33 #958 [Verbose] > │ let v0 : string = "1" │
00:00:33 #959 [Verbose] > │ v0 │
00:00:33 #960 [Verbose] > │ and method4 () : string = │
00:00:33 #961 [Verbose] > │ let v0 : string = "\n" │
00:00:33 #962 [Verbose] > │ v0 │
00:00:33 #963 [Verbose] > │ and method5 (v0 : std_string_String) : std_string_String = │
00:00:33 #964 [Verbose] > │ v0 │
00:00:33 #965 [Verbose] > │ and method6 (v0 : string) : string = │
00:00:33 #966 [Verbose] > │ v0 │
00:00:33 #967 [Verbose] > │ and method7 () : string = │
00:00:33 #968 [Verbose] > │ let v0 : string = "2" │
00:00:33 #969 [Verbose] > │ v0 │
00:00:33 #970 [Verbose] > │ and method8 () : string = │
00:00:33 #971 [Verbose] > │ let v0 : string = "3" │
00:00:33 #972 [Verbose] > │ v0 │
00:00:33 #973 [Verbose] > │ and method9 (v0 : bool) : bool = │
00:00:33 #974 [Verbose] > │ v0 │
00:00:33 #975 [Verbose] > │ and method0 () : unit = │
00:00:33 #976 [Verbose] > │ let v0 : string = method1() │
00:00:33 #977 [Verbose] > │ let v1 : string = method2(v0) │
00:00:33 #978 [Verbose] > │ let v2 : string = $"fable_library_rust::String_::LrcStr::as_str(&v1)" │
00:00:33 #979 [Verbose] > │ let v3 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v2 │
00:00:33 #980 [Verbose] > │ let v4 : string = "String::from(v3)" │
00:00:33 #981 [Verbose] > │ let v5 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v4 │
00:00:33 #982 [Verbose] > │ let v6 : string = method3() │
00:00:33 #983 [Verbose] > │ let v7 : string = $"fable_library_rust::String_::LrcStr::as_str(&v6)" │
00:00:33 #984 [Verbose] > │ let v8 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v7 │
00:00:33 #985 [Verbose] > │ let v9 : string = method4() │
00:00:33 #986 [Verbose] > │ let v10 : string = $"fable_library_rust::String_::LrcStr::as_str(&v9)" │
00:00:33 #987 [Verbose] > │ let v11 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v10 │
00:00:33 #988 [Verbose] > │ let v12 : string = "v5 + v8 + v11" │
00:00:33 #989 [Verbose] > │ let v13 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v12 │
00:00:33 #990 [Verbose] > │ let v14 : std_string_String = method5(v13) │
00:00:33 #991 [Verbose] > │ let v15 : string = "fable_library_rust::String_::fromString(v14)" │
00:00:33 #992 [Verbose] > │ let v16 : string = Fable.Core.RustInterop.emitRustExpr () v15 │
00:00:33 #993 [Verbose] > │ let v17 : string = method6(v16) │
00:00:33 #994 [Verbose] > │ let v18 : string = method2(v17) │
00:00:33 #995 [Verbose] > │ let v19 : string = $"fable_library_rust::String_::LrcStr::as_str(&v18)" │
00:00:33 #996 [Verbose] > │ let v20 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v19 │
00:00:33 #997 [Verbose] > │ let v21 : string = "String::from(v20)" │
00:00:33 #998 [Verbose] > │ let v22 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v21 │
00:00:33 #999 [Verbose] > │ let v23 : string = method7() │
00:00:33 #1000 [Verbose] > │ let v24 : string = $"fable_library_rust::String_::LrcStr::as_str(&v23)" │
00:00:33 #1001 [Verbose] > │ let v25 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v24 │
00:00:33 #1002 [Verbose] > │ let v26 : string = method4() │
00:00:33 #1003 [Verbose] > │ let v27 : string = $"fable_library_rust::String_::LrcStr::as_str(&v26)" │
00:00:33 #1004 [Verbose] > │ let v28 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v27 │
00:00:33 #1005 [Verbose] > │ let v29 : string = "v22 + v25 + v28" │
00:00:33 #1006 [Verbose] > │ let v30 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v29 │
00:00:33 #1007 [Verbose] > │ let v31 : std_string_String = method5(v30) │
00:00:33 #1008 [Verbose] > │ let v32 : string = "fable_library_rust::String_::fromString(v31)" │
00:00:33 #1009 [Verbose] > │ let v33 : string = Fable.Core.RustInterop.emitRustExpr () v32 │
00:00:33 #1010 [Verbose] > │ let v34 : string = method6(v33) │
00:00:33 #1011 [Verbose] > │ let v35 : string = method2(v34) │
00:00:33 #1012 [Verbose] > │ let v36 : string = $"fable_library_rust::String_::LrcStr::as_str(&v35)" │
00:00:33 #1013 [Verbose] > │ let v37 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v36 │
00:00:33 #1014 [Verbose] > │ let v38 : string = "String::from(v37)" │
00:00:33 #1015 [Verbose] > │ let v39 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v38 │
00:00:33 #1016 [Verbose] > │ let v40 : string = method8() │
00:00:33 #1017 [Verbose] > │ let v41 : string = $"fable_library_rust::String_::LrcStr::as_str(&v40)" │
00:00:33 #1018 [Verbose] > │ let v42 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v41 │
00:00:33 #1019 [Verbose] > │ let v43 : string = method4() │
00:00:33 #1020 [Verbose] > │ let v44 : string = $"fable_library_rust::String_::LrcStr::as_str(&v43)" │
00:00:33 #1021 [Verbose] > │ let v45 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v44 │
00:00:33 #1022 [Verbose] > │ let v46 : string = "v39 + v42 + v45" │
00:00:33 #1023 [Verbose] > │ let v47 : std_string_String = Fable.Core.RustInterop.emitRustExpr () v46 │
00:00:33 #1024 [Verbose] > │ let v48 : std_string_String = method5(v47) │
00:00:33 #1025 [Verbose] > │ let v49 : string = "fable_library_rust::String_::fromString(v48)" │
00:00:33 #1026 [Verbose] > │ let v50 : string = Fable.Core.RustInterop.emitRustExpr () v49 │
00:00:33 #1027 [Verbose] > │ let v52 : bool = v50 = "1\n2\n3\n" │
00:00:33 #1028 [Verbose] > │ let v54 : bool = │
00:00:33 #1029 [Verbose] > │ if v52 then │
00:00:33 #1030 [Verbose] > │ true │
00:00:33 #1031 [Verbose] > │ else │
00:00:33 #1032 [Verbose] > │ method9(v52) │
00:00:33 #1033 [Verbose] > │ let v55 : string = "1\n2\n3\n" │
00:00:33 #1034 [Verbose] > │ let v56 : string = $"__expect / actual: %A{v50} / expected: %A{v55}" │
00:00:33 #1035 [Verbose] > │ let v57 : bool = v54 = false │
00:00:33 #1036 [Verbose] > │ if v57 then │
00:00:33 #1037 [Verbose] > │ failwith<unit> v56 │
00:00:33 #1038 [Verbose] > │ method0() │
00:00:33 #1039 [Verbose] > │ │
00:00:33 #1040 [Verbose] > │ .rs: │
00:00:33 #1041 [Verbose] > │ #![allow(dead_code,)] │
00:00:33 #1042 [Verbose] > │ #![allow(non_camel_case_types,)] │
00:00:33 #1043 [Verbose] > │ #![allow(non_snake_case,)] │
00:00:33 #1044 [Verbose] > │ #![allow(non_upper_case_globals,)] │
00:00:33 #1045 [Verbose] > │ #![allow(unreachable_code,)] │
00:00:33 #1046 [Verbose] > │ #![allow(unused_attributes,)] │
00:00:33 #1047 [Verbose] > │ #![allow(unused_imports,)] │
00:00:33 #1048 [Verbose] > │ #![allow(unused_macros,)] │
00:00:33 #1049 [Verbose] > │ #![allow(unused_parens,)] │
00:00:33 #1050 [Verbose] > │ #![allow(unused_variables,)] │
00:00:33 #1051 [Verbose] > │ mod module_ccfa04bf { │
00:00:33 #1052 [Verbose] > │ pub mod Spiral_eval { │
00:00:33 #1053 [Verbose] > │ use super::*; │
00:00:33 #1054 [Verbose] > │ use fable_library_rust::Native_::on_startup; │
00:00:33 #1055 [Verbose] > │ use fable_library_rust::String_::sprintf; │
00:00:33 #1056 [Verbose] > │ use fable_library_rust::String_::string; │
00:00:33 #1057 [Verbose] > │ pub fn method1() -> string { string("") } │
00:00:33 #1058 [Verbose] > │ pub fn method2(v0: string) -> string { v0 } │
00:00:33 #1059 [Verbose] > │ pub fn method3() -> string { string("1") } │
00:00:33 #1060 [Verbose] > │ pub fn method4() -> string { string("\n") } │
00:00:33 #1061 [Verbose] > │ pub fn method5(v0: std::string::String) -> std::string::String { v0 │
00:00:33 #1062 [Verbose] > │ } │
00:00:33 #1063 [Verbose] > │ pub fn method6(v0: string) -> string { v0 } │
00:00:33 #1064 [Verbose] > │ pub fn method7() -> string { string("2") } │
00:00:33 #1065 [Verbose] > │ pub fn method8() -> string { string("3") } │
00:00:33 #1066 [Verbose] > │ pub fn method9(v0: bool) -> bool { v0 } │
00:00:33 #1067 [Verbose] > │ pub fn method0() { │
00:00:33 #1068 [Verbose] > │ let v1: string = Spiral_eval::method2(Spiral_eval::method1()); │
00:00:33 #1069 [Verbose] > │ let v3: &str = fable_library_rust::String_::LrcStr::as_str(&v1); │
00:00:33 #1070 [Verbose] > │ let v5: std::string::String = String::from(v3); │
00:00:33 #1071 [Verbose] > │ let v6: string = Spiral_eval::method3(); │
00:00:33 #1072 [Verbose] > │ let v8: &str = fable_library_rust::String_::LrcStr::as_str(&v6); │
00:00:33 #1073 [Verbose] > │ let v9: string = Spiral_eval::method4(); │
00:00:33 #1074 [Verbose] > │ let v11: &str = │
00:00:33 #1075 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v9); │
00:00:33 #1076 [Verbose] > │ let v14: std::string::String = │
00:00:33 #1077 [Verbose] > │ Spiral_eval::method5(v5 + v8 + v11); │
00:00:33 #1078 [Verbose] > │ let v18: string = │
00:00:33 #1079 [Verbose] > │ │
00:00:33 #1080 [Verbose] > │ Spiral_eval::method2(Spiral_eval::method6(fable_library_rust::String_::fromS │
00:00:33 #1081 [Verbose] > │ tring(v14))); │
00:00:33 #1082 [Verbose] > │ let v20: &str = │
00:00:33 #1083 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v18); │
00:00:33 #1084 [Verbose] > │ let v22: std::string::String = String::from(v20); │
00:00:33 #1085 [Verbose] > │ let v23: string = Spiral_eval::method7(); │
00:00:33 #1086 [Verbose] > │ let v25: &str = │
00:00:33 #1087 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v23); │
00:00:33 #1088 [Verbose] > │ let v26: string = Spiral_eval::method4(); │
00:00:33 #1089 [Verbose] > │ let v28: &str = │
00:00:33 #1090 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v26); │
00:00:33 #1091 [Verbose] > │ let v31: std::string::String = │
00:00:33 #1092 [Verbose] > │ Spiral_eval::method5(v22 + v25 + v28); │
00:00:33 #1093 [Verbose] > │ let v35: string = │
00:00:33 #1094 [Verbose] > │ │
00:00:33 #1095 [Verbose] > │ Spiral_eval::method2(Spiral_eval::method6(fable_library_rust::String_::fromS │
00:00:33 #1096 [Verbose] > │ tring(v31))); │
00:00:33 #1097 [Verbose] > │ let v37: &str = │
00:00:33 #1098 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v35); │
00:00:33 #1099 [Verbose] > │ let v39: std::string::String = String::from(v37); │
00:00:33 #1100 [Verbose] > │ let v40: string = Spiral_eval::method8(); │
00:00:33 #1101 [Verbose] > │ let v42: &str = │
00:00:33 #1102 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v40); │
00:00:33 #1103 [Verbose] > │ let v43: string = Spiral_eval::method4(); │
00:00:33 #1104 [Verbose] > │ let v45: &str = │
00:00:33 #1105 [Verbose] > │ fable_library_rust::String_::LrcStr::as_str(&v43); │
00:00:33 #1106 [Verbose] > │ let v48: std::string::String = │
00:00:33 #1107 [Verbose] > │ Spiral_eval::method5(v39 + v42 + v45); │
00:00:33 #1108 [Verbose] > │ let v50: string = fable_library_rust::String_::fromString(v48); │
00:00:33 #1109 [Verbose] > │ let v52: bool = v50.clone() == string("1\n2\n3\n"); │
00:00:33 #1110 [Verbose] > │ if (if v52 { true } else { Spiral_eval::method9(v52) }) == false │
00:00:33 #1111 [Verbose] > │ { │
00:00:33 #1112 [Verbose] > │ panic!("{}", │
00:00:33 #1113 [Verbose] > │ sprintf!("__expect / actual: {:?} / expected: {:?}", │
00:00:33 #1114 [Verbose] > │ v50, string("1\n2\n3\n"))); │
00:00:33 #1115 [Verbose] > │ } │
00:00:33 #1116 [Verbose] > │ } │
00:00:33 #1117 [Verbose] > │ on_startup!(Spiral_eval::method0()); │
00:00:33 #1118 [Verbose] > │ } │
00:00:33 #1119 [Verbose] > │ } │
00:00:33 #1120 [Verbose] > │ pub use module_ccfa04bf::*; │
00:00:33 #1121 [Verbose] > │ │
00:00:33 #1122 [Verbose] > │ │
00:00:33 #1123 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 #1124 [Verbose] >
00:00:33 #1125 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:33 #1126 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:33 #1127 [Verbose] > │ ## concat │
00:00:33 #1128 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 #1129 [Verbose] >
00:00:33 #1130 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:33 #1131 [Verbose] > inl concat (a : string) (b : a _ _) : string =
00:00:33 #1132 [Verbose] > $"!b |> String.concat !a"
00:00:33 #1133 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-5798-9831-956bf699182e\main.spi
00:00:34 #1134 [Verbose] >
00:00:34 #1135 [Verbose] > ╭─[ 202.46ms - stdout ]────────────────────────────────────────────────────────╮
00:00:34 #1136 [Verbose] > │ () │
00:00:34 #1137 [Verbose] > │ │
00:00:34 #1138 [Verbose] > │ │
00:00:34 #1139 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 #1140 [Verbose] >
00:00:34 #1141 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:34 #1142 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:34 #1143 [Verbose] > │ ## join' │
00:00:34 #1144 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 #1145 [Verbose] >
00:00:34 #1146 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:34 #1147 [Verbose] > inl join' (concat : string) (s : a _ string) : string =
00:00:34 #1148 [Verbose] > $"System.String.Join (!concat, !s)"
00:00:34 #1149 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-5818-1871-1fbf5ec8b044\main.spi
00:00:34 #1150 [Verbose] >
00:00:34 #1151 [Verbose] > ╭─[ 184.86ms - stdout ]────────────────────────────────────────────────────────╮
00:00:34 #1152 [Verbose] > │ () │
00:00:34 #1153 [Verbose] > │ │
00:00:34 #1154 [Verbose] > │ │
00:00:34 #1155 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 #1156 [Verbose] >
00:00:34 #1157 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:34 #1158 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:34 #1159 [Verbose] > │ ## pad_right │
00:00:34 #1160 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 #1161 [Verbose] >
00:00:34 #1162 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:34 #1163 [Verbose] > inl pad_right (pad : i32) (s : string) : string =
00:00:34 #1164 [Verbose] > $"!s.PadRight !pad"
00:00:34 #1165 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-5837-3762-3d21f7fc50e8\main.spi
00:00:34 #1166 [Verbose] >
00:00:34 #1167 [Verbose] > ╭─[ 216.12ms - stdout ]────────────────────────────────────────────────────────╮
00:00:34 #1168 [Verbose] > │ () │
00:00:34 #1169 [Verbose] > │ │
00:00:34 #1170 [Verbose] > │ │
00:00:34 #1171 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 #1172 [Verbose] >
00:00:34 #1173 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:34 #1174 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:34 #1175 [Verbose] > │ ## replace │
00:00:34 #1176 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 #1177 [Verbose] >
00:00:34 #1178 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:34 #1179 [Verbose] > inl replace (old_value : string) (new_value : string) (input : string) : string
00:00:34 #1180 [Verbose] > =
00:00:34 #1181 [Verbose] > $"!input.Replace (!old_value, !new_value)"
00:00:34 #1182 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-5859-5963-50c4355ba482\main.spi
00:00:34 #1183 [Verbose] >
00:00:34 #1184 [Verbose] > ╭─[ 275.68ms - stdout ]────────────────────────────────────────────────────────╮
00:00:34 #1185 [Verbose] > │ () │
00:00:34 #1186 [Verbose] > │ │
00:00:34 #1187 [Verbose] > │ │
00:00:34 #1188 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 #1189 [Verbose] >
00:00:34 #1190 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:34 #1191 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:34 #1192 [Verbose] > │ ## ellipsis │
00:00:34 #1193 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 #1194 [Verbose] >
00:00:34 #1195 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:34 #1196 [Verbose] > inl ellipsis forall t {int; number}. (max : t) (s : string) =
00:00:34 #1197 [Verbose] > if sm.length s <= max
00:00:34 #1198 [Verbose] > then s
00:00:34 #1199 [Verbose] > else s |> substring 0 max |> fun x => $'!x + "..."'
00:00:34 #1200 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-5887-8780-84dbdb15f094\main.spi
00:00:34 #1201 [Verbose] >
00:00:34 #1202 [Verbose] > ╭─[ 227.36ms - stdout ]────────────────────────────────────────────────────────╮
00:00:34 #1203 [Verbose] > │ () │
00:00:34 #1204 [Verbose] > │ │
00:00:34 #1205 [Verbose] > │ │
00:00:34 #1206 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 #1207 [Verbose] >
00:00:34 #1208 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:34 #1209 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:34 #1210 [Verbose] > │ ## to_string std_string │
00:00:34 #1211 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 #1212 [Verbose] >
00:00:34 #1213 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:34 #1214 [Verbose] > open rust
00:00:34 #1215 [Verbose] > instance to_string std_string = from_std_string
00:00:35 #1216 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0040-5910-1088-1a11f23091b3\main.spi
00:00:35 #1217 [Verbose] >
00:00:35 #1218 [Verbose] > ╭─[ 199.07ms - stdout ]────────────────────────────────────────────────────────╮
00:00:35 #1219 [Verbose] > │ () │
00:00:35 #1220 [Verbose] > │ │
00:00:35 #1221 [Verbose] > │ │
00:00:35 #1222 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 #1223 [Verbose] > [NbConvertApp] Converting notebook sm'.dib.ipynb to html
00:00:36 #1224 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:36 #1225 [Verbose] > validate(nb)
00:00:37 #1226 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:37 #1227 [Verbose] > return _pygments_highlight(
00:00:37 #1228 [Verbose] > [NbConvertApp] Writing 380891 bytes to sm'.dib.html
00:00:38 #1229 [Debug] executeAsync / exitCode: 0 / output.Length: 75113
00:00:38 #1230 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\lib\spiral
00:00:00 #4 [Verbose] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #6 [Debug] runWithTimeoutAsync / timeout: 500
00:00:00 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805
00:00:01 #11 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 \"listm'.dib\"""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:03 #12 [Verbose] >
00:00:03 #13 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 #14 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 #15 [Verbose] > │ # listm │
00:00:03 #16 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:04 #17 [Verbose] >
00:00:04 #18 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:04 #19 [Verbose] > // // test
00:00:04 #20 [Verbose] >
00:00:04 #21 [Verbose] > open testing
00:00:04 #22 [Verbose] >
00:00:04 #23 [Verbose] > prototype append t : t -> t -> t
00:00:07 #24 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-0993-9379-939159c112c1\main.spi
00:00:09 #25 [Verbose] >
00:00:09 #26 [Verbose] > ╭─[ 5.92s - stdout ]───────────────────────────────────────────────────────────╮
00:00:09 #27 [Verbose] > │ () │
00:00:09 #28 [Verbose] > │ │
00:00:09 #29 [Verbose] > │ │
00:00:09 #30 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #31 [Verbose] >
00:00:09 #32 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #33 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #34 [Verbose] > │ ## append │
00:00:09 #35 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #36 [Verbose] >
00:00:09 #37 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #38 [Verbose] > instance append list t =
00:00:09 #39 [Verbose] > listm.append
00:00:10 #40 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-1333-3308-39177be3cff6\main.spi
00:00:10 #41 [Verbose] >
00:00:10 #42 [Verbose] > ╭─[ 298.07ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #43 [Verbose] > │ () │
00:00:10 #44 [Verbose] > │ │
00:00:10 #45 [Verbose] > │ │
00:00:10 #46 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #47 [Verbose] >
00:00:10 #48 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #49 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #50 [Verbose] > │ ## /@ │
00:00:10 #51 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #52 [Verbose] >
00:00:10 #53 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #54 [Verbose] > inl (/@) a b =
00:00:10 #55 [Verbose] > b |> append a
00:00:10 #56 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-1363-6352-6e7ae1fd1811\main.spi
00:00:10 #57 [Verbose] >
00:00:10 #58 [Verbose] > ╭─[ 244.10ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #59 [Verbose] > │ () │
00:00:10 #60 [Verbose] > │ │
00:00:10 #61 [Verbose] > │ │
00:00:10 #62 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #63 [Verbose] >
00:00:10 #64 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #65 [Verbose] > // // test
00:00:10 #66 [Verbose] >
00:00:10 #67 [Verbose] > [[ "a"; "b" ]] /@ [[ "c"; "d" ]]
00:00:10 #68 [Verbose] > |> _assert_eq [[ "a"; "b"; "c"; "d" ]]
00:00:10 #69 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-1387-8784-8cf339fb5554\main.spi
00:00:11 #70 [Verbose] >
00:00:11 #71 [Verbose] > ╭─[ 1.43s - stdout ]───────────────────────────────────────────────────────────╮
00:00:11 #72 [Verbose] > │ type UH0 = │
00:00:11 #73 [Verbose] > │ | UH0_0 of string * UH0 │
00:00:11 #74 [Verbose] > │ | UH0_1 │
00:00:11 #75 [Verbose] > │ let rec method0 () : unit = │
00:00:11 #76 [Verbose] > │ let v43 : string = "a" │
00:00:11 #77 [Verbose] > │ let v44 : string = "b" │
00:00:11 #78 [Verbose] > │ let v45 : string = "c" │
00:00:11 #79 [Verbose] > │ let v46 : string = "d" │
00:00:11 #80 [Verbose] > │ let v47 : UH0 = UH0_1 │
00:00:11 #81 [Verbose] > │ let v48 : UH0 = UH0_0(v46, v47) │
00:00:11 #82 [Verbose] > │ let v49 : UH0 = UH0_0(v45, v48) │
00:00:11 #83 [Verbose] > │ let v50 : UH0 = UH0_0(v44, v49) │
00:00:11 #84 [Verbose] > │ let v51 : UH0 = UH0_0(v43, v50) │
00:00:11 #85 [Verbose] > │ let v52 : UH0 = UH0_1 │
00:00:11 #86 [Verbose] > │ let v53 : UH0 = UH0_0(v46, v52) │
00:00:11 #87 [Verbose] > │ let v54 : UH0 = UH0_0(v45, v53) │
00:00:11 #88 [Verbose] > │ let v55 : UH0 = UH0_0(v44, v54) │
00:00:11 #89 [Verbose] > │ let v56 : UH0 = UH0_0(v43, v55) │
00:00:11 #90 [Verbose] > │ let v57 : string = $"__expect / actual: %A{v51} / expected: %A{v56}" │
00:00:11 #91 [Verbose] > │ () │
00:00:11 #92 [Verbose] > │ method0() │
00:00:11 #93 [Verbose] > │ │
00:00:11 #94 [Verbose] > │ │
00:00:11 #95 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #96 [Verbose] >
00:00:11 #97 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #98 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #99 [Verbose] > │ ## init_series │
00:00:11 #100 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #101 [Verbose] >
00:00:11 #102 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #103 [Verbose] > inl init_series start end inc =
00:00:11 #104 [Verbose] > inl total : f64 = conv ((end - start) / inc) + 1
00:00:11 #105 [Verbose] > listm.init total (conv >> (*) inc >> (+) start)
00:00:12 #106 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-1532-3271-3cbf52da9eb0\main.spi
00:00:12 #107 [Verbose] >
00:00:12 #108 [Verbose] > ╭─[ 261.55ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #109 [Verbose] > │ () │
00:00:12 #110 [Verbose] > │ │
00:00:12 #111 [Verbose] > │ │
00:00:12 #112 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #113 [Verbose] >
00:00:12 #114 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #115 [Verbose] > // // test
00:00:12 #116 [Verbose] >
00:00:12 #117 [Verbose] > init_series 0 1 0.5
00:00:12 #118 [Verbose] > |> _assert_eq [[ 0f64; 0.5; 1 ]]
00:00:12 #119 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-1558-5884-5dfc67570aca\main.spi
00:00:12 #120 [Verbose] >
00:00:12 #121 [Verbose] > ╭─[ 306.78ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #122 [Verbose] > │ type UH0 = │
00:00:12 #123 [Verbose] > │ | UH0_0 of float * UH0 │
00:00:12 #124 [Verbose] > │ | UH0_1 │
00:00:12 #125 [Verbose] > │ let rec method0 () : unit = │
00:00:12 #126 [Verbose] > │ let v18 : UH0 = UH0_1 │
00:00:12 #127 [Verbose] > │ let v19 : UH0 = UH0_0(1.0, v18) │
00:00:12 #128 [Verbose] > │ let v20 : UH0 = UH0_0(0.5, v19) │
00:00:12 #129 [Verbose] > │ let v21 : UH0 = UH0_0(0.0, v20) │
00:00:12 #130 [Verbose] > │ let v22 : UH0 = UH0_1 │
00:00:12 #131 [Verbose] > │ let v23 : UH0 = UH0_0(1.0, v22) │
00:00:12 #132 [Verbose] > │ let v24 : UH0 = UH0_0(0.5, v23) │
00:00:12 #133 [Verbose] > │ let v25 : UH0 = UH0_0(0.0, v24) │
00:00:12 #134 [Verbose] > │ let v26 : string = $"__expect / actual: %A{v21} / expected: %A{v25}" │
00:00:12 #135 [Verbose] > │ () │
00:00:12 #136 [Verbose] > │ method0() │
00:00:12 #137 [Verbose] > │ │
00:00:12 #138 [Verbose] > │ │
00:00:12 #139 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #140 [Verbose] >
00:00:12 #141 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #142 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #143 [Verbose] > │ ## try_item │
00:00:12 #144 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #145 [Verbose] >
00:00:12 #146 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #147 [Verbose] > inl rec try_item i = function
00:00:12 #148 [Verbose] > | Cons (x, _) when i = 0 => Some x
00:00:12 #149 [Verbose] > | Cons (_, xs) => try_item (i - 1) xs
00:00:12 #150 [Verbose] > | Nil => None
00:00:12 #151 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-1590-9088-90ffff654a6e\main.spi
00:00:12 #152 [Verbose] >
00:00:12 #153 [Verbose] > ╭─[ 249.09ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #154 [Verbose] > │ () │
00:00:12 #155 [Verbose] > │ │
00:00:12 #156 [Verbose] > │ │
00:00:12 #157 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #158 [Verbose] >
00:00:12 #159 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #160 [Verbose] > // // test
00:00:12 #161 [Verbose] >
00:00:12 #162 [Verbose] > listm.init 10i32 id
00:00:12 #163 [Verbose] > |> try_item 9i32
00:00:12 #164 [Verbose] > |> _assert_eq (Some 9)
00:00:12 #165 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-1615-1594-1986c59af83a\main.spi
00:00:13 #166 [Verbose] >
00:00:13 #167 [Verbose] > ╭─[ 344.34ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #168 [Verbose] > │ type [<Struct>] US0 = │
00:00:13 #169 [Verbose] > │ | US0_0 │
00:00:13 #170 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:13 #171 [Verbose] > │ let rec method0 () : unit = │
00:00:13 #172 [Verbose] > │ let v3 : US0 = US0_1(9) │
00:00:13 #173 [Verbose] > │ let v4 : US0 = US0_1(9) │
00:00:13 #174 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:13 #175 [Verbose] > │ () │
00:00:13 #176 [Verbose] > │ method0() │
00:00:13 #177 [Verbose] > │ │
00:00:13 #178 [Verbose] > │ │
00:00:13 #179 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #180 [Verbose] >
00:00:13 #181 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #182 [Verbose] > // // test
00:00:13 #183 [Verbose] >
00:00:13 #184 [Verbose] > listm.init 10i32 id
00:00:13 #185 [Verbose] > |> try_item 10i32
00:00:13 #186 [Verbose] > |> _assert_eq None
00:00:13 #187 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-1650-5084-553b587c8a5b\main.spi
00:00:13 #188 [Verbose] >
00:00:13 #189 [Verbose] > ╭─[ 364.12ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #190 [Verbose] > │ type [<Struct>] US0 = │
00:00:13 #191 [Verbose] > │ | US0_0 │
00:00:13 #192 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:13 #193 [Verbose] > │ let rec method0 () : unit = │
00:00:13 #194 [Verbose] > │ let v3 : US0 = US0_0 │
00:00:13 #195 [Verbose] > │ let v4 : US0 = US0_0 │
00:00:13 #196 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:13 #197 [Verbose] > │ () │
00:00:13 #198 [Verbose] > │ method0() │
00:00:13 #199 [Verbose] > │ │
00:00:13 #200 [Verbose] > │ │
00:00:13 #201 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #202 [Verbose] >
00:00:13 #203 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #204 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #205 [Verbose] > │ ## list_item │
00:00:13 #206 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #207 [Verbose] >
00:00:13 #208 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #209 [Verbose] > inl item i =
00:00:13 #210 [Verbose] > try_item i >> optionm.value
00:00:13 #211 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-1688-8815-8d71c6124b25\main.spi
00:00:13 #212 [Verbose] >
00:00:13 #213 [Verbose] > ╭─[ 211.01ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #214 [Verbose] > │ () │
00:00:13 #215 [Verbose] > │ │
00:00:13 #216 [Verbose] > │ │
00:00:13 #217 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #218 [Verbose] >
00:00:13 #219 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #220 [Verbose] > // // test
00:00:13 #221 [Verbose] >
00:00:13 #222 [Verbose] > listm.init 10i32 id
00:00:13 #223 [Verbose] > |> item 9i32
00:00:13 #224 [Verbose] > |> _assert_eq 9
00:00:13 #225 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-1709-0946-01a906b549c3\main.spi
00:00:13 #226 [Verbose] >
00:00:13 #227 [Verbose] > ╭─[ 202.75ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #228 [Verbose] > │ let rec method0 () : unit = │
00:00:13 #229 [Verbose] > │ let v0 : string = $"__expect / actual: %A{9} / expected: %A{9}" │
00:00:13 #230 [Verbose] > │ () │
00:00:13 #231 [Verbose] > │ method0() │
00:00:13 #232 [Verbose] > │ │
00:00:13 #233 [Verbose] > │ │
00:00:13 #234 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #235 [Verbose] >
00:00:13 #236 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #237 [Verbose] > // // test
00:00:13 #238 [Verbose] >
00:00:13 #239 [Verbose] > fun () =>
00:00:13 #240 [Verbose] > listm.init 10i32 id
00:00:13 #241 [Verbose] > |> item 10i32
00:00:13 #242 [Verbose] > |> ignore
00:00:13 #243 [Verbose] > |> _throws
00:00:13 #244 [Verbose] > |> _assert_eq (Some "Option does not have a value.")
00:00:14 #245 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-1730-3005-3fbae93b933c\main.spi
00:00:14 #246 [Verbose] >
00:00:14 #247 [Verbose] > ╭─[ 389.50ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #248 [Verbose] > │ type [<Struct>] US0 = │
00:00:14 #249 [Verbose] > │ | US0_0 │
00:00:14 #250 [Verbose] > │ | US0_1 of f1_0 : string │
00:00:14 #251 [Verbose] > │ let rec closure0 () () : unit = │
00:00:14 #252 [Verbose] > │ let v0 : int32 = failwith<int32> "Option does not have a value." │
00:00:14 #253 [Verbose] > │ () │
00:00:14 #254 [Verbose] > │ and closure1 () (v0 : string) : US0 = │
00:00:14 #255 [Verbose] > │ US0_1(v0) │
00:00:14 #256 [Verbose] > │ and method1 (v0 : bool) : bool = │
00:00:14 #257 [Verbose] > │ v0 │
00:00:14 #258 [Verbose] > │ and method0 () : unit = │
00:00:14 #259 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:00:14 #260 [Verbose] > │ let v1 : US0 = US0_0 │
00:00:14 #261 [Verbose] > │ let v2 : (string -> US0) = closure1() │
00:00:14 #262 [Verbose] > │ let v3 : US0 = try v0 (); v1 with ex -> v2 ex.Message │
00:00:14 #263 [Verbose] > │ let v8 : bool = │
00:00:14 #264 [Verbose] > │ match v3 with │
00:00:14 #265 [Verbose] > │ | US0_1(v6) -> (* Some *) │
00:00:14 #266 [Verbose] > │ let v7 : bool = v6 = "Option does not have a value." │
00:00:14 #267 [Verbose] > │ v7 │
00:00:14 #268 [Verbose] > │ | _ -> │
00:00:14 #269 [Verbose] > │ false │
00:00:14 #270 [Verbose] > │ let v10 : bool = │
00:00:14 #271 [Verbose] > │ if v8 then │
00:00:14 #272 [Verbose] > │ true │
00:00:14 #273 [Verbose] > │ else │
00:00:14 #274 [Verbose] > │ method1(v8) │
00:00:14 #275 [Verbose] > │ let v11 : string = "Option does not have a value." │
00:00:14 #276 [Verbose] > │ let v12 : US0 = US0_1(v11) │
00:00:14 #277 [Verbose] > │ let v13 : string = $"__expect / actual: %A{v3} / expected: %A{v12}" │
00:00:14 #278 [Verbose] > │ let v14 : bool = v10 = false │
00:00:14 #279 [Verbose] > │ if v14 then │
00:00:14 #280 [Verbose] > │ failwith<unit> v13 │
00:00:14 #281 [Verbose] > │ method0() │
00:00:14 #282 [Verbose] > │ │
00:00:14 #283 [Verbose] > │ │
00:00:14 #284 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #285 [Verbose] >
00:00:14 #286 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #287 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #288 [Verbose] > │ ## try_item_ │
00:00:14 #289 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #290 [Verbose] >
00:00:14 #291 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #292 [Verbose] > let rec try_item_ i = function
00:00:14 #293 [Verbose] > | Cons (x, _) when i = 0 => Some x
00:00:14 #294 [Verbose] > | Cons (_, xs) => try_item_ (i - 1) xs
00:00:14 #295 [Verbose] > | Nil => None
00:00:14 #296 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-1770-7051-71181bfd9dd2\main.spi
00:00:14 #297 [Verbose] >
00:00:14 #298 [Verbose] > ╭─[ 224.48ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #299 [Verbose] > │ () │
00:00:14 #300 [Verbose] > │ │
00:00:14 #301 [Verbose] > │ │
00:00:14 #302 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #303 [Verbose] >
00:00:14 #304 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #305 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #306 [Verbose] > │ ## item_ │
00:00:14 #307 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #308 [Verbose] >
00:00:14 #309 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #310 [Verbose] > inl item_ i =
00:00:14 #311 [Verbose] > try_item_ i >> optionm.value
00:00:14 #312 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-1793-9342-976cfb068a65\main.spi
00:00:14 #313 [Verbose] >
00:00:14 #314 [Verbose] > ╭─[ 198.13ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #315 [Verbose] > │ () │
00:00:14 #316 [Verbose] > │ │
00:00:14 #317 [Verbose] > │ │
00:00:14 #318 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #319 [Verbose] >
00:00:14 #320 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #321 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #322 [Verbose] > │ ## sum │
00:00:14 #323 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #324 [Verbose] >
00:00:14 #325 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #326 [Verbose] > inl sum list =
00:00:14 #327 [Verbose] > list |> listm.fold (+) 0
00:00:14 #328 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-1813-1359-1c2423b86f75\main.spi
00:00:14 #329 [Verbose] >
00:00:14 #330 [Verbose] > ╭─[ 187.54ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #331 [Verbose] > │ () │
00:00:14 #332 [Verbose] > │ │
00:00:14 #333 [Verbose] > │ │
00:00:14 #334 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #335 [Verbose] >
00:00:14 #336 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #337 [Verbose] > // // test
00:00:14 #338 [Verbose] >
00:00:14 #339 [Verbose] > listm.init 10i32 id
00:00:14 #340 [Verbose] > |> sum
00:00:14 #341 [Verbose] > |> _assert_eq 45
00:00:15 #342 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-1832-3291-3bd2666bb132\main.spi
00:00:15 #343 [Verbose] >
00:00:15 #344 [Verbose] > ╭─[ 183.72ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #345 [Verbose] > │ let rec method0 () : unit = │
00:00:15 #346 [Verbose] > │ let v0 : string = $"__expect / actual: %A{45} / expected: %A{45}" │
00:00:15 #347 [Verbose] > │ () │
00:00:15 #348 [Verbose] > │ method0() │
00:00:15 #349 [Verbose] > │ │
00:00:15 #350 [Verbose] > │ │
00:00:15 #351 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #352 [Verbose] >
00:00:15 #353 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #354 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #355 [Verbose] > │ ## unzip │
00:00:15 #356 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #357 [Verbose] >
00:00:15 #358 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #359 [Verbose] > inl unzip list =
00:00:15 #360 [Verbose] > (([[]], [[]]), list)
00:00:15 #361 [Verbose] > ||> listm.fold fun (acc_x, acc_y) (x, y) =>
00:00:15 #362 [Verbose] > x :: acc_x, y :: acc_y
00:00:15 #363 [Verbose] > |> fun x, y =>
00:00:15 #364 [Verbose] > x |> listm.rev, y |> listm.rev
00:00:15 #365 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-1851-5168-5ca25e1531f4\main.spi
00:00:15 #366 [Verbose] >
00:00:15 #367 [Verbose] > ╭─[ 210.19ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #368 [Verbose] > │ () │
00:00:15 #369 [Verbose] > │ │
00:00:15 #370 [Verbose] > │ │
00:00:15 #371 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #372 [Verbose] >
00:00:15 #373 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #374 [Verbose] > // // test
00:00:15 #375 [Verbose] >
00:00:15 #376 [Verbose] > listm.init 10i32 id
00:00:15 #377 [Verbose] > |> listm.map (fun x => x, x)
00:00:15 #378 [Verbose] > |> unzip
00:00:15 #379 [Verbose] > |> fun x, y =>
00:00:15 #380 [Verbose] > x |> sum
00:00:15 #381 [Verbose] > |> _assert_eq 45
00:00:15 #382 [Verbose] >
00:00:15 #383 [Verbose] > y |> sum
00:00:15 #384 [Verbose] > |> _assert_eq 45
00:00:15 #385 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-1873-7304-740d6c9a347c\main.spi
00:00:15 #386 [Verbose] >
00:00:15 #387 [Verbose] > ╭─[ 221.12ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #388 [Verbose] > │ let rec method0 () : unit = │
00:00:15 #389 [Verbose] > │ let v0 : string = $"__expect / actual: %A{45} / expected: %A{45}" │
00:00:15 #390 [Verbose] > │ let v1 : string = $"__expect / actual: %A{45} / expected: %A{45}" │
00:00:15 #391 [Verbose] > │ () │
00:00:15 #392 [Verbose] > │ method0() │
00:00:15 #393 [Verbose] > │ │
00:00:15 #394 [Verbose] > │ │
00:00:15 #395 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #396 [Verbose] >
00:00:15 #397 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #398 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #399 [Verbose] > │ ## try_index_of │
00:00:15 #400 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #401 [Verbose] >
00:00:15 #402 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #403 [Verbose] > inl try_index_of item list =
00:00:15 #404 [Verbose] > inl rec loop i = function
00:00:15 #405 [Verbose] > | [[]] => None
00:00:15 #406 [Verbose] > | x :: xs =>
00:00:15 #407 [Verbose] > if x = item
00:00:15 #408 [Verbose] > then Some i
00:00:15 #409 [Verbose] > else loop (i + 1) xs
00:00:15 #410 [Verbose] > loop 0 list
00:00:15 #411 [Verbose] >
00:00:15 #412 [Verbose] > inl index_of item =
00:00:15 #413 [Verbose] > try_index_of item >> optionm.value
00:00:15 #414 [Verbose] >
00:00:15 #415 [Verbose] > inl try_index_of_ item list =
00:00:15 #416 [Verbose] > let rec loop i = function
00:00:15 #417 [Verbose] > | [[]] => None
00:00:15 #418 [Verbose] > | x :: xs =>
00:00:15 #419 [Verbose] > if x = item
00:00:15 #420 [Verbose] > then Some i
00:00:15 #421 [Verbose] > else loop (i + 1) xs
00:00:15 #422 [Verbose] > loop 0 list
00:00:15 #423 [Verbose] >
00:00:15 #424 [Verbose] > inl index_of_ item =
00:00:15 #425 [Verbose] > try_index_of_ item >> optionm.value
00:00:15 #426 [Verbose] >
00:00:15 #427 [Verbose] > inl try_index_of__ item list =
00:00:15 #428 [Verbose] > inl i = mut 0
00:00:15 #429 [Verbose] > inl list = mut list
00:00:15 #430 [Verbose] > inl result = mut None
00:00:15 #431 [Verbose] > let rec loop () =
00:00:15 #432 [Verbose] > match *list with
00:00:15 #433 [Verbose] > | [[]] => result <- None
00:00:15 #434 [Verbose] > | x :: xs =>
00:00:15 #435 [Verbose] > if x = item
00:00:15 #436 [Verbose] > then result <- Some *i
00:00:15 #437 [Verbose] > else
00:00:15 #438 [Verbose] > i <- *i + 1
00:00:15 #439 [Verbose] > list <- xs
00:00:15 #440 [Verbose] > loop ()
00:00:15 #441 [Verbose] > loop ()
00:00:15 #442 [Verbose] > *result
00:00:15 #443 [Verbose] >
00:00:15 #444 [Verbose] > inl index_of__ item =
00:00:15 #445 [Verbose] > try_index_of__ item >> optionm.value
00:00:15 #446 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-1895-9580-90403f744256\main.spi
00:00:15 #447 [Verbose] >
00:00:15 #448 [Verbose] > ╭─[ 206.61ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #449 [Verbose] > │ () │
00:00:15 #450 [Verbose] > │ │
00:00:15 #451 [Verbose] > │ │
00:00:15 #452 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #453 [Verbose] >
00:00:15 #454 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #455 [Verbose] > // // test
00:00:15 #456 [Verbose] >
00:00:15 #457 [Verbose] > listm.init 10i32 id
00:00:15 #458 [Verbose] > |> index_of 5i32
00:00:15 #459 [Verbose] > |> _assert_eq 5i32
00:00:15 #460 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-1916-1661-1710799c326e\main.spi
00:00:15 #461 [Verbose] >
00:00:15 #462 [Verbose] > ╭─[ 212.42ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #463 [Verbose] > │ let rec method0 () : unit = │
00:00:15 #464 [Verbose] > │ let v0 : string = $"__expect / actual: %A{5} / expected: %A{5}" │
00:00:15 #465 [Verbose] > │ () │
00:00:15 #466 [Verbose] > │ method0() │
00:00:15 #467 [Verbose] > │ │
00:00:15 #468 [Verbose] > │ │
00:00:15 #469 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #470 [Verbose] >
00:00:15 #471 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #472 [Verbose] > // // test
00:00:15 #473 [Verbose] >
00:00:15 #474 [Verbose] > listm.init 10i32 id
00:00:15 #475 [Verbose] > |> try_index_of 10i32
00:00:15 #476 [Verbose] > |> _assert_eq (None : option i32)
00:00:16 #477 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-1938-3832-3527b4d87279\main.spi
00:00:16 #478 [Verbose] >
00:00:16 #479 [Verbose] > ╭─[ 261.20ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #480 [Verbose] > │ type [<Struct>] US0 = │
00:00:16 #481 [Verbose] > │ | US0_0 │
00:00:16 #482 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:16 #483 [Verbose] > │ let rec method0 () : unit = │
00:00:16 #484 [Verbose] > │ let v3 : US0 = US0_0 │
00:00:16 #485 [Verbose] > │ let v4 : US0 = US0_0 │
00:00:16 #486 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:16 #487 [Verbose] > │ () │
00:00:16 #488 [Verbose] > │ method0() │
00:00:16 #489 [Verbose] > │ │
00:00:16 #490 [Verbose] > │ │
00:00:16 #491 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #492 [Verbose] >
00:00:16 #493 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #494 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #495 [Verbose] > │ ## try_find │
00:00:16 #496 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #497 [Verbose] >
00:00:16 #498 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #499 [Verbose] > inl try_find fn list =
00:00:16 #500 [Verbose] > inl rec loop = function
00:00:16 #501 [Verbose] > | [[]] => None
00:00:16 #502 [Verbose] > | x :: xs =>
00:00:16 #503 [Verbose] > if fn x
00:00:16 #504 [Verbose] > then Some x
00:00:16 #505 [Verbose] > else loop xs
00:00:16 #506 [Verbose] > loop list
00:00:16 #507 [Verbose] >
00:00:16 #508 [Verbose] > inl try_find_ fn list =
00:00:16 #509 [Verbose] > let rec loop = function
00:00:16 #510 [Verbose] > | [[]] => None
00:00:16 #511 [Verbose] > | x :: xs =>
00:00:16 #512 [Verbose] > if fn x
00:00:16 #513 [Verbose] > then Some x
00:00:16 #514 [Verbose] > else loop xs
00:00:16 #515 [Verbose] > loop list
00:00:16 #516 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-1965-6538-6425cacb934c\main.spi
00:00:16 #517 [Verbose] >
00:00:16 #518 [Verbose] > ╭─[ 213.82ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #519 [Verbose] > │ () │
00:00:16 #520 [Verbose] > │ │
00:00:16 #521 [Verbose] > │ │
00:00:16 #522 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #523 [Verbose] >
00:00:16 #524 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #525 [Verbose] > // // test
00:00:16 #526 [Verbose] >
00:00:16 #527 [Verbose] > listm.init 10i32 id
00:00:16 #528 [Verbose] > |> try_find ((=) 5i32)
00:00:16 #529 [Verbose] > |> _assert_eq (Some 5i32)
00:00:16 #530 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-1986-8691-875566a3e2bf\main.spi
00:00:16 #531 [Verbose] >
00:00:16 #532 [Verbose] > ╭─[ 213.65ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #533 [Verbose] > │ type [<Struct>] US0 = │
00:00:16 #534 [Verbose] > │ | US0_0 │
00:00:16 #535 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:16 #536 [Verbose] > │ let rec method0 () : unit = │
00:00:16 #537 [Verbose] > │ let v3 : US0 = US0_1(5) │
00:00:16 #538 [Verbose] > │ let v4 : US0 = US0_1(5) │
00:00:16 #539 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:16 #540 [Verbose] > │ () │
00:00:16 #541 [Verbose] > │ method0() │
00:00:16 #542 [Verbose] > │ │
00:00:16 #543 [Verbose] > │ │
00:00:16 #544 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #545 [Verbose] >
00:00:16 #546 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #547 [Verbose] > inl find x =
00:00:16 #548 [Verbose] > try_find x >> optionm.value
00:00:16 #549 [Verbose] >
00:00:16 #550 [Verbose] > inl find_ x =
00:00:16 #551 [Verbose] > try_find_ x >> optionm.value
00:00:16 #552 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-2008-0891-00489748a741\main.spi
00:00:16 #553 [Verbose] >
00:00:16 #554 [Verbose] > ╭─[ 217.89ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #555 [Verbose] > │ () │
00:00:16 #556 [Verbose] > │ │
00:00:16 #557 [Verbose] > │ │
00:00:16 #558 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #559 [Verbose] >
00:00:16 #560 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #561 [Verbose] > // // test
00:00:16 #562 [Verbose] >
00:00:16 #563 [Verbose] > listm.init 10i32 id
00:00:16 #564 [Verbose] > |> find ((=) 5i32)
00:00:16 #565 [Verbose] > |> _assert_eq 5i32
00:00:17 #566 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-2030-3087-30731f534384\main.spi
00:00:17 #567 [Verbose] >
00:00:17 #568 [Verbose] > ╭─[ 221.67ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #569 [Verbose] > │ let rec method0 () : unit = │
00:00:17 #570 [Verbose] > │ let v0 : string = $"__expect / actual: %A{5} / expected: %A{5}" │
00:00:17 #571 [Verbose] > │ () │
00:00:17 #572 [Verbose] > │ method0() │
00:00:17 #573 [Verbose] > │ │
00:00:17 #574 [Verbose] > │ │
00:00:17 #575 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #576 [Verbose] >
00:00:17 #577 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 #578 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 #579 [Verbose] > │ ## choose │
00:00:17 #580 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #581 [Verbose] >
00:00:17 #582 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #583 [Verbose] > inl choose f l =
00:00:17 #584 [Verbose] > (l, [[]])
00:00:17 #585 [Verbose] > ||> listm.foldBack fun x acc =>
00:00:17 #586 [Verbose] > match f x with
00:00:17 #587 [Verbose] > | Some y => y :: acc
00:00:17 #588 [Verbose] > | None => acc
00:00:17 #589 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-2053-5354-5502e1b23e69\main.spi
00:00:17 #590 [Verbose] >
00:00:17 #591 [Verbose] > ╭─[ 206.61ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #592 [Verbose] > │ () │
00:00:17 #593 [Verbose] > │ │
00:00:17 #594 [Verbose] > │ │
00:00:17 #595 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #596 [Verbose] >
00:00:17 #597 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #598 [Verbose] > // // test
00:00:17 #599 [Verbose] >
00:00:17 #600 [Verbose] > listm.init 10i32 id
00:00:17 #601 [Verbose] > |> choose (fun x => if x % 2 = 0 then Some x else None)
00:00:17 #602 [Verbose] > |> _assert_eq [[ 0; 2; 4; 6; 8 ]]
00:00:17 #603 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-2074-7446-782b4b238ee1\main.spi
00:00:17 #604 [Verbose] >
00:00:17 #605 [Verbose] > ╭─[ 247.81ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #606 [Verbose] > │ type UH0 = │
00:00:17 #607 [Verbose] > │ | UH0_0 of int32 * UH0 │
00:00:17 #608 [Verbose] > │ | UH0_1 │
00:00:17 #609 [Verbose] > │ let rec method0 () : unit = │
00:00:17 #610 [Verbose] > │ let v33 : UH0 = UH0_1 │
00:00:17 #611 [Verbose] > │ let v34 : UH0 = UH0_0(8, v33) │
00:00:17 #612 [Verbose] > │ let v35 : UH0 = UH0_0(6, v34) │
00:00:17 #613 [Verbose] > │ let v36 : UH0 = UH0_0(4, v35) │
00:00:17 #614 [Verbose] > │ let v37 : UH0 = UH0_0(2, v36) │
00:00:17 #615 [Verbose] > │ let v38 : UH0 = UH0_0(0, v37) │
00:00:17 #616 [Verbose] > │ let v39 : UH0 = UH0_1 │
00:00:17 #617 [Verbose] > │ let v40 : UH0 = UH0_0(8, v39) │
00:00:17 #618 [Verbose] > │ let v41 : UH0 = UH0_0(6, v40) │
00:00:17 #619 [Verbose] > │ let v42 : UH0 = UH0_0(4, v41) │
00:00:17 #620 [Verbose] > │ let v43 : UH0 = UH0_0(2, v42) │
00:00:17 #621 [Verbose] > │ let v44 : UH0 = UH0_0(0, v43) │
00:00:17 #622 [Verbose] > │ let v45 : string = $"__expect / actual: %A{v38} / expected: %A{v44}" │
00:00:17 #623 [Verbose] > │ () │
00:00:17 #624 [Verbose] > │ method0() │
00:00:17 #625 [Verbose] > │ │
00:00:17 #626 [Verbose] > │ │
00:00:17 #627 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #628 [Verbose] >
00:00:17 #629 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 #630 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 #631 [Verbose] > │ ## zip_with │
00:00:17 #632 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #633 [Verbose] >
00:00:17 #634 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #635 [Verbose] > inl zip_with fn xs ys =
00:00:17 #636 [Verbose] > inl rec loop acc xs ys =
00:00:17 #637 [Verbose] > match xs, ys with
00:00:17 #638 [Verbose] > | Cons (x, xs), Cons (y, ys) =>
00:00:17 #639 [Verbose] > loop (fn x y :: acc) xs ys
00:00:17 #640 [Verbose] > | _ => listm.rev acc
00:00:17 #641 [Verbose] > loop [[]] xs ys
00:00:17 #642 [Verbose] >
00:00:17 #643 [Verbose] > inl zip_with_ fn xs ys =
00:00:17 #644 [Verbose] > let rec loop acc xs ys =
00:00:17 #645 [Verbose] > match xs, ys with
00:00:17 #646 [Verbose] > | Cons (x, xs), Cons (y, ys) =>
00:00:17 #647 [Verbose] > loop (fn x y :: acc) xs ys
00:00:17 #648 [Verbose] > | _ => listm.rev acc
00:00:17 #649 [Verbose] > loop [[]] xs ys
00:00:17 #650 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-2100-0022-0f1357b0ced3\main.spi
00:00:17 #651 [Verbose] >
00:00:17 #652 [Verbose] > ╭─[ 228.05ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #653 [Verbose] > │ () │
00:00:17 #654 [Verbose] > │ │
00:00:17 #655 [Verbose] > │ │
00:00:17 #656 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #657 [Verbose] >
00:00:17 #658 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #659 [Verbose] > // // test
00:00:17 #660 [Verbose] >
00:00:17 #661 [Verbose] > ([[ 1i32; 2; 3 ]], [[ 4; 5; 6 ]])
00:00:17 #662 [Verbose] > ||> zip_with (+)
00:00:17 #663 [Verbose] > |> _assert_eq [[ 5; 7; 9 ]]
00:00:17 #664 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-2123-2329-2798b51d0485\main.spi
00:00:18 #665 [Verbose] >
00:00:18 #666 [Verbose] > ╭─[ 544.95ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #667 [Verbose] > │ type UH0 = │
00:00:18 #668 [Verbose] > │ | UH0_0 of int32 * UH0 │
00:00:18 #669 [Verbose] > │ | UH0_1 │
00:00:18 #670 [Verbose] > │ let rec method0 () : unit = │
00:00:18 #671 [Verbose] > │ let v18 : UH0 = UH0_1 │
00:00:18 #672 [Verbose] > │ let v19 : UH0 = UH0_0(9, v18) │
00:00:18 #673 [Verbose] > │ let v20 : UH0 = UH0_0(7, v19) │
00:00:18 #674 [Verbose] > │ let v21 : UH0 = UH0_0(5, v20) │
00:00:18 #675 [Verbose] > │ let v22 : UH0 = UH0_1 │
00:00:18 #676 [Verbose] > │ let v23 : UH0 = UH0_0(9, v22) │
00:00:18 #677 [Verbose] > │ let v24 : UH0 = UH0_0(7, v23) │
00:00:18 #678 [Verbose] > │ let v25 : UH0 = UH0_0(5, v24) │
00:00:18 #679 [Verbose] > │ let v26 : string = $"__expect / actual: %A{v21} / expected: %A{v25}" │
00:00:18 #680 [Verbose] > │ () │
00:00:18 #681 [Verbose] > │ method0() │
00:00:18 #682 [Verbose] > │ │
00:00:18 #683 [Verbose] > │ │
00:00:18 #684 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #685 [Verbose] >
00:00:18 #686 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 #687 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 #688 [Verbose] > │ ## zip │
00:00:18 #689 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #690 [Verbose] >
00:00:18 #691 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #692 [Verbose] > inl zip xs ys =
00:00:18 #693 [Verbose] > zip_with pair xs ys
00:00:18 #694 [Verbose] >
00:00:18 #695 [Verbose] > inl zip_ xs ys =
00:00:18 #696 [Verbose] > zip_with_ pair xs ys
00:00:18 #697 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-2179-7904-79b64af5a3d5\main.spi
00:00:18 #698 [Verbose] >
00:00:18 #699 [Verbose] > ╭─[ 171.62ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #700 [Verbose] > │ () │
00:00:18 #701 [Verbose] > │ │
00:00:18 #702 [Verbose] > │ │
00:00:18 #703 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #704 [Verbose] >
00:00:18 #705 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #706 [Verbose] > // // test
00:00:18 #707 [Verbose] >
00:00:18 #708 [Verbose] > ([[ 1i32; 2; 3 ]], [[ 4i32; 5; 6 ]])
00:00:18 #709 [Verbose] > ||> zip
00:00:18 #710 [Verbose] > |> _assert_eq [[ 1, 4; 2, 5; 3, 6 ]]
00:00:18 #711 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-2196-9633-9531132404f6\main.spi
00:00:18 #712 [Verbose] >
00:00:18 #713 [Verbose] > ╭─[ 288.38ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #714 [Verbose] > │ type UH0 = │
00:00:18 #715 [Verbose] > │ | UH0_0 of int32 * int32 * UH0 │
00:00:18 #716 [Verbose] > │ | UH0_1 │
00:00:18 #717 [Verbose] > │ let rec method0 () : unit = │
00:00:18 #718 [Verbose] > │ let v18 : UH0 = UH0_1 │
00:00:18 #719 [Verbose] > │ let v19 : UH0 = UH0_0(3, 6, v18) │
00:00:18 #720 [Verbose] > │ let v20 : UH0 = UH0_0(2, 5, v19) │
00:00:18 #721 [Verbose] > │ let v21 : UH0 = UH0_0(1, 4, v20) │
00:00:18 #722 [Verbose] > │ let v22 : UH0 = UH0_1 │
00:00:18 #723 [Verbose] > │ let v23 : UH0 = UH0_0(3, 6, v22) │
00:00:18 #724 [Verbose] > │ let v24 : UH0 = UH0_0(2, 5, v23) │
00:00:18 #725 [Verbose] > │ let v25 : UH0 = UH0_0(1, 4, v24) │
00:00:18 #726 [Verbose] > │ let v26 : string = $"__expect / actual: %A{v21} / expected: %A{v25}" │
00:00:18 #727 [Verbose] > │ () │
00:00:18 #728 [Verbose] > │ method0() │
00:00:18 #729 [Verbose] > │ │
00:00:18 #730 [Verbose] > │ │
00:00:18 #731 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #732 [Verbose] >
00:00:18 #733 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 #734 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 #735 [Verbose] > │ ## indexed │
00:00:18 #736 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #737 [Verbose] >
00:00:18 #738 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #739 [Verbose] > inl indexed list =
00:00:18 #740 [Verbose] > (([[]], 0), list)
00:00:18 #741 [Verbose] > ||> listm.fold fun (acc, i) x =>
00:00:18 #742 [Verbose] > (i, x) :: acc, i + 1
00:00:18 #743 [Verbose] > |> fst
00:00:18 #744 [Verbose] > |> listm.rev
00:00:18 #745 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-2226-2660-296277425abb\main.spi
00:00:19 #746 [Verbose] >
00:00:19 #747 [Verbose] > ╭─[ 198.44ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #748 [Verbose] > │ () │
00:00:19 #749 [Verbose] > │ │
00:00:19 #750 [Verbose] > │ │
00:00:19 #751 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #752 [Verbose] >
00:00:19 #753 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #754 [Verbose] > // // test
00:00:19 #755 [Verbose] >
00:00:19 #756 [Verbose] > listm.init 5i32 ((*) 2)
00:00:19 #757 [Verbose] > |> indexed
00:00:19 #758 [Verbose] > |> _assert_eq [[ 0i32, 0; 1, 2; 2, 4; 3, 6; 4, 8 ]]
00:00:19 #759 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-2246-4676-4b9db76f24d7\main.spi
00:00:19 #760 [Verbose] >
00:00:19 #761 [Verbose] > ╭─[ 261.66ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #762 [Verbose] > │ type UH0 = │
00:00:19 #763 [Verbose] > │ | UH0_0 of int32 * int32 * UH0 │
00:00:19 #764 [Verbose] > │ | UH0_1 │
00:00:19 #765 [Verbose] > │ let rec method0 () : unit = │
00:00:19 #766 [Verbose] > │ let v33 : UH0 = UH0_1 │
00:00:19 #767 [Verbose] > │ let v34 : UH0 = UH0_0(4, 8, v33) │
00:00:19 #768 [Verbose] > │ let v35 : UH0 = UH0_0(3, 6, v34) │
00:00:19 #769 [Verbose] > │ let v36 : UH0 = UH0_0(2, 4, v35) │
00:00:19 #770 [Verbose] > │ let v37 : UH0 = UH0_0(1, 2, v36) │
00:00:19 #771 [Verbose] > │ let v38 : UH0 = UH0_0(0, 0, v37) │
00:00:19 #772 [Verbose] > │ let v39 : UH0 = UH0_1 │
00:00:19 #773 [Verbose] > │ let v40 : UH0 = UH0_0(4, 8, v39) │
00:00:19 #774 [Verbose] > │ let v41 : UH0 = UH0_0(3, 6, v40) │
00:00:19 #775 [Verbose] > │ let v42 : UH0 = UH0_0(2, 4, v41) │
00:00:19 #776 [Verbose] > │ let v43 : UH0 = UH0_0(1, 2, v42) │
00:00:19 #777 [Verbose] > │ let v44 : UH0 = UH0_0(0, 0, v43) │
00:00:19 #778 [Verbose] > │ let v45 : string = $"__expect / actual: %A{v38} / expected: %A{v44}" │
00:00:19 #779 [Verbose] > │ () │
00:00:19 #780 [Verbose] > │ method0() │
00:00:19 #781 [Verbose] > │ │
00:00:19 #782 [Verbose] > │ │
00:00:19 #783 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #784 [Verbose] >
00:00:19 #785 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 #786 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 #787 [Verbose] > │ ## group_by │
00:00:19 #788 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #789 [Verbose] >
00:00:19 #790 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #791 [Verbose] > inl group_by fn list =
00:00:19 #792 [Verbose] > (list, [[]])
00:00:19 #793 [Verbose] > ||> listm.foldBack fun x acc =>
00:00:19 #794 [Verbose] > inl xk = fn x
00:00:19 #795 [Verbose] > inl found, new_acc =
00:00:19 #796 [Verbose] > ((false, [[]]), acc)
00:00:19 #797 [Verbose] > ||> listm.fold fun (found, acc') (k, xs) =>
00:00:19 #798 [Verbose] > if k = xk
00:00:19 #799 [Verbose] > then true, (k, x :: xs) :: acc'
00:00:19 #800 [Verbose] > else found, (k, xs) :: acc'
00:00:19 #801 [Verbose] > if found
00:00:19 #802 [Verbose] > then new_acc
00:00:19 #803 [Verbose] > else (xk, [[ x ]]) :: new_acc
00:00:19 #804 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-2274-7471-7ff68f3cda99\main.spi
00:00:19 #805 [Verbose] >
00:00:19 #806 [Verbose] > ╭─[ 199.45ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #807 [Verbose] > │ () │
00:00:19 #808 [Verbose] > │ │
00:00:19 #809 [Verbose] > │ │
00:00:19 #810 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #811 [Verbose] >
00:00:19 #812 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #813 [Verbose] > // // test
00:00:19 #814 [Verbose] >
00:00:19 #815 [Verbose] > listm.init 10i32 id
00:00:19 #816 [Verbose] > |> group_by (fun x => x % 2 = 0)
00:00:19 #817 [Verbose] > |> _assert_eq [[ true, [[ 0; 2; 4; 6; 8 ]]; false, [[ 1; 3; 5; 7; 9 ]] ]]
00:00:19 #818 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-2294-9472-9e7ed2ac20fc\main.spi
00:00:19 #819 [Verbose] >
00:00:19 #820 [Verbose] > ╭─[ 286.69ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #821 [Verbose] > │ type UH0 = │
00:00:19 #822 [Verbose] > │ | UH0_0 of int32 * UH0 │
00:00:19 #823 [Verbose] > │ | UH0_1 │
00:00:19 #824 [Verbose] > │ and UH1 = │
00:00:19 #825 [Verbose] > │ | UH1_0 of bool * UH0 * UH1 │
00:00:19 #826 [Verbose] > │ | UH1_1 │
00:00:19 #827 [Verbose] > │ let rec method0 () : unit = │
00:00:19 #828 [Verbose] > │ let v96 : UH0 = UH0_1 │
00:00:19 #829 [Verbose] > │ let v97 : UH0 = UH0_0(8, v96) │
00:00:19 #830 [Verbose] > │ let v98 : UH0 = UH0_0(6, v97) │
00:00:19 #831 [Verbose] > │ let v99 : UH0 = UH0_0(4, v98) │
00:00:19 #832 [Verbose] > │ let v100 : UH0 = UH0_0(2, v99) │
00:00:19 #833 [Verbose] > │ let v101 : UH0 = UH0_0(0, v100) │
00:00:19 #834 [Verbose] > │ let v102 : UH0 = UH0_1 │
00:00:19 #835 [Verbose] > │ let v103 : UH0 = UH0_0(9, v102) │
00:00:19 #836 [Verbose] > │ let v104 : UH0 = UH0_0(7, v103) │
00:00:19 #837 [Verbose] > │ let v105 : UH0 = UH0_0(5, v104) │
00:00:19 #838 [Verbose] > │ let v106 : UH0 = UH0_0(3, v105) │
00:00:19 #839 [Verbose] > │ let v107 : UH0 = UH0_0(1, v106) │
00:00:19 #840 [Verbose] > │ let v108 : UH1 = UH1_1 │
00:00:19 #841 [Verbose] > │ let v109 : UH1 = UH1_0(false, v107, v108) │
00:00:19 #842 [Verbose] > │ let v110 : UH1 = UH1_0(true, v101, v109) │
00:00:19 #843 [Verbose] > │ let v111 : UH0 = UH0_1 │
00:00:19 #844 [Verbose] > │ let v112 : UH0 = UH0_0(8, v111) │
00:00:19 #845 [Verbose] > │ let v113 : UH0 = UH0_0(6, v112) │
00:00:19 #846 [Verbose] > │ let v114 : UH0 = UH0_0(4, v113) │
00:00:19 #847 [Verbose] > │ let v115 : UH0 = UH0_0(2, v114) │
00:00:19 #848 [Verbose] > │ let v116 : UH0 = UH0_0(0, v115) │
00:00:19 #849 [Verbose] > │ let v117 : UH0 = UH0_1 │
00:00:19 #850 [Verbose] > │ let v118 : UH0 = UH0_0(9, v117) │
00:00:19 #851 [Verbose] > │ let v119 : UH0 = UH0_0(7, v118) │
00:00:19 #852 [Verbose] > │ let v120 : UH0 = UH0_0(5, v119) │
00:00:19 #853 [Verbose] > │ let v121 : UH0 = UH0_0(3, v120) │
00:00:19 #854 [Verbose] > │ let v122 : UH0 = UH0_0(1, v121) │
00:00:19 #855 [Verbose] > │ let v123 : UH1 = UH1_1 │
00:00:19 #856 [Verbose] > │ let v124 : UH1 = UH1_0(false, v122, v123) │
00:00:19 #857 [Verbose] > │ let v125 : UH1 = UH1_0(true, v116, v124) │
00:00:19 #858 [Verbose] > │ let v126 : string = $"__expect / actual: %A{v110} / expected: %A{v125}" │
00:00:19 #859 [Verbose] > │ () │
00:00:19 #860 [Verbose] > │ method0() │
00:00:19 #861 [Verbose] > │ │
00:00:19 #862 [Verbose] > │ │
00:00:19 #863 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #864 [Verbose] >
00:00:19 #865 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 #866 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 #867 [Verbose] > │ ## forall' │
00:00:19 #868 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #869 [Verbose] >
00:00:19 #870 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #871 [Verbose] > inl forall' fn (head :: tail) =
00:00:19 #872 [Verbose] > (true, tail)
00:00:19 #873 [Verbose] > ||> listm.fold fun acc x =>
00:00:19 #874 [Verbose] > acc && x = head
00:00:19 #875 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-2325-2538-22cbe66bf4f9\main.spi
00:00:20 #876 [Verbose] >
00:00:20 #877 [Verbose] > ╭─[ 193.81ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #878 [Verbose] > │ () │
00:00:20 #879 [Verbose] > │ │
00:00:20 #880 [Verbose] > │ │
00:00:20 #881 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #882 [Verbose] >
00:00:20 #883 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #884 [Verbose] > // // test
00:00:20 #885 [Verbose] >
00:00:20 #886 [Verbose] > [[ 1i32; 1; 1; 1; 1 ]]
00:00:20 #887 [Verbose] > |> forall' ((=) 1i32)
00:00:20 #888 [Verbose] > |> _assert_eq true
00:00:20 #889 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-2344-4495-44450d711a02\main.spi
00:00:20 #890 [Verbose] >
00:00:20 #891 [Verbose] > ╭─[ 204.93ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #892 [Verbose] > │ let rec method0 () : unit = │
00:00:20 #893 [Verbose] > │ let v0 : string = $"__expect / actual: %A{true} / expected: %A{true}" │
00:00:20 #894 [Verbose] > │ () │
00:00:20 #895 [Verbose] > │ method0() │
00:00:20 #896 [Verbose] > │ │
00:00:20 #897 [Verbose] > │ │
00:00:20 #898 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #899 [Verbose] >
00:00:20 #900 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 #901 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 #902 [Verbose] > │ ## last │
00:00:20 #903 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #904 [Verbose] >
00:00:20 #905 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #906 [Verbose] > inl last list =
00:00:20 #907 [Verbose] > list
00:00:20 #908 [Verbose] > |> listm.rev
00:00:20 #909 [Verbose] > |> item 0i32
00:00:20 #910 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-2366-6618-64d24f7438b8\main.spi
00:00:20 #911 [Verbose] >
00:00:20 #912 [Verbose] > ╭─[ 205.89ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #913 [Verbose] > │ () │
00:00:20 #914 [Verbose] > │ │
00:00:20 #915 [Verbose] > │ │
00:00:20 #916 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #917 [Verbose] >
00:00:20 #918 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #919 [Verbose] > // // test
00:00:20 #920 [Verbose] >
00:00:20 #921 [Verbose] > listm.init 10i32 id
00:00:20 #922 [Verbose] > |> last
00:00:20 #923 [Verbose] > |> _assert_eq 9
00:00:20 #924 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-2386-8695-897cd084bf76\main.spi
00:00:20 #925 [Verbose] >
00:00:20 #926 [Verbose] > ╭─[ 222.13ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #927 [Verbose] > │ let rec method0 () : unit = │
00:00:20 #928 [Verbose] > │ let v0 : string = $"__expect / actual: %A{9} / expected: %A{9}" │
00:00:20 #929 [Verbose] > │ () │
00:00:20 #930 [Verbose] > │ method0() │
00:00:20 #931 [Verbose] > │ │
00:00:20 #932 [Verbose] > │ │
00:00:20 #933 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #934 [Verbose] >
00:00:20 #935 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 #936 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 #937 [Verbose] > │ ## try_pick │
00:00:20 #938 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #939 [Verbose] >
00:00:20 #940 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #941 [Verbose] > inl try_pick fn list =
00:00:20 #942 [Verbose] > inl rec body fn = function
00:00:20 #943 [Verbose] > | [[]] => None
00:00:20 #944 [Verbose] > | x :: xs =>
00:00:20 #945 [Verbose] > match fn x with
00:00:20 #946 [Verbose] > | Some y => Some y
00:00:20 #947 [Verbose] > | None => loop xs
00:00:20 #948 [Verbose] > and inl loop list =
00:00:20 #949 [Verbose] > if var_is list |> not
00:00:20 #950 [Verbose] > then body fn list
00:00:20 #951 [Verbose] > else
00:00:20 #952 [Verbose] > inl fn = join fn
00:00:20 #953 [Verbose] > inl list = dyn list
00:00:20 #954 [Verbose] > join body fn list
00:00:20 #955 [Verbose] > loop list
00:00:20 #956 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-2409-0964-001de6055302\main.spi
00:00:20 #957 [Verbose] >
00:00:20 #958 [Verbose] > ╭─[ 191.85ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #959 [Verbose] > │ () │
00:00:20 #960 [Verbose] > │ │
00:00:20 #961 [Verbose] > │ │
00:00:20 #962 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #963 [Verbose] >
00:00:20 #964 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #965 [Verbose] > // // test
00:00:20 #966 [Verbose] >
00:00:20 #967 [Verbose] > listm.init 10i32 id
00:00:20 #968 [Verbose] > |> try_pick (fun x => if x = 5i32 then Some x else None)
00:00:20 #969 [Verbose] > |> _assert_eq (Some 5i32)
00:00:20 #970 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-2428-2899-2357b5b6e22f\main.spi
00:00:21 #971 [Verbose] >
00:00:21 #972 [Verbose] > ╭─[ 222.03ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #973 [Verbose] > │ type [<Struct>] US0 = │
00:00:21 #974 [Verbose] > │ | US0_0 │
00:00:21 #975 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:21 #976 [Verbose] > │ let rec method0 () : unit = │
00:00:21 #977 [Verbose] > │ let v3 : US0 = US0_1(5) │
00:00:21 #978 [Verbose] > │ let v4 : US0 = US0_1(5) │
00:00:21 #979 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:21 #980 [Verbose] > │ () │
00:00:21 #981 [Verbose] > │ method0() │
00:00:21 #982 [Verbose] > │ │
00:00:21 #983 [Verbose] > │ │
00:00:21 #984 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #985 [Verbose] > [NbConvertApp] Converting notebook listm'.dib.ipynb to html
00:00:22 #986 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:22 #987 [Verbose] > validate(nb)
00:00:23 #988 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:23 #989 [Verbose] > return _pygments_highlight(
00:00:24 #990 [Verbose] > [NbConvertApp] Writing 362901 bytes to listm'.dib.html
00:00:24 #991 [Debug] executeAsync / exitCode: 0 / output.Length: 51842
00:00:24 #992 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\lib\spiral
00:00:00 #4 [Verbose] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #6 [Debug] runWithTimeoutAsync / timeout: 500
00:00:00 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805
00:00:01 #11 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 benchmark.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:03 #12 [Verbose] >
00:00:03 #13 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 #14 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 #15 [Verbose] > │ ## benchmark (Polyglot) │
00:00:03 #16 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:04 #17 [Verbose] >
00:00:04 #18 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:04 #19 [Verbose] > // // test
00:00:04 #20 [Verbose] >
00:00:04 #21 [Verbose] > open testing
00:00:07 #22 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-3550-5066-507f66f9272b\main.spi
00:00:10 #23 [Verbose] >
00:00:10 #24 [Verbose] > ╭─[ 6.10s - stdout ]───────────────────────────────────────────────────────────╮
00:00:10 #25 [Verbose] > │ () │
00:00:10 #26 [Verbose] > │ │
00:00:10 #27 [Verbose] > │ │
00:00:10 #28 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #29 [Verbose] >
00:00:10 #30 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #31 [Verbose] > inl (/@) x = listm'.(/@) x
00:00:10 #32 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-3909-0925-0f45f436c268\main.spi
00:00:10 #33 [Verbose] >
00:00:10 #34 [Verbose] > ╭─[ 261.00ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #35 [Verbose] > │ () │
00:00:10 #36 [Verbose] > │ │
00:00:10 #37 [Verbose] > │ │
00:00:10 #38 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #39 [Verbose] >
00:00:10 #40 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #41 [Verbose] > inl gc_collect () =
00:00:10 #42 [Verbose] > run_target function
00:00:10 #43 [Verbose] > | Fsharp => fun () => $"System.GC.Collect ()"
00:00:10 #44 [Verbose] > | _ => fun () => ()
00:00:10 #45 [Verbose] >
00:00:10 #46 [Verbose] > inl printfn x =
00:00:10 #47 [Verbose] > console.write_line x
00:00:10 #48 [Verbose] >
00:00:10 #49 [Verbose] > nominal stopwatch = $"System.Diagnostics.Stopwatch"
00:00:10 #50 [Verbose] >
00:00:10 #51 [Verbose] > inl stopwatch () : stopwatch =
00:00:10 #52 [Verbose] > $"`stopwatch" ()
00:00:10 #53 [Verbose] >
00:00:10 #54 [Verbose] > inl stopwatch_elapsed_milliseconds (stopwatch : stopwatch) : i64 =
00:00:10 #55 [Verbose] > $"!stopwatch.ElapsedMilliseconds"
00:00:10 #56 [Verbose] >
00:00:10 #57 [Verbose] > inl stopwatch_start (stopwatch : stopwatch) : () =
00:00:10 #58 [Verbose] > $"!stopwatch.Start ()"
00:00:10 #59 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-3935-3501-3f46eaa596f1\main.spi
00:00:10 #60 [Verbose] >
00:00:10 #61 [Verbose] > ╭─[ 255.43ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #62 [Verbose] > │ () │
00:00:10 #63 [Verbose] > │ │
00:00:10 #64 [Verbose] > │ │
00:00:10 #65 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #66 [Verbose] >
00:00:10 #67 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #68 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #69 [Verbose] > │ ## test_case_result │
00:00:10 #70 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #71 [Verbose] >
00:00:10 #72 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #73 [Verbose] > type test_case_result =
00:00:10 #74 [Verbose] > {
00:00:10 #75 [Verbose] > Input : string
00:00:10 #76 [Verbose] > Expected : string
00:00:10 #77 [Verbose] > Result : string
00:00:10 #78 [Verbose] > TimeList : a u64 i64
00:00:10 #79 [Verbose] > }
00:00:10 #80 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-3960-6095-62a7ffca9c7f\main.spi
00:00:10 #81 [Verbose] >
00:00:10 #82 [Verbose] > ╭─[ 229.40ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #83 [Verbose] > │ () │
00:00:10 #84 [Verbose] > │ │
00:00:10 #85 [Verbose] > │ │
00:00:10 #86 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #87 [Verbose] >
00:00:10 #88 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #89 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #90 [Verbose] > │ ## run │
00:00:10 #91 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #92 [Verbose] >
00:00:10 #93 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #94 [Verbose] > inl run forall input expected.
00:00:10 #95 [Verbose] > count
00:00:10 #96 [Verbose] > (solutions : list (string * (input -> expected)))
00:00:10 #97 [Verbose] > ((input, expected) : (input * expected))
00:00:10 #98 [Verbose] > : test_case_result
00:00:10 #99 [Verbose] > =
00:00:10 #100 [Verbose] > inl input_str = input |> sm'.format_debug
00:00:10 #101 [Verbose] >
00:00:10 #102 [Verbose] > printfn ""
00:00:10 #103 [Verbose] > printfn ($"$\"Solution: {!input_str} \"" : string)
00:00:10 #104 [Verbose] >
00:00:10 #105 [Verbose] > inl performance_invoke (fn : () -> expected) =
00:00:10 #106 [Verbose] > gc_collect ()
00:00:10 #107 [Verbose] > inl stopwatch = stopwatch ()
00:00:10 #108 [Verbose] > stopwatch |> stopwatch_start
00:00:10 #109 [Verbose] > inl time1 = stopwatch |> stopwatch_elapsed_milliseconds
00:00:10 #110 [Verbose] > inl result : expected =
00:00:10 #111 [Verbose] > am'.init_series 0 count 1i32
00:00:10 #112 [Verbose] > |> am'.parallel_map fun _n => fn ()
00:00:10 #113 [Verbose] > |> am'.last
00:00:10 #114 [Verbose] > inl time2 = (stopwatch |> stopwatch_elapsed_milliseconds) - time1
00:00:10 #115 [Verbose] > result, time2
00:00:10 #116 [Verbose] >
00:00:10 #117 [Verbose] > inl results_with_time : a u64 _ =
00:00:10 #118 [Verbose] > solutions
00:00:10 #119 [Verbose] > |> listm'.indexed
00:00:10 #120 [Verbose] > |> listm.toArray
00:00:10 #121 [Verbose] > |> am.map fun ((i : i32), (test_name, solution)) =>
00:00:10 #122 [Verbose] > inl result, time = performance_invoke fun () => solution input
00:00:10 #123 [Verbose] > printfn ($"$\"Test case {!i + 1}. {!test_name}. Time: {!time} \"" :
00:00:10 #124 [Verbose] > string)
00:00:10 #125 [Verbose] > result, time
00:00:10 #126 [Verbose] >
00:00:10 #127 [Verbose] > match results_with_time |> am.map fst with
00:00:10 #128 [Verbose] > | array when length array <= 1 => ()
00:00:10 #129 [Verbose] > | array when array |> am.forall' ((=) (index array 0)) => ()
00:00:10 #130 [Verbose] > | results => failwith ($"$\"Challenge error: {!results}\"" : string)
00:00:10 #131 [Verbose] >
00:00:10 #132 [Verbose] > {
00:00:10 #133 [Verbose] > Input = input_str
00:00:10 #134 [Verbose] > Expected = expected |> sm'.format_debug
00:00:10 #135 [Verbose] > Result = results_with_time |> am.map fst |> fun array => index array 0
00:00:10 #136 [Verbose] > |> sm'.format_debug
00:00:10 #137 [Verbose] > TimeList = results_with_time |> am.map snd
00:00:10 #138 [Verbose] > }
00:00:10 #139 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-3984-8457-898d85402813\main.spi
00:00:11 #140 [Verbose] >
00:00:11 #141 [Verbose] > ╭─[ 230.14ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #142 [Verbose] > │ () │
00:00:11 #143 [Verbose] > │ │
00:00:11 #144 [Verbose] > │ │
00:00:11 #145 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #146 [Verbose] >
00:00:11 #147 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #148 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #149 [Verbose] > │ ## run_all │
00:00:11 #150 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #151 [Verbose] >
00:00:11 #152 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #153 [Verbose] > inl run_all forall input expected.
00:00:11 #154 [Verbose] > test_name
00:00:11 #155 [Verbose] > count
00:00:11 #156 [Verbose] > (solutions : list (string * (input -> expected)))
00:00:11 #157 [Verbose] > test_cases
00:00:11 #158 [Verbose] > =
00:00:11 #159 [Verbose] > printfn ""
00:00:11 #160 [Verbose] > printfn ""
00:00:11 #161 [Verbose] > printfn ($"$\"Test: {!test_name}\"" : string)
00:00:11 #162 [Verbose] > test_cases
00:00:11 #163 [Verbose] > |> listm.toArray
00:00:11 #164 [Verbose] > |> am.map (run count solutions)
00:00:11 #165 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-4008-0803-04405d4a4ce5\main.spi
00:00:11 #166 [Verbose] >
00:00:11 #167 [Verbose] > ╭─[ 228.83ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #168 [Verbose] > │ () │
00:00:11 #169 [Verbose] > │ │
00:00:11 #170 [Verbose] > │ │
00:00:11 #171 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #172 [Verbose] >
00:00:11 #173 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #174 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #175 [Verbose] > │ ## sort_result_list │
00:00:11 #176 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #177 [Verbose] >
00:00:11 #178 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #179 [Verbose] > inl sort_result_list results =
00:00:11 #180 [Verbose] > inl table =
00:00:11 #181 [Verbose] > inl rows =
00:00:11 #182 [Verbose] > results
00:00:11 #183 [Verbose] > |> am.map fun (result : test_case_result) =>
00:00:11 #184 [Verbose] > inl best =
00:00:11 #185 [Verbose] > result.TimeList
00:00:11 #186 [Verbose] > |> am'.indexed
00:00:11 #187 [Verbose] > |> am.map fun (i, time) =>
00:00:11 #188 [Verbose] > i + 1i64, time
00:00:11 #189 [Verbose] > |> am'.sort_by snd
00:00:11 #190 [Verbose] > |> fun array => index array 0i32
00:00:11 #191 [Verbose] > |> sm'.format_debug
00:00:11 #192 [Verbose] > inl row =
00:00:11 #193 [Verbose] > [[
00:00:11 #194 [Verbose] > result.Input
00:00:11 #195 [Verbose] > result.Expected
00:00:11 #196 [Verbose] > result.Result
00:00:11 #197 [Verbose] > best
00:00:11 #198 [Verbose] > ]]
00:00:11 #199 [Verbose] > inl color : option console.console_color =
00:00:11 #200 [Verbose] > open console
00:00:11 #201 [Verbose] > match result.Expected = result.Result with
00:00:11 #202 [Verbose] > | true => Some $"`console_color.DarkGreen"
00:00:11 #203 [Verbose] > | false => Some $"`console_color.DarkRed"
00:00:11 #204 [Verbose] > row, color
00:00:11 #205 [Verbose] >
00:00:11 #206 [Verbose] > inl header =
00:00:11 #207 [Verbose] > [[
00:00:11 #208 [Verbose] > [[
00:00:11 #209 [Verbose] > "Input"
00:00:11 #210 [Verbose] > "Expected"
00:00:11 #211 [Verbose] > "Result"
00:00:11 #212 [Verbose] > "Best"
00:00:11 #213 [Verbose] > ]]
00:00:11 #214 [Verbose] > [[
00:00:11 #215 [Verbose] > "---"
00:00:11 #216 [Verbose] > "---"
00:00:11 #217 [Verbose] > "---"
00:00:11 #218 [Verbose] > "---"
00:00:11 #219 [Verbose] > ]]
00:00:11 #220 [Verbose] > ]]
00:00:11 #221 [Verbose] > |> listm.map fun row => row, None
00:00:11 #222 [Verbose] > |> listm.toArray
00:00:11 #223 [Verbose] > rows |> am.append header
00:00:11 #224 [Verbose] >
00:00:11 #225 [Verbose] > inl formattedTable =
00:00:11 #226 [Verbose] > inl lengthMap : mapm.map i32 i64 =
00:00:11 #227 [Verbose] > table
00:00:11 #228 [Verbose] > |> am.map (fst >> listm.toArray)
00:00:11 #229 [Verbose] > |> am'.transpose
00:00:11 #230 [Verbose] > |> am.map fun column =>
00:00:11 #231 [Verbose] > column
00:00:11 #232 [Verbose] > |> am.map sm.length
00:00:11 #233 [Verbose] > |> am'.sort_descending
00:00:11 #234 [Verbose] > |> am'.try_item 0i32
00:00:11 #235 [Verbose] > |> optionm'.default_value 0i64
00:00:11 #236 [Verbose] > |> am'.indexed
00:00:11 #237 [Verbose] > |> fun (x : a i32 _) => x
00:00:11 #238 [Verbose] > |> mapm.of_array
00:00:11 #239 [Verbose] > table
00:00:11 #240 [Verbose] > |> am.map fun (row, color) =>
00:00:11 #241 [Verbose] > inl newRow =
00:00:11 #242 [Verbose] > row
00:00:11 #243 [Verbose] > |> listm'.indexed
00:00:11 #244 [Verbose] > |> listm.map fun (i, cell) =>
00:00:11 #245 [Verbose] > cell |> sm'.pad_right (lengthMap |> mapm.item i |> conv)
00:00:11 #246 [Verbose] > |> listm.toArray
00:00:11 #247 [Verbose] > newRow, color
00:00:11 #248 [Verbose] >
00:00:11 #249 [Verbose] > printfn ""
00:00:11 #250 [Verbose] > formattedTable
00:00:11 #251 [Verbose] > |> am.iter fun ((row : a i32 string), color) =>
00:00:11 #252 [Verbose] > match color with
00:00:11 #253 [Verbose] > | Some color => color |> console.set_foreground_color
00:00:11 #254 [Verbose] > | None => console.reset_color ()
00:00:11 #255 [Verbose] >
00:00:11 #256 [Verbose] > printfn (row |> sm'.join' "\t| ")
00:00:11 #257 [Verbose] >
00:00:11 #258 [Verbose] > console.reset_color ()
00:00:11 #259 [Verbose] >
00:00:11 #260 [Verbose] > inl averages : a u64 _ =
00:00:11 #261 [Verbose] > results
00:00:11 #262 [Verbose] > |> am.map fun result =>
00:00:11 #263 [Verbose] > result.TimeList
00:00:11 #264 [Verbose] > |> am.map ($"float" : i64 -> f64)
00:00:11 #265 [Verbose] > |> am'.transpose
00:00:11 #266 [Verbose] > |> am.map am'.average
00:00:11 #267 [Verbose] > |> am.map ($"int64" : f64 -> i64)
00:00:11 #268 [Verbose] > |> am'.indexed
00:00:11 #269 [Verbose] >
00:00:11 #270 [Verbose] > printfn ""
00:00:11 #271 [Verbose] > printfn "Average Ranking "
00:00:11 #272 [Verbose] > averages
00:00:11 #273 [Verbose] > |> am'.sort_by snd
00:00:11 #274 [Verbose] > |> am.iter fun ((i : i32), avg) =>
00:00:11 #275 [Verbose] > printfn ($"$\"Test case %d{!i + 1}. Average Time: %A{!avg} \"" :
00:00:11 #276 [Verbose] > string)
00:00:11 #277 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-4031-3167-33a428a64aff\main.spi
00:00:11 #278 [Verbose] >
00:00:11 #279 [Verbose] > ╭─[ 211.77ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #280 [Verbose] > │ () │
00:00:11 #281 [Verbose] > │ │
00:00:11 #282 [Verbose] > │ │
00:00:11 #283 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #284 [Verbose] >
00:00:11 #285 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #286 [Verbose] > // // test
00:00:11 #287 [Verbose] >
00:00:11 #288 [Verbose] > inl is_fast () =
00:00:11 #289 [Verbose] > false
00:00:11 #290 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-4052-5277-56e10b07a367\main.spi
00:00:11 #291 [Verbose] >
00:00:11 #292 [Verbose] > ╭─[ 357.01ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #293 [Verbose] > │ () │
00:00:11 #294 [Verbose] > │ │
00:00:11 #295 [Verbose] > │ │
00:00:11 #296 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #297 [Verbose] >
00:00:11 #298 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #299 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #300 [Verbose] > │ ## empty2Tests │
00:00:11 #301 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #302 [Verbose] >
00:00:11 #303 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #304 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #305 [Verbose] > │ Test: Empty2 │
00:00:11 #306 [Verbose] > │ │
00:00:11 #307 [Verbose] > │ Solution: (a, a) │
00:00:11 #308 [Verbose] > │ Test case 1. A. Time: 59L │
00:00:11 #309 [Verbose] > │ │
00:00:11 #310 [Verbose] > │ Solution: (a, a) │
00:00:11 #311 [Verbose] > │ Test case 1. A. Time: 53L │
00:00:11 #312 [Verbose] > │ │
00:00:11 #313 [Verbose] > │ Input | Expected | Result | Best │
00:00:11 #314 [Verbose] > │ --- | --- | --- | --- │
00:00:11 #315 [Verbose] > │ (a, a) | a | a | (1, 59) │
00:00:11 #316 [Verbose] > │ (a, a) | a | a | (1, 53) │
00:00:11 #317 [Verbose] > │ │
00:00:11 #318 [Verbose] > │ Averages │
00:00:11 #319 [Verbose] > │ Test case 1. Average Time: 56L │
00:00:11 #320 [Verbose] > │ │
00:00:11 #321 [Verbose] > │ Ranking │
00:00:11 #322 [Verbose] > │ Test case 1. Average Time: 56L │
00:00:11 #323 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #324 [Verbose] >
00:00:11 #325 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #326 [Verbose] > // // test
00:00:11 #327 [Verbose] >
00:00:11 #328 [Verbose] > inl get_solutions () =
00:00:11 #329 [Verbose] > [[
00:00:11 #330 [Verbose] > "A",
00:00:11 #331 [Verbose] > fun (a, _b) =>
00:00:11 #332 [Verbose] > a
00:00:11 #333 [Verbose] >
00:00:11 #334 [Verbose] > "B",
00:00:11 #335 [Verbose] > fun (_a, b) =>
00:00:11 #336 [Verbose] > b
00:00:11 #337 [Verbose] > ]]
00:00:11 #338 [Verbose] >
00:00:11 #339 [Verbose] > inl rec empty_2_tests () =
00:00:11 #340 [Verbose] > inl test_cases = [[
00:00:11 #341 [Verbose] > ("a", "a"), "a"
00:00:11 #342 [Verbose] > ("b", "b"), "b"
00:00:11 #343 [Verbose] > ]]
00:00:11 #344 [Verbose] >
00:00:11 #345 [Verbose] > inl solutions = get_solutions ()
00:00:11 #346 [Verbose] >
00:00:11 #347 [Verbose] > // inl is_fast () = true
00:00:11 #348 [Verbose] >
00:00:11 #349 [Verbose] > inl count =
00:00:11 #350 [Verbose] > if is_fast ()
00:00:11 #351 [Verbose] > then 1000i32
00:00:11 #352 [Verbose] > else 2000000i32
00:00:11 #353 [Verbose] >
00:00:11 #354 [Verbose] > run_all (nameof empty_2_tests) count solutions test_cases
00:00:11 #355 [Verbose] > |> sort_result_list
00:00:11 #356 [Verbose] >
00:00:11 #357 [Verbose] > empty_2_tests ()
00:00:12 #358 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-4090-9074-99bd468bed2f\main.spi
00:00:22 #359 [Verbose] >
00:00:22 #360 [Verbose] > ╭─[ 10.67s - stdout ]──────────────────────────────────────────────────────────╮
00:00:22 #361 [Verbose] > │ type UH0 = │
00:00:22 #362 [Verbose] > │ | UH0_0 of string * string * string * UH0 │
00:00:22 #363 [Verbose] > │ | UH0_1 │
00:00:22 #364 [Verbose] > │ and Mut0 = {mutable l0 : uint64} │
00:00:22 #365 [Verbose] > │ and UH1 = │
00:00:22 #366 [Verbose] > │ | UH1_0 of int32 * string * (struct (string * string) -> string) * UH1 │
00:00:22 #367 [Verbose] > │ | UH1_1 │
00:00:22 #368 [Verbose] > │ and Mut1 = {mutable l0 : int32} │
00:00:22 #369 [Verbose] > │ and UH2 = │
00:00:22 #370 [Verbose] > │ | UH2_0 of string * UH2 │
00:00:22 #371 [Verbose] > │ | UH2_1 │
00:00:22 #372 [Verbose] > │ and [<Struct>] US0 = │
00:00:22 #373 [Verbose] > │ | US0_0 │
00:00:22 #374 [Verbose] > │ | US0_1 of f1_0 : System.ConsoleColor │
00:00:22 #375 [Verbose] > │ and UH3 = │
00:00:22 #376 [Verbose] > │ | UH3_0 of int64 * int64 * UH3 │
00:00:22 #377 [Verbose] > │ | UH3_1 │
00:00:22 #378 [Verbose] > │ and Mut2 = {mutable l0 : uint64; mutable l1 : UH3; mutable l2 : int64} │
00:00:22 #379 [Verbose] > │ and UH4 = │
00:00:22 #380 [Verbose] > │ | UH4_0 of UH2 * US0 * UH4 │
00:00:22 #381 [Verbose] > │ | UH4_1 │
00:00:22 #382 [Verbose] > │ and [<Struct>] US1 = │
00:00:22 #383 [Verbose] > │ | US1_0 │
00:00:22 #384 [Verbose] > │ | US1_1 of f1_0 : int64 │
00:00:22 #385 [Verbose] > │ and UH5 = │
00:00:22 #386 [Verbose] > │ | UH5_0 of int32 * int64 * UH5 │
00:00:22 #387 [Verbose] > │ | UH5_1 │
00:00:22 #388 [Verbose] > │ and Mut3 = {mutable l0 : uint64; mutable l1 : UH5; mutable l2 : int32} │
00:00:22 #389 [Verbose] > │ and UH6 = │
00:00:22 #390 [Verbose] > │ | UH6_0 of int32 * string * UH6 │
00:00:22 #391 [Verbose] > │ | UH6_1 │
00:00:22 #392 [Verbose] > │ let rec method2 (v0 : UH0, v1 : uint64) : uint64 = │
00:00:22 #393 [Verbose] > │ match v0 with │
00:00:22 #394 [Verbose] > │ | UH0_0(v2, v3, v4, v5) -> (* Cons *) │
00:00:22 #395 [Verbose] > │ let v6 : uint64 = v1 + 1UL │
00:00:22 #396 [Verbose] > │ method2(v5, v6) │
00:00:22 #397 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:22 #398 [Verbose] > │ v1 │
00:00:22 #399 [Verbose] > │ and method3 (v0 : (struct (string * string * string) []), v1 : UH0, v2 : │
00:00:22 #400 [Verbose] > │ uint64) : uint64 = │
00:00:22 #401 [Verbose] > │ match v1 with │
00:00:22 #402 [Verbose] > │ | UH0_0(v3, v4, v5, v6) -> (* Cons *) │
00:00:22 #403 [Verbose] > │ v0.[int v2] <- struct (v3, v4, v5) │
00:00:22 #404 [Verbose] > │ let v7 : uint64 = v2 + 1UL │
00:00:22 #405 [Verbose] > │ method3(v0, v6, v7) │
00:00:22 #406 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:22 #407 [Verbose] > │ v2 │
00:00:22 #408 [Verbose] > │ and method1 (v0 : UH0) : (struct (string * string * string) []) = │
00:00:22 #409 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:22 #410 [Verbose] > │ let v2 : uint64 = method2(v0, v1) │
00:00:22 #411 [Verbose] > │ let v3 : (struct (string * string * string) []) = │
00:00:22 #412 [Verbose] > │ Array.zeroCreate<struct (string * string * string)> │
00:00:22 #413 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:00:22 #414 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:22 #415 [Verbose] > │ let v5 : uint64 = method3(v3, v0, v4) │
00:00:22 #416 [Verbose] > │ v3 │
00:00:22 #417 [Verbose] > │ and method4 (v0 : uint64, v1 : Mut0) : bool = │
00:00:22 #418 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:00:22 #419 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:22 #420 [Verbose] > │ v3 │
00:00:22 #421 [Verbose] > │ and closure1 () struct (v0 : string, v1 : string) : string = │
00:00:22 #422 [Verbose] > │ v0 │
00:00:22 #423 [Verbose] > │ and closure2 () struct (v0 : string, v1 : string) : string = │
00:00:22 #424 [Verbose] > │ v1 │
00:00:22 #425 [Verbose] > │ and method6 (v0 : UH1, v1 : uint64) : uint64 = │
00:00:22 #426 [Verbose] > │ match v0 with │
00:00:22 #427 [Verbose] > │ | UH1_0(v2, v3, v4, v5) -> (* Cons *) │
00:00:22 #428 [Verbose] > │ let v6 : uint64 = v1 + 1UL │
00:00:22 #429 [Verbose] > │ method6(v5, v6) │
00:00:22 #430 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:22 #431 [Verbose] > │ v1 │
00:00:22 #432 [Verbose] > │ and method7 (v0 : (struct (int32 * string * (struct (string * string) -> │
00:00:22 #433 [Verbose] > │ string)) []), v1 : UH1, v2 : uint64) : uint64 = │
00:00:22 #434 [Verbose] > │ match v1 with │
00:00:22 #435 [Verbose] > │ | UH1_0(v3, v4, v5, v6) -> (* Cons *) │
00:00:22 #436 [Verbose] > │ v0.[int v2] <- struct (v3, v4, v5) │
00:00:22 #437 [Verbose] > │ let v7 : uint64 = v2 + 1UL │
00:00:22 #438 [Verbose] > │ method7(v0, v6, v7) │
00:00:22 #439 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:22 #440 [Verbose] > │ v2 │
00:00:22 #441 [Verbose] > │ and method5 (v0 : UH1) : (struct (int32 * string * (struct (string * string) │
00:00:22 #442 [Verbose] > │ -> string)) []) = │
00:00:22 #443 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:22 #444 [Verbose] > │ let v2 : uint64 = method6(v0, v1) │
00:00:22 #445 [Verbose] > │ let v3 : (struct (int32 * string * (struct (string * string) -> string)) │
00:00:22 #446 [Verbose] > │ []) = Array.zeroCreate<struct (int32 * string * (struct (string * string) -> │
00:00:22 #447 [Verbose] > │ string))> (System.Convert.ToInt32(v2)) │
00:00:22 #448 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:22 #449 [Verbose] > │ let v5 : uint64 = method7(v3, v0, v4) │
00:00:22 #450 [Verbose] > │ v3 │
00:00:22 #451 [Verbose] > │ and method8 (v0 : Mut1) : bool = │
00:00:22 #452 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:22 #453 [Verbose] > │ let v2 : bool = v1 < 2000001 │
00:00:22 #454 [Verbose] > │ v2 │
00:00:22 #455 [Verbose] > │ and closure3 (v0 : string, v1 : string, v2 : (struct (string * string) -> │
00:00:22 #456 [Verbose] > │ string)) (v3 : int32) : string = │
00:00:22 #457 [Verbose] > │ v2 struct (v0, v1) │
00:00:22 #458 [Verbose] > │ and method9 (v0 : string, v1 : (string []), v2 : uint64) : bool = │
00:00:22 #459 [Verbose] > │ let v3 : uint64 = System.Convert.ToUInt64 v1.Length │
00:00:22 #460 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:22 #461 [Verbose] > │ if v4 then │
00:00:22 #462 [Verbose] > │ let v5 : string = v1.[int v2] │
00:00:22 #463 [Verbose] > │ let v6 : bool = v0 = v5 │
00:00:22 #464 [Verbose] > │ if v6 then │
00:00:22 #465 [Verbose] > │ let v7 : uint64 = v2 + 1UL │
00:00:22 #466 [Verbose] > │ method9(v0, v1, v7) │
00:00:22 #467 [Verbose] > │ else │
00:00:22 #468 [Verbose] > │ false │
00:00:22 #469 [Verbose] > │ else │
00:00:22 #470 [Verbose] > │ true │
00:00:22 #471 [Verbose] > │ and method10 (v0 : uint64, v1 : Mut2) : bool = │
00:00:22 #472 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:00:22 #473 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:22 #474 [Verbose] > │ v3 │
00:00:22 #475 [Verbose] > │ and method11 (v0 : UH3, v1 : UH3) : UH3 = │
00:00:22 #476 [Verbose] > │ match v0 with │
00:00:22 #477 [Verbose] > │ | UH3_0(v2, v3, v4) -> (* Cons *) │
00:00:22 #478 [Verbose] > │ let v5 : UH3 = UH3_0(v2, v3, v1) │
00:00:22 #479 [Verbose] > │ method11(v4, v5) │
00:00:22 #480 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:00:22 #481 [Verbose] > │ v1 │
00:00:22 #482 [Verbose] > │ and method13 (v0 : UH3, v1 : int32) : int32 = │
00:00:22 #483 [Verbose] > │ match v0 with │
00:00:22 #484 [Verbose] > │ | UH3_0(v2, v3, v4) -> (* Cons *) │
00:00:22 #485 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:00:22 #486 [Verbose] > │ method13(v4, v5) │
00:00:22 #487 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:00:22 #488 [Verbose] > │ v1 │
00:00:22 #489 [Verbose] > │ and method14 (v0 : (struct (int64 * int64) []), v1 : UH3, v2 : int32) : │
00:00:22 #490 [Verbose] > │ int32 = │
00:00:22 #491 [Verbose] > │ match v1 with │
00:00:22 #492 [Verbose] > │ | UH3_0(v3, v4, v5) -> (* Cons *) │
00:00:22 #493 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:22 #494 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:00:22 #495 [Verbose] > │ method14(v0, v5, v6) │
00:00:22 #496 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:00:22 #497 [Verbose] > │ v2 │
00:00:22 #498 [Verbose] > │ and method12 (v0 : UH3) : (struct (int64 * int64) []) = │
00:00:22 #499 [Verbose] > │ let v1 : int32 = 0 │
00:00:22 #500 [Verbose] > │ let v2 : int32 = method13(v0, v1) │
00:00:22 #501 [Verbose] > │ let v3 : (struct (int64 * int64) []) = Array.zeroCreate<struct (int64 * │
00:00:22 #502 [Verbose] > │ int64)> (v2) │
00:00:22 #503 [Verbose] > │ let v4 : int32 = 0 │
00:00:22 #504 [Verbose] > │ let v5 : int32 = method14(v3, v0, v4) │
00:00:22 #505 [Verbose] > │ v3 │
00:00:22 #506 [Verbose] > │ and method15 (v0 : int32, v1 : Mut1) : bool = │
00:00:22 #507 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:22 #508 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:22 #509 [Verbose] > │ v3 │
00:00:22 #510 [Verbose] > │ and closure4 () struct (v0 : int64, v1 : int64) : int64 = │
00:00:22 #511 [Verbose] > │ v1 │
00:00:22 #512 [Verbose] > │ and method17 (v0 : UH4, v1 : uint64) : uint64 = │
00:00:22 #513 [Verbose] > │ match v0 with │
00:00:22 #514 [Verbose] > │ | UH4_0(v2, v3, v4) -> (* Cons *) │
00:00:22 #515 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:00:22 #516 [Verbose] > │ method17(v4, v5) │
00:00:22 #517 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:22 #518 [Verbose] > │ v1 │
00:00:22 #519 [Verbose] > │ and method18 (v0 : (struct (UH2 * US0) []), v1 : UH4, v2 : uint64) : uint64 │
00:00:22 #520 [Verbose] > │ = │
00:00:22 #521 [Verbose] > │ match v1 with │
00:00:22 #522 [Verbose] > │ | UH4_0(v3, v4, v5) -> (* Cons *) │
00:00:22 #523 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:22 #524 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:00:22 #525 [Verbose] > │ method18(v0, v5, v6) │
00:00:22 #526 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:22 #527 [Verbose] > │ v2 │
00:00:22 #528 [Verbose] > │ and method16 (v0 : UH4) : (struct (UH2 * US0) []) = │
00:00:22 #529 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:22 #530 [Verbose] > │ let v2 : uint64 = method17(v0, v1) │
00:00:22 #531 [Verbose] > │ let v3 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │
00:00:22 #532 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:00:22 #533 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:22 #534 [Verbose] > │ let v5 : uint64 = method18(v3, v0, v4) │
00:00:22 #535 [Verbose] > │ v3 │
00:00:22 #536 [Verbose] > │ and method20 (v0 : UH2, v1 : uint64) : uint64 = │
00:00:22 #537 [Verbose] > │ match v0 with │
00:00:22 #538 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:00:22 #539 [Verbose] > │ let v4 : uint64 = v1 + 1UL │
00:00:22 #540 [Verbose] > │ method20(v3, v4) │
00:00:22 #541 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:22 #542 [Verbose] > │ v1 │
00:00:22 #543 [Verbose] > │ and method21 (v0 : (string []), v1 : UH2, v2 : uint64) : uint64 = │
00:00:22 #544 [Verbose] > │ match v1 with │
00:00:22 #545 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:00:22 #546 [Verbose] > │ v0.[int v2] <- v3 │
00:00:22 #547 [Verbose] > │ let v5 : uint64 = v2 + 1UL │
00:00:22 #548 [Verbose] > │ method21(v0, v4, v5) │
00:00:22 #549 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:22 #550 [Verbose] > │ v2 │
00:00:22 #551 [Verbose] > │ and method19 (v0 : UH2) : (string []) = │
00:00:22 #552 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:22 #553 [Verbose] > │ let v2 : uint64 = method20(v0, v1) │
00:00:22 #554 [Verbose] > │ let v3 : (string []) = Array.zeroCreate<string> │
00:00:22 #555 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:00:22 #556 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:22 #557 [Verbose] > │ let v5 : uint64 = method21(v3, v0, v4) │
00:00:22 #558 [Verbose] > │ v3 │
00:00:22 #559 [Verbose] > │ and closure5 () (v0 : int64) : US1 = │
00:00:22 #560 [Verbose] > │ US1_1(v0) │
00:00:22 #561 [Verbose] > │ and method22 (v0 : uint64, v1 : Mut3) : bool = │
00:00:22 #562 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:00:22 #563 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:22 #564 [Verbose] > │ v3 │
00:00:22 #565 [Verbose] > │ and method23 (v0 : UH5, v1 : UH5) : UH5 = │
00:00:22 #566 [Verbose] > │ match v0 with │
00:00:22 #567 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:00:22 #568 [Verbose] > │ let v5 : UH5 = UH5_0(v2, v3, v1) │
00:00:22 #569 [Verbose] > │ method23(v4, v5) │
00:00:22 #570 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:22 #571 [Verbose] > │ v1 │
00:00:22 #572 [Verbose] > │ and method25 (v0 : UH5, v1 : int32) : int32 = │
00:00:22 #573 [Verbose] > │ match v0 with │
00:00:22 #574 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:00:22 #575 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:00:22 #576 [Verbose] > │ method25(v4, v5) │
00:00:22 #577 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:22 #578 [Verbose] > │ v1 │
00:00:22 #579 [Verbose] > │ and method26 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : int32) : │
00:00:22 #580 [Verbose] > │ int32 = │
00:00:22 #581 [Verbose] > │ match v1 with │
00:00:22 #582 [Verbose] > │ | UH5_0(v3, v4, v5) -> (* Cons *) │
00:00:22 #583 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:22 #584 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:00:22 #585 [Verbose] > │ method26(v0, v5, v6) │
00:00:22 #586 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:22 #587 [Verbose] > │ v2 │
00:00:22 #588 [Verbose] > │ and method24 (v0 : UH5) : (struct (int32 * int64) []) = │
00:00:22 #589 [Verbose] > │ let v1 : int32 = 0 │
00:00:22 #590 [Verbose] > │ let v2 : int32 = method25(v0, v1) │
00:00:22 #591 [Verbose] > │ let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 * │
00:00:22 #592 [Verbose] > │ int64)> (v2) │
00:00:22 #593 [Verbose] > │ let v4 : int32 = 0 │
00:00:22 #594 [Verbose] > │ let v5 : int32 = method26(v3, v0, v4) │
00:00:22 #595 [Verbose] > │ v3 │
00:00:22 #596 [Verbose] > │ and method27 (v0 : UH2, v1 : UH6, v2 : int32) : struct (UH6 * int32) = │
00:00:22 #597 [Verbose] > │ match v0 with │
00:00:22 #598 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:00:22 #599 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:22 #600 [Verbose] > │ let v6 : UH6 = UH6_0(v2, v3, v1) │
00:00:22 #601 [Verbose] > │ method27(v4, v6, v5) │
00:00:22 #602 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:22 #603 [Verbose] > │ struct (v1, v2) │
00:00:22 #604 [Verbose] > │ and method28 (v0 : UH6, v1 : UH6) : UH6 = │
00:00:22 #605 [Verbose] > │ match v0 with │
00:00:22 #606 [Verbose] > │ | UH6_0(v2, v3, v4) -> (* Cons *) │
00:00:22 #607 [Verbose] > │ let v5 : UH6 = UH6_0(v2, v3, v1) │
00:00:22 #608 [Verbose] > │ method28(v4, v5) │
00:00:22 #609 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:22 #610 [Verbose] > │ v1 │
00:00:22 #611 [Verbose] > │ and method29 (v0 : Map<int32, int64>, v1 : UH6, v2 : UH2) : UH2 = │
00:00:22 #612 [Verbose] > │ match v1 with │
00:00:22 #613 [Verbose] > │ | UH6_0(v3, v4, v5) -> (* Cons *) │
00:00:22 #614 [Verbose] > │ let v6 : UH2 = method29(v0, v5, v2) │
00:00:22 #615 [Verbose] > │ let v7 : int64 = v0.[v3] │
00:00:22 #616 [Verbose] > │ let v8 : int32 = int32 v7 │
00:00:22 #617 [Verbose] > │ let v9 : string = v4.PadRight v8 │
00:00:22 #618 [Verbose] > │ UH2_0(v9, v6) │
00:00:22 #619 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:22 #620 [Verbose] > │ v2 │
00:00:22 #621 [Verbose] > │ and method31 (v0 : UH2, v1 : int32) : int32 = │
00:00:22 #622 [Verbose] > │ match v0 with │
00:00:22 #623 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:00:22 #624 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:22 #625 [Verbose] > │ method31(v3, v4) │
00:00:22 #626 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:22 #627 [Verbose] > │ v1 │
00:00:22 #628 [Verbose] > │ and method32 (v0 : (string []), v1 : UH2, v2 : int32) : int32 = │
00:00:22 #629 [Verbose] > │ match v1 with │
00:00:22 #630 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:00:22 #631 [Verbose] > │ v0.[int v2] <- v3 │
00:00:22 #632 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:22 #633 [Verbose] > │ method32(v0, v4, v5) │
00:00:22 #634 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:22 #635 [Verbose] > │ v2 │
00:00:22 #636 [Verbose] > │ and method30 (v0 : UH2) : (string []) = │
00:00:22 #637 [Verbose] > │ let v1 : int32 = 0 │
00:00:22 #638 [Verbose] > │ let v2 : int32 = method31(v0, v1) │
00:00:22 #639 [Verbose] > │ let v3 : (string []) = Array.zeroCreate<string> (v2) │
00:00:22 #640 [Verbose] > │ let v4 : int32 = 0 │
00:00:22 #641 [Verbose] > │ let v5 : int32 = method32(v3, v0, v4) │
00:00:22 #642 [Verbose] > │ v3 │
00:00:22 #643 [Verbose] > │ and method34 (v0 : UH5, v1 : uint64) : uint64 = │
00:00:22 #644 [Verbose] > │ match v0 with │
00:00:22 #645 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:00:22 #646 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:00:22 #647 [Verbose] > │ method34(v4, v5) │
00:00:22 #648 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:22 #649 [Verbose] > │ v1 │
00:00:22 #650 [Verbose] > │ and method35 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : uint64) : │
00:00:22 #651 [Verbose] > │ uint64 = │
00:00:22 #652 [Verbose] > │ match v1 with │
00:00:22 #653 [Verbose] > │ | UH5_0(v3, v4, v5) -> (* Cons *) │
00:00:22 #654 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:22 #655 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:00:22 #656 [Verbose] > │ method35(v0, v5, v6) │
00:00:22 #657 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:22 #658 [Verbose] > │ v2 │
00:00:22 #659 [Verbose] > │ and method33 (v0 : UH5) : (struct (int32 * int64) []) = │
00:00:22 #660 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:22 #661 [Verbose] > │ let v2 : uint64 = method34(v0, v1) │
00:00:22 #662 [Verbose] > │ let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 * │
00:00:22 #663 [Verbose] > │ int64)> (System.Convert.ToInt32(v2)) │
00:00:22 #664 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:22 #665 [Verbose] > │ let v5 : uint64 = method35(v3, v0, v4) │
00:00:22 #666 [Verbose] > │ v3 │
00:00:22 #667 [Verbose] > │ and closure6 () struct (v0 : int32, v1 : int64) : int64 = │
00:00:22 #668 [Verbose] > │ v1 │
00:00:22 #669 [Verbose] > │ and closure0 () () : unit = │
00:00:22 #670 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:00:22 #671 [Verbose] > │ let v1 : string = nameof v0 │
00:00:22 #672 [Verbose] > │ let v2 : string = "" │
00:00:22 #673 [Verbose] > │ System.Console.WriteLine v2 │
00:00:22 #674 [Verbose] > │ System.Console.WriteLine v2 │
00:00:22 #675 [Verbose] > │ let v3 : string = $"Test: {v1}" │
00:00:22 #676 [Verbose] > │ System.Console.WriteLine v3 │
00:00:22 #677 [Verbose] > │ let v4 : string = "a" │
00:00:22 #678 [Verbose] > │ let v5 : string = "b" │
00:00:22 #679 [Verbose] > │ let v6 : UH0 = UH0_1 │
00:00:22 #680 [Verbose] > │ let v7 : UH0 = UH0_0(v5, v5, v5, v6) │
00:00:22 #681 [Verbose] > │ let v8 : UH0 = UH0_0(v4, v4, v4, v7) │
00:00:22 #682 [Verbose] > │ let v9 : (struct (string * string * string) []) = method1(v8) │
00:00:22 #683 [Verbose] > │ let v10 : uint64 = System.Convert.ToUInt64 v9.Length │
00:00:22 #684 [Verbose] > │ let v11 : (struct (string * string * string * (int64 [])) []) = │
00:00:22 #685 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))> │
00:00:22 #686 [Verbose] > │ (System.Convert.ToInt32(v10)) │
00:00:22 #687 [Verbose] > │ let v12 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:22 #688 [Verbose] > │ while method4(v10, v12) do │
00:00:22 #689 [Verbose] > │ let v14 : uint64 = v12.l0 │
00:00:22 #690 [Verbose] > │ let struct (v15 : string, v16 : string, v17 : string) = v9.[int v14] │
00:00:22 #691 [Verbose] > │ let v18 : string = $"%A{struct (v15, v16)}" │
00:00:22 #692 [Verbose] > │ System.Console.WriteLine v2 │
00:00:22 #693 [Verbose] > │ let v19 : string = $"Solution: {v18} " │
00:00:22 #694 [Verbose] > │ System.Console.WriteLine v19 │
00:00:22 #695 [Verbose] > │ let v20 : int32 = 0 │
00:00:22 #696 [Verbose] > │ let v21 : string = "A" │
00:00:22 #697 [Verbose] > │ let v22 : (struct (string * string) -> string) = closure1() │
00:00:22 #698 [Verbose] > │ let v23 : int32 = 1 │
00:00:22 #699 [Verbose] > │ let v24 : string = "B" │
00:00:22 #700 [Verbose] > │ let v25 : (struct (string * string) -> string) = closure2() │
00:00:22 #701 [Verbose] > │ let v26 : UH1 = UH1_1 │
00:00:22 #702 [Verbose] > │ let v27 : UH1 = UH1_0(v23, v24, v25, v26) │
00:00:22 #703 [Verbose] > │ let v28 : UH1 = UH1_0(v20, v21, v22, v27) │
00:00:22 #704 [Verbose] > │ let v29 : (struct (int32 * string * (struct (string * string) -> │
00:00:22 #705 [Verbose] > │ string)) []) = method5(v28) │
00:00:22 #706 [Verbose] > │ let v30 : uint64 = System.Convert.ToUInt64 v29.Length │
00:00:22 #707 [Verbose] > │ let v31 : (struct (string * int64) []) = Array.zeroCreate<struct │
00:00:22 #708 [Verbose] > │ (string * int64)> (System.Convert.ToInt32(v30)) │
00:00:22 #709 [Verbose] > │ let v32 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:22 #710 [Verbose] > │ while method4(v30, v32) do │
00:00:22 #711 [Verbose] > │ let v34 : uint64 = v32.l0 │
00:00:22 #712 [Verbose] > │ let struct (v35 : int32, v36 : string, v37 : (struct (string * │
00:00:22 #713 [Verbose] > │ string) -> string)) = v29.[int v34] │
00:00:22 #714 [Verbose] > │ let mutable result = None │
00:00:22 #715 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:22 #716 [Verbose] > │ #if !WASM │
00:00:22 #717 [Verbose] > │ () │
00:00:22 #718 [Verbose] > │ #else │
00:00:22 #719 [Verbose] > │ () │
00:00:22 #720 [Verbose] > │ #endif │
00:00:22 #721 [Verbose] > │ #else │
00:00:22 #722 [Verbose] > │ System.GC.Collect () │
00:00:22 #723 [Verbose] > │ () │
00:00:22 #724 [Verbose] > │ #endif │
00:00:22 #725 [Verbose] > │ |> fun x -> result <- Some x │
00:00:22 #726 [Verbose] > │ result |> Option.get │
00:00:22 #727 [Verbose] > │ let v38 : (unit -> System.Diagnostics.Stopwatch) = │
00:00:22 #728 [Verbose] > │ System.Diagnostics.Stopwatch │
00:00:22 #729 [Verbose] > │ let v39 : System.Diagnostics.Stopwatch = v38 () │
00:00:22 #730 [Verbose] > │ v39.Start () │
00:00:22 #731 [Verbose] > │ let v40 : int64 = v39.ElapsedMilliseconds │
00:00:22 #732 [Verbose] > │ let v41 : (int32 []) = Array.zeroCreate<int32> (2000001) │
00:00:22 #733 [Verbose] > │ let v42 : Mut1 = {l0 = 0} : Mut1 │
00:00:22 #734 [Verbose] > │ while method8(v42) do │
00:00:22 #735 [Verbose] > │ let v44 : int32 = v42.l0 │
00:00:22 #736 [Verbose] > │ v41.[int v44] <- v44 │
00:00:22 #737 [Verbose] > │ let v45 : int32 = v44 + 1 │
00:00:22 #738 [Verbose] > │ v42.l0 <- v45 │
00:00:22 #739 [Verbose] > │ () │
00:00:22 #740 [Verbose] > │ let v46 : (int32 -> string) = closure3(v15, v16, v37) │
00:00:22 #741 [Verbose] > │ let v47 : (string []) = v41 |> Array.Parallel.map v46 │
00:00:22 #742 [Verbose] > │ let v48 : int32 = v47.Length │
00:00:22 #743 [Verbose] > │ let v49 : int32 = v48 - 1 │
00:00:22 #744 [Verbose] > │ let v50 : string = v47.[int v49] │
00:00:22 #745 [Verbose] > │ let v51 : int64 = v39.ElapsedMilliseconds │
00:00:22 #746 [Verbose] > │ let v52 : int64 = v51 - v40 │
00:00:22 #747 [Verbose] > │ let v53 : string = $"Test case {v35 + 1}. {v36}. Time: {v52} " │
00:00:22 #748 [Verbose] > │ System.Console.WriteLine v53 │
00:00:22 #749 [Verbose] > │ v31.[int v34] <- struct (v50, v52) │
00:00:22 #750 [Verbose] > │ let v54 : uint64 = v34 + 1UL │
00:00:22 #751 [Verbose] > │ v32.l0 <- v54 │
00:00:22 #752 [Verbose] > │ () │
00:00:22 #753 [Verbose] > │ let v55 : uint64 = System.Convert.ToUInt64 v31.Length │
00:00:22 #754 [Verbose] > │ let v56 : (string []) = Array.zeroCreate<string> │
00:00:22 #755 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:22 #756 [Verbose] > │ let v57 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:22 #757 [Verbose] > │ while method4(v55, v57) do │
00:00:22 #758 [Verbose] > │ let v59 : uint64 = v57.l0 │
00:00:22 #759 [Verbose] > │ let struct (v60 : string, v61 : int64) = v31.[int v59] │
00:00:22 #760 [Verbose] > │ v56.[int v59] <- v60 │
00:00:22 #761 [Verbose] > │ let v62 : uint64 = v59 + 1UL │
00:00:22 #762 [Verbose] > │ v57.l0 <- v62 │
00:00:22 #763 [Verbose] > │ () │
00:00:22 #764 [Verbose] > │ let v63 : uint64 = System.Convert.ToUInt64 v56.Length │
00:00:22 #765 [Verbose] > │ let v64 : bool = v63 <= 1UL │
00:00:22 #766 [Verbose] > │ if v64 then │
00:00:22 #767 [Verbose] > │ () │
00:00:22 #768 [Verbose] > │ else │
00:00:22 #769 [Verbose] > │ let v65 : string = v56.[int 0UL] │
00:00:22 #770 [Verbose] > │ let v66 : uint64 = 0UL │
00:00:22 #771 [Verbose] > │ let v67 : bool = method9(v65, v56, v66) │
00:00:22 #772 [Verbose] > │ if v67 then │
00:00:22 #773 [Verbose] > │ () │
00:00:22 #774 [Verbose] > │ else │
00:00:22 #775 [Verbose] > │ let v68 : string = $"Challenge error: {v56}" │
00:00:22 #776 [Verbose] > │ failwith<unit> v68 │
00:00:22 #777 [Verbose] > │ let v69 : string = $"%A{v17}" │
00:00:22 #778 [Verbose] > │ let v70 : (string []) = Array.zeroCreate<string> │
00:00:22 #779 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:22 #780 [Verbose] > │ let v71 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:22 #781 [Verbose] > │ while method4(v55, v71) do │
00:00:22 #782 [Verbose] > │ let v73 : uint64 = v71.l0 │
00:00:22 #783 [Verbose] > │ let struct (v74 : string, v75 : int64) = v31.[int v73] │
00:00:22 #784 [Verbose] > │ v70.[int v73] <- v74 │
00:00:22 #785 [Verbose] > │ let v76 : uint64 = v73 + 1UL │
00:00:22 #786 [Verbose] > │ v71.l0 <- v76 │
00:00:22 #787 [Verbose] > │ () │
00:00:22 #788 [Verbose] > │ let v77 : string = v70.[int 0UL] │
00:00:22 #789 [Verbose] > │ let v78 : string = $"%A{v77}" │
00:00:22 #790 [Verbose] > │ let v79 : (int64 []) = Array.zeroCreate<int64> │
00:00:22 #791 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:22 #792 [Verbose] > │ let v80 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:22 #793 [Verbose] > │ while method4(v55, v80) do │
00:00:22 #794 [Verbose] > │ let v82 : uint64 = v80.l0 │
00:00:22 #795 [Verbose] > │ let struct (v83 : string, v84 : int64) = v31.[int v82] │
00:00:22 #796 [Verbose] > │ v79.[int v82] <- v84 │
00:00:22 #797 [Verbose] > │ let v85 : uint64 = v82 + 1UL │
00:00:22 #798 [Verbose] > │ v80.l0 <- v85 │
00:00:22 #799 [Verbose] > │ () │
00:00:22 #800 [Verbose] > │ v11.[int v14] <- struct (v69, v18, v78, v79) │
00:00:22 #801 [Verbose] > │ let v86 : uint64 = v14 + 1UL │
00:00:22 #802 [Verbose] > │ v12.l0 <- v86 │
00:00:22 #803 [Verbose] > │ () │
00:00:22 #804 [Verbose] > │ let v87 : uint64 = System.Convert.ToUInt64 v11.Length │
00:00:22 #805 [Verbose] > │ let v88 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │
00:00:22 #806 [Verbose] > │ (System.Convert.ToInt32(v87)) │
00:00:22 #807 [Verbose] > │ let v89 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:22 #808 [Verbose] > │ while method4(v87, v89) do │
00:00:22 #809 [Verbose] > │ let v91 : uint64 = v89.l0 │
00:00:22 #810 [Verbose] > │ let struct (v92 : string, v93 : string, v94 : string, v95 : (int64 [ │
00:00:22 #811 [Verbose] > │ ])) = v11.[int v91] │
00:00:22 #812 [Verbose] > │ let v96 : uint64 = System.Convert.ToUInt64 v95.Length │
00:00:22 #813 [Verbose] > │ let v97 : UH3 = UH3_1 │
00:00:22 #814 [Verbose] > │ let v98 : Mut2 = {l0 = 0UL; l1 = v97; l2 = 0L} : Mut2 │
00:00:22 #815 [Verbose] > │ while method10(v96, v98) do │
00:00:22 #816 [Verbose] > │ let v100 : uint64 = v98.l0 │
00:00:22 #817 [Verbose] > │ let struct (v101 : UH3, v102 : int64) = v98.l1, v98.l2 │
00:00:22 #818 [Verbose] > │ let v103 : int64 = v95.[int v100] │
00:00:22 #819 [Verbose] > │ let v104 : int64 = v102 + 1L │
00:00:22 #820 [Verbose] > │ let v105 : uint64 = v100 + 1UL │
00:00:22 #821 [Verbose] > │ let v106 : UH3 = UH3_0(v102, v103, v101) │
00:00:22 #822 [Verbose] > │ v98.l0 <- v105 │
00:00:22 #823 [Verbose] > │ v98.l1 <- v106 │
00:00:22 #824 [Verbose] > │ v98.l2 <- v104 │
00:00:22 #825 [Verbose] > │ () │
00:00:22 #826 [Verbose] > │ let struct (v107 : UH3, v108 : int64) = v98.l1, v98.l2 │
00:00:22 #827 [Verbose] > │ let v109 : UH3 = UH3_1 │
00:00:22 #828 [Verbose] > │ let v110 : UH3 = method11(v107, v109) │
00:00:22 #829 [Verbose] > │ let v111 : (struct (int64 * int64) []) = method12(v110) │
00:00:22 #830 [Verbose] > │ let v112 : int32 = v111.Length │
00:00:22 #831 [Verbose] > │ let v113 : (struct (int64 * int64) []) = Array.zeroCreate<struct │
00:00:22 #832 [Verbose] > │ (int64 * int64)> (v112) │
00:00:22 #833 [Verbose] > │ let v114 : Mut1 = {l0 = 0} : Mut1 │
00:00:22 #834 [Verbose] > │ while method15(v112, v114) do │
00:00:22 #835 [Verbose] > │ let v116 : int32 = v114.l0 │
00:00:22 #836 [Verbose] > │ let struct (v117 : int64, v118 : int64) = v111.[int v116] │
00:00:22 #837 [Verbose] > │ let v119 : int64 = v117 + 1L │
00:00:22 #838 [Verbose] > │ v113.[int v116] <- struct (v119, v118) │
00:00:22 #839 [Verbose] > │ let v120 : int32 = v116 + 1 │
00:00:22 #840 [Verbose] > │ v114.l0 <- v120 │
00:00:22 #841 [Verbose] > │ () │
00:00:22 #842 [Verbose] > │ let v121 : (struct (int64 * int64) -> int64) = closure4() │
00:00:22 #843 [Verbose] > │ let v122 : (struct (int64 * int64) []) = v113 |> Array.sortBy v121 │
00:00:22 #844 [Verbose] > │ let struct (v123 : int64, v124 : int64) = v122.[int 0] │
00:00:22 #845 [Verbose] > │ let v125 : string = $"%A{struct (v123, v124)}" │
00:00:22 #846 [Verbose] > │ let v126 : bool = v92 = v94 │
00:00:22 #847 [Verbose] > │ let v131 : US0 = │
00:00:22 #848 [Verbose] > │ if v126 then │
00:00:22 #849 [Verbose] > │ let v127 : System.ConsoleColor = │
00:00:22 #850 [Verbose] > │ System.ConsoleColor.DarkGreen │
00:00:22 #851 [Verbose] > │ US0_1(v127) │
00:00:22 #852 [Verbose] > │ else │
00:00:22 #853 [Verbose] > │ let v129 : System.ConsoleColor = System.ConsoleColor.DarkRed │
00:00:22 #854 [Verbose] > │ US0_1(v129) │
00:00:22 #855 [Verbose] > │ let v132 : UH2 = UH2_1 │
00:00:22 #856 [Verbose] > │ let v133 : UH2 = UH2_0(v125, v132) │
00:00:22 #857 [Verbose] > │ let v134 : UH2 = UH2_0(v94, v133) │
00:00:22 #858 [Verbose] > │ let v135 : UH2 = UH2_0(v92, v134) │
00:00:22 #859 [Verbose] > │ let v136 : UH2 = UH2_0(v93, v135) │
00:00:22 #860 [Verbose] > │ v88.[int v91] <- struct (v136, v131) │
00:00:22 #861 [Verbose] > │ let v137 : uint64 = v91 + 1UL │
00:00:22 #862 [Verbose] > │ v89.l0 <- v137 │
00:00:22 #863 [Verbose] > │ () │
00:00:22 #864 [Verbose] > │ let v138 : string = "Input" │
00:00:22 #865 [Verbose] > │ let v139 : string = "Expected" │
00:00:22 #866 [Verbose] > │ let v140 : string = "Result" │
00:00:22 #867 [Verbose] > │ let v141 : string = "Best" │
00:00:22 #868 [Verbose] > │ let v142 : UH2 = UH2_1 │
00:00:22 #869 [Verbose] > │ let v143 : UH2 = UH2_0(v141, v142) │
00:00:22 #870 [Verbose] > │ let v144 : UH2 = UH2_0(v140, v143) │
00:00:22 #871 [Verbose] > │ let v145 : UH2 = UH2_0(v139, v144) │
00:00:22 #872 [Verbose] > │ let v146 : UH2 = UH2_0(v138, v145) │
00:00:22 #873 [Verbose] > │ let v147 : US0 = US0_0 │
00:00:22 #874 [Verbose] > │ let v148 : string = "---" │
00:00:22 #875 [Verbose] > │ let v149 : UH2 = UH2_1 │
00:00:22 #876 [Verbose] > │ let v150 : UH2 = UH2_0(v148, v149) │
00:00:22 #877 [Verbose] > │ let v151 : UH2 = UH2_0(v148, v150) │
00:00:22 #878 [Verbose] > │ let v152 : UH2 = UH2_0(v148, v151) │
00:00:22 #879 [Verbose] > │ let v153 : UH2 = UH2_0(v148, v152) │
00:00:22 #880 [Verbose] > │ let v154 : US0 = US0_0 │
00:00:22 #881 [Verbose] > │ let v155 : UH4 = UH4_1 │
00:00:22 #882 [Verbose] > │ let v156 : UH4 = UH4_0(v153, v154, v155) │
00:00:22 #883 [Verbose] > │ let v157 : UH4 = UH4_0(v146, v147, v156) │
00:00:22 #884 [Verbose] > │ let v158 : (struct (UH2 * US0) []) = method16(v157) │
00:00:22 #885 [Verbose] > │ let v159 : uint64 = System.Convert.ToUInt64 v158.Length │
00:00:22 #886 [Verbose] > │ let v160 : uint64 = System.Convert.ToUInt64 v88.Length │
00:00:22 #887 [Verbose] > │ let v161 : uint64 = v159 + v160 │
00:00:22 #888 [Verbose] > │ let v162 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * │
00:00:22 #889 [Verbose] > │ US0)> (System.Convert.ToInt32(v161)) │
00:00:22 #890 [Verbose] > │ let v163 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:22 #891 [Verbose] > │ while method4(v161, v163) do │
00:00:22 #892 [Verbose] > │ let v165 : uint64 = v163.l0 │
00:00:22 #893 [Verbose] > │ let v166 : bool = v165 < v159 │
00:00:22 #894 [Verbose] > │ let struct (v172 : UH2, v173 : US0) = │
00:00:22 #895 [Verbose] > │ if v166 then │
00:00:22 #896 [Verbose] > │ let struct (v167 : UH2, v168 : US0) = v158.[int v165] │
00:00:22 #897 [Verbose] > │ struct (v167, v168) │
00:00:22 #898 [Verbose] > │ else │
00:00:22 #899 [Verbose] > │ let v169 : uint64 = v165 - v159 │
00:00:22 #900 [Verbose] > │ let struct (v170 : UH2, v171 : US0) = v88.[int v169] │
00:00:22 #901 [Verbose] > │ struct (v170, v171) │
00:00:22 #902 [Verbose] > │ v162.[int v165] <- struct (v172, v173) │
00:00:22 #903 [Verbose] > │ let v174 : uint64 = v165 + 1UL │
00:00:22 #904 [Verbose] > │ v163.l0 <- v174 │
00:00:22 #905 [Verbose] > │ () │
00:00:22 #906 [Verbose] > │ let v175 : uint64 = System.Convert.ToUInt64 v162.Length │
00:00:22 #907 [Verbose] > │ let v176 : ((string []) []) = Array.zeroCreate<(string [])> │
00:00:22 #908 [Verbose] > │ (System.Convert.ToInt32(v175)) │
00:00:22 #909 [Verbose] > │ let v177 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:22 #910 [Verbose] > │ while method4(v175, v177) do │
00:00:22 #911 [Verbose] > │ let v179 : uint64 = v177.l0 │
00:00:22 #912 [Verbose] > │ let struct (v180 : UH2, v181 : US0) = v162.[int v179] │
00:00:22 #913 [Verbose] > │ let v182 : (string []) = method19(v180) │
00:00:22 #914 [Verbose] > │ v176.[int v179] <- v182 │
00:00:22 #915 [Verbose] > │ let v183 : uint64 = v179 + 1UL │
00:00:22 #916 [Verbose] > │ v177.l0 <- v183 │
00:00:22 #917 [Verbose] > │ () │
00:00:22 #918 [Verbose] > │ let v184 : ((string []) []) = v176 |> Array.transpose │
00:00:22 #919 [Verbose] > │ let v185 : uint64 = System.Convert.ToUInt64 v184.Length │
00:00:22 #920 [Verbose] > │ let v186 : (int64 []) = Array.zeroCreate<int64> │
00:00:22 #921 [Verbose] > │ (System.Convert.ToInt32(v185)) │
00:00:22 #922 [Verbose] > │ let v187 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:22 #923 [Verbose] > │ while method4(v185, v187) do │
00:00:22 #924 [Verbose] > │ let v189 : uint64 = v187.l0 │
00:00:22 #925 [Verbose] > │ let v190 : (string []) = v184.[int v189] │
00:00:22 #926 [Verbose] > │ let v191 : uint64 = System.Convert.ToUInt64 v190.Length │
00:00:22 #927 [Verbose] > │ let v192 : (int64 []) = Array.zeroCreate<int64> │
00:00:22 #928 [Verbose] > │ (System.Convert.ToInt32(v191)) │
00:00:22 #929 [Verbose] > │ let v193 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:22 #930 [Verbose] > │ while method4(v191, v193) do │
00:00:22 #931 [Verbose] > │ let v195 : uint64 = v193.l0 │
00:00:22 #932 [Verbose] > │ let v196 : string = v190.[int v195] │
00:00:22 #933 [Verbose] > │ let v197 : int64 = System.Convert.ToInt64 v196.Length │
00:00:22 #934 [Verbose] > │ v192.[int v195] <- v197 │
00:00:22 #935 [Verbose] > │ let v198 : uint64 = v195 + 1UL │
00:00:22 #936 [Verbose] > │ v193.l0 <- v198 │
00:00:22 #937 [Verbose] > │ () │
00:00:22 #938 [Verbose] > │ let v199 : (int64 []) = v192 |> Array.sortDescending │
00:00:22 #939 [Verbose] > │ let v200 : int64 option = v199 |> Array.tryItem 0 │
00:00:22 #940 [Verbose] > │ let v201 : (int64 -> US1) = closure5() │
00:00:22 #941 [Verbose] > │ let v202 : US1 = US1_0 │
00:00:22 #942 [Verbose] > │ let v203 : US1 = v200 |> Option.map v201 |> Option.defaultValue v202 │
00:00:22 #943 [Verbose] > │ let v206 : int64 = │
00:00:22 #944 [Verbose] > │ match v203 with │
00:00:22 #945 [Verbose] > │ | US1_0 -> (* None *) │
00:00:22 #946 [Verbose] > │ 0L │
00:00:22 #947 [Verbose] > │ | US1_1(v204) -> (* Some *) │
00:00:22 #948 [Verbose] > │ v204 │
00:00:22 #949 [Verbose] > │ v186.[int v189] <- v206 │
00:00:22 #950 [Verbose] > │ let v207 : uint64 = v189 + 1UL │
00:00:22 #951 [Verbose] > │ v187.l0 <- v207 │
00:00:22 #952 [Verbose] > │ () │
00:00:22 #953 [Verbose] > │ let v208 : uint64 = System.Convert.ToUInt64 v186.Length │
00:00:22 #954 [Verbose] > │ let v209 : UH5 = UH5_1 │
00:00:22 #955 [Verbose] > │ let v210 : Mut3 = {l0 = 0UL; l1 = v209; l2 = 0} : Mut3 │
00:00:22 #956 [Verbose] > │ while method22(v208, v210) do │
00:00:22 #957 [Verbose] > │ let v212 : uint64 = v210.l0 │
00:00:22 #958 [Verbose] > │ let struct (v213 : UH5, v214 : int32) = v210.l1, v210.l2 │
00:00:22 #959 [Verbose] > │ let v215 : int64 = v186.[int v212] │
00:00:22 #960 [Verbose] > │ let v216 : int32 = v214 + 1 │
00:00:22 #961 [Verbose] > │ let v217 : uint64 = v212 + 1UL │
00:00:22 #962 [Verbose] > │ let v218 : UH5 = UH5_0(v214, v215, v213) │
00:00:22 #963 [Verbose] > │ v210.l0 <- v217 │
00:00:22 #964 [Verbose] > │ v210.l1 <- v218 │
00:00:22 #965 [Verbose] > │ v210.l2 <- v216 │
00:00:22 #966 [Verbose] > │ () │
00:00:22 #967 [Verbose] > │ let struct (v219 : UH5, v220 : int32) = v210.l1, v210.l2 │
00:00:22 #968 [Verbose] > │ let v221 : UH5 = UH5_1 │
00:00:22 #969 [Verbose] > │ let v222 : UH5 = method23(v219, v221) │
00:00:22 #970 [Verbose] > │ let v223 : (struct (int32 * int64) []) = method24(v222) │
00:00:22 #971 [Verbose] > │ let v224 : Map<int32, int64> = v223 |> Array.map (fun (struct (a, b)) -> │
00:00:22 #972 [Verbose] > │ a, b) |> Map.ofArray │
00:00:22 #973 [Verbose] > │ let v225 : (struct ((string []) * US0) []) = Array.zeroCreate<struct │
00:00:22 #974 [Verbose] > │ ((string []) * US0)> (System.Convert.ToInt32(v175)) │
00:00:22 #975 [Verbose] > │ let v226 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:22 #976 [Verbose] > │ while method4(v175, v226) do │
00:00:22 #977 [Verbose] > │ let v228 : uint64 = v226.l0 │
00:00:22 #978 [Verbose] > │ let struct (v229 : UH2, v230 : US0) = v162.[int v228] │
00:00:22 #979 [Verbose] > │ let v231 : UH6 = UH6_1 │
00:00:22 #980 [Verbose] > │ let v232 : int32 = 0 │
00:00:22 #981 [Verbose] > │ let struct (v233 : UH6, v234 : int32) = method27(v229, v231, v232) │
00:00:22 #982 [Verbose] > │ let v235 : UH6 = UH6_1 │
00:00:22 #983 [Verbose] > │ let v236 : UH6 = method28(v233, v235) │
00:00:22 #984 [Verbose] > │ let v237 : UH2 = UH2_1 │
00:00:22 #985 [Verbose] > │ let v238 : UH2 = method29(v224, v236, v237) │
00:00:22 #986 [Verbose] > │ let v239 : (string []) = method30(v238) │
00:00:22 #987 [Verbose] > │ v225.[int v228] <- struct (v239, v230) │
00:00:22 #988 [Verbose] > │ let v240 : uint64 = v228 + 1UL │
00:00:22 #989 [Verbose] > │ v226.l0 <- v240 │
00:00:22 #990 [Verbose] > │ () │
00:00:22 #991 [Verbose] > │ System.Console.WriteLine v2 │
00:00:22 #992 [Verbose] > │ let v241 : uint64 = System.Convert.ToUInt64 v225.Length │
00:00:22 #993 [Verbose] > │ let v242 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:22 #994 [Verbose] > │ while method4(v241, v242) do │
00:00:22 #995 [Verbose] > │ let v244 : uint64 = v242.l0 │
00:00:22 #996 [Verbose] > │ let struct (v245 : (string []), v246 : US0) = v225.[int v244] │
00:00:22 #997 [Verbose] > │ match v246 with │
00:00:22 #998 [Verbose] > │ | US0_0 -> (* None *) │
00:00:22 #999 [Verbose] > │ let mutable result = None │
00:00:22 #1000 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:22 #1001 [Verbose] > │ #if !WASM │
00:00:22 #1002 [Verbose] > │ () │
00:00:22 #1003 [Verbose] > │ #else │
00:00:22 #1004 [Verbose] > │ () │
00:00:22 #1005 [Verbose] > │ #endif │
00:00:22 #1006 [Verbose] > │ #else │
00:00:22 #1007 [Verbose] > │ System.Console.ResetColor () │
00:00:22 #1008 [Verbose] > │ () │
00:00:22 #1009 [Verbose] > │ #endif │
00:00:22 #1010 [Verbose] > │ |> fun x -> result <- Some x │
00:00:22 #1011 [Verbose] > │ result |> Option.get │
00:00:22 #1012 [Verbose] > │ () │
00:00:22 #1013 [Verbose] > │ | US0_1(v247) -> (* Some *) │
00:00:22 #1014 [Verbose] > │ let mutable result = None │
00:00:22 #1015 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:22 #1016 [Verbose] > │ #if !WASM │
00:00:22 #1017 [Verbose] > │ () │
00:00:22 #1018 [Verbose] > │ #else │
00:00:22 #1019 [Verbose] > │ () │
00:00:22 #1020 [Verbose] > │ #endif │
00:00:22 #1021 [Verbose] > │ #else │
00:00:22 #1022 [Verbose] > │ System.Console.ForegroundColor <- v247 │
00:00:22 #1023 [Verbose] > │ () │
00:00:22 #1024 [Verbose] > │ #endif │
00:00:22 #1025 [Verbose] > │ |> fun x -> result <- Some x │
00:00:22 #1026 [Verbose] > │ result |> Option.get │
00:00:22 #1027 [Verbose] > │ () │
00:00:22 #1028 [Verbose] > │ let v248 : string = "\t| " │
00:00:22 #1029 [Verbose] > │ let v249 : string = System.String.Join (v248, v245) │
00:00:22 #1030 [Verbose] > │ System.Console.WriteLine v249 │
00:00:22 #1031 [Verbose] > │ let mutable result = None │
00:00:22 #1032 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:22 #1033 [Verbose] > │ #if !WASM │
00:00:22 #1034 [Verbose] > │ () │
00:00:22 #1035 [Verbose] > │ #else │
00:00:22 #1036 [Verbose] > │ () │
00:00:22 #1037 [Verbose] > │ #endif │
00:00:22 #1038 [Verbose] > │ #else │
00:00:22 #1039 [Verbose] > │ System.Console.ResetColor () │
00:00:22 #1040 [Verbose] > │ () │
00:00:22 #1041 [Verbose] > │ #endif │
00:00:22 #1042 [Verbose] > │ |> fun x -> result <- Some x │
00:00:22 #1043 [Verbose] > │ result |> Option.get │
00:00:22 #1044 [Verbose] > │ let v250 : uint64 = v244 + 1UL │
00:00:22 #1045 [Verbose] > │ v242.l0 <- v250 │
00:00:22 #1046 [Verbose] > │ () │
00:00:22 #1047 [Verbose] > │ let v251 : ((float []) []) = Array.zeroCreate<(float [])> │
00:00:22 #1048 [Verbose] > │ (System.Convert.ToInt32(v87)) │
00:00:22 #1049 [Verbose] > │ let v252 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:22 #1050 [Verbose] > │ while method4(v87, v252) do │
00:00:22 #1051 [Verbose] > │ let v254 : uint64 = v252.l0 │
00:00:22 #1052 [Verbose] > │ let struct (v255 : string, v256 : string, v257 : string, v258 : │
00:00:22 #1053 [Verbose] > │ (int64 [])) = v11.[int v254] │
00:00:22 #1054 [Verbose] > │ let v259 : (int64 -> float) = float │
00:00:22 #1055 [Verbose] > │ let v260 : uint64 = System.Convert.ToUInt64 v258.Length │
00:00:22 #1056 [Verbose] > │ let v261 : (float []) = Array.zeroCreate<float> │
00:00:22 #1057 [Verbose] > │ (System.Convert.ToInt32(v260)) │
00:00:22 #1058 [Verbose] > │ let v262 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:22 #1059 [Verbose] > │ while method4(v260, v262) do │
00:00:22 #1060 [Verbose] > │ let v264 : uint64 = v262.l0 │
00:00:22 #1061 [Verbose] > │ let v265 : int64 = v258.[int v264] │
00:00:22 #1062 [Verbose] > │ let v266 : float = v259 v265 │
00:00:22 #1063 [Verbose] > │ v261.[int v264] <- v266 │
00:00:22 #1064 [Verbose] > │ let v267 : uint64 = v264 + 1UL │
00:00:22 #1065 [Verbose] > │ v262.l0 <- v267 │
00:00:22 #1066 [Verbose] > │ () │
00:00:22 #1067 [Verbose] > │ v251.[int v254] <- v261 │
00:00:22 #1068 [Verbose] > │ let v268 : uint64 = v254 + 1UL │
00:00:22 #1069 [Verbose] > │ v252.l0 <- v268 │
00:00:22 #1070 [Verbose] > │ () │
00:00:22 #1071 [Verbose] > │ let v269 : ((float []) []) = v251 |> Array.transpose │
00:00:22 #1072 [Verbose] > │ let v270 : uint64 = System.Convert.ToUInt64 v269.Length │
00:00:22 #1073 [Verbose] > │ let v271 : (float []) = Array.zeroCreate<float> │
00:00:22 #1074 [Verbose] > │ (System.Convert.ToInt32(v270)) │
00:00:22 #1075 [Verbose] > │ let v272 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:22 #1076 [Verbose] > │ while method4(v270, v272) do │
00:00:22 #1077 [Verbose] > │ let v274 : uint64 = v272.l0 │
00:00:22 #1078 [Verbose] > │ let v275 : (float []) = v269.[int v274] │
00:00:22 #1079 [Verbose] > │ let v276 : float = v275 |> Array.average │
00:00:22 #1080 [Verbose] > │ v271.[int v274] <- v276 │
00:00:22 #1081 [Verbose] > │ let v277 : uint64 = v274 + 1UL │
00:00:22 #1082 [Verbose] > │ v272.l0 <- v277 │
00:00:22 #1083 [Verbose] > │ () │
00:00:22 #1084 [Verbose] > │ let v278 : (float -> int64) = int64 │
00:00:22 #1085 [Verbose] > │ let v279 : uint64 = System.Convert.ToUInt64 v271.Length │
00:00:22 #1086 [Verbose] > │ let v280 : (int64 []) = Array.zeroCreate<int64> │
00:00:22 #1087 [Verbose] > │ (System.Convert.ToInt32(v279)) │
00:00:22 #1088 [Verbose] > │ let v281 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:22 #1089 [Verbose] > │ while method4(v279, v281) do │
00:00:22 #1090 [Verbose] > │ let v283 : uint64 = v281.l0 │
00:00:22 #1091 [Verbose] > │ let v284 : float = v271.[int v283] │
00:00:22 #1092 [Verbose] > │ let v285 : int64 = v278 v284 │
00:00:22 #1093 [Verbose] > │ v280.[int v283] <- v285 │
00:00:22 #1094 [Verbose] > │ let v286 : uint64 = v283 + 1UL │
00:00:22 #1095 [Verbose] > │ v281.l0 <- v286 │
00:00:22 #1096 [Verbose] > │ () │
00:00:22 #1097 [Verbose] > │ let v287 : uint64 = System.Convert.ToUInt64 v280.Length │
00:00:22 #1098 [Verbose] > │ let v288 : UH5 = UH5_1 │
00:00:22 #1099 [Verbose] > │ let v289 : Mut3 = {l0 = 0UL; l1 = v288; l2 = 0} : Mut3 │
00:00:22 #1100 [Verbose] > │ while method22(v287, v289) do │
00:00:22 #1101 [Verbose] > │ let v291 : uint64 = v289.l0 │
00:00:22 #1102 [Verbose] > │ let struct (v292 : UH5, v293 : int32) = v289.l1, v289.l2 │
00:00:22 #1103 [Verbose] > │ let v294 : int64 = v280.[int v291] │
00:00:22 #1104 [Verbose] > │ let v295 : int32 = v293 + 1 │
00:00:22 #1105 [Verbose] > │ let v296 : uint64 = v291 + 1UL │
00:00:22 #1106 [Verbose] > │ let v297 : UH5 = UH5_0(v293, v294, v292) │
00:00:22 #1107 [Verbose] > │ v289.l0 <- v296 │
00:00:22 #1108 [Verbose] > │ v289.l1 <- v297 │
00:00:22 #1109 [Verbose] > │ v289.l2 <- v295 │
00:00:22 #1110 [Verbose] > │ () │
00:00:22 #1111 [Verbose] > │ let struct (v298 : UH5, v299 : int32) = v289.l1, v289.l2 │
00:00:22 #1112 [Verbose] > │ let v300 : UH5 = UH5_1 │
00:00:22 #1113 [Verbose] > │ let v301 : UH5 = method23(v298, v300) │
00:00:22 #1114 [Verbose] > │ let v302 : (struct (int32 * int64) []) = method33(v301) │
00:00:22 #1115 [Verbose] > │ System.Console.WriteLine v2 │
00:00:22 #1116 [Verbose] > │ let v303 : string = "Average Ranking " │
00:00:22 #1117 [Verbose] > │ System.Console.WriteLine v303 │
00:00:22 #1118 [Verbose] > │ let v304 : (struct (int32 * int64) -> int64) = closure6() │
00:00:22 #1119 [Verbose] > │ let v305 : (struct (int32 * int64) []) = v302 |> Array.sortBy v304 │
00:00:22 #1120 [Verbose] > │ let v306 : uint64 = System.Convert.ToUInt64 v305.Length │
00:00:22 #1121 [Verbose] > │ let v307 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:22 #1122 [Verbose] > │ while method4(v306, v307) do │
00:00:22 #1123 [Verbose] > │ let v309 : uint64 = v307.l0 │
00:00:22 #1124 [Verbose] > │ let struct (v310 : int32, v311 : int64) = v305.[int v309] │
00:00:22 #1125 [Verbose] > │ let v312 : string = $"Test case %d{v310 + 1}. Average Time: %A{v311} │
00:00:22 #1126 [Verbose] > │ " │
00:00:22 #1127 [Verbose] > │ System.Console.WriteLine v312 │
00:00:22 #1128 [Verbose] > │ let v313 : uint64 = v309 + 1UL │
00:00:22 #1129 [Verbose] > │ v307.l0 <- v313 │
00:00:22 #1130 [Verbose] > │ () │
00:00:22 #1131 [Verbose] > │ () │
00:00:22 #1132 [Verbose] > │ and method0 () : unit = │
00:00:22 #1133 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:00:22 #1134 [Verbose] > │ let v1 : string = nameof v0 │
00:00:22 #1135 [Verbose] > │ let v2 : string = "" │
00:00:22 #1136 [Verbose] > │ System.Console.WriteLine v2 │
00:00:22 #1137 [Verbose] > │ System.Console.WriteLine v2 │
00:00:22 #1138 [Verbose] > │ let v3 : string = $"Test: {v1}" │
00:00:22 #1139 [Verbose] > │ System.Console.WriteLine v3 │
00:00:22 #1140 [Verbose] > │ let v4 : string = "a" │
00:00:22 #1141 [Verbose] > │ let v5 : string = "b" │
00:00:22 #1142 [Verbose] > │ let v6 : UH0 = UH0_1 │
00:00:22 #1143 [Verbose] > │ let v7 : UH0 = UH0_0(v5, v5, v5, v6) │
00:00:22 #1144 [Verbose] > │ let v8 : UH0 = UH0_0(v4, v4, v4, v7) │
00:00:22 #1145 [Verbose] > │ let v9 : (struct (string * string * string) []) = method1(v8) │
00:00:22 #1146 [Verbose] > │ let v10 : uint64 = System.Convert.ToUInt64 v9.Length │
00:00:22 #1147 [Verbose] > │ let v11 : (struct (string * string * string * (int64 [])) []) = │
00:00:22 #1148 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))> │
00:00:22 #1149 [Verbose] > │ (System.Convert.ToInt32(v10)) │
00:00:22 #1150 [Verbose] > │ let v12 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:22 #1151 [Verbose] > │ while method4(v10, v12) do │
00:00:22 #1152 [Verbose] > │ let v14 : uint64 = v12.l0 │
00:00:22 #1153 [Verbose] > │ let struct (v15 : string, v16 : string, v17 : string) = v9.[int v14] │
00:00:22 #1154 [Verbose] > │ let v18 : string = $"%A{struct (v15, v16)}" │
00:00:23 #1155 [Verbose] > │ System.Console.WriteLine v2 │
00:00:23 #1156 [Verbose] > │ let v19 : string = $"Solution: {v18} " │
00:00:23 #1157 [Verbose] > │ System.Console.WriteLine v19 │
00:00:23 #1158 [Verbose] > │ let v20 : int32 = 0 │
00:00:23 #1159 [Verbose] > │ let v21 : string = "A" │
00:00:23 #1160 [Verbose] > │ let v22 : (struct (string * string) -> string) = closure1() │
00:00:23 #1161 [Verbose] > │ let v23 : int32 = 1 │
00:00:23 #1162 [Verbose] > │ let v24 : string = "B" │
00:00:23 #1163 [Verbose] > │ let v25 : (struct (string * string) -> string) = closure2() │
00:00:23 #1164 [Verbose] > │ let v26 : UH1 = UH1_1 │
00:00:23 #1165 [Verbose] > │ let v27 : UH1 = UH1_0(v23, v24, v25, v26) │
00:00:23 #1166 [Verbose] > │ let v28 : UH1 = UH1_0(v20, v21, v22, v27) │
00:00:23 #1167 [Verbose] > │ let v29 : (struct (int32 * string * (struct (string * string) -> │
00:00:23 #1168 [Verbose] > │ string)) []) = method5(v28) │
00:00:23 #1169 [Verbose] > │ let v30 : uint64 = System.Convert.ToUInt64 v29.Length │
00:00:23 #1170 [Verbose] > │ let v31 : (struct (string * int64) []) = Array.zeroCreate<struct │
00:00:23 #1171 [Verbose] > │ (string * int64)> (System.Convert.ToInt32(v30)) │
00:00:23 #1172 [Verbose] > │ let v32 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:23 #1173 [Verbose] > │ while method4(v30, v32) do │
00:00:23 #1174 [Verbose] > │ let v34 : uint64 = v32.l0 │
00:00:23 #1175 [Verbose] > │ let struct (v35 : int32, v36 : string, v37 : (struct (string * │
00:00:23 #1176 [Verbose] > │ string) -> string)) = v29.[int v34] │
00:00:23 #1177 [Verbose] > │ let mutable result = None │
00:00:23 #1178 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:23 #1179 [Verbose] > │ #if !WASM │
00:00:23 #1180 [Verbose] > │ () │
00:00:23 #1181 [Verbose] > │ #else │
00:00:23 #1182 [Verbose] > │ () │
00:00:23 #1183 [Verbose] > │ #endif │
00:00:23 #1184 [Verbose] > │ #else │
00:00:23 #1185 [Verbose] > │ System.GC.Collect () │
00:00:23 #1186 [Verbose] > │ () │
00:00:23 #1187 [Verbose] > │ #endif │
00:00:23 #1188 [Verbose] > │ |> fun x -> result <- Some x │
00:00:23 #1189 [Verbose] > │ result |> Option.get │
00:00:23 #1190 [Verbose] > │ let v38 : (unit -> System.Diagnostics.Stopwatch) = │
00:00:23 #1191 [Verbose] > │ System.Diagnostics.Stopwatch │
00:00:23 #1192 [Verbose] > │ let v39 : System.Diagnostics.Stopwatch = v38 () │
00:00:23 #1193 [Verbose] > │ v39.Start () │
00:00:23 #1194 [Verbose] > │ let v40 : int64 = v39.ElapsedMilliseconds │
00:00:23 #1195 [Verbose] > │ let v41 : (int32 []) = Array.zeroCreate<int32> (2000001) │
00:00:23 #1196 [Verbose] > │ let v42 : Mut1 = {l0 = 0} : Mut1 │
00:00:23 #1197 [Verbose] > │ while method8(v42) do │
00:00:23 #1198 [Verbose] > │ let v44 : int32 = v42.l0 │
00:00:23 #1199 [Verbose] > │ v41.[int v44] <- v44 │
00:00:23 #1200 [Verbose] > │ let v45 : int32 = v44 + 1 │
00:00:23 #1201 [Verbose] > │ v42.l0 <- v45 │
00:00:23 #1202 [Verbose] > │ () │
00:00:23 #1203 [Verbose] > │ let v46 : (int32 -> string) = closure3(v15, v16, v37) │
00:00:23 #1204 [Verbose] > │ let v47 : (string []) = v41 |> Array.Parallel.map v46 │
00:00:23 #1205 [Verbose] > │ let v48 : int32 = v47.Length │
00:00:23 #1206 [Verbose] > │ let v49 : int32 = v48 - 1 │
00:00:23 #1207 [Verbose] > │ let v50 : string = v47.[int v49] │
00:00:23 #1208 [Verbose] > │ let v51 : int64 = v39.ElapsedMilliseconds │
00:00:23 #1209 [Verbose] > │ let v52 : int64 = v51 - v40 │
00:00:23 #1210 [Verbose] > │ let v53 : string = $"Test case {v35 + 1}. {v36}. Time: {v52} " │
00:00:23 #1211 [Verbose] > │ System.Console.WriteLine v53 │
00:00:23 #1212 [Verbose] > │ v31.[int v34] <- struct (v50, v52) │
00:00:23 #1213 [Verbose] > │ let v54 : uint64 = v34 + 1UL │
00:00:23 #1214 [Verbose] > │ v32.l0 <- v54 │
00:00:23 #1215 [Verbose] > │ () │
00:00:23 #1216 [Verbose] > │ let v55 : uint64 = System.Convert.ToUInt64 v31.Length │
00:00:23 #1217 [Verbose] > │ let v56 : (string []) = Array.zeroCreate<string> │
00:00:23 #1218 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:23 #1219 [Verbose] > │ let v57 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:23 #1220 [Verbose] > │ while method4(v55, v57) do │
00:00:23 #1221 [Verbose] > │ let v59 : uint64 = v57.l0 │
00:00:23 #1222 [Verbose] > │ let struct (v60 : string, v61 : int64) = v31.[int v59] │
00:00:23 #1223 [Verbose] > │ v56.[int v59] <- v60 │
00:00:23 #1224 [Verbose] > │ let v62 : uint64 = v59 + 1UL │
00:00:23 #1225 [Verbose] > │ v57.l0 <- v62 │
00:00:23 #1226 [Verbose] > │ () │
00:00:23 #1227 [Verbose] > │ let v63 : uint64 = System.Convert.ToUInt64 v56.Length │
00:00:23 #1228 [Verbose] > │ let v64 : bool = v63 <= 1UL │
00:00:23 #1229 [Verbose] > │ if v64 then │
00:00:23 #1230 [Verbose] > │ () │
00:00:23 #1231 [Verbose] > │ else │
00:00:23 #1232 [Verbose] > │ let v65 : string = v56.[int 0UL] │
00:00:23 #1233 [Verbose] > │ let v66 : uint64 = 0UL │
00:00:23 #1234 [Verbose] > │ let v67 : bool = method9(v65, v56, v66) │
00:00:23 #1235 [Verbose] > │ if v67 then │
00:00:23 #1236 [Verbose] > │ () │
00:00:23 #1237 [Verbose] > │ else │
00:00:23 #1238 [Verbose] > │ let v68 : string = $"Challenge error: {v56}" │
00:00:23 #1239 [Verbose] > │ failwith<unit> v68 │
00:00:23 #1240 [Verbose] > │ let v69 : string = $"%A{v17}" │
00:00:23 #1241 [Verbose] > │ let v70 : (string []) = Array.zeroCreate<string> │
00:00:23 #1242 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:23 #1243 [Verbose] > │ let v71 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:23 #1244 [Verbose] > │ while method4(v55, v71) do │
00:00:23 #1245 [Verbose] > │ let v73 : uint64 = v71.l0 │
00:00:23 #1246 [Verbose] > │ let struct (v74 : string, v75 : int64) = v31.[int v73] │
00:00:23 #1247 [Verbose] > │ v70.[int v73] <- v74 │
00:00:23 #1248 [Verbose] > │ let v76 : uint64 = v73 + 1UL │
00:00:23 #1249 [Verbose] > │ v71.l0 <- v76 │
00:00:23 #1250 [Verbose] > │ () │
00:00:23 #1251 [Verbose] > │ let v77 : string = v70.[int 0UL] │
00:00:23 #1252 [Verbose] > │ let v78 : string = $"%A{v77}" │
00:00:23 #1253 [Verbose] > │ let v79 : (int64 []) = Array.zeroCreate<int64> │
00:00:23 #1254 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:23 #1255 [Verbose] > │ let v80 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:23 #1256 [Verbose] > │ while method4(v55, v80) do │
00:00:23 #1257 [Verbose] > │ let v82 : uint64 = v80.l0 │
00:00:23 #1258 [Verbose] > │ let struct (v83 : string, v84 : int64) = v31.[int v82] │
00:00:23 #1259 [Verbose] > │ v79.[int v82] <- v84 │
00:00:23 #1260 [Verbose] > │ let v85 : uint64 = v82 + 1UL │
00:00:23 #1261 [Verbose] > │ v80.l0 <- v85 │
00:00:23 #1262 [Verbose] > │ () │
00:00:23 #1263 [Verbose] > │ v11.[int v14] <- struct (v69, v18, v78, v79) │
00:00:23 #1264 [Verbose] > │ let v86 : uint64 = v14 + 1UL │
00:00:23 #1265 [Verbose] > │ v12.l0 <- v86 │
00:00:23 #1266 [Verbose] > │ () │
00:00:23 #1267 [Verbose] > │ let v87 : uint64 = System.Convert.ToUInt64 v11.Length │
00:00:23 #1268 [Verbose] > │ let v88 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │
00:00:23 #1269 [Verbose] > │ (System.Convert.ToInt32(v87)) │
00:00:23 #1270 [Verbose] > │ let v89 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:23 #1271 [Verbose] > │ while method4(v87, v89) do │
00:00:23 #1272 [Verbose] > │ let v91 : uint64 = v89.l0 │
00:00:23 #1273 [Verbose] > │ let struct (v92 : string, v93 : string, v94 : string, v95 : (int64 [ │
00:00:23 #1274 [Verbose] > │ ])) = v11.[int v91] │
00:00:23 #1275 [Verbose] > │ let v96 : uint64 = System.Convert.ToUInt64 v95.Length │
00:00:23 #1276 [Verbose] > │ let v97 : UH3 = UH3_1 │
00:00:23 #1277 [Verbose] > │ let v98 : Mut2 = {l0 = 0UL; l1 = v97; l2 = 0L} : Mut2 │
00:00:23 #1278 [Verbose] > │ while method10(v96, v98) do │
00:00:23 #1279 [Verbose] > │ let v100 : uint64 = v98.l0 │
00:00:23 #1280 [Verbose] > │ let struct (v101 : UH3, v102 : int64) = v98.l1, v98.l2 │
00:00:23 #1281 [Verbose] > │ let v103 : int64 = v95.[int v100] │
00:00:23 #1282 [Verbose] > │ let v104 : int64 = v102 + 1L │
00:00:23 #1283 [Verbose] > │ let v105 : uint64 = v100 + 1UL │
00:00:23 #1284 [Verbose] > │ let v106 : UH3 = UH3_0(v102, v103, v101) │
00:00:23 #1285 [Verbose] > │ v98.l0 <- v105 │
00:00:23 #1286 [Verbose] > │ v98.l1 <- v106 │
00:00:23 #1287 [Verbose] > │ v98.l2 <- v104 │
00:00:23 #1288 [Verbose] > │ () │
00:00:23 #1289 [Verbose] > │ let struct (v107 : UH3, v108 : int64) = v98.l1, v98.l2 │
00:00:23 #1290 [Verbose] > │ let v109 : UH3 = UH3_1 │
00:00:23 #1291 [Verbose] > │ let v110 : UH3 = method11(v107, v109) │
00:00:23 #1292 [Verbose] > │ let v111 : (struct (int64 * int64) []) = method12(v110) │
00:00:23 #1293 [Verbose] > │ let v112 : int32 = v111.Length │
00:00:23 #1294 [Verbose] > │ let v113 : (struct (int64 * int64) []) = Array.zeroCreate<struct │
00:00:23 #1295 [Verbose] > │ (int64 * int64)> (v112) │
00:00:23 #1296 [Verbose] > │ let v114 : Mut1 = {l0 = 0} : Mut1 │
00:00:23 #1297 [Verbose] > │ while method15(v112, v114) do │
00:00:23 #1298 [Verbose] > │ let v116 : int32 = v114.l0 │
00:00:23 #1299 [Verbose] > │ let struct (v117 : int64, v118 : int64) = v111.[int v116] │
00:00:23 #1300 [Verbose] > │ let v119 : int64 = v117 + 1L │
00:00:23 #1301 [Verbose] > │ v113.[int v116] <- struct (v119, v118) │
00:00:23 #1302 [Verbose] > │ let v120 : int32 = v116 + 1 │
00:00:23 #1303 [Verbose] > │ v114.l0 <- v120 │
00:00:23 #1304 [Verbose] > │ () │
00:00:23 #1305 [Verbose] > │ let v121 : (struct (int64 * int64) -> int64) = closure4() │
00:00:23 #1306 [Verbose] > │ let v122 : (struct (int64 * int64) []) = v113 |> Array.sortBy v121 │
00:00:23 #1307 [Verbose] > │ let struct (v123 : int64, v124 : int64) = v122.[int 0] │
00:00:23 #1308 [Verbose] > │ let v125 : string = $"%A{struct (v123, v124)}" │
00:00:23 #1309 [Verbose] > │ let v126 : bool = v92 = v94 │
00:00:23 #1310 [Verbose] > │ let v131 : US0 = │
00:00:23 #1311 [Verbose] > │ if v126 then │
00:00:23 #1312 [Verbose] > │ let v127 : System.ConsoleColor = │
00:00:23 #1313 [Verbose] > │ System.ConsoleColor.DarkGreen │
00:00:23 #1314 [Verbose] > │ US0_1(v127) │
00:00:23 #1315 [Verbose] > │ else │
00:00:23 #1316 [Verbose] > │ let v129 : System.ConsoleColor = System.ConsoleColor.DarkRed │
00:00:23 #1317 [Verbose] > │ US0_1(v129) │
00:00:23 #1318 [Verbose] > │ let v132 : UH2 = UH2_1 │
00:00:23 #1319 [Verbose] > │ let v133 : UH2 = UH2_0(v125, v132) │
00:00:23 #1320 [Verbose] > │ let v134 : UH2 = UH2_0(v94, v133) │
00:00:23 #1321 [Verbose] > │ let v135 : UH2 = UH2_0(v92, v134) │
00:00:23 #1322 [Verbose] > │ let v136 : UH2 = UH2_0(v93, v135) │
00:00:23 #1323 [Verbose] > │ v88.[int v91] <- struct (v136, v131) │
00:00:23 #1324 [Verbose] > │ let v137 : uint64 = v91 + 1UL │
00:00:23 #1325 [Verbose] > │ v89.l0 <- v137 │
00:00:23 #1326 [Verbose] > │ () │
00:00:23 #1327 [Verbose] > │ let v138 : string = "Input" │
00:00:23 #1328 [Verbose] > │ let v139 : string = "Expected" │
00:00:23 #1329 [Verbose] > │ let v140 : string = "Result" │
00:00:23 #1330 [Verbose] > │ let v141 : string = "Best" │
00:00:23 #1331 [Verbose] > │ let v142 : UH2 = UH2_1 │
00:00:23 #1332 [Verbose] > │ let v143 : UH2 = UH2_0(v141, v142) │
00:00:23 #1333 [Verbose] > │ let v144 : UH2 = UH2_0(v140, v143) │
00:00:23 #1334 [Verbose] > │ let v145 : UH2 = UH2_0(v139, v144) │
00:00:23 #1335 [Verbose] > │ let v146 : UH2 = UH2_0(v138, v145) │
00:00:23 #1336 [Verbose] > │ let v147 : US0 = US0_0 │
00:00:23 #1337 [Verbose] > │ let v148 : string = "---" │
00:00:23 #1338 [Verbose] > │ let v149 : UH2 = UH2_1 │
00:00:23 #1339 [Verbose] > │ let v150 : UH2 = UH2_0(v148, v149) │
00:00:23 #1340 [Verbose] > │ let v151 : UH2 = UH2_0(v148, v150) │
00:00:23 #1341 [Verbose] > │ let v152 : UH2 = UH2_0(v148, v151) │
00:00:23 #1342 [Verbose] > │ let v153 : UH2 = UH2_0(v148, v152) │
00:00:23 #1343 [Verbose] > │ let v154 : US0 = US0_0 │
00:00:23 #1344 [Verbose] > │ let v155 : UH4 = UH4_1 │
00:00:23 #1345 [Verbose] > │ let v156 : UH4 = UH4_0(v153, v154, v155) │
00:00:23 #1346 [Verbose] > │ let v157 : UH4 = UH4_0(v146, v147, v156) │
00:00:23 #1347 [Verbose] > │ let v158 : (struct (UH2 * US0) []) = method16(v157) │
00:00:23 #1348 [Verbose] > │ let v159 : uint64 = System.Convert.ToUInt64 v158.Length │
00:00:23 #1349 [Verbose] > │ let v160 : uint64 = System.Convert.ToUInt64 v88.Length │
00:00:23 #1350 [Verbose] > │ let v161 : uint64 = v159 + v160 │
00:00:23 #1351 [Verbose] > │ let v162 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * │
00:00:23 #1352 [Verbose] > │ US0)> (System.Convert.ToInt32(v161)) │
00:00:23 #1353 [Verbose] > │ let v163 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:23 #1354 [Verbose] > │ while method4(v161, v163) do │
00:00:23 #1355 [Verbose] > │ let v165 : uint64 = v163.l0 │
00:00:23 #1356 [Verbose] > │ let v166 : bool = v165 < v159 │
00:00:23 #1357 [Verbose] > │ let struct (v172 : UH2, v173 : US0) = │
00:00:23 #1358 [Verbose] > │ if v166 then │
00:00:23 #1359 [Verbose] > │ let struct (v167 : UH2, v168 : US0) = v158.[int v165] │
00:00:23 #1360 [Verbose] > │ struct (v167, v168) │
00:00:23 #1361 [Verbose] > │ else │
00:00:23 #1362 [Verbose] > │ let v169 : uint64 = v165 - v159 │
00:00:23 #1363 [Verbose] > │ let struct (v170 : UH2, v171 : US0) = v88.[int v169] │
00:00:23 #1364 [Verbose] > │ struct (v170, v171) │
00:00:23 #1365 [Verbose] > │ v162.[int v165] <- struct (v172, v173) │
00:00:23 #1366 [Verbose] > │ let v174 : uint64 = v165 + 1UL │
00:00:23 #1367 [Verbose] > │ v163.l0 <- v174 │
00:00:23 #1368 [Verbose] > │ () │
00:00:23 #1369 [Verbose] > │ let v175 : uint64 = System.Convert.ToUInt64 v162.Length │
00:00:23 #1370 [Verbose] > │ let v176 : ((string []) []) = Array.zeroCreate<(string [])> │
00:00:23 #1371 [Verbose] > │ (System.Convert.ToInt32(v175)) │
00:00:23 #1372 [Verbose] > │ let v177 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:23 #1373 [Verbose] > │ while method4(v175, v177) do │
00:00:23 #1374 [Verbose] > │ let v179 : uint64 = v177.l0 │
00:00:23 #1375 [Verbose] > │ let struct (v180 : UH2, v181 : US0) = v162.[int v179] │
00:00:23 #1376 [Verbose] > │ let v182 : (string []) = method19(v180) │
00:00:23 #1377 [Verbose] > │ v176.[int v179] <- v182 │
00:00:23 #1378 [Verbose] > │ let v183 : uint64 = v179 + 1UL │
00:00:23 #1379 [Verbose] > │ v177.l0 <- v183 │
00:00:23 #1380 [Verbose] > │ () │
00:00:23 #1381 [Verbose] > │ let v184 : ((string []) []) = v176 |> Array.transpose │
00:00:23 #1382 [Verbose] > │ let v185 : uint64 = System.Convert.ToUInt64 v184.Length │
00:00:23 #1383 [Verbose] > │ let v186 : (int64 []) = Array.zeroCreate<int64> │
00:00:23 #1384 [Verbose] > │ (System.Convert.ToInt32(v185)) │
00:00:23 #1385 [Verbose] > │ let v187 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:23 #1386 [Verbose] > │ while method4(v185, v187) do │
00:00:23 #1387 [Verbose] > │ let v189 : uint64 = v187.l0 │
00:00:23 #1388 [Verbose] > │ let v190 : (string []) = v184.[int v189] │
00:00:23 #1389 [Verbose] > │ let v191 : uint64 = System.Convert.ToUInt64 v190.Length │
00:00:23 #1390 [Verbose] > │ let v192 : (int64 []) = Array.zeroCreate<int64> │
00:00:23 #1391 [Verbose] > │ (System.Convert.ToInt32(v191)) │
00:00:23 #1392 [Verbose] > │ let v193 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:23 #1393 [Verbose] > │ while method4(v191, v193) do │
00:00:23 #1394 [Verbose] > │ let v195 : uint64 = v193.l0 │
00:00:23 #1395 [Verbose] > │ let v196 : string = v190.[int v195] │
00:00:23 #1396 [Verbose] > │ let v197 : int64 = System.Convert.ToInt64 v196.Length │
00:00:23 #1397 [Verbose] > │ v192.[int v195] <- v197 │
00:00:23 #1398 [Verbose] > │ let v198 : uint64 = v195 + 1UL │
00:00:23 #1399 [Verbose] > │ v193.l0 <- v198 │
00:00:23 #1400 [Verbose] > │ () │
00:00:23 #1401 [Verbose] > │ let v199 : (int64 []) = v192 |> Array.sortDescending │
00:00:23 #1402 [Verbose] > │ let v200 : int64 option = v199 |> Array.tryItem 0 │
00:00:23 #1403 [Verbose] > │ let v201 : (int64 -> US1) = closure5() │
00:00:23 #1404 [Verbose] > │ let v202 : US1 = US1_0 │
00:00:23 #1405 [Verbose] > │ let v203 : US1 = v200 |> Option.map v201 |> Option.defaultValue v202 │
00:00:23 #1406 [Verbose] > │ let v206 : int64 = │
00:00:23 #1407 [Verbose] > │ match v203 with │
00:00:23 #1408 [Verbose] > │ | US1_0 -> (* None *) │
00:00:23 #1409 [Verbose] > │ 0L │
00:00:23 #1410 [Verbose] > │ | US1_1(v204) -> (* Some *) │
00:00:23 #1411 [Verbose] > │ v204 │
00:00:23 #1412 [Verbose] > │ v186.[int v189] <- v206 │
00:00:23 #1413 [Verbose] > │ let v207 : uint64 = v189 + 1UL │
00:00:23 #1414 [Verbose] > │ v187.l0 <- v207 │
00:00:23 #1415 [Verbose] > │ () │
00:00:23 #1416 [Verbose] > │ let v208 : uint64 = System.Convert.ToUInt64 v186.Length │
00:00:23 #1417 [Verbose] > │ let v209 : UH5 = UH5_1 │
00:00:23 #1418 [Verbose] > │ let v210 : Mut3 = {l0 = 0UL; l1 = v209; l2 = 0} : Mut3 │
00:00:23 #1419 [Verbose] > │ while method22(v208, v210) do │
00:00:23 #1420 [Verbose] > │ let v212 : uint64 = v210.l0 │
00:00:23 #1421 [Verbose] > │ let struct (v213 : UH5, v214 : int32) = v210.l1, v210.l2 │
00:00:23 #1422 [Verbose] > │ let v215 : int64 = v186.[int v212] │
00:00:23 #1423 [Verbose] > │ let v216 : int32 = v214 + 1 │
00:00:23 #1424 [Verbose] > │ let v217 : uint64 = v212 + 1UL │
00:00:23 #1425 [Verbose] > │ let v218 : UH5 = UH5_0(v214, v215, v213) │
00:00:23 #1426 [Verbose] > │ v210.l0 <- v217 │
00:00:23 #1427 [Verbose] > │ v210.l1 <- v218 │
00:00:23 #1428 [Verbose] > │ v210.l2 <- v216 │
00:00:23 #1429 [Verbose] > │ () │
00:00:23 #1430 [Verbose] > │ let struct (v219 : UH5, v220 : int32) = v210.l1, v210.l2 │
00:00:23 #1431 [Verbose] > │ let v221 : UH5 = UH5_1 │
00:00:23 #1432 [Verbose] > │ let v222 : UH5 = method23(v219, v221) │
00:00:23 #1433 [Verbose] > │ let v223 : (struct (int32 * int64) []) = method24(v222) │
00:00:23 #1434 [Verbose] > │ let v224 : Map<int32, int64> = v223 |> Array.map (fun (struct (a, b)) -> │
00:00:23 #1435 [Verbose] > │ a, b) |> Map.ofArray │
00:00:23 #1436 [Verbose] > │ let v225 : (struct ((string []) * US0) []) = Array.zeroCreate<struct │
00:00:23 #1437 [Verbose] > │ ((string []) * US0)> (System.Convert.ToInt32(v175)) │
00:00:23 #1438 [Verbose] > │ let v226 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:23 #1439 [Verbose] > │ while method4(v175, v226) do │
00:00:23 #1440 [Verbose] > │ let v228 : uint64 = v226.l0 │
00:00:23 #1441 [Verbose] > │ let struct (v229 : UH2, v230 : US0) = v162.[int v228] │
00:00:23 #1442 [Verbose] > │ let v231 : UH6 = UH6_1 │
00:00:23 #1443 [Verbose] > │ let v232 : int32 = 0 │
00:00:23 #1444 [Verbose] > │ let struct (v233 : UH6, v234 : int32) = method27(v229, v231, v232) │
00:00:23 #1445 [Verbose] > │ let v235 : UH6 = UH6_1 │
00:00:23 #1446 [Verbose] > │ let v236 : UH6 = method28(v233, v235) │
00:00:23 #1447 [Verbose] > │ let v237 : UH2 = UH2_1 │
00:00:23 #1448 [Verbose] > │ let v238 : UH2 = method29(v224, v236, v237) │
00:00:23 #1449 [Verbose] > │ let v239 : (string []) = method30(v238) │
00:00:23 #1450 [Verbose] > │ v225.[int v228] <- struct (v239, v230) │
00:00:23 #1451 [Verbose] > │ let v240 : uint64 = v228 + 1UL │
00:00:23 #1452 [Verbose] > │ v226.l0 <- v240 │
00:00:23 #1453 [Verbose] > │ () │
00:00:23 #1454 [Verbose] > │ System.Console.WriteLine v2 │
00:00:23 #1455 [Verbose] > │ let v241 : uint64 = System.Convert.ToUInt64 v225.Length │
00:00:23 #1456 [Verbose] > │ let v242 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:23 #1457 [Verbose] > │ while method4(v241, v242) do │
00:00:23 #1458 [Verbose] > │ let v244 : uint64 = v242.l0 │
00:00:23 #1459 [Verbose] > │ let struct (v245 : (string []), v246 : US0) = v225.[int v244] │
00:00:23 #1460 [Verbose] > │ match v246 with │
00:00:23 #1461 [Verbose] > │ | US0_0 -> (* None *) │
00:00:23 #1462 [Verbose] > │ let mutable result = None │
00:00:23 #1463 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:23 #1464 [Verbose] > │ #if !WASM │
00:00:23 #1465 [Verbose] > │ () │
00:00:23 #1466 [Verbose] > │ #else │
00:00:23 #1467 [Verbose] > │ () │
00:00:23 #1468 [Verbose] > │ #endif │
00:00:23 #1469 [Verbose] > │ #else │
00:00:23 #1470 [Verbose] > │ System.Console.ResetColor () │
00:00:23 #1471 [Verbose] > │ () │
00:00:23 #1472 [Verbose] > │ #endif │
00:00:23 #1473 [Verbose] > │ |> fun x -> result <- Some x │
00:00:23 #1474 [Verbose] > │ result |> Option.get │
00:00:23 #1475 [Verbose] > │ () │
00:00:23 #1476 [Verbose] > │ | US0_1(v247) -> (* Some *) │
00:00:23 #1477 [Verbose] > │ let mutable result = None │
00:00:23 #1478 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:23 #1479 [Verbose] > │ #if !WASM │
00:00:23 #1480 [Verbose] > │ () │
00:00:23 #1481 [Verbose] > │ #else │
00:00:23 #1482 [Verbose] > │ () │
00:00:23 #1483 [Verbose] > │ #endif │
00:00:23 #1484 [Verbose] > │ #else │
00:00:23 #1485 [Verbose] > │ System.Console.ForegroundColor <- v247 │
00:00:23 #1486 [Verbose] > │ () │
00:00:23 #1487 [Verbose] > │ #endif │
00:00:23 #1488 [Verbose] > │ |> fun x -> result <- Some x │
00:00:23 #1489 [Verbose] > │ result |> Option.get │
00:00:23 #1490 [Verbose] > │ () │
00:00:23 #1491 [Verbose] > │ let v248 : string = "\t| " │
00:00:23 #1492 [Verbose] > │ let v249 : string = System.String.Join (v248, v245) │
00:00:23 #1493 [Verbose] > │ System.Console.WriteLine v249 │
00:00:23 #1494 [Verbose] > │ let mutable result = None │
00:00:23 #1495 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:23 #1496 [Verbose] > │ #if !WASM │
00:00:23 #1497 [Verbose] > │ () │
00:00:23 #1498 [Verbose] > │ #else │
00:00:23 #1499 [Verbose] > │ () │
00:00:23 #1500 [Verbose] > │ #endif │
00:00:23 #1501 [Verbose] > │ #else │
00:00:23 #1502 [Verbose] > │ System.Console.ResetColor () │
00:00:23 #1503 [Verbose] > │ () │
00:00:23 #1504 [Verbose] > │ #endif │
00:00:23 #1505 [Verbose] > │ |> fun x -> result <- Some x │
00:00:23 #1506 [Verbose] > │ result |> Option.get │
00:00:23 #1507 [Verbose] > │ let v250 : uint64 = v244 + 1UL │
00:00:23 #1508 [Verbose] > │ v242.l0 <- v250 │
00:00:23 #1509 [Verbose] > │ () │
00:00:23 #1510 [Verbose] > │ let v251 : ((float []) []) = Array.zeroCreate<(float [])> │
00:00:23 #1511 [Verbose] > │ (System.Convert.ToInt32(v87)) │
00:00:23 #1512 [Verbose] > │ let v252 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:23 #1513 [Verbose] > │ while method4(v87, v252) do │
00:00:23 #1514 [Verbose] > │ let v254 : uint64 = v252.l0 │
00:00:23 #1515 [Verbose] > │ let struct (v255 : string, v256 : string, v257 : string, v258 : │
00:00:23 #1516 [Verbose] > │ (int64 [])) = v11.[int v254] │
00:00:23 #1517 [Verbose] > │ let v259 : (int64 -> float) = float │
00:00:23 #1518 [Verbose] > │ let v260 : uint64 = System.Convert.ToUInt64 v258.Length │
00:00:23 #1519 [Verbose] > │ let v261 : (float []) = Array.zeroCreate<float> │
00:00:23 #1520 [Verbose] > │ (System.Convert.ToInt32(v260)) │
00:00:23 #1521 [Verbose] > │ let v262 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:23 #1522 [Verbose] > │ while method4(v260, v262) do │
00:00:23 #1523 [Verbose] > │ let v264 : uint64 = v262.l0 │
00:00:23 #1524 [Verbose] > │ let v265 : int64 = v258.[int v264] │
00:00:23 #1525 [Verbose] > │ let v266 : float = v259 v265 │
00:00:23 #1526 [Verbose] > │ v261.[int v264] <- v266 │
00:00:23 #1527 [Verbose] > │ let v267 : uint64 = v264 + 1UL │
00:00:23 #1528 [Verbose] > │ v262.l0 <- v267 │
00:00:23 #1529 [Verbose] > │ () │
00:00:23 #1530 [Verbose] > │ v251.[int v254] <- v261 │
00:00:23 #1531 [Verbose] > │ let v268 : uint64 = v254 + 1UL │
00:00:23 #1532 [Verbose] > │ v252.l0 <- v268 │
00:00:23 #1533 [Verbose] > │ () │
00:00:23 #1534 [Verbose] > │ let v269 : ((float []) []) = v251 |> Array.transpose │
00:00:23 #1535 [Verbose] > │ let v270 : uint64 = System.Convert.ToUInt64 v269.Length │
00:00:23 #1536 [Verbose] > │ let v271 : (float []) = Array.zeroCreate<float> │
00:00:23 #1537 [Verbose] > │ (System.Convert.ToInt32(v270)) │
00:00:23 #1538 [Verbose] > │ let v272 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:23 #1539 [Verbose] > │ while method4(v270, v272) do │
00:00:23 #1540 [Verbose] > │ let v274 : uint64 = v272.l0 │
00:00:23 #1541 [Verbose] > │ let v275 : (float []) = v269.[int v274] │
00:00:23 #1542 [Verbose] > │ let v276 : float = v275 |> Array.average │
00:00:23 #1543 [Verbose] > │ v271.[int v274] <- v276 │
00:00:23 #1544 [Verbose] > │ let v277 : uint64 = v274 + 1UL │
00:00:23 #1545 [Verbose] > │ v272.l0 <- v277 │
00:00:23 #1546 [Verbose] > │ () │
00:00:23 #1547 [Verbose] > │ let v278 : (float -> int64) = int64 │
00:00:23 #1548 [Verbose] > │ let v279 : uint64 = System.Convert.ToUInt64 v271.Length │
00:00:23 #1549 [Verbose] > │ let v280 : (int64 []) = Array.zeroCreate<int64> │
00:00:23 #1550 [Verbose] > │ (System.Convert.ToInt32(v279)) │
00:00:23 #1551 [Verbose] > │ let v281 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:23 #1552 [Verbose] > │ while method4(v279, v281) do │
00:00:23 #1553 [Verbose] > │ let v283 : uint64 = v281.l0 │
00:00:23 #1554 [Verbose] > │ let v284 : float = v271.[int v283] │
00:00:23 #1555 [Verbose] > │ let v285 : int64 = v278 v284 │
00:00:23 #1556 [Verbose] > │ v280.[int v283] <- v285 │
00:00:23 #1557 [Verbose] > │ let v286 : uint64 = v283 + 1UL │
00:00:23 #1558 [Verbose] > │ v281.l0 <- v286 │
00:00:23 #1559 [Verbose] > │ () │
00:00:23 #1560 [Verbose] > │ let v287 : uint64 = System.Convert.ToUInt64 v280.Length │
00:00:23 #1561 [Verbose] > │ let v288 : UH5 = UH5_1 │
00:00:23 #1562 [Verbose] > │ let v289 : Mut3 = {l0 = 0UL; l1 = v288; l2 = 0} : Mut3 │
00:00:23 #1563 [Verbose] > │ while method22(v287, v289) do │
00:00:23 #1564 [Verbose] > │ let v291 : uint64 = v289.l0 │
00:00:23 #1565 [Verbose] > │ let struct (v292 : UH5, v293 : int32) = v289.l1, v289.l2 │
00:00:23 #1566 [Verbose] > │ let v294 : int64 = v280.[int v291] │
00:00:23 #1567 [Verbose] > │ let v295 : int32 = v293 + 1 │
00:00:23 #1568 [Verbose] > │ let v296 : uint64 = v291 + 1UL │
00:00:23 #1569 [Verbose] > │ let v297 : UH5 = UH5_0(v293, v294, v292) │
00:00:23 #1570 [Verbose] > │ v289.l0 <- v296 │
00:00:23 #1571 [Verbose] > │ v289.l1 <- v297 │
00:00:23 #1572 [Verbose] > │ v289.l2 <- v295 │
00:00:23 #1573 [Verbose] > │ () │
00:00:23 #1574 [Verbose] > │ let struct (v298 : UH5, v299 : int32) = v289.l1, v289.l2 │
00:00:23 #1575 [Verbose] > │ let v300 : UH5 = UH5_1 │
00:00:23 #1576 [Verbose] > │ let v301 : UH5 = method23(v298, v300) │
00:00:23 #1577 [Verbose] > │ let v302 : (struct (int32 * int64) []) = method33(v301) │
00:00:23 #1578 [Verbose] > │ System.Console.WriteLine v2 │
00:00:23 #1579 [Verbose] > │ let v303 : string = "Average Ranking " │
00:00:23 #1580 [Verbose] > │ System.Console.WriteLine v303 │
00:00:23 #1581 [Verbose] > │ let v304 : (struct (int32 * int64) -> int64) = closure6() │
00:00:23 #1582 [Verbose] > │ let v305 : (struct (int32 * int64) []) = v302 |> Array.sortBy v304 │
00:00:23 #1583 [Verbose] > │ let v306 : uint64 = System.Convert.ToUInt64 v305.Length │
00:00:23 #1584 [Verbose] > │ let v307 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:23 #1585 [Verbose] > │ while method4(v306, v307) do │
00:00:23 #1586 [Verbose] > │ let v309 : uint64 = v307.l0 │
00:00:23 #1587 [Verbose] > │ let struct (v310 : int32, v311 : int64) = v305.[int v309] │
00:00:23 #1588 [Verbose] > │ let v312 : string = $"Test case %d{v310 + 1}. Average Time: %A{v311} │
00:00:23 #1589 [Verbose] > │ " │
00:00:23 #1590 [Verbose] > │ System.Console.WriteLine v312 │
00:00:23 #1591 [Verbose] > │ let v313 : uint64 = v309 + 1UL │
00:00:23 #1592 [Verbose] > │ v307.l0 <- v313 │
00:00:23 #1593 [Verbose] > │ () │
00:00:23 #1594 [Verbose] > │ () │
00:00:23 #1595 [Verbose] > │ method0() │
00:00:23 #1596 [Verbose] > │ │
00:00:23 #1597 [Verbose] > │ │
00:00:23 #1598 [Verbose] > │ │
00:00:23 #1599 [Verbose] > │ Test: v0 │
00:00:23 #1600 [Verbose] > │ │
00:00:23 #1601 [Verbose] > │ Solution: struct ("a", "a") │
00:00:23 #1602 [Verbose] > │ Test case 1. A. Time: 104 │
00:00:23 #1603 [Verbose] > │ Test case 2. B. Time: 106 │
00:00:23 #1604 [Verbose] > │ │
00:00:23 #1605 [Verbose] > │ Solution: struct ("b", "b") │
00:00:23 #1606 [Verbose] > │ Test case 1. A. Time: 107 │
00:00:23 #1607 [Verbose] > │ Test case 2. B. Time: 129 │
00:00:23 #1608 [Verbose] > │ │
00:00:23 #1609 [Verbose] > │ Input | Expected | Result | Best │
00:00:23 #1610 [Verbose] > │ --- | --- | --- | --- │
00:00:23 #1611 [Verbose] > │ struct ("a", "a") | "a" | "a" | struct (1L, 104L) │
00:00:23 #1612 [Verbose] > │ struct ("b", "b") | "b" | "b" | struct (1L, 107L) │
00:00:23 #1613 [Verbose] > │ │
00:00:23 #1614 [Verbose] > │ Average Ranking │
00:00:23 #1615 [Verbose] > │ Test case 1. Average Time: 105L │
00:00:23 #1616 [Verbose] > │ Test case 2. Average Time: 117L │
00:00:23 #1617 [Verbose] > │ │
00:00:23 #1618 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #1619 [Verbose] >
00:00:23 #1620 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 #1621 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 #1622 [Verbose] > │ ## emptyTests │
00:00:23 #1623 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #1624 [Verbose] >
00:00:23 #1625 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 #1626 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 #1627 [Verbose] > │ Test: Empty │
00:00:23 #1628 [Verbose] > │ │
00:00:23 #1629 [Verbose] > │ Solution: 0 │
00:00:23 #1630 [Verbose] > │ Test case 1. A. Time: 61L │
00:00:23 #1631 [Verbose] > │ │
00:00:23 #1632 [Verbose] > │ Solution: 2 │
00:00:23 #1633 [Verbose] > │ Test case 1. A. Time: 62L │
00:00:23 #1634 [Verbose] > │ │
00:00:23 #1635 [Verbose] > │ Solution: 5 │
00:00:23 #1636 [Verbose] > │ Test case 1. A. Time: 70L │
00:00:23 #1637 [Verbose] > │ │
00:00:23 #1638 [Verbose] > │ Input | Expected | Result | Best │
00:00:23 #1639 [Verbose] > │ --- | --- | --- | --- │
00:00:23 #1640 [Verbose] > │ 0 | 0 | 0 | (1, 61) │
00:00:23 #1641 [Verbose] > │ 2 | 2 | 2 | (1, 62) │
00:00:23 #1642 [Verbose] > │ 5 | 5 | 5 | (1, 70) │
00:00:23 #1643 [Verbose] > │ │
00:00:23 #1644 [Verbose] > │ Averages │
00:00:23 #1645 [Verbose] > │ Test case 1. Average Time: 64L │
00:00:23 #1646 [Verbose] > │ │
00:00:23 #1647 [Verbose] > │ Ranking │
00:00:23 #1648 [Verbose] > │ Test case 1. Average Time: 64L │
00:00:23 #1649 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #1650 [Verbose] >
00:00:23 #1651 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 #1652 [Verbose] > // // test
00:00:23 #1653 [Verbose] >
00:00:23 #1654 [Verbose] > inl get_solutions () =
00:00:23 #1655 [Verbose] > [[
00:00:23 #1656 [Verbose] > "A",
00:00:23 #1657 [Verbose] > fun n =>
00:00:23 #1658 [Verbose] > n + 1f64
00:00:23 #1659 [Verbose] > ]]
00:00:23 #1660 [Verbose] >
00:00:23 #1661 [Verbose] > inl rec empty_1_tests () =
00:00:23 #1662 [Verbose] > inl test_cases = [[
00:00:23 #1663 [Verbose] > 0, 1
00:00:23 #1664 [Verbose] > 2, 3
00:00:23 #1665 [Verbose] > 5, 6
00:00:23 #1666 [Verbose] > ]]
00:00:23 #1667 [Verbose] >
00:00:23 #1668 [Verbose] > inl solutions = get_solutions ()
00:00:23 #1669 [Verbose] >
00:00:23 #1670 [Verbose] > // inl is_fast () = true
00:00:23 #1671 [Verbose] >
00:00:23 #1672 [Verbose] > inl count =
00:00:23 #1673 [Verbose] > if is_fast ()
00:00:23 #1674 [Verbose] > then 1000i32
00:00:23 #1675 [Verbose] > else 2000000i32
00:00:23 #1676 [Verbose] >
00:00:23 #1677 [Verbose] > run_all (nameof empty_1_tests) count solutions test_cases
00:00:23 #1678 [Verbose] > |> sort_result_list
00:00:23 #1679 [Verbose] >
00:00:23 #1680 [Verbose] > empty_1_tests ()
00:00:23 #1681 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0041-5223-2373-2f75838a7398\main.spi
00:00:28 #1682 [Verbose] >
00:00:28 #1683 [Verbose] > ╭─[ 5.54s - stdout ]───────────────────────────────────────────────────────────╮
00:00:28 #1684 [Verbose] > │ type UH0 = │
00:00:28 #1685 [Verbose] > │ | UH0_0 of float * float * UH0 │
00:00:28 #1686 [Verbose] > │ | UH0_1 │
00:00:28 #1687 [Verbose] > │ and Mut0 = {mutable l0 : uint64} │
00:00:28 #1688 [Verbose] > │ and UH1 = │
00:00:28 #1689 [Verbose] > │ | UH1_0 of int32 * string * (float -> float) * UH1 │
00:00:28 #1690 [Verbose] > │ | UH1_1 │
00:00:28 #1691 [Verbose] > │ and Mut1 = {mutable l0 : int32} │
00:00:28 #1692 [Verbose] > │ and UH2 = │
00:00:28 #1693 [Verbose] > │ | UH2_0 of string * UH2 │
00:00:28 #1694 [Verbose] > │ | UH2_1 │
00:00:28 #1695 [Verbose] > │ and [<Struct>] US0 = │
00:00:28 #1696 [Verbose] > │ | US0_0 │
00:00:28 #1697 [Verbose] > │ | US0_1 of f1_0 : System.ConsoleColor │
00:00:28 #1698 [Verbose] > │ and UH3 = │
00:00:28 #1699 [Verbose] > │ | UH3_0 of int64 * int64 * UH3 │
00:00:28 #1700 [Verbose] > │ | UH3_1 │
00:00:28 #1701 [Verbose] > │ and Mut2 = {mutable l0 : uint64; mutable l1 : UH3; mutable l2 : int64} │
00:00:28 #1702 [Verbose] > │ and UH4 = │
00:00:28 #1703 [Verbose] > │ | UH4_0 of UH2 * US0 * UH4 │
00:00:28 #1704 [Verbose] > │ | UH4_1 │
00:00:28 #1705 [Verbose] > │ and [<Struct>] US1 = │
00:00:28 #1706 [Verbose] > │ | US1_0 │
00:00:28 #1707 [Verbose] > │ | US1_1 of f1_0 : int64 │
00:00:28 #1708 [Verbose] > │ and UH5 = │
00:00:28 #1709 [Verbose] > │ | UH5_0 of int32 * int64 * UH5 │
00:00:28 #1710 [Verbose] > │ | UH5_1 │
00:00:28 #1711 [Verbose] > │ and Mut3 = {mutable l0 : uint64; mutable l1 : UH5; mutable l2 : int32} │
00:00:28 #1712 [Verbose] > │ and UH6 = │
00:00:28 #1713 [Verbose] > │ | UH6_0 of int32 * string * UH6 │
00:00:28 #1714 [Verbose] > │ | UH6_1 │
00:00:28 #1715 [Verbose] > │ let rec method2 (v0 : UH0, v1 : uint64) : uint64 = │
00:00:28 #1716 [Verbose] > │ match v0 with │
00:00:28 #1717 [Verbose] > │ | UH0_0(v2, v3, v4) -> (* Cons *) │
00:00:28 #1718 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:00:28 #1719 [Verbose] > │ method2(v4, v5) │
00:00:28 #1720 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:28 #1721 [Verbose] > │ v1 │
00:00:28 #1722 [Verbose] > │ and method3 (v0 : (struct (float * float) []), v1 : UH0, v2 : uint64) : │
00:00:28 #1723 [Verbose] > │ uint64 = │
00:00:28 #1724 [Verbose] > │ match v1 with │
00:00:28 #1725 [Verbose] > │ | UH0_0(v3, v4, v5) -> (* Cons *) │
00:00:28 #1726 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:28 #1727 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:00:28 #1728 [Verbose] > │ method3(v0, v5, v6) │
00:00:28 #1729 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:28 #1730 [Verbose] > │ v2 │
00:00:28 #1731 [Verbose] > │ and method1 (v0 : UH0) : (struct (float * float) []) = │
00:00:28 #1732 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:28 #1733 [Verbose] > │ let v2 : uint64 = method2(v0, v1) │
00:00:28 #1734 [Verbose] > │ let v3 : (struct (float * float) []) = Array.zeroCreate<struct (float * │
00:00:28 #1735 [Verbose] > │ float)> (System.Convert.ToInt32(v2)) │
00:00:28 #1736 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:28 #1737 [Verbose] > │ let v5 : uint64 = method3(v3, v0, v4) │
00:00:28 #1738 [Verbose] > │ v3 │
00:00:28 #1739 [Verbose] > │ and method4 (v0 : uint64, v1 : Mut0) : bool = │
00:00:28 #1740 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:00:28 #1741 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:28 #1742 [Verbose] > │ v3 │
00:00:28 #1743 [Verbose] > │ and closure1 () (v0 : float) : float = │
00:00:28 #1744 [Verbose] > │ let v1 : float = v0 + 1.0 │
00:00:28 #1745 [Verbose] > │ v1 │
00:00:28 #1746 [Verbose] > │ and method6 (v0 : UH1, v1 : uint64) : uint64 = │
00:00:28 #1747 [Verbose] > │ match v0 with │
00:00:28 #1748 [Verbose] > │ | UH1_0(v2, v3, v4, v5) -> (* Cons *) │
00:00:28 #1749 [Verbose] > │ let v6 : uint64 = v1 + 1UL │
00:00:28 #1750 [Verbose] > │ method6(v5, v6) │
00:00:28 #1751 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:28 #1752 [Verbose] > │ v1 │
00:00:28 #1753 [Verbose] > │ and method7 (v0 : (struct (int32 * string * (float -> float)) []), v1 : UH1, │
00:00:28 #1754 [Verbose] > │ v2 : uint64) : uint64 = │
00:00:28 #1755 [Verbose] > │ match v1 with │
00:00:28 #1756 [Verbose] > │ | UH1_0(v3, v4, v5, v6) -> (* Cons *) │
00:00:28 #1757 [Verbose] > │ v0.[int v2] <- struct (v3, v4, v5) │
00:00:28 #1758 [Verbose] > │ let v7 : uint64 = v2 + 1UL │
00:00:28 #1759 [Verbose] > │ method7(v0, v6, v7) │
00:00:28 #1760 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:28 #1761 [Verbose] > │ v2 │
00:00:28 #1762 [Verbose] > │ and method5 (v0 : UH1) : (struct (int32 * string * (float -> float)) []) = │
00:00:28 #1763 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:28 #1764 [Verbose] > │ let v2 : uint64 = method6(v0, v1) │
00:00:28 #1765 [Verbose] > │ let v3 : (struct (int32 * string * (float -> float)) []) = │
00:00:28 #1766 [Verbose] > │ Array.zeroCreate<struct (int32 * string * (float -> float))> │
00:00:28 #1767 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:00:28 #1768 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:28 #1769 [Verbose] > │ let v5 : uint64 = method7(v3, v0, v4) │
00:00:28 #1770 [Verbose] > │ v3 │
00:00:28 #1771 [Verbose] > │ and method8 (v0 : Mut1) : bool = │
00:00:28 #1772 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:28 #1773 [Verbose] > │ let v2 : bool = v1 < 2000001 │
00:00:28 #1774 [Verbose] > │ v2 │
00:00:28 #1775 [Verbose] > │ and closure2 (v0 : float, v1 : (float -> float)) (v2 : int32) : float = │
00:00:28 #1776 [Verbose] > │ v1 v0 │
00:00:28 #1777 [Verbose] > │ and method9 (v0 : float, v1 : (float []), v2 : uint64) : bool = │
00:00:28 #1778 [Verbose] > │ let v3 : uint64 = System.Convert.ToUInt64 v1.Length │
00:00:28 #1779 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:28 #1780 [Verbose] > │ if v4 then │
00:00:28 #1781 [Verbose] > │ let v5 : float = v1.[int v2] │
00:00:28 #1782 [Verbose] > │ let v6 : bool = v0 = v5 │
00:00:28 #1783 [Verbose] > │ if v6 then │
00:00:28 #1784 [Verbose] > │ let v7 : uint64 = v2 + 1UL │
00:00:28 #1785 [Verbose] > │ method9(v0, v1, v7) │
00:00:28 #1786 [Verbose] > │ else │
00:00:28 #1787 [Verbose] > │ false │
00:00:28 #1788 [Verbose] > │ else │
00:00:28 #1789 [Verbose] > │ true │
00:00:28 #1790 [Verbose] > │ and method10 (v0 : uint64, v1 : Mut2) : bool = │
00:00:28 #1791 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:00:28 #1792 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:28 #1793 [Verbose] > │ v3 │
00:00:28 #1794 [Verbose] > │ and method11 (v0 : UH3, v1 : UH3) : UH3 = │
00:00:28 #1795 [Verbose] > │ match v0 with │
00:00:28 #1796 [Verbose] > │ | UH3_0(v2, v3, v4) -> (* Cons *) │
00:00:28 #1797 [Verbose] > │ let v5 : UH3 = UH3_0(v2, v3, v1) │
00:00:28 #1798 [Verbose] > │ method11(v4, v5) │
00:00:28 #1799 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:00:28 #1800 [Verbose] > │ v1 │
00:00:28 #1801 [Verbose] > │ and method13 (v0 : UH3, v1 : int32) : int32 = │
00:00:28 #1802 [Verbose] > │ match v0 with │
00:00:28 #1803 [Verbose] > │ | UH3_0(v2, v3, v4) -> (* Cons *) │
00:00:28 #1804 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:00:28 #1805 [Verbose] > │ method13(v4, v5) │
00:00:28 #1806 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:00:28 #1807 [Verbose] > │ v1 │
00:00:28 #1808 [Verbose] > │ and method14 (v0 : (struct (int64 * int64) []), v1 : UH3, v2 : int32) : │
00:00:28 #1809 [Verbose] > │ int32 = │
00:00:28 #1810 [Verbose] > │ match v1 with │
00:00:28 #1811 [Verbose] > │ | UH3_0(v3, v4, v5) -> (* Cons *) │
00:00:28 #1812 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:28 #1813 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:00:28 #1814 [Verbose] > │ method14(v0, v5, v6) │
00:00:28 #1815 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:00:28 #1816 [Verbose] > │ v2 │
00:00:28 #1817 [Verbose] > │ and method12 (v0 : UH3) : (struct (int64 * int64) []) = │
00:00:28 #1818 [Verbose] > │ let v1 : int32 = 0 │
00:00:28 #1819 [Verbose] > │ let v2 : int32 = method13(v0, v1) │
00:00:28 #1820 [Verbose] > │ let v3 : (struct (int64 * int64) []) = Array.zeroCreate<struct (int64 * │
00:00:28 #1821 [Verbose] > │ int64)> (v2) │
00:00:28 #1822 [Verbose] > │ let v4 : int32 = 0 │
00:00:28 #1823 [Verbose] > │ let v5 : int32 = method14(v3, v0, v4) │
00:00:28 #1824 [Verbose] > │ v3 │
00:00:28 #1825 [Verbose] > │ and method15 (v0 : int32, v1 : Mut1) : bool = │
00:00:28 #1826 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:28 #1827 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:28 #1828 [Verbose] > │ v3 │
00:00:28 #1829 [Verbose] > │ and closure3 () struct (v0 : int64, v1 : int64) : int64 = │
00:00:28 #1830 [Verbose] > │ v1 │
00:00:28 #1831 [Verbose] > │ and method17 (v0 : UH4, v1 : uint64) : uint64 = │
00:00:28 #1832 [Verbose] > │ match v0 with │
00:00:28 #1833 [Verbose] > │ | UH4_0(v2, v3, v4) -> (* Cons *) │
00:00:28 #1834 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:00:28 #1835 [Verbose] > │ method17(v4, v5) │
00:00:28 #1836 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:28 #1837 [Verbose] > │ v1 │
00:00:28 #1838 [Verbose] > │ and method18 (v0 : (struct (UH2 * US0) []), v1 : UH4, v2 : uint64) : uint64 │
00:00:28 #1839 [Verbose] > │ = │
00:00:28 #1840 [Verbose] > │ match v1 with │
00:00:28 #1841 [Verbose] > │ | UH4_0(v3, v4, v5) -> (* Cons *) │
00:00:28 #1842 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:28 #1843 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:00:28 #1844 [Verbose] > │ method18(v0, v5, v6) │
00:00:28 #1845 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:28 #1846 [Verbose] > │ v2 │
00:00:28 #1847 [Verbose] > │ and method16 (v0 : UH4) : (struct (UH2 * US0) []) = │
00:00:28 #1848 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:28 #1849 [Verbose] > │ let v2 : uint64 = method17(v0, v1) │
00:00:28 #1850 [Verbose] > │ let v3 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │
00:00:28 #1851 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:00:28 #1852 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:28 #1853 [Verbose] > │ let v5 : uint64 = method18(v3, v0, v4) │
00:00:28 #1854 [Verbose] > │ v3 │
00:00:28 #1855 [Verbose] > │ and method20 (v0 : UH2, v1 : uint64) : uint64 = │
00:00:28 #1856 [Verbose] > │ match v0 with │
00:00:28 #1857 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:00:28 #1858 [Verbose] > │ let v4 : uint64 = v1 + 1UL │
00:00:28 #1859 [Verbose] > │ method20(v3, v4) │
00:00:28 #1860 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:28 #1861 [Verbose] > │ v1 │
00:00:28 #1862 [Verbose] > │ and method21 (v0 : (string []), v1 : UH2, v2 : uint64) : uint64 = │
00:00:28 #1863 [Verbose] > │ match v1 with │
00:00:28 #1864 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:00:28 #1865 [Verbose] > │ v0.[int v2] <- v3 │
00:00:28 #1866 [Verbose] > │ let v5 : uint64 = v2 + 1UL │
00:00:28 #1867 [Verbose] > │ method21(v0, v4, v5) │
00:00:28 #1868 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:28 #1869 [Verbose] > │ v2 │
00:00:28 #1870 [Verbose] > │ and method19 (v0 : UH2) : (string []) = │
00:00:28 #1871 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:28 #1872 [Verbose] > │ let v2 : uint64 = method20(v0, v1) │
00:00:28 #1873 [Verbose] > │ let v3 : (string []) = Array.zeroCreate<string> │
00:00:28 #1874 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:00:28 #1875 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:28 #1876 [Verbose] > │ let v5 : uint64 = method21(v3, v0, v4) │
00:00:28 #1877 [Verbose] > │ v3 │
00:00:28 #1878 [Verbose] > │ and closure4 () (v0 : int64) : US1 = │
00:00:28 #1879 [Verbose] > │ US1_1(v0) │
00:00:28 #1880 [Verbose] > │ and method22 (v0 : uint64, v1 : Mut3) : bool = │
00:00:28 #1881 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:00:28 #1882 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:28 #1883 [Verbose] > │ v3 │
00:00:28 #1884 [Verbose] > │ and method23 (v0 : UH5, v1 : UH5) : UH5 = │
00:00:28 #1885 [Verbose] > │ match v0 with │
00:00:28 #1886 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:00:28 #1887 [Verbose] > │ let v5 : UH5 = UH5_0(v2, v3, v1) │
00:00:28 #1888 [Verbose] > │ method23(v4, v5) │
00:00:28 #1889 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:28 #1890 [Verbose] > │ v1 │
00:00:28 #1891 [Verbose] > │ and method25 (v0 : UH5, v1 : int32) : int32 = │
00:00:28 #1892 [Verbose] > │ match v0 with │
00:00:28 #1893 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:00:28 #1894 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:00:28 #1895 [Verbose] > │ method25(v4, v5) │
00:00:28 #1896 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:28 #1897 [Verbose] > │ v1 │
00:00:28 #1898 [Verbose] > │ and method26 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : int32) : │
00:00:28 #1899 [Verbose] > │ int32 = │
00:00:28 #1900 [Verbose] > │ match v1 with │
00:00:28 #1901 [Verbose] > │ | UH5_0(v3, v4, v5) -> (* Cons *) │
00:00:28 #1902 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:28 #1903 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:00:28 #1904 [Verbose] > │ method26(v0, v5, v6) │
00:00:28 #1905 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:28 #1906 [Verbose] > │ v2 │
00:00:28 #1907 [Verbose] > │ and method24 (v0 : UH5) : (struct (int32 * int64) []) = │
00:00:28 #1908 [Verbose] > │ let v1 : int32 = 0 │
00:00:28 #1909 [Verbose] > │ let v2 : int32 = method25(v0, v1) │
00:00:28 #1910 [Verbose] > │ let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 * │
00:00:28 #1911 [Verbose] > │ int64)> (v2) │
00:00:28 #1912 [Verbose] > │ let v4 : int32 = 0 │
00:00:28 #1913 [Verbose] > │ let v5 : int32 = method26(v3, v0, v4) │
00:00:28 #1914 [Verbose] > │ v3 │
00:00:28 #1915 [Verbose] > │ and method27 (v0 : UH2, v1 : UH6, v2 : int32) : struct (UH6 * int32) = │
00:00:28 #1916 [Verbose] > │ match v0 with │
00:00:28 #1917 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:00:28 #1918 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:28 #1919 [Verbose] > │ let v6 : UH6 = UH6_0(v2, v3, v1) │
00:00:28 #1920 [Verbose] > │ method27(v4, v6, v5) │
00:00:28 #1921 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:28 #1922 [Verbose] > │ struct (v1, v2) │
00:00:28 #1923 [Verbose] > │ and method28 (v0 : UH6, v1 : UH6) : UH6 = │
00:00:28 #1924 [Verbose] > │ match v0 with │
00:00:28 #1925 [Verbose] > │ | UH6_0(v2, v3, v4) -> (* Cons *) │
00:00:28 #1926 [Verbose] > │ let v5 : UH6 = UH6_0(v2, v3, v1) │
00:00:28 #1927 [Verbose] > │ method28(v4, v5) │
00:00:28 #1928 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:28 #1929 [Verbose] > │ v1 │
00:00:28 #1930 [Verbose] > │ and method29 (v0 : Map<int32, int64>, v1 : UH6, v2 : UH2) : UH2 = │
00:00:28 #1931 [Verbose] > │ match v1 with │
00:00:28 #1932 [Verbose] > │ | UH6_0(v3, v4, v5) -> (* Cons *) │
00:00:28 #1933 [Verbose] > │ let v6 : UH2 = method29(v0, v5, v2) │
00:00:28 #1934 [Verbose] > │ let v7 : int64 = v0.[v3] │
00:00:28 #1935 [Verbose] > │ let v8 : int32 = int32 v7 │
00:00:28 #1936 [Verbose] > │ let v9 : string = v4.PadRight v8 │
00:00:28 #1937 [Verbose] > │ UH2_0(v9, v6) │
00:00:28 #1938 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:28 #1939 [Verbose] > │ v2 │
00:00:28 #1940 [Verbose] > │ and method31 (v0 : UH2, v1 : int32) : int32 = │
00:00:28 #1941 [Verbose] > │ match v0 with │
00:00:28 #1942 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:00:28 #1943 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:28 #1944 [Verbose] > │ method31(v3, v4) │
00:00:28 #1945 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:28 #1946 [Verbose] > │ v1 │
00:00:28 #1947 [Verbose] > │ and method32 (v0 : (string []), v1 : UH2, v2 : int32) : int32 = │
00:00:28 #1948 [Verbose] > │ match v1 with │
00:00:28 #1949 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:00:28 #1950 [Verbose] > │ v0.[int v2] <- v3 │
00:00:28 #1951 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:28 #1952 [Verbose] > │ method32(v0, v4, v5) │
00:00:28 #1953 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:28 #1954 [Verbose] > │ v2 │
00:00:28 #1955 [Verbose] > │ and method30 (v0 : UH2) : (string []) = │
00:00:28 #1956 [Verbose] > │ let v1 : int32 = 0 │
00:00:28 #1957 [Verbose] > │ let v2 : int32 = method31(v0, v1) │
00:00:28 #1958 [Verbose] > │ let v3 : (string []) = Array.zeroCreate<string> (v2) │
00:00:28 #1959 [Verbose] > │ let v4 : int32 = 0 │
00:00:28 #1960 [Verbose] > │ let v5 : int32 = method32(v3, v0, v4) │
00:00:28 #1961 [Verbose] > │ v3 │
00:00:28 #1962 [Verbose] > │ and method34 (v0 : UH5, v1 : uint64) : uint64 = │
00:00:28 #1963 [Verbose] > │ match v0 with │
00:00:28 #1964 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:00:28 #1965 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:00:28 #1966 [Verbose] > │ method34(v4, v5) │
00:00:28 #1967 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:28 #1968 [Verbose] > │ v1 │
00:00:28 #1969 [Verbose] > │ and method35 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : uint64) : │
00:00:28 #1970 [Verbose] > │ uint64 = │
00:00:28 #1971 [Verbose] > │ match v1 with │
00:00:28 #1972 [Verbose] > │ | UH5_0(v3, v4, v5) -> (* Cons *) │
00:00:28 #1973 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:28 #1974 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:00:28 #1975 [Verbose] > │ method35(v0, v5, v6) │
00:00:28 #1976 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:28 #1977 [Verbose] > │ v2 │
00:00:28 #1978 [Verbose] > │ and method33 (v0 : UH5) : (struct (int32 * int64) []) = │
00:00:28 #1979 [Verbose] > │ let v1 : uint64 = 0UL │
00:00:28 #1980 [Verbose] > │ let v2 : uint64 = method34(v0, v1) │
00:00:28 #1981 [Verbose] > │ let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 * │
00:00:28 #1982 [Verbose] > │ int64)> (System.Convert.ToInt32(v2)) │
00:00:28 #1983 [Verbose] > │ let v4 : uint64 = 0UL │
00:00:28 #1984 [Verbose] > │ let v5 : uint64 = method35(v3, v0, v4) │
00:00:28 #1985 [Verbose] > │ v3 │
00:00:28 #1986 [Verbose] > │ and closure5 () struct (v0 : int32, v1 : int64) : int64 = │
00:00:28 #1987 [Verbose] > │ v1 │
00:00:28 #1988 [Verbose] > │ and closure0 () () : unit = │
00:00:28 #1989 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:00:28 #1990 [Verbose] > │ let v1 : string = nameof v0 │
00:00:28 #1991 [Verbose] > │ let v2 : string = "" │
00:00:28 #1992 [Verbose] > │ System.Console.WriteLine v2 │
00:00:28 #1993 [Verbose] > │ System.Console.WriteLine v2 │
00:00:28 #1994 [Verbose] > │ let v3 : string = $"Test: {v1}" │
00:00:28 #1995 [Verbose] > │ System.Console.WriteLine v3 │
00:00:28 #1996 [Verbose] > │ let v4 : float = 0.0 │
00:00:28 #1997 [Verbose] > │ let v5 : float = 1.0 │
00:00:28 #1998 [Verbose] > │ let v6 : float = 2.0 │
00:00:28 #1999 [Verbose] > │ let v7 : float = 3.0 │
00:00:28 #2000 [Verbose] > │ let v8 : float = 5.0 │
00:00:28 #2001 [Verbose] > │ let v9 : float = 6.0 │
00:00:28 #2002 [Verbose] > │ let v10 : UH0 = UH0_1 │
00:00:28 #2003 [Verbose] > │ let v11 : UH0 = UH0_0(v8, v9, v10) │
00:00:28 #2004 [Verbose] > │ let v12 : UH0 = UH0_0(v6, v7, v11) │
00:00:28 #2005 [Verbose] > │ let v13 : UH0 = UH0_0(v4, v5, v12) │
00:00:28 #2006 [Verbose] > │ let v14 : (struct (float * float) []) = method1(v13) │
00:00:28 #2007 [Verbose] > │ let v15 : uint64 = System.Convert.ToUInt64 v14.Length │
00:00:28 #2008 [Verbose] > │ let v16 : (struct (string * string * string * (int64 [])) []) = │
00:00:28 #2009 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))> │
00:00:28 #2010 [Verbose] > │ (System.Convert.ToInt32(v15)) │
00:00:28 #2011 [Verbose] > │ let v17 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:28 #2012 [Verbose] > │ while method4(v15, v17) do │
00:00:28 #2013 [Verbose] > │ let v19 : uint64 = v17.l0 │
00:00:28 #2014 [Verbose] > │ let struct (v20 : float, v21 : float) = v14.[int v19] │
00:00:28 #2015 [Verbose] > │ let v22 : string = $"%A{v20}" │
00:00:28 #2016 [Verbose] > │ System.Console.WriteLine v2 │
00:00:28 #2017 [Verbose] > │ let v23 : string = $"Solution: {v22} " │
00:00:28 #2018 [Verbose] > │ System.Console.WriteLine v23 │
00:00:28 #2019 [Verbose] > │ let v24 : int32 = 0 │
00:00:28 #2020 [Verbose] > │ let v25 : string = "A" │
00:00:28 #2021 [Verbose] > │ let v26 : (float -> float) = closure1() │
00:00:28 #2022 [Verbose] > │ let v27 : UH1 = UH1_1 │
00:00:28 #2023 [Verbose] > │ let v28 : UH1 = UH1_0(v24, v25, v26, v27) │
00:00:28 #2024 [Verbose] > │ let v29 : (struct (int32 * string * (float -> float)) []) = │
00:00:28 #2025 [Verbose] > │ method5(v28) │
00:00:28 #2026 [Verbose] > │ let v30 : uint64 = System.Convert.ToUInt64 v29.Length │
00:00:28 #2027 [Verbose] > │ let v31 : (struct (float * int64) []) = Array.zeroCreate<struct │
00:00:28 #2028 [Verbose] > │ (float * int64)> (System.Convert.ToInt32(v30)) │
00:00:28 #2029 [Verbose] > │ let v32 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:28 #2030 [Verbose] > │ while method4(v30, v32) do │
00:00:28 #2031 [Verbose] > │ let v34 : uint64 = v32.l0 │
00:00:28 #2032 [Verbose] > │ let struct (v35 : int32, v36 : string, v37 : (float -> float)) = │
00:00:28 #2033 [Verbose] > │ v29.[int v34] │
00:00:28 #2034 [Verbose] > │ let mutable result = None │
00:00:28 #2035 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:28 #2036 [Verbose] > │ #if !WASM │
00:00:28 #2037 [Verbose] > │ () │
00:00:28 #2038 [Verbose] > │ #else │
00:00:28 #2039 [Verbose] > │ () │
00:00:28 #2040 [Verbose] > │ #endif │
00:00:28 #2041 [Verbose] > │ #else │
00:00:28 #2042 [Verbose] > │ System.GC.Collect () │
00:00:28 #2043 [Verbose] > │ () │
00:00:28 #2044 [Verbose] > │ #endif │
00:00:28 #2045 [Verbose] > │ |> fun x -> result <- Some x │
00:00:28 #2046 [Verbose] > │ result |> Option.get │
00:00:28 #2047 [Verbose] > │ let v38 : (unit -> System.Diagnostics.Stopwatch) = │
00:00:28 #2048 [Verbose] > │ System.Diagnostics.Stopwatch │
00:00:28 #2049 [Verbose] > │ let v39 : System.Diagnostics.Stopwatch = v38 () │
00:00:28 #2050 [Verbose] > │ v39.Start () │
00:00:28 #2051 [Verbose] > │ let v40 : int64 = v39.ElapsedMilliseconds │
00:00:28 #2052 [Verbose] > │ let v41 : (int32 []) = Array.zeroCreate<int32> (2000001) │
00:00:28 #2053 [Verbose] > │ let v42 : Mut1 = {l0 = 0} : Mut1 │
00:00:28 #2054 [Verbose] > │ while method8(v42) do │
00:00:28 #2055 [Verbose] > │ let v44 : int32 = v42.l0 │
00:00:28 #2056 [Verbose] > │ v41.[int v44] <- v44 │
00:00:28 #2057 [Verbose] > │ let v45 : int32 = v44 + 1 │
00:00:28 #2058 [Verbose] > │ v42.l0 <- v45 │
00:00:28 #2059 [Verbose] > │ () │
00:00:28 #2060 [Verbose] > │ let v46 : (int32 -> float) = closure2(v20, v37) │
00:00:28 #2061 [Verbose] > │ let v47 : (float []) = v41 |> Array.Parallel.map v46 │
00:00:28 #2062 [Verbose] > │ let v48 : int32 = v47.Length │
00:00:28 #2063 [Verbose] > │ let v49 : int32 = v48 - 1 │
00:00:28 #2064 [Verbose] > │ let v50 : float = v47.[int v49] │
00:00:28 #2065 [Verbose] > │ let v51 : int64 = v39.ElapsedMilliseconds │
00:00:28 #2066 [Verbose] > │ let v52 : int64 = v51 - v40 │
00:00:28 #2067 [Verbose] > │ let v53 : string = $"Test case {v35 + 1}. {v36}. Time: {v52} " │
00:00:28 #2068 [Verbose] > │ System.Console.WriteLine v53 │
00:00:28 #2069 [Verbose] > │ v31.[int v34] <- struct (v50, v52) │
00:00:28 #2070 [Verbose] > │ let v54 : uint64 = v34 + 1UL │
00:00:28 #2071 [Verbose] > │ v32.l0 <- v54 │
00:00:28 #2072 [Verbose] > │ () │
00:00:28 #2073 [Verbose] > │ let v55 : uint64 = System.Convert.ToUInt64 v31.Length │
00:00:28 #2074 [Verbose] > │ let v56 : (float []) = Array.zeroCreate<float> │
00:00:28 #2075 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:28 #2076 [Verbose] > │ let v57 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:28 #2077 [Verbose] > │ while method4(v55, v57) do │
00:00:28 #2078 [Verbose] > │ let v59 : uint64 = v57.l0 │
00:00:28 #2079 [Verbose] > │ let struct (v60 : float, v61 : int64) = v31.[int v59] │
00:00:28 #2080 [Verbose] > │ v56.[int v59] <- v60 │
00:00:28 #2081 [Verbose] > │ let v62 : uint64 = v59 + 1UL │
00:00:28 #2082 [Verbose] > │ v57.l0 <- v62 │
00:00:28 #2083 [Verbose] > │ () │
00:00:28 #2084 [Verbose] > │ let v63 : uint64 = System.Convert.ToUInt64 v56.Length │
00:00:28 #2085 [Verbose] > │ let v64 : bool = v63 <= 1UL │
00:00:28 #2086 [Verbose] > │ if v64 then │
00:00:28 #2087 [Verbose] > │ () │
00:00:28 #2088 [Verbose] > │ else │
00:00:28 #2089 [Verbose] > │ let v65 : float = v56.[int 0UL] │
00:00:28 #2090 [Verbose] > │ let v66 : uint64 = 0UL │
00:00:28 #2091 [Verbose] > │ let v67 : bool = method9(v65, v56, v66) │
00:00:28 #2092 [Verbose] > │ if v67 then │
00:00:28 #2093 [Verbose] > │ () │
00:00:28 #2094 [Verbose] > │ else │
00:00:28 #2095 [Verbose] > │ let v68 : string = $"Challenge error: {v56}" │
00:00:28 #2096 [Verbose] > │ failwith<unit> v68 │
00:00:28 #2097 [Verbose] > │ let v69 : string = $"%A{v21}" │
00:00:28 #2098 [Verbose] > │ let v70 : (float []) = Array.zeroCreate<float> │
00:00:28 #2099 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:28 #2100 [Verbose] > │ let v71 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:28 #2101 [Verbose] > │ while method4(v55, v71) do │
00:00:28 #2102 [Verbose] > │ let v73 : uint64 = v71.l0 │
00:00:28 #2103 [Verbose] > │ let struct (v74 : float, v75 : int64) = v31.[int v73] │
00:00:28 #2104 [Verbose] > │ v70.[int v73] <- v74 │
00:00:28 #2105 [Verbose] > │ let v76 : uint64 = v73 + 1UL │
00:00:28 #2106 [Verbose] > │ v71.l0 <- v76 │
00:00:28 #2107 [Verbose] > │ () │
00:00:28 #2108 [Verbose] > │ let v77 : float = v70.[int 0UL] │
00:00:28 #2109 [Verbose] > │ let v78 : string = $"%A{v77}" │
00:00:28 #2110 [Verbose] > │ let v79 : (int64 []) = Array.zeroCreate<int64> │
00:00:28 #2111 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:28 #2112 [Verbose] > │ let v80 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:28 #2113 [Verbose] > │ while method4(v55, v80) do │
00:00:28 #2114 [Verbose] > │ let v82 : uint64 = v80.l0 │
00:00:28 #2115 [Verbose] > │ let struct (v83 : float, v84 : int64) = v31.[int v82] │
00:00:28 #2116 [Verbose] > │ v79.[int v82] <- v84 │
00:00:28 #2117 [Verbose] > │ let v85 : uint64 = v82 + 1UL │
00:00:28 #2118 [Verbose] > │ v80.l0 <- v85 │
00:00:28 #2119 [Verbose] > │ () │
00:00:28 #2120 [Verbose] > │ v16.[int v19] <- struct (v69, v22, v78, v79) │
00:00:28 #2121 [Verbose] > │ let v86 : uint64 = v19 + 1UL │
00:00:28 #2122 [Verbose] > │ v17.l0 <- v86 │
00:00:28 #2123 [Verbose] > │ () │
00:00:28 #2124 [Verbose] > │ let v87 : uint64 = System.Convert.ToUInt64 v16.Length │
00:00:28 #2125 [Verbose] > │ let v88 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │
00:00:28 #2126 [Verbose] > │ (System.Convert.ToInt32(v87)) │
00:00:28 #2127 [Verbose] > │ let v89 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:28 #2128 [Verbose] > │ while method4(v87, v89) do │
00:00:28 #2129 [Verbose] > │ let v91 : uint64 = v89.l0 │
00:00:28 #2130 [Verbose] > │ let struct (v92 : string, v93 : string, v94 : string, v95 : (int64 [ │
00:00:28 #2131 [Verbose] > │ ])) = v16.[int v91] │
00:00:28 #2132 [Verbose] > │ let v96 : uint64 = System.Convert.ToUInt64 v95.Length │
00:00:28 #2133 [Verbose] > │ let v97 : UH3 = UH3_1 │
00:00:28 #2134 [Verbose] > │ let v98 : Mut2 = {l0 = 0UL; l1 = v97; l2 = 0L} : Mut2 │
00:00:28 #2135 [Verbose] > │ while method10(v96, v98) do │
00:00:28 #2136 [Verbose] > │ let v100 : uint64 = v98.l0 │
00:00:28 #2137 [Verbose] > │ let struct (v101 : UH3, v102 : int64) = v98.l1, v98.l2 │
00:00:28 #2138 [Verbose] > │ let v103 : int64 = v95.[int v100] │
00:00:28 #2139 [Verbose] > │ let v104 : int64 = v102 + 1L │
00:00:28 #2140 [Verbose] > │ let v105 : uint64 = v100 + 1UL │
00:00:28 #2141 [Verbose] > │ let v106 : UH3 = UH3_0(v102, v103, v101) │
00:00:28 #2142 [Verbose] > │ v98.l0 <- v105 │
00:00:28 #2143 [Verbose] > │ v98.l1 <- v106 │
00:00:28 #2144 [Verbose] > │ v98.l2 <- v104 │
00:00:28 #2145 [Verbose] > │ () │
00:00:28 #2146 [Verbose] > │ let struct (v107 : UH3, v108 : int64) = v98.l1, v98.l2 │
00:00:28 #2147 [Verbose] > │ let v109 : UH3 = UH3_1 │
00:00:28 #2148 [Verbose] > │ let v110 : UH3 = method11(v107, v109) │
00:00:28 #2149 [Verbose] > │ let v111 : (struct (int64 * int64) []) = method12(v110) │
00:00:28 #2150 [Verbose] > │ let v112 : int32 = v111.Length │
00:00:28 #2151 [Verbose] > │ let v113 : (struct (int64 * int64) []) = Array.zeroCreate<struct │
00:00:28 #2152 [Verbose] > │ (int64 * int64)> (v112) │
00:00:28 #2153 [Verbose] > │ let v114 : Mut1 = {l0 = 0} : Mut1 │
00:00:28 #2154 [Verbose] > │ while method15(v112, v114) do │
00:00:28 #2155 [Verbose] > │ let v116 : int32 = v114.l0 │
00:00:28 #2156 [Verbose] > │ let struct (v117 : int64, v118 : int64) = v111.[int v116] │
00:00:28 #2157 [Verbose] > │ let v119 : int64 = v117 + 1L │
00:00:28 #2158 [Verbose] > │ v113.[int v116] <- struct (v119, v118) │
00:00:28 #2159 [Verbose] > │ let v120 : int32 = v116 + 1 │
00:00:28 #2160 [Verbose] > │ v114.l0 <- v120 │
00:00:28 #2161 [Verbose] > │ () │
00:00:28 #2162 [Verbose] > │ let v121 : (struct (int64 * int64) -> int64) = closure3() │
00:00:28 #2163 [Verbose] > │ let v122 : (struct (int64 * int64) []) = v113 |> Array.sortBy v121 │
00:00:28 #2164 [Verbose] > │ let struct (v123 : int64, v124 : int64) = v122.[int 0] │
00:00:28 #2165 [Verbose] > │ let v125 : string = $"%A{struct (v123, v124)}" │
00:00:28 #2166 [Verbose] > │ let v126 : bool = v92 = v94 │
00:00:28 #2167 [Verbose] > │ let v131 : US0 = │
00:00:28 #2168 [Verbose] > │ if v126 then │
00:00:28 #2169 [Verbose] > │ let v127 : System.ConsoleColor = │
00:00:28 #2170 [Verbose] > │ System.ConsoleColor.DarkGreen │
00:00:28 #2171 [Verbose] > │ US0_1(v127) │
00:00:28 #2172 [Verbose] > │ else │
00:00:28 #2173 [Verbose] > │ let v129 : System.ConsoleColor = System.ConsoleColor.DarkRed │
00:00:28 #2174 [Verbose] > │ US0_1(v129) │
00:00:28 #2175 [Verbose] > │ let v132 : UH2 = UH2_1 │
00:00:28 #2176 [Verbose] > │ let v133 : UH2 = UH2_0(v125, v132) │
00:00:28 #2177 [Verbose] > │ let v134 : UH2 = UH2_0(v94, v133) │
00:00:28 #2178 [Verbose] > │ let v135 : UH2 = UH2_0(v92, v134) │
00:00:28 #2179 [Verbose] > │ let v136 : UH2 = UH2_0(v93, v135) │
00:00:28 #2180 [Verbose] > │ v88.[int v91] <- struct (v136, v131) │
00:00:28 #2181 [Verbose] > │ let v137 : uint64 = v91 + 1UL │
00:00:28 #2182 [Verbose] > │ v89.l0 <- v137 │
00:00:28 #2183 [Verbose] > │ () │
00:00:28 #2184 [Verbose] > │ let v138 : string = "Input" │
00:00:28 #2185 [Verbose] > │ let v139 : string = "Expected" │
00:00:28 #2186 [Verbose] > │ let v140 : string = "Result" │
00:00:28 #2187 [Verbose] > │ let v141 : string = "Best" │
00:00:28 #2188 [Verbose] > │ let v142 : UH2 = UH2_1 │
00:00:28 #2189 [Verbose] > │ let v143 : UH2 = UH2_0(v141, v142) │
00:00:28 #2190 [Verbose] > │ let v144 : UH2 = UH2_0(v140, v143) │
00:00:28 #2191 [Verbose] > │ let v145 : UH2 = UH2_0(v139, v144) │
00:00:28 #2192 [Verbose] > │ let v146 : UH2 = UH2_0(v138, v145) │
00:00:28 #2193 [Verbose] > │ let v147 : US0 = US0_0 │
00:00:28 #2194 [Verbose] > │ let v148 : string = "---" │
00:00:28 #2195 [Verbose] > │ let v149 : UH2 = UH2_1 │
00:00:28 #2196 [Verbose] > │ let v150 : UH2 = UH2_0(v148, v149) │
00:00:28 #2197 [Verbose] > │ let v151 : UH2 = UH2_0(v148, v150) │
00:00:28 #2198 [Verbose] > │ let v152 : UH2 = UH2_0(v148, v151) │
00:00:28 #2199 [Verbose] > │ let v153 : UH2 = UH2_0(v148, v152) │
00:00:28 #2200 [Verbose] > │ let v154 : US0 = US0_0 │
00:00:28 #2201 [Verbose] > │ let v155 : UH4 = UH4_1 │
00:00:28 #2202 [Verbose] > │ let v156 : UH4 = UH4_0(v153, v154, v155) │
00:00:28 #2203 [Verbose] > │ let v157 : UH4 = UH4_0(v146, v147, v156) │
00:00:28 #2204 [Verbose] > │ let v158 : (struct (UH2 * US0) []) = method16(v157) │
00:00:28 #2205 [Verbose] > │ let v159 : uint64 = System.Convert.ToUInt64 v158.Length │
00:00:28 #2206 [Verbose] > │ let v160 : uint64 = System.Convert.ToUInt64 v88.Length │
00:00:28 #2207 [Verbose] > │ let v161 : uint64 = v159 + v160 │
00:00:28 #2208 [Verbose] > │ let v162 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * │
00:00:28 #2209 [Verbose] > │ US0)> (System.Convert.ToInt32(v161)) │
00:00:28 #2210 [Verbose] > │ let v163 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:28 #2211 [Verbose] > │ while method4(v161, v163) do │
00:00:28 #2212 [Verbose] > │ let v165 : uint64 = v163.l0 │
00:00:28 #2213 [Verbose] > │ let v166 : bool = v165 < v159 │
00:00:28 #2214 [Verbose] > │ let struct (v172 : UH2, v173 : US0) = │
00:00:28 #2215 [Verbose] > │ if v166 then │
00:00:28 #2216 [Verbose] > │ let struct (v167 : UH2, v168 : US0) = v158.[int v165] │
00:00:28 #2217 [Verbose] > │ struct (v167, v168) │
00:00:28 #2218 [Verbose] > │ else │
00:00:28 #2219 [Verbose] > │ let v169 : uint64 = v165 - v159 │
00:00:28 #2220 [Verbose] > │ let struct (v170 : UH2, v171 : US0) = v88.[int v169] │
00:00:28 #2221 [Verbose] > │ struct (v170, v171) │
00:00:28 #2222 [Verbose] > │ v162.[int v165] <- struct (v172, v173) │
00:00:28 #2223 [Verbose] > │ let v174 : uint64 = v165 + 1UL │
00:00:28 #2224 [Verbose] > │ v163.l0 <- v174 │
00:00:28 #2225 [Verbose] > │ () │
00:00:28 #2226 [Verbose] > │ let v175 : uint64 = System.Convert.ToUInt64 v162.Length │
00:00:28 #2227 [Verbose] > │ let v176 : ((string []) []) = Array.zeroCreate<(string [])> │
00:00:28 #2228 [Verbose] > │ (System.Convert.ToInt32(v175)) │
00:00:28 #2229 [Verbose] > │ let v177 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:28 #2230 [Verbose] > │ while method4(v175, v177) do │
00:00:28 #2231 [Verbose] > │ let v179 : uint64 = v177.l0 │
00:00:28 #2232 [Verbose] > │ let struct (v180 : UH2, v181 : US0) = v162.[int v179] │
00:00:28 #2233 [Verbose] > │ let v182 : (string []) = method19(v180) │
00:00:28 #2234 [Verbose] > │ v176.[int v179] <- v182 │
00:00:28 #2235 [Verbose] > │ let v183 : uint64 = v179 + 1UL │
00:00:28 #2236 [Verbose] > │ v177.l0 <- v183 │
00:00:28 #2237 [Verbose] > │ () │
00:00:28 #2238 [Verbose] > │ let v184 : ((string []) []) = v176 |> Array.transpose │
00:00:28 #2239 [Verbose] > │ let v185 : uint64 = System.Convert.ToUInt64 v184.Length │
00:00:28 #2240 [Verbose] > │ let v186 : (int64 []) = Array.zeroCreate<int64> │
00:00:28 #2241 [Verbose] > │ (System.Convert.ToInt32(v185)) │
00:00:28 #2242 [Verbose] > │ let v187 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:28 #2243 [Verbose] > │ while method4(v185, v187) do │
00:00:28 #2244 [Verbose] > │ let v189 : uint64 = v187.l0 │
00:00:28 #2245 [Verbose] > │ let v190 : (string []) = v184.[int v189] │
00:00:28 #2246 [Verbose] > │ let v191 : uint64 = System.Convert.ToUInt64 v190.Length │
00:00:28 #2247 [Verbose] > │ let v192 : (int64 []) = Array.zeroCreate<int64> │
00:00:29 #2248 [Verbose] > │ (System.Convert.ToInt32(v191)) │
00:00:29 #2249 [Verbose] > │ let v193 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2250 [Verbose] > │ while method4(v191, v193) do │
00:00:29 #2251 [Verbose] > │ let v195 : uint64 = v193.l0 │
00:00:29 #2252 [Verbose] > │ let v196 : string = v190.[int v195] │
00:00:29 #2253 [Verbose] > │ let v197 : int64 = System.Convert.ToInt64 v196.Length │
00:00:29 #2254 [Verbose] > │ v192.[int v195] <- v197 │
00:00:29 #2255 [Verbose] > │ let v198 : uint64 = v195 + 1UL │
00:00:29 #2256 [Verbose] > │ v193.l0 <- v198 │
00:00:29 #2257 [Verbose] > │ () │
00:00:29 #2258 [Verbose] > │ let v199 : (int64 []) = v192 |> Array.sortDescending │
00:00:29 #2259 [Verbose] > │ let v200 : int64 option = v199 |> Array.tryItem 0 │
00:00:29 #2260 [Verbose] > │ let v201 : (int64 -> US1) = closure4() │
00:00:29 #2261 [Verbose] > │ let v202 : US1 = US1_0 │
00:00:29 #2262 [Verbose] > │ let v203 : US1 = v200 |> Option.map v201 |> Option.defaultValue v202 │
00:00:29 #2263 [Verbose] > │ let v206 : int64 = │
00:00:29 #2264 [Verbose] > │ match v203 with │
00:00:29 #2265 [Verbose] > │ | US1_0 -> (* None *) │
00:00:29 #2266 [Verbose] > │ 0L │
00:00:29 #2267 [Verbose] > │ | US1_1(v204) -> (* Some *) │
00:00:29 #2268 [Verbose] > │ v204 │
00:00:29 #2269 [Verbose] > │ v186.[int v189] <- v206 │
00:00:29 #2270 [Verbose] > │ let v207 : uint64 = v189 + 1UL │
00:00:29 #2271 [Verbose] > │ v187.l0 <- v207 │
00:00:29 #2272 [Verbose] > │ () │
00:00:29 #2273 [Verbose] > │ let v208 : uint64 = System.Convert.ToUInt64 v186.Length │
00:00:29 #2274 [Verbose] > │ let v209 : UH5 = UH5_1 │
00:00:29 #2275 [Verbose] > │ let v210 : Mut3 = {l0 = 0UL; l1 = v209; l2 = 0} : Mut3 │
00:00:29 #2276 [Verbose] > │ while method22(v208, v210) do │
00:00:29 #2277 [Verbose] > │ let v212 : uint64 = v210.l0 │
00:00:29 #2278 [Verbose] > │ let struct (v213 : UH5, v214 : int32) = v210.l1, v210.l2 │
00:00:29 #2279 [Verbose] > │ let v215 : int64 = v186.[int v212] │
00:00:29 #2280 [Verbose] > │ let v216 : int32 = v214 + 1 │
00:00:29 #2281 [Verbose] > │ let v217 : uint64 = v212 + 1UL │
00:00:29 #2282 [Verbose] > │ let v218 : UH5 = UH5_0(v214, v215, v213) │
00:00:29 #2283 [Verbose] > │ v210.l0 <- v217 │
00:00:29 #2284 [Verbose] > │ v210.l1 <- v218 │
00:00:29 #2285 [Verbose] > │ v210.l2 <- v216 │
00:00:29 #2286 [Verbose] > │ () │
00:00:29 #2287 [Verbose] > │ let struct (v219 : UH5, v220 : int32) = v210.l1, v210.l2 │
00:00:29 #2288 [Verbose] > │ let v221 : UH5 = UH5_1 │
00:00:29 #2289 [Verbose] > │ let v222 : UH5 = method23(v219, v221) │
00:00:29 #2290 [Verbose] > │ let v223 : (struct (int32 * int64) []) = method24(v222) │
00:00:29 #2291 [Verbose] > │ let v224 : Map<int32, int64> = v223 |> Array.map (fun (struct (a, b)) -> │
00:00:29 #2292 [Verbose] > │ a, b) |> Map.ofArray │
00:00:29 #2293 [Verbose] > │ let v225 : (struct ((string []) * US0) []) = Array.zeroCreate<struct │
00:00:29 #2294 [Verbose] > │ ((string []) * US0)> (System.Convert.ToInt32(v175)) │
00:00:29 #2295 [Verbose] > │ let v226 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2296 [Verbose] > │ while method4(v175, v226) do │
00:00:29 #2297 [Verbose] > │ let v228 : uint64 = v226.l0 │
00:00:29 #2298 [Verbose] > │ let struct (v229 : UH2, v230 : US0) = v162.[int v228] │
00:00:29 #2299 [Verbose] > │ let v231 : UH6 = UH6_1 │
00:00:29 #2300 [Verbose] > │ let v232 : int32 = 0 │
00:00:29 #2301 [Verbose] > │ let struct (v233 : UH6, v234 : int32) = method27(v229, v231, v232) │
00:00:29 #2302 [Verbose] > │ let v235 : UH6 = UH6_1 │
00:00:29 #2303 [Verbose] > │ let v236 : UH6 = method28(v233, v235) │
00:00:29 #2304 [Verbose] > │ let v237 : UH2 = UH2_1 │
00:00:29 #2305 [Verbose] > │ let v238 : UH2 = method29(v224, v236, v237) │
00:00:29 #2306 [Verbose] > │ let v239 : (string []) = method30(v238) │
00:00:29 #2307 [Verbose] > │ v225.[int v228] <- struct (v239, v230) │
00:00:29 #2308 [Verbose] > │ let v240 : uint64 = v228 + 1UL │
00:00:29 #2309 [Verbose] > │ v226.l0 <- v240 │
00:00:29 #2310 [Verbose] > │ () │
00:00:29 #2311 [Verbose] > │ System.Console.WriteLine v2 │
00:00:29 #2312 [Verbose] > │ let v241 : uint64 = System.Convert.ToUInt64 v225.Length │
00:00:29 #2313 [Verbose] > │ let v242 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2314 [Verbose] > │ while method4(v241, v242) do │
00:00:29 #2315 [Verbose] > │ let v244 : uint64 = v242.l0 │
00:00:29 #2316 [Verbose] > │ let struct (v245 : (string []), v246 : US0) = v225.[int v244] │
00:00:29 #2317 [Verbose] > │ match v246 with │
00:00:29 #2318 [Verbose] > │ | US0_0 -> (* None *) │
00:00:29 #2319 [Verbose] > │ let mutable result = None │
00:00:29 #2320 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:29 #2321 [Verbose] > │ #if !WASM │
00:00:29 #2322 [Verbose] > │ () │
00:00:29 #2323 [Verbose] > │ #else │
00:00:29 #2324 [Verbose] > │ () │
00:00:29 #2325 [Verbose] > │ #endif │
00:00:29 #2326 [Verbose] > │ #else │
00:00:29 #2327 [Verbose] > │ System.Console.ResetColor () │
00:00:29 #2328 [Verbose] > │ () │
00:00:29 #2329 [Verbose] > │ #endif │
00:00:29 #2330 [Verbose] > │ |> fun x -> result <- Some x │
00:00:29 #2331 [Verbose] > │ result |> Option.get │
00:00:29 #2332 [Verbose] > │ () │
00:00:29 #2333 [Verbose] > │ | US0_1(v247) -> (* Some *) │
00:00:29 #2334 [Verbose] > │ let mutable result = None │
00:00:29 #2335 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:29 #2336 [Verbose] > │ #if !WASM │
00:00:29 #2337 [Verbose] > │ () │
00:00:29 #2338 [Verbose] > │ #else │
00:00:29 #2339 [Verbose] > │ () │
00:00:29 #2340 [Verbose] > │ #endif │
00:00:29 #2341 [Verbose] > │ #else │
00:00:29 #2342 [Verbose] > │ System.Console.ForegroundColor <- v247 │
00:00:29 #2343 [Verbose] > │ () │
00:00:29 #2344 [Verbose] > │ #endif │
00:00:29 #2345 [Verbose] > │ |> fun x -> result <- Some x │
00:00:29 #2346 [Verbose] > │ result |> Option.get │
00:00:29 #2347 [Verbose] > │ () │
00:00:29 #2348 [Verbose] > │ let v248 : string = "\t| " │
00:00:29 #2349 [Verbose] > │ let v249 : string = System.String.Join (v248, v245) │
00:00:29 #2350 [Verbose] > │ System.Console.WriteLine v249 │
00:00:29 #2351 [Verbose] > │ let mutable result = None │
00:00:29 #2352 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:29 #2353 [Verbose] > │ #if !WASM │
00:00:29 #2354 [Verbose] > │ () │
00:00:29 #2355 [Verbose] > │ #else │
00:00:29 #2356 [Verbose] > │ () │
00:00:29 #2357 [Verbose] > │ #endif │
00:00:29 #2358 [Verbose] > │ #else │
00:00:29 #2359 [Verbose] > │ System.Console.ResetColor () │
00:00:29 #2360 [Verbose] > │ () │
00:00:29 #2361 [Verbose] > │ #endif │
00:00:29 #2362 [Verbose] > │ |> fun x -> result <- Some x │
00:00:29 #2363 [Verbose] > │ result |> Option.get │
00:00:29 #2364 [Verbose] > │ let v250 : uint64 = v244 + 1UL │
00:00:29 #2365 [Verbose] > │ v242.l0 <- v250 │
00:00:29 #2366 [Verbose] > │ () │
00:00:29 #2367 [Verbose] > │ let v251 : ((float []) []) = Array.zeroCreate<(float [])> │
00:00:29 #2368 [Verbose] > │ (System.Convert.ToInt32(v87)) │
00:00:29 #2369 [Verbose] > │ let v252 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2370 [Verbose] > │ while method4(v87, v252) do │
00:00:29 #2371 [Verbose] > │ let v254 : uint64 = v252.l0 │
00:00:29 #2372 [Verbose] > │ let struct (v255 : string, v256 : string, v257 : string, v258 : │
00:00:29 #2373 [Verbose] > │ (int64 [])) = v16.[int v254] │
00:00:29 #2374 [Verbose] > │ let v259 : (int64 -> float) = float │
00:00:29 #2375 [Verbose] > │ let v260 : uint64 = System.Convert.ToUInt64 v258.Length │
00:00:29 #2376 [Verbose] > │ let v261 : (float []) = Array.zeroCreate<float> │
00:00:29 #2377 [Verbose] > │ (System.Convert.ToInt32(v260)) │
00:00:29 #2378 [Verbose] > │ let v262 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2379 [Verbose] > │ while method4(v260, v262) do │
00:00:29 #2380 [Verbose] > │ let v264 : uint64 = v262.l0 │
00:00:29 #2381 [Verbose] > │ let v265 : int64 = v258.[int v264] │
00:00:29 #2382 [Verbose] > │ let v266 : float = v259 v265 │
00:00:29 #2383 [Verbose] > │ v261.[int v264] <- v266 │
00:00:29 #2384 [Verbose] > │ let v267 : uint64 = v264 + 1UL │
00:00:29 #2385 [Verbose] > │ v262.l0 <- v267 │
00:00:29 #2386 [Verbose] > │ () │
00:00:29 #2387 [Verbose] > │ v251.[int v254] <- v261 │
00:00:29 #2388 [Verbose] > │ let v268 : uint64 = v254 + 1UL │
00:00:29 #2389 [Verbose] > │ v252.l0 <- v268 │
00:00:29 #2390 [Verbose] > │ () │
00:00:29 #2391 [Verbose] > │ let v269 : ((float []) []) = v251 |> Array.transpose │
00:00:29 #2392 [Verbose] > │ let v270 : uint64 = System.Convert.ToUInt64 v269.Length │
00:00:29 #2393 [Verbose] > │ let v271 : (float []) = Array.zeroCreate<float> │
00:00:29 #2394 [Verbose] > │ (System.Convert.ToInt32(v270)) │
00:00:29 #2395 [Verbose] > │ let v272 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2396 [Verbose] > │ while method4(v270, v272) do │
00:00:29 #2397 [Verbose] > │ let v274 : uint64 = v272.l0 │
00:00:29 #2398 [Verbose] > │ let v275 : (float []) = v269.[int v274] │
00:00:29 #2399 [Verbose] > │ let v276 : float = v275 |> Array.average │
00:00:29 #2400 [Verbose] > │ v271.[int v274] <- v276 │
00:00:29 #2401 [Verbose] > │ let v277 : uint64 = v274 + 1UL │
00:00:29 #2402 [Verbose] > │ v272.l0 <- v277 │
00:00:29 #2403 [Verbose] > │ () │
00:00:29 #2404 [Verbose] > │ let v278 : (float -> int64) = int64 │
00:00:29 #2405 [Verbose] > │ let v279 : uint64 = System.Convert.ToUInt64 v271.Length │
00:00:29 #2406 [Verbose] > │ let v280 : (int64 []) = Array.zeroCreate<int64> │
00:00:29 #2407 [Verbose] > │ (System.Convert.ToInt32(v279)) │
00:00:29 #2408 [Verbose] > │ let v281 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2409 [Verbose] > │ while method4(v279, v281) do │
00:00:29 #2410 [Verbose] > │ let v283 : uint64 = v281.l0 │
00:00:29 #2411 [Verbose] > │ let v284 : float = v271.[int v283] │
00:00:29 #2412 [Verbose] > │ let v285 : int64 = v278 v284 │
00:00:29 #2413 [Verbose] > │ v280.[int v283] <- v285 │
00:00:29 #2414 [Verbose] > │ let v286 : uint64 = v283 + 1UL │
00:00:29 #2415 [Verbose] > │ v281.l0 <- v286 │
00:00:29 #2416 [Verbose] > │ () │
00:00:29 #2417 [Verbose] > │ let v287 : uint64 = System.Convert.ToUInt64 v280.Length │
00:00:29 #2418 [Verbose] > │ let v288 : UH5 = UH5_1 │
00:00:29 #2419 [Verbose] > │ let v289 : Mut3 = {l0 = 0UL; l1 = v288; l2 = 0} : Mut3 │
00:00:29 #2420 [Verbose] > │ while method22(v287, v289) do │
00:00:29 #2421 [Verbose] > │ let v291 : uint64 = v289.l0 │
00:00:29 #2422 [Verbose] > │ let struct (v292 : UH5, v293 : int32) = v289.l1, v289.l2 │
00:00:29 #2423 [Verbose] > │ let v294 : int64 = v280.[int v291] │
00:00:29 #2424 [Verbose] > │ let v295 : int32 = v293 + 1 │
00:00:29 #2425 [Verbose] > │ let v296 : uint64 = v291 + 1UL │
00:00:29 #2426 [Verbose] > │ let v297 : UH5 = UH5_0(v293, v294, v292) │
00:00:29 #2427 [Verbose] > │ v289.l0 <- v296 │
00:00:29 #2428 [Verbose] > │ v289.l1 <- v297 │
00:00:29 #2429 [Verbose] > │ v289.l2 <- v295 │
00:00:29 #2430 [Verbose] > │ () │
00:00:29 #2431 [Verbose] > │ let struct (v298 : UH5, v299 : int32) = v289.l1, v289.l2 │
00:00:29 #2432 [Verbose] > │ let v300 : UH5 = UH5_1 │
00:00:29 #2433 [Verbose] > │ let v301 : UH5 = method23(v298, v300) │
00:00:29 #2434 [Verbose] > │ let v302 : (struct (int32 * int64) []) = method33(v301) │
00:00:29 #2435 [Verbose] > │ System.Console.WriteLine v2 │
00:00:29 #2436 [Verbose] > │ let v303 : string = "Average Ranking " │
00:00:29 #2437 [Verbose] > │ System.Console.WriteLine v303 │
00:00:29 #2438 [Verbose] > │ let v304 : (struct (int32 * int64) -> int64) = closure5() │
00:00:29 #2439 [Verbose] > │ let v305 : (struct (int32 * int64) []) = v302 |> Array.sortBy v304 │
00:00:29 #2440 [Verbose] > │ let v306 : uint64 = System.Convert.ToUInt64 v305.Length │
00:00:29 #2441 [Verbose] > │ let v307 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2442 [Verbose] > │ while method4(v306, v307) do │
00:00:29 #2443 [Verbose] > │ let v309 : uint64 = v307.l0 │
00:00:29 #2444 [Verbose] > │ let struct (v310 : int32, v311 : int64) = v305.[int v309] │
00:00:29 #2445 [Verbose] > │ let v312 : string = $"Test case %d{v310 + 1}. Average Time: %A{v311} │
00:00:29 #2446 [Verbose] > │ " │
00:00:29 #2447 [Verbose] > │ System.Console.WriteLine v312 │
00:00:29 #2448 [Verbose] > │ let v313 : uint64 = v309 + 1UL │
00:00:29 #2449 [Verbose] > │ v307.l0 <- v313 │
00:00:29 #2450 [Verbose] > │ () │
00:00:29 #2451 [Verbose] > │ () │
00:00:29 #2452 [Verbose] > │ and method0 () : unit = │
00:00:29 #2453 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:00:29 #2454 [Verbose] > │ let v1 : string = nameof v0 │
00:00:29 #2455 [Verbose] > │ let v2 : string = "" │
00:00:29 #2456 [Verbose] > │ System.Console.WriteLine v2 │
00:00:29 #2457 [Verbose] > │ System.Console.WriteLine v2 │
00:00:29 #2458 [Verbose] > │ let v3 : string = $"Test: {v1}" │
00:00:29 #2459 [Verbose] > │ System.Console.WriteLine v3 │
00:00:29 #2460 [Verbose] > │ let v4 : float = 0.0 │
00:00:29 #2461 [Verbose] > │ let v5 : float = 1.0 │
00:00:29 #2462 [Verbose] > │ let v6 : float = 2.0 │
00:00:29 #2463 [Verbose] > │ let v7 : float = 3.0 │
00:00:29 #2464 [Verbose] > │ let v8 : float = 5.0 │
00:00:29 #2465 [Verbose] > │ let v9 : float = 6.0 │
00:00:29 #2466 [Verbose] > │ let v10 : UH0 = UH0_1 │
00:00:29 #2467 [Verbose] > │ let v11 : UH0 = UH0_0(v8, v9, v10) │
00:00:29 #2468 [Verbose] > │ let v12 : UH0 = UH0_0(v6, v7, v11) │
00:00:29 #2469 [Verbose] > │ let v13 : UH0 = UH0_0(v4, v5, v12) │
00:00:29 #2470 [Verbose] > │ let v14 : (struct (float * float) []) = method1(v13) │
00:00:29 #2471 [Verbose] > │ let v15 : uint64 = System.Convert.ToUInt64 v14.Length │
00:00:29 #2472 [Verbose] > │ let v16 : (struct (string * string * string * (int64 [])) []) = │
00:00:29 #2473 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))> │
00:00:29 #2474 [Verbose] > │ (System.Convert.ToInt32(v15)) │
00:00:29 #2475 [Verbose] > │ let v17 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2476 [Verbose] > │ while method4(v15, v17) do │
00:00:29 #2477 [Verbose] > │ let v19 : uint64 = v17.l0 │
00:00:29 #2478 [Verbose] > │ let struct (v20 : float, v21 : float) = v14.[int v19] │
00:00:29 #2479 [Verbose] > │ let v22 : string = $"%A{v20}" │
00:00:29 #2480 [Verbose] > │ System.Console.WriteLine v2 │
00:00:29 #2481 [Verbose] > │ let v23 : string = $"Solution: {v22} " │
00:00:29 #2482 [Verbose] > │ System.Console.WriteLine v23 │
00:00:29 #2483 [Verbose] > │ let v24 : int32 = 0 │
00:00:29 #2484 [Verbose] > │ let v25 : string = "A" │
00:00:29 #2485 [Verbose] > │ let v26 : (float -> float) = closure1() │
00:00:29 #2486 [Verbose] > │ let v27 : UH1 = UH1_1 │
00:00:29 #2487 [Verbose] > │ let v28 : UH1 = UH1_0(v24, v25, v26, v27) │
00:00:29 #2488 [Verbose] > │ let v29 : (struct (int32 * string * (float -> float)) []) = │
00:00:29 #2489 [Verbose] > │ method5(v28) │
00:00:29 #2490 [Verbose] > │ let v30 : uint64 = System.Convert.ToUInt64 v29.Length │
00:00:29 #2491 [Verbose] > │ let v31 : (struct (float * int64) []) = Array.zeroCreate<struct │
00:00:29 #2492 [Verbose] > │ (float * int64)> (System.Convert.ToInt32(v30)) │
00:00:29 #2493 [Verbose] > │ let v32 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2494 [Verbose] > │ while method4(v30, v32) do │
00:00:29 #2495 [Verbose] > │ let v34 : uint64 = v32.l0 │
00:00:29 #2496 [Verbose] > │ let struct (v35 : int32, v36 : string, v37 : (float -> float)) = │
00:00:29 #2497 [Verbose] > │ v29.[int v34] │
00:00:29 #2498 [Verbose] > │ let mutable result = None │
00:00:29 #2499 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:29 #2500 [Verbose] > │ #if !WASM │
00:00:29 #2501 [Verbose] > │ () │
00:00:29 #2502 [Verbose] > │ #else │
00:00:29 #2503 [Verbose] > │ () │
00:00:29 #2504 [Verbose] > │ #endif │
00:00:29 #2505 [Verbose] > │ #else │
00:00:29 #2506 [Verbose] > │ System.GC.Collect () │
00:00:29 #2507 [Verbose] > │ () │
00:00:29 #2508 [Verbose] > │ #endif │
00:00:29 #2509 [Verbose] > │ |> fun x -> result <- Some x │
00:00:29 #2510 [Verbose] > │ result |> Option.get │
00:00:29 #2511 [Verbose] > │ let v38 : (unit -> System.Diagnostics.Stopwatch) = │
00:00:29 #2512 [Verbose] > │ System.Diagnostics.Stopwatch │
00:00:29 #2513 [Verbose] > │ let v39 : System.Diagnostics.Stopwatch = v38 () │
00:00:29 #2514 [Verbose] > │ v39.Start () │
00:00:29 #2515 [Verbose] > │ let v40 : int64 = v39.ElapsedMilliseconds │
00:00:29 #2516 [Verbose] > │ let v41 : (int32 []) = Array.zeroCreate<int32> (2000001) │
00:00:29 #2517 [Verbose] > │ let v42 : Mut1 = {l0 = 0} : Mut1 │
00:00:29 #2518 [Verbose] > │ while method8(v42) do │
00:00:29 #2519 [Verbose] > │ let v44 : int32 = v42.l0 │
00:00:29 #2520 [Verbose] > │ v41.[int v44] <- v44 │
00:00:29 #2521 [Verbose] > │ let v45 : int32 = v44 + 1 │
00:00:29 #2522 [Verbose] > │ v42.l0 <- v45 │
00:00:29 #2523 [Verbose] > │ () │
00:00:29 #2524 [Verbose] > │ let v46 : (int32 -> float) = closure2(v20, v37) │
00:00:29 #2525 [Verbose] > │ let v47 : (float []) = v41 |> Array.Parallel.map v46 │
00:00:29 #2526 [Verbose] > │ let v48 : int32 = v47.Length │
00:00:29 #2527 [Verbose] > │ let v49 : int32 = v48 - 1 │
00:00:29 #2528 [Verbose] > │ let v50 : float = v47.[int v49] │
00:00:29 #2529 [Verbose] > │ let v51 : int64 = v39.ElapsedMilliseconds │
00:00:29 #2530 [Verbose] > │ let v52 : int64 = v51 - v40 │
00:00:29 #2531 [Verbose] > │ let v53 : string = $"Test case {v35 + 1}. {v36}. Time: {v52} " │
00:00:29 #2532 [Verbose] > │ System.Console.WriteLine v53 │
00:00:29 #2533 [Verbose] > │ v31.[int v34] <- struct (v50, v52) │
00:00:29 #2534 [Verbose] > │ let v54 : uint64 = v34 + 1UL │
00:00:29 #2535 [Verbose] > │ v32.l0 <- v54 │
00:00:29 #2536 [Verbose] > │ () │
00:00:29 #2537 [Verbose] > │ let v55 : uint64 = System.Convert.ToUInt64 v31.Length │
00:00:29 #2538 [Verbose] > │ let v56 : (float []) = Array.zeroCreate<float> │
00:00:29 #2539 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:29 #2540 [Verbose] > │ let v57 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2541 [Verbose] > │ while method4(v55, v57) do │
00:00:29 #2542 [Verbose] > │ let v59 : uint64 = v57.l0 │
00:00:29 #2543 [Verbose] > │ let struct (v60 : float, v61 : int64) = v31.[int v59] │
00:00:29 #2544 [Verbose] > │ v56.[int v59] <- v60 │
00:00:29 #2545 [Verbose] > │ let v62 : uint64 = v59 + 1UL │
00:00:29 #2546 [Verbose] > │ v57.l0 <- v62 │
00:00:29 #2547 [Verbose] > │ () │
00:00:29 #2548 [Verbose] > │ let v63 : uint64 = System.Convert.ToUInt64 v56.Length │
00:00:29 #2549 [Verbose] > │ let v64 : bool = v63 <= 1UL │
00:00:29 #2550 [Verbose] > │ if v64 then │
00:00:29 #2551 [Verbose] > │ () │
00:00:29 #2552 [Verbose] > │ else │
00:00:29 #2553 [Verbose] > │ let v65 : float = v56.[int 0UL] │
00:00:29 #2554 [Verbose] > │ let v66 : uint64 = 0UL │
00:00:29 #2555 [Verbose] > │ let v67 : bool = method9(v65, v56, v66) │
00:00:29 #2556 [Verbose] > │ if v67 then │
00:00:29 #2557 [Verbose] > │ () │
00:00:29 #2558 [Verbose] > │ else │
00:00:29 #2559 [Verbose] > │ let v68 : string = $"Challenge error: {v56}" │
00:00:29 #2560 [Verbose] > │ failwith<unit> v68 │
00:00:29 #2561 [Verbose] > │ let v69 : string = $"%A{v21}" │
00:00:29 #2562 [Verbose] > │ let v70 : (float []) = Array.zeroCreate<float> │
00:00:29 #2563 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:29 #2564 [Verbose] > │ let v71 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2565 [Verbose] > │ while method4(v55, v71) do │
00:00:29 #2566 [Verbose] > │ let v73 : uint64 = v71.l0 │
00:00:29 #2567 [Verbose] > │ let struct (v74 : float, v75 : int64) = v31.[int v73] │
00:00:29 #2568 [Verbose] > │ v70.[int v73] <- v74 │
00:00:29 #2569 [Verbose] > │ let v76 : uint64 = v73 + 1UL │
00:00:29 #2570 [Verbose] > │ v71.l0 <- v76 │
00:00:29 #2571 [Verbose] > │ () │
00:00:29 #2572 [Verbose] > │ let v77 : float = v70.[int 0UL] │
00:00:29 #2573 [Verbose] > │ let v78 : string = $"%A{v77}" │
00:00:29 #2574 [Verbose] > │ let v79 : (int64 []) = Array.zeroCreate<int64> │
00:00:29 #2575 [Verbose] > │ (System.Convert.ToInt32(v55)) │
00:00:29 #2576 [Verbose] > │ let v80 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2577 [Verbose] > │ while method4(v55, v80) do │
00:00:29 #2578 [Verbose] > │ let v82 : uint64 = v80.l0 │
00:00:29 #2579 [Verbose] > │ let struct (v83 : float, v84 : int64) = v31.[int v82] │
00:00:29 #2580 [Verbose] > │ v79.[int v82] <- v84 │
00:00:29 #2581 [Verbose] > │ let v85 : uint64 = v82 + 1UL │
00:00:29 #2582 [Verbose] > │ v80.l0 <- v85 │
00:00:29 #2583 [Verbose] > │ () │
00:00:29 #2584 [Verbose] > │ v16.[int v19] <- struct (v69, v22, v78, v79) │
00:00:29 #2585 [Verbose] > │ let v86 : uint64 = v19 + 1UL │
00:00:29 #2586 [Verbose] > │ v17.l0 <- v86 │
00:00:29 #2587 [Verbose] > │ () │
00:00:29 #2588 [Verbose] > │ let v87 : uint64 = System.Convert.ToUInt64 v16.Length │
00:00:29 #2589 [Verbose] > │ let v88 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │
00:00:29 #2590 [Verbose] > │ (System.Convert.ToInt32(v87)) │
00:00:29 #2591 [Verbose] > │ let v89 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2592 [Verbose] > │ while method4(v87, v89) do │
00:00:29 #2593 [Verbose] > │ let v91 : uint64 = v89.l0 │
00:00:29 #2594 [Verbose] > │ let struct (v92 : string, v93 : string, v94 : string, v95 : (int64 [ │
00:00:29 #2595 [Verbose] > │ ])) = v16.[int v91] │
00:00:29 #2596 [Verbose] > │ let v96 : uint64 = System.Convert.ToUInt64 v95.Length │
00:00:29 #2597 [Verbose] > │ let v97 : UH3 = UH3_1 │
00:00:29 #2598 [Verbose] > │ let v98 : Mut2 = {l0 = 0UL; l1 = v97; l2 = 0L} : Mut2 │
00:00:29 #2599 [Verbose] > │ while method10(v96, v98) do │
00:00:29 #2600 [Verbose] > │ let v100 : uint64 = v98.l0 │
00:00:29 #2601 [Verbose] > │ let struct (v101 : UH3, v102 : int64) = v98.l1, v98.l2 │
00:00:29 #2602 [Verbose] > │ let v103 : int64 = v95.[int v100] │
00:00:29 #2603 [Verbose] > │ let v104 : int64 = v102 + 1L │
00:00:29 #2604 [Verbose] > │ let v105 : uint64 = v100 + 1UL │
00:00:29 #2605 [Verbose] > │ let v106 : UH3 = UH3_0(v102, v103, v101) │
00:00:29 #2606 [Verbose] > │ v98.l0 <- v105 │
00:00:29 #2607 [Verbose] > │ v98.l1 <- v106 │
00:00:29 #2608 [Verbose] > │ v98.l2 <- v104 │
00:00:29 #2609 [Verbose] > │ () │
00:00:29 #2610 [Verbose] > │ let struct (v107 : UH3, v108 : int64) = v98.l1, v98.l2 │
00:00:29 #2611 [Verbose] > │ let v109 : UH3 = UH3_1 │
00:00:29 #2612 [Verbose] > │ let v110 : UH3 = method11(v107, v109) │
00:00:29 #2613 [Verbose] > │ let v111 : (struct (int64 * int64) []) = method12(v110) │
00:00:29 #2614 [Verbose] > │ let v112 : int32 = v111.Length │
00:00:29 #2615 [Verbose] > │ let v113 : (struct (int64 * int64) []) = Array.zeroCreate<struct │
00:00:29 #2616 [Verbose] > │ (int64 * int64)> (v112) │
00:00:29 #2617 [Verbose] > │ let v114 : Mut1 = {l0 = 0} : Mut1 │
00:00:29 #2618 [Verbose] > │ while method15(v112, v114) do │
00:00:29 #2619 [Verbose] > │ let v116 : int32 = v114.l0 │
00:00:29 #2620 [Verbose] > │ let struct (v117 : int64, v118 : int64) = v111.[int v116] │
00:00:29 #2621 [Verbose] > │ let v119 : int64 = v117 + 1L │
00:00:29 #2622 [Verbose] > │ v113.[int v116] <- struct (v119, v118) │
00:00:29 #2623 [Verbose] > │ let v120 : int32 = v116 + 1 │
00:00:29 #2624 [Verbose] > │ v114.l0 <- v120 │
00:00:29 #2625 [Verbose] > │ () │
00:00:29 #2626 [Verbose] > │ let v121 : (struct (int64 * int64) -> int64) = closure3() │
00:00:29 #2627 [Verbose] > │ let v122 : (struct (int64 * int64) []) = v113 |> Array.sortBy v121 │
00:00:29 #2628 [Verbose] > │ let struct (v123 : int64, v124 : int64) = v122.[int 0] │
00:00:29 #2629 [Verbose] > │ let v125 : string = $"%A{struct (v123, v124)}" │
00:00:29 #2630 [Verbose] > │ let v126 : bool = v92 = v94 │
00:00:29 #2631 [Verbose] > │ let v131 : US0 = │
00:00:29 #2632 [Verbose] > │ if v126 then │
00:00:29 #2633 [Verbose] > │ let v127 : System.ConsoleColor = │
00:00:29 #2634 [Verbose] > │ System.ConsoleColor.DarkGreen │
00:00:29 #2635 [Verbose] > │ US0_1(v127) │
00:00:29 #2636 [Verbose] > │ else │
00:00:29 #2637 [Verbose] > │ let v129 : System.ConsoleColor = System.ConsoleColor.DarkRed │
00:00:29 #2638 [Verbose] > │ US0_1(v129) │
00:00:29 #2639 [Verbose] > │ let v132 : UH2 = UH2_1 │
00:00:29 #2640 [Verbose] > │ let v133 : UH2 = UH2_0(v125, v132) │
00:00:29 #2641 [Verbose] > │ let v134 : UH2 = UH2_0(v94, v133) │
00:00:29 #2642 [Verbose] > │ let v135 : UH2 = UH2_0(v92, v134) │
00:00:29 #2643 [Verbose] > │ let v136 : UH2 = UH2_0(v93, v135) │
00:00:29 #2644 [Verbose] > │ v88.[int v91] <- struct (v136, v131) │
00:00:29 #2645 [Verbose] > │ let v137 : uint64 = v91 + 1UL │
00:00:29 #2646 [Verbose] > │ v89.l0 <- v137 │
00:00:29 #2647 [Verbose] > │ () │
00:00:29 #2648 [Verbose] > │ let v138 : string = "Input" │
00:00:29 #2649 [Verbose] > │ let v139 : string = "Expected" │
00:00:29 #2650 [Verbose] > │ let v140 : string = "Result" │
00:00:29 #2651 [Verbose] > │ let v141 : string = "Best" │
00:00:29 #2652 [Verbose] > │ let v142 : UH2 = UH2_1 │
00:00:29 #2653 [Verbose] > │ let v143 : UH2 = UH2_0(v141, v142) │
00:00:29 #2654 [Verbose] > │ let v144 : UH2 = UH2_0(v140, v143) │
00:00:29 #2655 [Verbose] > │ let v145 : UH2 = UH2_0(v139, v144) │
00:00:29 #2656 [Verbose] > │ let v146 : UH2 = UH2_0(v138, v145) │
00:00:29 #2657 [Verbose] > │ let v147 : US0 = US0_0 │
00:00:29 #2658 [Verbose] > │ let v148 : string = "---" │
00:00:29 #2659 [Verbose] > │ let v149 : UH2 = UH2_1 │
00:00:29 #2660 [Verbose] > │ let v150 : UH2 = UH2_0(v148, v149) │
00:00:29 #2661 [Verbose] > │ let v151 : UH2 = UH2_0(v148, v150) │
00:00:29 #2662 [Verbose] > │ let v152 : UH2 = UH2_0(v148, v151) │
00:00:29 #2663 [Verbose] > │ let v153 : UH2 = UH2_0(v148, v152) │
00:00:29 #2664 [Verbose] > │ let v154 : US0 = US0_0 │
00:00:29 #2665 [Verbose] > │ let v155 : UH4 = UH4_1 │
00:00:29 #2666 [Verbose] > │ let v156 : UH4 = UH4_0(v153, v154, v155) │
00:00:29 #2667 [Verbose] > │ let v157 : UH4 = UH4_0(v146, v147, v156) │
00:00:29 #2668 [Verbose] > │ let v158 : (struct (UH2 * US0) []) = method16(v157) │
00:00:29 #2669 [Verbose] > │ let v159 : uint64 = System.Convert.ToUInt64 v158.Length │
00:00:29 #2670 [Verbose] > │ let v160 : uint64 = System.Convert.ToUInt64 v88.Length │
00:00:29 #2671 [Verbose] > │ let v161 : uint64 = v159 + v160 │
00:00:29 #2672 [Verbose] > │ let v162 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * │
00:00:29 #2673 [Verbose] > │ US0)> (System.Convert.ToInt32(v161)) │
00:00:29 #2674 [Verbose] > │ let v163 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2675 [Verbose] > │ while method4(v161, v163) do │
00:00:29 #2676 [Verbose] > │ let v165 : uint64 = v163.l0 │
00:00:29 #2677 [Verbose] > │ let v166 : bool = v165 < v159 │
00:00:29 #2678 [Verbose] > │ let struct (v172 : UH2, v173 : US0) = │
00:00:29 #2679 [Verbose] > │ if v166 then │
00:00:29 #2680 [Verbose] > │ let struct (v167 : UH2, v168 : US0) = v158.[int v165] │
00:00:29 #2681 [Verbose] > │ struct (v167, v168) │
00:00:29 #2682 [Verbose] > │ else │
00:00:29 #2683 [Verbose] > │ let v169 : uint64 = v165 - v159 │
00:00:29 #2684 [Verbose] > │ let struct (v170 : UH2, v171 : US0) = v88.[int v169] │
00:00:29 #2685 [Verbose] > │ struct (v170, v171) │
00:00:29 #2686 [Verbose] > │ v162.[int v165] <- struct (v172, v173) │
00:00:29 #2687 [Verbose] > │ let v174 : uint64 = v165 + 1UL │
00:00:29 #2688 [Verbose] > │ v163.l0 <- v174 │
00:00:29 #2689 [Verbose] > │ () │
00:00:29 #2690 [Verbose] > │ let v175 : uint64 = System.Convert.ToUInt64 v162.Length │
00:00:29 #2691 [Verbose] > │ let v176 : ((string []) []) = Array.zeroCreate<(string [])> │
00:00:29 #2692 [Verbose] > │ (System.Convert.ToInt32(v175)) │
00:00:29 #2693 [Verbose] > │ let v177 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2694 [Verbose] > │ while method4(v175, v177) do │
00:00:29 #2695 [Verbose] > │ let v179 : uint64 = v177.l0 │
00:00:29 #2696 [Verbose] > │ let struct (v180 : UH2, v181 : US0) = v162.[int v179] │
00:00:29 #2697 [Verbose] > │ let v182 : (string []) = method19(v180) │
00:00:29 #2698 [Verbose] > │ v176.[int v179] <- v182 │
00:00:29 #2699 [Verbose] > │ let v183 : uint64 = v179 + 1UL │
00:00:29 #2700 [Verbose] > │ v177.l0 <- v183 │
00:00:29 #2701 [Verbose] > │ () │
00:00:29 #2702 [Verbose] > │ let v184 : ((string []) []) = v176 |> Array.transpose │
00:00:29 #2703 [Verbose] > │ let v185 : uint64 = System.Convert.ToUInt64 v184.Length │
00:00:29 #2704 [Verbose] > │ let v186 : (int64 []) = Array.zeroCreate<int64> │
00:00:29 #2705 [Verbose] > │ (System.Convert.ToInt32(v185)) │
00:00:29 #2706 [Verbose] > │ let v187 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2707 [Verbose] > │ while method4(v185, v187) do │
00:00:29 #2708 [Verbose] > │ let v189 : uint64 = v187.l0 │
00:00:29 #2709 [Verbose] > │ let v190 : (string []) = v184.[int v189] │
00:00:29 #2710 [Verbose] > │ let v191 : uint64 = System.Convert.ToUInt64 v190.Length │
00:00:29 #2711 [Verbose] > │ let v192 : (int64 []) = Array.zeroCreate<int64> │
00:00:29 #2712 [Verbose] > │ (System.Convert.ToInt32(v191)) │
00:00:29 #2713 [Verbose] > │ let v193 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2714 [Verbose] > │ while method4(v191, v193) do │
00:00:29 #2715 [Verbose] > │ let v195 : uint64 = v193.l0 │
00:00:29 #2716 [Verbose] > │ let v196 : string = v190.[int v195] │
00:00:29 #2717 [Verbose] > │ let v197 : int64 = System.Convert.ToInt64 v196.Length │
00:00:29 #2718 [Verbose] > │ v192.[int v195] <- v197 │
00:00:29 #2719 [Verbose] > │ let v198 : uint64 = v195 + 1UL │
00:00:29 #2720 [Verbose] > │ v193.l0 <- v198 │
00:00:29 #2721 [Verbose] > │ () │
00:00:29 #2722 [Verbose] > │ let v199 : (int64 []) = v192 |> Array.sortDescending │
00:00:29 #2723 [Verbose] > │ let v200 : int64 option = v199 |> Array.tryItem 0 │
00:00:29 #2724 [Verbose] > │ let v201 : (int64 -> US1) = closure4() │
00:00:29 #2725 [Verbose] > │ let v202 : US1 = US1_0 │
00:00:29 #2726 [Verbose] > │ let v203 : US1 = v200 |> Option.map v201 |> Option.defaultValue v202 │
00:00:29 #2727 [Verbose] > │ let v206 : int64 = │
00:00:29 #2728 [Verbose] > │ match v203 with │
00:00:29 #2729 [Verbose] > │ | US1_0 -> (* None *) │
00:00:29 #2730 [Verbose] > │ 0L │
00:00:29 #2731 [Verbose] > │ | US1_1(v204) -> (* Some *) │
00:00:29 #2732 [Verbose] > │ v204 │
00:00:29 #2733 [Verbose] > │ v186.[int v189] <- v206 │
00:00:29 #2734 [Verbose] > │ let v207 : uint64 = v189 + 1UL │
00:00:29 #2735 [Verbose] > │ v187.l0 <- v207 │
00:00:29 #2736 [Verbose] > │ () │
00:00:29 #2737 [Verbose] > │ let v208 : uint64 = System.Convert.ToUInt64 v186.Length │
00:00:29 #2738 [Verbose] > │ let v209 : UH5 = UH5_1 │
00:00:29 #2739 [Verbose] > │ let v210 : Mut3 = {l0 = 0UL; l1 = v209; l2 = 0} : Mut3 │
00:00:29 #2740 [Verbose] > │ while method22(v208, v210) do │
00:00:29 #2741 [Verbose] > │ let v212 : uint64 = v210.l0 │
00:00:29 #2742 [Verbose] > │ let struct (v213 : UH5, v214 : int32) = v210.l1, v210.l2 │
00:00:29 #2743 [Verbose] > │ let v215 : int64 = v186.[int v212] │
00:00:29 #2744 [Verbose] > │ let v216 : int32 = v214 + 1 │
00:00:29 #2745 [Verbose] > │ let v217 : uint64 = v212 + 1UL │
00:00:29 #2746 [Verbose] > │ let v218 : UH5 = UH5_0(v214, v215, v213) │
00:00:29 #2747 [Verbose] > │ v210.l0 <- v217 │
00:00:29 #2748 [Verbose] > │ v210.l1 <- v218 │
00:00:29 #2749 [Verbose] > │ v210.l2 <- v216 │
00:00:29 #2750 [Verbose] > │ () │
00:00:29 #2751 [Verbose] > │ let struct (v219 : UH5, v220 : int32) = v210.l1, v210.l2 │
00:00:29 #2752 [Verbose] > │ let v221 : UH5 = UH5_1 │
00:00:29 #2753 [Verbose] > │ let v222 : UH5 = method23(v219, v221) │
00:00:29 #2754 [Verbose] > │ let v223 : (struct (int32 * int64) []) = method24(v222) │
00:00:29 #2755 [Verbose] > │ let v224 : Map<int32, int64> = v223 |> Array.map (fun (struct (a, b)) -> │
00:00:29 #2756 [Verbose] > │ a, b) |> Map.ofArray │
00:00:29 #2757 [Verbose] > │ let v225 : (struct ((string []) * US0) []) = Array.zeroCreate<struct │
00:00:29 #2758 [Verbose] > │ ((string []) * US0)> (System.Convert.ToInt32(v175)) │
00:00:29 #2759 [Verbose] > │ let v226 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2760 [Verbose] > │ while method4(v175, v226) do │
00:00:29 #2761 [Verbose] > │ let v228 : uint64 = v226.l0 │
00:00:29 #2762 [Verbose] > │ let struct (v229 : UH2, v230 : US0) = v162.[int v228] │
00:00:29 #2763 [Verbose] > │ let v231 : UH6 = UH6_1 │
00:00:29 #2764 [Verbose] > │ let v232 : int32 = 0 │
00:00:29 #2765 [Verbose] > │ let struct (v233 : UH6, v234 : int32) = method27(v229, v231, v232) │
00:00:29 #2766 [Verbose] > │ let v235 : UH6 = UH6_1 │
00:00:29 #2767 [Verbose] > │ let v236 : UH6 = method28(v233, v235) │
00:00:29 #2768 [Verbose] > │ let v237 : UH2 = UH2_1 │
00:00:29 #2769 [Verbose] > │ let v238 : UH2 = method29(v224, v236, v237) │
00:00:29 #2770 [Verbose] > │ let v239 : (string []) = method30(v238) │
00:00:29 #2771 [Verbose] > │ v225.[int v228] <- struct (v239, v230) │
00:00:29 #2772 [Verbose] > │ let v240 : uint64 = v228 + 1UL │
00:00:29 #2773 [Verbose] > │ v226.l0 <- v240 │
00:00:29 #2774 [Verbose] > │ () │
00:00:29 #2775 [Verbose] > │ System.Console.WriteLine v2 │
00:00:29 #2776 [Verbose] > │ let v241 : uint64 = System.Convert.ToUInt64 v225.Length │
00:00:29 #2777 [Verbose] > │ let v242 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2778 [Verbose] > │ while method4(v241, v242) do │
00:00:29 #2779 [Verbose] > │ let v244 : uint64 = v242.l0 │
00:00:29 #2780 [Verbose] > │ let struct (v245 : (string []), v246 : US0) = v225.[int v244] │
00:00:29 #2781 [Verbose] > │ match v246 with │
00:00:29 #2782 [Verbose] > │ | US0_0 -> (* None *) │
00:00:29 #2783 [Verbose] > │ let mutable result = None │
00:00:29 #2784 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:29 #2785 [Verbose] > │ #if !WASM │
00:00:29 #2786 [Verbose] > │ () │
00:00:29 #2787 [Verbose] > │ #else │
00:00:29 #2788 [Verbose] > │ () │
00:00:29 #2789 [Verbose] > │ #endif │
00:00:29 #2790 [Verbose] > │ #else │
00:00:29 #2791 [Verbose] > │ System.Console.ResetColor () │
00:00:29 #2792 [Verbose] > │ () │
00:00:29 #2793 [Verbose] > │ #endif │
00:00:29 #2794 [Verbose] > │ |> fun x -> result <- Some x │
00:00:29 #2795 [Verbose] > │ result |> Option.get │
00:00:29 #2796 [Verbose] > │ () │
00:00:29 #2797 [Verbose] > │ | US0_1(v247) -> (* Some *) │
00:00:29 #2798 [Verbose] > │ let mutable result = None │
00:00:29 #2799 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:29 #2800 [Verbose] > │ #if !WASM │
00:00:29 #2801 [Verbose] > │ () │
00:00:29 #2802 [Verbose] > │ #else │
00:00:29 #2803 [Verbose] > │ () │
00:00:29 #2804 [Verbose] > │ #endif │
00:00:29 #2805 [Verbose] > │ #else │
00:00:29 #2806 [Verbose] > │ System.Console.ForegroundColor <- v247 │
00:00:29 #2807 [Verbose] > │ () │
00:00:29 #2808 [Verbose] > │ #endif │
00:00:29 #2809 [Verbose] > │ |> fun x -> result <- Some x │
00:00:29 #2810 [Verbose] > │ result |> Option.get │
00:00:29 #2811 [Verbose] > │ () │
00:00:29 #2812 [Verbose] > │ let v248 : string = "\t| " │
00:00:29 #2813 [Verbose] > │ let v249 : string = System.String.Join (v248, v245) │
00:00:29 #2814 [Verbose] > │ System.Console.WriteLine v249 │
00:00:29 #2815 [Verbose] > │ let mutable result = None │
00:00:29 #2816 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:00:29 #2817 [Verbose] > │ #if !WASM │
00:00:29 #2818 [Verbose] > │ () │
00:00:29 #2819 [Verbose] > │ #else │
00:00:29 #2820 [Verbose] > │ () │
00:00:29 #2821 [Verbose] > │ #endif │
00:00:29 #2822 [Verbose] > │ #else │
00:00:29 #2823 [Verbose] > │ System.Console.ResetColor () │
00:00:29 #2824 [Verbose] > │ () │
00:00:29 #2825 [Verbose] > │ #endif │
00:00:29 #2826 [Verbose] > │ |> fun x -> result <- Some x │
00:00:29 #2827 [Verbose] > │ result |> Option.get │
00:00:29 #2828 [Verbose] > │ let v250 : uint64 = v244 + 1UL │
00:00:29 #2829 [Verbose] > │ v242.l0 <- v250 │
00:00:29 #2830 [Verbose] > │ () │
00:00:29 #2831 [Verbose] > │ let v251 : ((float []) []) = Array.zeroCreate<(float [])> │
00:00:29 #2832 [Verbose] > │ (System.Convert.ToInt32(v87)) │
00:00:29 #2833 [Verbose] > │ let v252 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2834 [Verbose] > │ while method4(v87, v252) do │
00:00:29 #2835 [Verbose] > │ let v254 : uint64 = v252.l0 │
00:00:29 #2836 [Verbose] > │ let struct (v255 : string, v256 : string, v257 : string, v258 : │
00:00:29 #2837 [Verbose] > │ (int64 [])) = v16.[int v254] │
00:00:29 #2838 [Verbose] > │ let v259 : (int64 -> float) = float │
00:00:29 #2839 [Verbose] > │ let v260 : uint64 = System.Convert.ToUInt64 v258.Length │
00:00:29 #2840 [Verbose] > │ let v261 : (float []) = Array.zeroCreate<float> │
00:00:29 #2841 [Verbose] > │ (System.Convert.ToInt32(v260)) │
00:00:29 #2842 [Verbose] > │ let v262 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2843 [Verbose] > │ while method4(v260, v262) do │
00:00:29 #2844 [Verbose] > │ let v264 : uint64 = v262.l0 │
00:00:29 #2845 [Verbose] > │ let v265 : int64 = v258.[int v264] │
00:00:29 #2846 [Verbose] > │ let v266 : float = v259 v265 │
00:00:29 #2847 [Verbose] > │ v261.[int v264] <- v266 │
00:00:29 #2848 [Verbose] > │ let v267 : uint64 = v264 + 1UL │
00:00:29 #2849 [Verbose] > │ v262.l0 <- v267 │
00:00:29 #2850 [Verbose] > │ () │
00:00:29 #2851 [Verbose] > │ v251.[int v254] <- v261 │
00:00:29 #2852 [Verbose] > │ let v268 : uint64 = v254 + 1UL │
00:00:29 #2853 [Verbose] > │ v252.l0 <- v268 │
00:00:29 #2854 [Verbose] > │ () │
00:00:29 #2855 [Verbose] > │ let v269 : ((float []) []) = v251 |> Array.transpose │
00:00:29 #2856 [Verbose] > │ let v270 : uint64 = System.Convert.ToUInt64 v269.Length │
00:00:29 #2857 [Verbose] > │ let v271 : (float []) = Array.zeroCreate<float> │
00:00:29 #2858 [Verbose] > │ (System.Convert.ToInt32(v270)) │
00:00:29 #2859 [Verbose] > │ let v272 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2860 [Verbose] > │ while method4(v270, v272) do │
00:00:29 #2861 [Verbose] > │ let v274 : uint64 = v272.l0 │
00:00:29 #2862 [Verbose] > │ let v275 : (float []) = v269.[int v274] │
00:00:29 #2863 [Verbose] > │ let v276 : float = v275 |> Array.average │
00:00:29 #2864 [Verbose] > │ v271.[int v274] <- v276 │
00:00:29 #2865 [Verbose] > │ let v277 : uint64 = v274 + 1UL │
00:00:29 #2866 [Verbose] > │ v272.l0 <- v277 │
00:00:29 #2867 [Verbose] > │ () │
00:00:29 #2868 [Verbose] > │ let v278 : (float -> int64) = int64 │
00:00:29 #2869 [Verbose] > │ let v279 : uint64 = System.Convert.ToUInt64 v271.Length │
00:00:29 #2870 [Verbose] > │ let v280 : (int64 []) = Array.zeroCreate<int64> │
00:00:29 #2871 [Verbose] > │ (System.Convert.ToInt32(v279)) │
00:00:29 #2872 [Verbose] > │ let v281 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2873 [Verbose] > │ while method4(v279, v281) do │
00:00:29 #2874 [Verbose] > │ let v283 : uint64 = v281.l0 │
00:00:29 #2875 [Verbose] > │ let v284 : float = v271.[int v283] │
00:00:29 #2876 [Verbose] > │ let v285 : int64 = v278 v284 │
00:00:29 #2877 [Verbose] > │ v280.[int v283] <- v285 │
00:00:29 #2878 [Verbose] > │ let v286 : uint64 = v283 + 1UL │
00:00:29 #2879 [Verbose] > │ v281.l0 <- v286 │
00:00:29 #2880 [Verbose] > │ () │
00:00:29 #2881 [Verbose] > │ let v287 : uint64 = System.Convert.ToUInt64 v280.Length │
00:00:29 #2882 [Verbose] > │ let v288 : UH5 = UH5_1 │
00:00:29 #2883 [Verbose] > │ let v289 : Mut3 = {l0 = 0UL; l1 = v288; l2 = 0} : Mut3 │
00:00:29 #2884 [Verbose] > │ while method22(v287, v289) do │
00:00:29 #2885 [Verbose] > │ let v291 : uint64 = v289.l0 │
00:00:29 #2886 [Verbose] > │ let struct (v292 : UH5, v293 : int32) = v289.l1, v289.l2 │
00:00:29 #2887 [Verbose] > │ let v294 : int64 = v280.[int v291] │
00:00:29 #2888 [Verbose] > │ let v295 : int32 = v293 + 1 │
00:00:29 #2889 [Verbose] > │ let v296 : uint64 = v291 + 1UL │
00:00:29 #2890 [Verbose] > │ let v297 : UH5 = UH5_0(v293, v294, v292) │
00:00:29 #2891 [Verbose] > │ v289.l0 <- v296 │
00:00:29 #2892 [Verbose] > │ v289.l1 <- v297 │
00:00:29 #2893 [Verbose] > │ v289.l2 <- v295 │
00:00:29 #2894 [Verbose] > │ () │
00:00:29 #2895 [Verbose] > │ let struct (v298 : UH5, v299 : int32) = v289.l1, v289.l2 │
00:00:29 #2896 [Verbose] > │ let v300 : UH5 = UH5_1 │
00:00:29 #2897 [Verbose] > │ let v301 : UH5 = method23(v298, v300) │
00:00:29 #2898 [Verbose] > │ let v302 : (struct (int32 * int64) []) = method33(v301) │
00:00:29 #2899 [Verbose] > │ System.Console.WriteLine v2 │
00:00:29 #2900 [Verbose] > │ let v303 : string = "Average Ranking " │
00:00:29 #2901 [Verbose] > │ System.Console.WriteLine v303 │
00:00:29 #2902 [Verbose] > │ let v304 : (struct (int32 * int64) -> int64) = closure5() │
00:00:29 #2903 [Verbose] > │ let v305 : (struct (int32 * int64) []) = v302 |> Array.sortBy v304 │
00:00:29 #2904 [Verbose] > │ let v306 : uint64 = System.Convert.ToUInt64 v305.Length │
00:00:29 #2905 [Verbose] > │ let v307 : Mut0 = {l0 = 0UL} : Mut0 │
00:00:29 #2906 [Verbose] > │ while method4(v306, v307) do │
00:00:29 #2907 [Verbose] > │ let v309 : uint64 = v307.l0 │
00:00:29 #2908 [Verbose] > │ let struct (v310 : int32, v311 : int64) = v305.[int v309] │
00:00:29 #2909 [Verbose] > │ let v312 : string = $"Test case %d{v310 + 1}. Average Time: %A{v311} │
00:00:29 #2910 [Verbose] > │ " │
00:00:29 #2911 [Verbose] > │ System.Console.WriteLine v312 │
00:00:29 #2912 [Verbose] > │ let v313 : uint64 = v309 + 1UL │
00:00:29 #2913 [Verbose] > │ v307.l0 <- v313 │
00:00:29 #2914 [Verbose] > │ () │
00:00:29 #2915 [Verbose] > │ () │
00:00:29 #2916 [Verbose] > │ method0() │
00:00:29 #2917 [Verbose] > │ │
00:00:29 #2918 [Verbose] > │ │
00:00:29 #2919 [Verbose] > │ │
00:00:29 #2920 [Verbose] > │ Test: v0 │
00:00:29 #2921 [Verbose] > │ │
00:00:29 #2922 [Verbose] > │ Solution: 0.0 │
00:00:29 #2923 [Verbose] > │ Test case 1. A. Time: 26 │
00:00:29 #2924 [Verbose] > │ │
00:00:29 #2925 [Verbose] > │ Solution: 2.0 │
00:00:29 #2926 [Verbose] > │ Test case 1. A. Time: 12 │
00:00:29 #2927 [Verbose] > │ │
00:00:29 #2928 [Verbose] > │ Solution: 5.0 │
00:00:29 #2929 [Verbose] > │ Test case 1. A. Time: 12 │
00:00:29 #2930 [Verbose] > │ │
00:00:29 #2931 [Verbose] > │ Input | Expected | Result | Best │
00:00:29 #2932 [Verbose] > │ --- | --- | --- | --- │
00:00:29 #2933 [Verbose] > │ 0.0 | 1.0 | 1.0 | struct (1L, 26L) │
00:00:29 #2934 [Verbose] > │ 2.0 | 3.0 | 3.0 | struct (1L, 12L) │
00:00:29 #2935 [Verbose] > │ 5.0 | 6.0 | 6.0 | struct (1L, 12L) │
00:00:29 #2936 [Verbose] > │ │
00:00:29 #2937 [Verbose] > │ Average Ranking │
00:00:29 #2938 [Verbose] > │ Test case 1. Average Time: 16L │
00:00:29 #2939 [Verbose] > │ │
00:00:29 #2940 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 #2941 [Verbose] > [NbConvertApp] Converting notebook benchmark.dib.ipynb to html
00:00:31 #2942 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:31 #2943 [Verbose] > validate(nb)
00:00:31 #2944 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:31 #2945 [Verbose] > return _pygments_highlight(
00:00:31 #2946 [Verbose] > [NbConvertApp] Writing 406228 bytes to benchmark.dib.html
00:00:32 #2947 [Debug] executeAsync / exitCode: 0 / output.Length: 221255
00:00:32 #2948 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\lib\spiral
00:00:00 #4 [Verbose] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #6 [Debug] runWithTimeoutAsync / timeout: 500
00:00:00 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805
00:00:01 #11 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 stream.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:03 #12 [Verbose] >
00:00:03 #13 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 #14 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 #15 [Verbose] > │ # stream │
00:00:03 #16 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:04 #17 [Verbose] >
00:00:04 #18 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:04 #19 [Verbose] > // // test
00:00:04 #20 [Verbose] >
00:00:04 #21 [Verbose] > open testing
00:00:07 #22 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-0887-8733-878ba1723bb7\main.spi
00:00:10 #23 [Verbose] >
00:00:10 #24 [Verbose] > ╭─[ 6.06s - stdout ]───────────────────────────────────────────────────────────╮
00:00:10 #25 [Verbose] > │ () │
00:00:10 #26 [Verbose] > │ │
00:00:10 #27 [Verbose] > │ │
00:00:10 #28 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #29 [Verbose] >
00:00:10 #30 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #31 [Verbose] > union rec stream t =
00:00:10 #32 [Verbose] > | StreamCons : t * (() -> stream t)
00:00:10 #33 [Verbose] > | StreamNil
00:00:10 #34 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-1236-3650-313af2a0a4b1\main.spi
00:00:10 #35 [Verbose] >
00:00:10 #36 [Verbose] > ╭─[ 269.07ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #37 [Verbose] > │ () │
00:00:10 #38 [Verbose] > │ │
00:00:10 #39 [Verbose] > │ │
00:00:10 #40 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #41 [Verbose] >
00:00:10 #42 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #43 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #44 [Verbose] > │ ## fold │
00:00:10 #45 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #46 [Verbose] >
00:00:10 #47 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #48 [Verbose] > inl fold fn init s =
00:00:10 #49 [Verbose] > inl rec body acc = function
00:00:10 #50 [Verbose] > | StreamCons (st, fn') => loop (fn acc st) (fn' ())
00:00:10 #51 [Verbose] > | StreamNil => acc
00:00:10 #52 [Verbose] > and inl loop acc = join_body body acc
00:00:10 #53 [Verbose] > loop init s
00:00:10 #54 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-1263-6392-6e9780dc1191\main.spi
00:00:10 #55 [Verbose] >
00:00:10 #56 [Verbose] > ╭─[ 261.36ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #57 [Verbose] > │ () │
00:00:10 #58 [Verbose] > │ │
00:00:10 #59 [Verbose] > │ │
00:00:10 #60 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #61 [Verbose] >
00:00:10 #62 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #63 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #64 [Verbose] > │ ## fold_back │
00:00:10 #65 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #66 [Verbose] >
00:00:10 #67 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #68 [Verbose] > inl fold_back fn s init =
00:00:10 #69 [Verbose] > inl rec body acc = function
00:00:10 #70 [Verbose] > | StreamCons (st, fn') => fn st (loop acc (fn' ()))
00:00:10 #71 [Verbose] > | StreamNil => acc
00:00:10 #72 [Verbose] > and inl loop acc = join_body body acc
00:00:10 #73 [Verbose] > loop init s
00:00:10 #74 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-1290-9016-910e6a76234c\main.spi
00:00:10 #75 [Verbose] >
00:00:10 #76 [Verbose] > ╭─[ 231.07ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #77 [Verbose] > │ () │
00:00:10 #78 [Verbose] > │ │
00:00:10 #79 [Verbose] > │ │
00:00:10 #80 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #81 [Verbose] >
00:00:10 #82 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #83 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #84 [Verbose] > │ ## to_list │
00:00:10 #85 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #86 [Verbose] >
00:00:10 #87 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #88 [Verbose] > inl to_list s =
00:00:10 #89 [Verbose] > (s, [[]])
00:00:10 #90 [Verbose] > ||> fold_back fun x acc =>
00:00:10 #91 [Verbose] > x :: acc
00:00:10 #92 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-1313-1390-13418e1682f2\main.spi
00:00:11 #93 [Verbose] >
00:00:11 #94 [Verbose] > ╭─[ 242.51ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #95 [Verbose] > │ () │
00:00:11 #96 [Verbose] > │ │
00:00:11 #97 [Verbose] > │ │
00:00:11 #98 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #99 [Verbose] >
00:00:11 #100 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #101 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #102 [Verbose] > │ ## rev │
00:00:11 #103 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #104 [Verbose] >
00:00:11 #105 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #106 [Verbose] > inl rev s =
00:00:11 #107 [Verbose] > (StreamNil, s)
00:00:11 #108 [Verbose] > ||> fold fun s x =>
00:00:11 #109 [Verbose] > StreamCons (x, fun () => s)
00:00:11 #110 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-1339-3914-3aaff74d64c1\main.spi
00:00:11 #111 [Verbose] >
00:00:11 #112 [Verbose] > ╭─[ 223.74ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #113 [Verbose] > │ () │
00:00:11 #114 [Verbose] > │ │
00:00:11 #115 [Verbose] > │ │
00:00:11 #116 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #117 [Verbose] >
00:00:11 #118 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #119 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #120 [Verbose] > │ ## from_list │
00:00:11 #121 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #122 [Verbose] >
00:00:11 #123 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #124 [Verbose] > inl from_list list =
00:00:11 #125 [Verbose] > (list, StreamNil)
00:00:11 #126 [Verbose] > ||> listm.foldBack fun x acc =>
00:00:11 #127 [Verbose] > StreamCons (x, fun () => acc)
00:00:11 #128 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-1361-6196-6de7df4698e6\main.spi
00:00:11 #129 [Verbose] >
00:00:11 #130 [Verbose] > ╭─[ 324.76ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #131 [Verbose] > │ () │
00:00:11 #132 [Verbose] > │ │
00:00:11 #133 [Verbose] > │ │
00:00:11 #134 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #135 [Verbose] >
00:00:11 #136 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #137 [Verbose] > // // test
00:00:11 #138 [Verbose] >
00:00:11 #139 [Verbose] > listm.init 3i32 id
00:00:11 #140 [Verbose] > |> from_list
00:00:11 #141 [Verbose] > |> rev
00:00:11 #142 [Verbose] > |> to_list
00:00:11 #143 [Verbose] > |> _assert_eq [[ 2; 1; 0 ]]
00:00:11 #144 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-1394-9475-9e89816dd0a2\main.spi
00:00:12 #145 [Verbose] >
00:00:12 #146 [Verbose] > ╭─[ 1.22s - stdout ]───────────────────────────────────────────────────────────╮
00:00:12 #147 [Verbose] > │ type UH0 = │
00:00:12 #148 [Verbose] > │ | UH0_0 of int32 * UH0 │
00:00:12 #149 [Verbose] > │ | UH0_1 │
00:00:12 #150 [Verbose] > │ let rec method0 () : unit = │
00:00:12 #151 [Verbose] > │ let v18 : UH0 = UH0_1 │
00:00:12 #152 [Verbose] > │ let v19 : UH0 = UH0_0(0, v18) │
00:00:12 #153 [Verbose] > │ let v20 : UH0 = UH0_0(1, v19) │
00:00:12 #154 [Verbose] > │ let v21 : UH0 = UH0_0(2, v20) │
00:00:12 #155 [Verbose] > │ let v22 : UH0 = UH0_1 │
00:00:12 #156 [Verbose] > │ let v23 : UH0 = UH0_0(0, v22) │
00:00:12 #157 [Verbose] > │ let v24 : UH0 = UH0_0(1, v23) │
00:00:12 #158 [Verbose] > │ let v25 : UH0 = UH0_0(2, v24) │
00:00:12 #159 [Verbose] > │ let v26 : string = $"__expect / actual: %A{v21} / expected: %A{v25}" │
00:00:12 #160 [Verbose] > │ () │
00:00:12 #161 [Verbose] > │ method0() │
00:00:12 #162 [Verbose] > │ │
00:00:12 #163 [Verbose] > │ │
00:00:12 #164 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #165 [Verbose] >
00:00:12 #166 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #167 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #168 [Verbose] > │ ## try_item │
00:00:12 #169 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #170 [Verbose] >
00:00:12 #171 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #172 [Verbose] > inl try_item i s =
00:00:12 #173 [Verbose] > inl rec body i = function
00:00:12 #174 [Verbose] > | StreamCons (x, _) when i <= 0 => Some x
00:00:12 #175 [Verbose] > | StreamCons (_, fn) => loop (i - 1) (fn ())
00:00:12 #176 [Verbose] > | StreamNil => None
00:00:12 #177 [Verbose] > and inl loop acc s' =
00:00:12 #178 [Verbose] > match var_is acc, var_is s' with
00:00:12 #179 [Verbose] > | false, false => body acc s'
00:00:12 #180 [Verbose] > | _ =>
00:00:12 #181 [Verbose] > inl acc = dyn acc
00:00:12 #182 [Verbose] > inl s' = dyn s'
00:00:12 #183 [Verbose] > join body acc s'
00:00:12 #184 [Verbose] > loop i s
00:00:12 #185 [Verbose] >
00:00:12 #186 [Verbose] > inl item i =
00:00:12 #187 [Verbose] > try_item i >> optionm.value
00:00:13 #188 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-1517-1742-1cc967ecd18e\main.spi
00:00:13 #189 [Verbose] >
00:00:13 #190 [Verbose] > ╭─[ 253.80ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #191 [Verbose] > │ () │
00:00:13 #192 [Verbose] > │ │
00:00:13 #193 [Verbose] > │ │
00:00:13 #194 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #195 [Verbose] >
00:00:13 #196 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #197 [Verbose] > // // test
00:00:13 #198 [Verbose] >
00:00:13 #199 [Verbose] > listm.init 10i32 id
00:00:13 #200 [Verbose] > |> from_list
00:00:13 #201 [Verbose] > |> item 9i32
00:00:13 #202 [Verbose] > |> _assert_eq 9
00:00:13 #203 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-1542-4275-494335b5c6b5\main.spi
00:00:13 #204 [Verbose] >
00:00:13 #205 [Verbose] > ╭─[ 189.04ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #206 [Verbose] > │ let rec method0 () : unit = │
00:00:13 #207 [Verbose] > │ let v0 : string = $"__expect / actual: %A{9} / expected: %A{9}" │
00:00:13 #208 [Verbose] > │ () │
00:00:13 #209 [Verbose] > │ method0() │
00:00:13 #210 [Verbose] > │ │
00:00:13 #211 [Verbose] > │ │
00:00:13 #212 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #213 [Verbose] >
00:00:13 #214 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #215 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #216 [Verbose] > │ ## new_infinite_stream │
00:00:13 #217 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #218 [Verbose] >
00:00:13 #219 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #220 [Verbose] > inl new_infinite_stream fn =
00:00:13 #221 [Verbose] > inl rec loop n =
00:00:13 #222 [Verbose] > StreamCons (fn n, fun () => loop (n + 1))
00:00:13 #223 [Verbose] > loop 0
00:00:13 #224 [Verbose] >
00:00:13 #225 [Verbose] > inl new_infinite_stream_ fn =
00:00:13 #226 [Verbose] > let rec loop n =
00:00:13 #227 [Verbose] > StreamCons (fn n, fun () => loop (n + 1))
00:00:13 #228 [Verbose] > loop 0
00:00:13 #229 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-1562-6220-6dd3eca87732\main.spi
00:00:13 #230 [Verbose] >
00:00:13 #231 [Verbose] > ╭─[ 224.88ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #232 [Verbose] > │ () │
00:00:13 #233 [Verbose] > │ │
00:00:13 #234 [Verbose] > │ │
00:00:13 #235 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #236 [Verbose] >
00:00:13 #237 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #238 [Verbose] > // // test
00:00:13 #239 [Verbose] >
00:00:13 #240 [Verbose] > new_infinite_stream print_and_return
00:00:13 #241 [Verbose] > |> item 4i32
00:00:13 #242 [Verbose] > |> _assert_eq 4i32
00:00:13 #243 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-1584-8494-8c0c3dee6bab\main.spi
00:00:13 #244 [Verbose] >
00:00:13 #245 [Verbose] > ╭─[ 251.71ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #246 [Verbose] > │ let rec method0 () : unit = │
00:00:13 #247 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:13 #248 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:13 #249 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:13 #250 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:13 #251 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:13 #252 [Verbose] > │ let v0 : string = $"__expect / actual: %A{4} / expected: %A{4}" │
00:00:13 #253 [Verbose] > │ () │
00:00:13 #254 [Verbose] > │ method0() │
00:00:13 #255 [Verbose] > │ │
00:00:13 #256 [Verbose] > │ print_and_return / x: 0 │
00:00:13 #257 [Verbose] > │ print_and_return / x: 1 │
00:00:13 #258 [Verbose] > │ print_and_return / x: 2 │
00:00:13 #259 [Verbose] > │ print_and_return / x: 3 │
00:00:13 #260 [Verbose] > │ print_and_return / x: 4 │
00:00:13 #261 [Verbose] > │ │
00:00:13 #262 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #263 [Verbose] >
00:00:13 #264 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #265 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #266 [Verbose] > │ ## new_finite_stream │
00:00:13 #267 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #268 [Verbose] >
00:00:13 #269 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #270 [Verbose] > inl new_finite_stream fn max =
00:00:13 #271 [Verbose] > inl rec loop n =
00:00:13 #272 [Verbose] > if n >= max
00:00:13 #273 [Verbose] > then StreamNil
00:00:13 #274 [Verbose] > else StreamCons (fn n, fun () => loop (n + 1))
00:00:13 #275 [Verbose] > loop 0
00:00:13 #276 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-1611-1138-1dd68241a14c\main.spi
00:00:13 #277 [Verbose] >
00:00:13 #278 [Verbose] > ╭─[ 203.82ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #279 [Verbose] > │ () │
00:00:13 #280 [Verbose] > │ │
00:00:13 #281 [Verbose] > │ │
00:00:13 #282 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #283 [Verbose] >
00:00:13 #284 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #285 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #286 [Verbose] > │ ## memoize │
00:00:13 #287 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #288 [Verbose] >
00:00:13 #289 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #290 [Verbose] > union memoized_stream t =
00:00:13 #291 [Verbose] > | NotComputed : () -> stream t
00:00:13 #292 [Verbose] > | Computed : stream t
00:00:13 #293 [Verbose] >
00:00:13 #294 [Verbose] > inl memoize s =
00:00:13 #295 [Verbose] > inl rec body s =
00:00:13 #296 [Verbose] > inl state = mut (NotComputed s)
00:00:13 #297 [Verbose] > fun () =>
00:00:13 #298 [Verbose] > match *state with
00:00:13 #299 [Verbose] > | Computed x => x
00:00:13 #300 [Verbose] > | NotComputed fn =>
00:00:13 #301 [Verbose] > inl new_state =
00:00:13 #302 [Verbose] > match fn () with
00:00:13 #303 [Verbose] > | StreamNil => StreamNil
00:00:13 #304 [Verbose] > | StreamCons (x, fn) => StreamCons (x, loop fn)
00:00:13 #305 [Verbose] > state <- Computed new_state
00:00:13 #306 [Verbose] > new_state
00:00:13 #307 [Verbose] > and inl loop s' = join_body_unit body s s'
00:00:13 #308 [Verbose] > loop (fun () => s)
00:00:14 #309 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-1632-3211-3aa5ab2980d0\main.spi
00:00:14 #310 [Verbose] >
00:00:14 #311 [Verbose] > ╭─[ 199.33ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #312 [Verbose] > │ () │
00:00:14 #313 [Verbose] > │ │
00:00:14 #314 [Verbose] > │ │
00:00:14 #315 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #316 [Verbose] >
00:00:14 #317 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #318 [Verbose] > // // test
00:00:14 #319 [Verbose] >
00:00:14 #320 [Verbose] > inl memo_stream = new_finite_stream print_and_return 10 |> memoize
00:00:14 #321 [Verbose] >
00:00:14 #322 [Verbose] > memo_stream ()
00:00:14 #323 [Verbose] > |> item 3i32
00:00:14 #324 [Verbose] > |> _assert_eq 3i32
00:00:14 #325 [Verbose] >
00:00:14 #326 [Verbose] > memo_stream ()
00:00:14 #327 [Verbose] > |> item 5i32
00:00:14 #328 [Verbose] > |> _assert_eq 5i32
00:00:14 #329 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-1652-5280-55fc8afb5f6d\main.spi
00:00:14 #330 [Verbose] >
00:00:14 #331 [Verbose] > ╭─[ 693.76ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #332 [Verbose] > │ type UH0 = │
00:00:14 #333 [Verbose] > │ | UH0_0 of int32 * (unit -> UH0) │
00:00:14 #334 [Verbose] > │ | UH0_1 │
00:00:14 #335 [Verbose] > │ and [<Struct>] US0 = │
00:00:14 #336 [Verbose] > │ | US0_0 of f0_0 : UH0 │
00:00:14 #337 [Verbose] > │ | US0_1 of f1_0 : (unit -> UH0) │
00:00:14 #338 [Verbose] > │ and Mut0 = {mutable l0 : US0} │
00:00:14 #339 [Verbose] > │ and [<Struct>] US1 = │
00:00:14 #340 [Verbose] > │ | US1_0 │
00:00:14 #341 [Verbose] > │ | US1_1 of f1_0 : int32 │
00:00:14 #342 [Verbose] > │ let rec closure10 () () : UH0 = │
00:00:14 #343 [Verbose] > │ UH0_1 │
00:00:14 #344 [Verbose] > │ and closure9 () () : UH0 = │
00:00:14 #345 [Verbose] > │ printfn $"print_and_return / x: {9}" │
00:00:14 #346 [Verbose] > │ let v0 : (unit -> UH0) = closure10() │
00:00:14 #347 [Verbose] > │ UH0_0(9, v0) │
00:00:14 #348 [Verbose] > │ and closure8 () () : UH0 = │
00:00:14 #349 [Verbose] > │ printfn $"print_and_return / x: {8}" │
00:00:14 #350 [Verbose] > │ let v0 : (unit -> UH0) = closure9() │
00:00:14 #351 [Verbose] > │ UH0_0(8, v0) │
00:00:14 #352 [Verbose] > │ and closure7 () () : UH0 = │
00:00:14 #353 [Verbose] > │ printfn $"print_and_return / x: {7}" │
00:00:14 #354 [Verbose] > │ let v0 : (unit -> UH0) = closure8() │
00:00:14 #355 [Verbose] > │ UH0_0(7, v0) │
00:00:14 #356 [Verbose] > │ and closure6 () () : UH0 = │
00:00:14 #357 [Verbose] > │ printfn $"print_and_return / x: {6}" │
00:00:14 #358 [Verbose] > │ let v0 : (unit -> UH0) = closure7() │
00:00:14 #359 [Verbose] > │ UH0_0(6, v0) │
00:00:14 #360 [Verbose] > │ and closure5 () () : UH0 = │
00:00:14 #361 [Verbose] > │ printfn $"print_and_return / x: {5}" │
00:00:14 #362 [Verbose] > │ let v0 : (unit -> UH0) = closure6() │
00:00:14 #363 [Verbose] > │ UH0_0(5, v0) │
00:00:14 #364 [Verbose] > │ and closure4 () () : UH0 = │
00:00:14 #365 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:14 #366 [Verbose] > │ let v0 : (unit -> UH0) = closure5() │
00:00:14 #367 [Verbose] > │ UH0_0(4, v0) │
00:00:14 #368 [Verbose] > │ and closure3 () () : UH0 = │
00:00:14 #369 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:14 #370 [Verbose] > │ let v0 : (unit -> UH0) = closure4() │
00:00:14 #371 [Verbose] > │ UH0_0(3, v0) │
00:00:14 #372 [Verbose] > │ and closure2 () () : UH0 = │
00:00:14 #373 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:14 #374 [Verbose] > │ let v0 : (unit -> UH0) = closure3() │
00:00:14 #375 [Verbose] > │ UH0_0(2, v0) │
00:00:14 #376 [Verbose] > │ and closure1 () () : UH0 = │
00:00:14 #377 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:14 #378 [Verbose] > │ let v0 : (unit -> UH0) = closure2() │
00:00:14 #379 [Verbose] > │ UH0_0(1, v0) │
00:00:14 #380 [Verbose] > │ and closure0 () () : UH0 = │
00:00:14 #381 [Verbose] > │ let v0 : (unit -> UH0) = closure1() │
00:00:14 #382 [Verbose] > │ UH0_0(0, v0) │
00:00:14 #383 [Verbose] > │ and closure11 (v0 : Mut0) () : UH0 = │
00:00:14 #384 [Verbose] > │ let v1 : US0 = v0.l0 │
00:00:14 #385 [Verbose] > │ match v1 with │
00:00:14 #386 [Verbose] > │ | US0_0(v2) -> (* Computed *) │
00:00:14 #387 [Verbose] > │ v2 │
00:00:14 #388 [Verbose] > │ | US0_1(v3) -> (* NotComputed *) │
00:00:14 #389 [Verbose] > │ let v4 : UH0 = v3 () │
00:00:14 #390 [Verbose] > │ let v13 : UH0 = │
00:00:14 #391 [Verbose] > │ match v4 with │
00:00:14 #392 [Verbose] > │ | UH0_0(v6, v7) -> (* StreamCons *) │
00:00:14 #393 [Verbose] > │ let v8 : US0 = US0_1(v7) │
00:00:14 #394 [Verbose] > │ let v9 : Mut0 = {l0 = v8} : Mut0 │
00:00:14 #395 [Verbose] > │ let v10 : (unit -> UH0) = closure11(v9) │
00:00:14 #396 [Verbose] > │ UH0_0(v6, v10) │
00:00:14 #397 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:14 #398 [Verbose] > │ UH0_1 │
00:00:14 #399 [Verbose] > │ let v14 : US0 = US0_0(v13) │
00:00:14 #400 [Verbose] > │ v0.l0 <- v14 │
00:00:14 #401 [Verbose] > │ v13 │
00:00:14 #402 [Verbose] > │ and method1 (v0 : int32, v1 : UH0) : US1 = │
00:00:14 #403 [Verbose] > │ match v1 with │
00:00:14 #404 [Verbose] > │ | UH0_0(v2, v3) -> (* StreamCons *) │
00:00:14 #405 [Verbose] > │ let v4 : bool = v0 <= 0 │
00:00:14 #406 [Verbose] > │ if v4 then │
00:00:14 #407 [Verbose] > │ US1_1(v2) │
00:00:14 #408 [Verbose] > │ else │
00:00:14 #409 [Verbose] > │ let v6 : int32 = v0 - 1 │
00:00:14 #410 [Verbose] > │ let v7 : UH0 = v3 () │
00:00:14 #411 [Verbose] > │ method1(v6, v7) │
00:00:14 #412 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:14 #413 [Verbose] > │ US1_0 │
00:00:14 #414 [Verbose] > │ and method2 (v0 : bool) : bool = │
00:00:14 #415 [Verbose] > │ v0 │
00:00:14 #416 [Verbose] > │ and method0 () : unit = │
00:00:14 #417 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:14 #418 [Verbose] > │ let v0 : (unit -> UH0) = closure0() │
00:00:14 #419 [Verbose] > │ let v1 : US0 = US0_1(v0) │
00:00:14 #420 [Verbose] > │ let v2 : Mut0 = {l0 = v1} : Mut0 │
00:00:14 #421 [Verbose] > │ let v3 : US0 = v2.l0 │
00:00:14 #422 [Verbose] > │ let v18 : UH0 = │
00:00:14 #423 [Verbose] > │ match v3 with │
00:00:14 #424 [Verbose] > │ | US0_0(v4) -> (* Computed *) │
00:00:14 #425 [Verbose] > │ v4 │
00:00:14 #426 [Verbose] > │ | US0_1(v5) -> (* NotComputed *) │
00:00:14 #427 [Verbose] > │ let v6 : UH0 = v5 () │
00:00:14 #428 [Verbose] > │ let v15 : UH0 = │
00:00:14 #429 [Verbose] > │ match v6 with │
00:00:14 #430 [Verbose] > │ | UH0_0(v8, v9) -> (* StreamCons *) │
00:00:14 #431 [Verbose] > │ let v10 : US0 = US0_1(v9) │
00:00:14 #432 [Verbose] > │ let v11 : Mut0 = {l0 = v10} : Mut0 │
00:00:14 #433 [Verbose] > │ let v12 : (unit -> UH0) = closure11(v11) │
00:00:14 #434 [Verbose] > │ UH0_0(v8, v12) │
00:00:14 #435 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:14 #436 [Verbose] > │ UH0_1 │
00:00:14 #437 [Verbose] > │ let v16 : US0 = US0_0(v15) │
00:00:14 #438 [Verbose] > │ v2.l0 <- v16 │
00:00:14 #439 [Verbose] > │ v15 │
00:00:14 #440 [Verbose] > │ let v19 : int32 = 3 │
00:00:14 #441 [Verbose] > │ let v20 : US1 = method1(v19, v18) │
00:00:14 #442 [Verbose] > │ let v24 : int32 = │
00:00:14 #443 [Verbose] > │ match v20 with │
00:00:14 #444 [Verbose] > │ | US1_0 -> (* None *) │
00:00:14 #445 [Verbose] > │ failwith<int32> "Option does not have a value." │
00:00:14 #446 [Verbose] > │ | US1_1(v21) -> (* Some *) │
00:00:14 #447 [Verbose] > │ v21 │
00:00:14 #448 [Verbose] > │ let v25 : bool = v24 = 3 │
00:00:14 #449 [Verbose] > │ let v27 : bool = │
00:00:14 #450 [Verbose] > │ if v25 then │
00:00:14 #451 [Verbose] > │ true │
00:00:14 #452 [Verbose] > │ else │
00:00:14 #453 [Verbose] > │ method2(v25) │
00:00:14 #454 [Verbose] > │ let v28 : string = $"__expect / actual: %A{v24} / expected: %A{3}" │
00:00:14 #455 [Verbose] > │ let v29 : bool = v27 = false │
00:00:14 #456 [Verbose] > │ if v29 then │
00:00:14 #457 [Verbose] > │ failwith<unit> v28 │
00:00:14 #458 [Verbose] > │ let v30 : US0 = v2.l0 │
00:00:14 #459 [Verbose] > │ let v45 : UH0 = │
00:00:14 #460 [Verbose] > │ match v30 with │
00:00:14 #461 [Verbose] > │ | US0_0(v31) -> (* Computed *) │
00:00:14 #462 [Verbose] > │ v31 │
00:00:14 #463 [Verbose] > │ | US0_1(v32) -> (* NotComputed *) │
00:00:14 #464 [Verbose] > │ let v33 : UH0 = v32 () │
00:00:14 #465 [Verbose] > │ let v42 : UH0 = │
00:00:14 #466 [Verbose] > │ match v33 with │
00:00:14 #467 [Verbose] > │ | UH0_0(v35, v36) -> (* StreamCons *) │
00:00:14 #468 [Verbose] > │ let v37 : US0 = US0_1(v36) │
00:00:14 #469 [Verbose] > │ let v38 : Mut0 = {l0 = v37} : Mut0 │
00:00:14 #470 [Verbose] > │ let v39 : (unit -> UH0) = closure11(v38) │
00:00:14 #471 [Verbose] > │ UH0_0(v35, v39) │
00:00:14 #472 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:14 #473 [Verbose] > │ UH0_1 │
00:00:14 #474 [Verbose] > │ let v43 : US0 = US0_0(v42) │
00:00:14 #475 [Verbose] > │ v2.l0 <- v43 │
00:00:14 #476 [Verbose] > │ v42 │
00:00:14 #477 [Verbose] > │ let v46 : int32 = 5 │
00:00:14 #478 [Verbose] > │ let v47 : US1 = method1(v46, v45) │
00:00:14 #479 [Verbose] > │ let v51 : int32 = │
00:00:14 #480 [Verbose] > │ match v47 with │
00:00:14 #481 [Verbose] > │ | US1_0 -> (* None *) │
00:00:14 #482 [Verbose] > │ failwith<int32> "Option does not have a value." │
00:00:14 #483 [Verbose] > │ | US1_1(v48) -> (* Some *) │
00:00:14 #484 [Verbose] > │ v48 │
00:00:14 #485 [Verbose] > │ let v52 : bool = v51 = 5 │
00:00:14 #486 [Verbose] > │ let v54 : bool = │
00:00:14 #487 [Verbose] > │ if v52 then │
00:00:14 #488 [Verbose] > │ true │
00:00:14 #489 [Verbose] > │ else │
00:00:14 #490 [Verbose] > │ method2(v52) │
00:00:14 #491 [Verbose] > │ let v55 : string = $"__expect / actual: %A{v51} / expected: %A{5}" │
00:00:14 #492 [Verbose] > │ let v56 : bool = v54 = false │
00:00:14 #493 [Verbose] > │ if v56 then │
00:00:14 #494 [Verbose] > │ failwith<unit> v55 │
00:00:14 #495 [Verbose] > │ method0() │
00:00:14 #496 [Verbose] > │ │
00:00:14 #497 [Verbose] > │ print_and_return / x: 0 │
00:00:14 #498 [Verbose] > │ print_and_return / x: 1 │
00:00:14 #499 [Verbose] > │ print_and_return / x: 2 │
00:00:14 #500 [Verbose] > │ print_and_return / x: 3 │
00:00:14 #501 [Verbose] > │ print_and_return / x: 4 │
00:00:14 #502 [Verbose] > │ print_and_return / x: 5 │
00:00:14 #503 [Verbose] > │ │
00:00:14 #504 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #505 [Verbose] >
00:00:14 #506 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #507 [Verbose] > // // test
00:00:14 #508 [Verbose] >
00:00:14 #509 [Verbose] > inl memo_stream = new_infinite_stream_ print_and_return |> memoize
00:00:14 #510 [Verbose] >
00:00:14 #511 [Verbose] > memo_stream ()
00:00:14 #512 [Verbose] > |> item 3i32
00:00:14 #513 [Verbose] > |> _assert_eq 3i32
00:00:14 #514 [Verbose] >
00:00:14 #515 [Verbose] > memo_stream ()
00:00:14 #516 [Verbose] > |> item 5i32
00:00:14 #517 [Verbose] > |> _assert_eq 5i32
00:00:15 #518 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-1731-3103-35b9d728ce85\main.spi
00:00:15 #519 [Verbose] >
00:00:15 #520 [Verbose] > ╭─[ 279.32ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #521 [Verbose] > │ type UH0 = │
00:00:15 #522 [Verbose] > │ | UH0_0 of int32 * (unit -> UH0) │
00:00:15 #523 [Verbose] > │ | UH0_1 │
00:00:15 #524 [Verbose] > │ and [<Struct>] US0 = │
00:00:15 #525 [Verbose] > │ | US0_0 of f0_0 : UH0 │
00:00:15 #526 [Verbose] > │ | US0_1 of f1_0 : (unit -> UH0) │
00:00:15 #527 [Verbose] > │ and Mut0 = {mutable l0 : US0} │
00:00:15 #528 [Verbose] > │ and [<Struct>] US1 = │
00:00:15 #529 [Verbose] > │ | US1_0 │
00:00:15 #530 [Verbose] > │ | US1_1 of f1_0 : int32 │
00:00:15 #531 [Verbose] > │ let rec closure0 (v0 : int32) () : UH0 = │
00:00:15 #532 [Verbose] > │ let v1 : int32 = v0 + 1 │
00:00:15 #533 [Verbose] > │ method1(v1) │
00:00:15 #534 [Verbose] > │ and method1 (v0 : int32) : UH0 = │
00:00:15 #535 [Verbose] > │ printfn $"print_and_return / x: {v0}" │
00:00:15 #536 [Verbose] > │ let v1 : (unit -> UH0) = closure0(v0) │
00:00:15 #537 [Verbose] > │ UH0_0(v0, v1) │
00:00:15 #538 [Verbose] > │ and closure1 (v0 : UH0) () : UH0 = │
00:00:15 #539 [Verbose] > │ v0 │
00:00:15 #540 [Verbose] > │ and closure2 (v0 : UH0, v1 : Mut0) () : UH0 = │
00:00:15 #541 [Verbose] > │ let v2 : US0 = v1.l0 │
00:00:15 #542 [Verbose] > │ match v2 with │
00:00:15 #543 [Verbose] > │ | US0_0(v3) -> (* Computed *) │
00:00:15 #544 [Verbose] > │ v3 │
00:00:15 #545 [Verbose] > │ | US0_1(v4) -> (* NotComputed *) │
00:00:15 #546 [Verbose] > │ let v5 : UH0 = v4 () │
00:00:15 #547 [Verbose] > │ let v12 : UH0 = │
00:00:15 #548 [Verbose] > │ match v5 with │
00:00:15 #549 [Verbose] > │ | UH0_0(v7, v8) -> (* StreamCons *) │
00:00:15 #550 [Verbose] > │ let v9 : (unit -> UH0) = method2(v0, v8) │
00:00:15 #551 [Verbose] > │ UH0_0(v7, v9) │
00:00:15 #552 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:15 #553 [Verbose] > │ UH0_1 │
00:00:15 #554 [Verbose] > │ let v13 : US0 = US0_0(v12) │
00:00:15 #555 [Verbose] > │ v1.l0 <- v13 │
00:00:15 #556 [Verbose] > │ v12 │
00:00:15 #557 [Verbose] > │ and method2 (v0 : UH0, v1 : (unit -> UH0)) : (unit -> UH0) = │
00:00:15 #558 [Verbose] > │ let v2 : US0 = US0_1(v1) │
00:00:15 #559 [Verbose] > │ let v3 : Mut0 = {l0 = v2} : Mut0 │
00:00:15 #560 [Verbose] > │ closure2(v0, v3) │
00:00:15 #561 [Verbose] > │ and method3 (v0 : int32, v1 : UH0) : US1 = │
00:00:15 #562 [Verbose] > │ match v1 with │
00:00:15 #563 [Verbose] > │ | UH0_0(v2, v3) -> (* StreamCons *) │
00:00:15 #564 [Verbose] > │ let v4 : bool = v0 <= 0 │
00:00:15 #565 [Verbose] > │ if v4 then │
00:00:15 #566 [Verbose] > │ US1_1(v2) │
00:00:15 #567 [Verbose] > │ else │
00:00:15 #568 [Verbose] > │ let v6 : int32 = v0 - 1 │
00:00:15 #569 [Verbose] > │ let v7 : UH0 = v3 () │
00:00:15 #570 [Verbose] > │ method3(v6, v7) │
00:00:15 #571 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:15 #572 [Verbose] > │ US1_0 │
00:00:15 #573 [Verbose] > │ and method4 (v0 : bool) : bool = │
00:00:15 #574 [Verbose] > │ v0 │
00:00:15 #575 [Verbose] > │ and method0 () : unit = │
00:00:15 #576 [Verbose] > │ let v0 : int32 = 0 │
00:00:15 #577 [Verbose] > │ let v1 : UH0 = method1(v0) │
00:00:15 #578 [Verbose] > │ let v2 : (unit -> UH0) = closure1(v1) │
00:00:15 #579 [Verbose] > │ let v3 : (unit -> UH0) = method2(v1, v2) │
00:00:15 #580 [Verbose] > │ let v4 : UH0 = v3 () │
00:00:15 #581 [Verbose] > │ let v5 : int32 = 3 │
00:00:15 #582 [Verbose] > │ let v6 : US1 = method3(v5, v4) │
00:00:15 #583 [Verbose] > │ let v10 : int32 = │
00:00:15 #584 [Verbose] > │ match v6 with │
00:00:15 #585 [Verbose] > │ | US1_0 -> (* None *) │
00:00:15 #586 [Verbose] > │ failwith<int32> "Option does not have a value." │
00:00:15 #587 [Verbose] > │ | US1_1(v7) -> (* Some *) │
00:00:15 #588 [Verbose] > │ v7 │
00:00:15 #589 [Verbose] > │ let v11 : bool = v10 = 3 │
00:00:15 #590 [Verbose] > │ let v13 : bool = │
00:00:15 #591 [Verbose] > │ if v11 then │
00:00:15 #592 [Verbose] > │ true │
00:00:15 #593 [Verbose] > │ else │
00:00:15 #594 [Verbose] > │ method4(v11) │
00:00:15 #595 [Verbose] > │ let v14 : string = $"__expect / actual: %A{v10} / expected: %A{3}" │
00:00:15 #596 [Verbose] > │ let v15 : bool = v13 = false │
00:00:15 #597 [Verbose] > │ if v15 then │
00:00:15 #598 [Verbose] > │ failwith<unit> v14 │
00:00:15 #599 [Verbose] > │ let v16 : UH0 = v3 () │
00:00:15 #600 [Verbose] > │ let v17 : int32 = 5 │
00:00:15 #601 [Verbose] > │ let v18 : US1 = method3(v17, v16) │
00:00:15 #602 [Verbose] > │ let v22 : int32 = │
00:00:15 #603 [Verbose] > │ match v18 with │
00:00:15 #604 [Verbose] > │ | US1_0 -> (* None *) │
00:00:15 #605 [Verbose] > │ failwith<int32> "Option does not have a value." │
00:00:15 #606 [Verbose] > │ | US1_1(v19) -> (* Some *) │
00:00:15 #607 [Verbose] > │ v19 │
00:00:15 #608 [Verbose] > │ let v23 : bool = v22 = 5 │
00:00:15 #609 [Verbose] > │ let v25 : bool = │
00:00:15 #610 [Verbose] > │ if v23 then │
00:00:15 #611 [Verbose] > │ true │
00:00:15 #612 [Verbose] > │ else │
00:00:15 #613 [Verbose] > │ method4(v23) │
00:00:15 #614 [Verbose] > │ let v26 : string = $"__expect / actual: %A{v22} / expected: %A{5}" │
00:00:15 #615 [Verbose] > │ let v27 : bool = v25 = false │
00:00:15 #616 [Verbose] > │ if v27 then │
00:00:15 #617 [Verbose] > │ failwith<unit> v26 │
00:00:15 #618 [Verbose] > │ method0() │
00:00:15 #619 [Verbose] > │ │
00:00:15 #620 [Verbose] > │ print_and_return / x: 0 │
00:00:15 #621 [Verbose] > │ print_and_return / x: 1 │
00:00:15 #622 [Verbose] > │ print_and_return / x: 2 │
00:00:15 #623 [Verbose] > │ print_and_return / x: 3 │
00:00:15 #624 [Verbose] > │ print_and_return / x: 4 │
00:00:15 #625 [Verbose] > │ print_and_return / x: 5 │
00:00:15 #626 [Verbose] > │ │
00:00:15 #627 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #628 [Verbose] >
00:00:15 #629 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #630 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #631 [Verbose] > │ ## unfold │
00:00:15 #632 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #633 [Verbose] >
00:00:15 #634 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #635 [Verbose] > inl unfold f x0 =
00:00:15 #636 [Verbose] > inl rec body x =
00:00:15 #637 [Verbose] > match f x with
00:00:15 #638 [Verbose] > | Some (x', y) => StreamCons (x', fun () => loop y)
00:00:15 #639 [Verbose] > | None => StreamNil
00:00:15 #640 [Verbose] > and inl loop x = join_body_unit body x0 x
00:00:15 #641 [Verbose] > loop x0
00:00:15 #642 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-1763-6321-6e6134ade000\main.spi
00:00:15 #643 [Verbose] >
00:00:15 #644 [Verbose] > ╭─[ 218.39ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #645 [Verbose] > │ () │
00:00:15 #646 [Verbose] > │ │
00:00:15 #647 [Verbose] > │ │
00:00:15 #648 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #649 [Verbose] >
00:00:15 #650 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #651 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #652 [Verbose] > │ ## iterate │
00:00:15 #653 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #654 [Verbose] >
00:00:15 #655 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #656 [Verbose] > inl iterate f =
00:00:15 #657 [Verbose] > unfold (fun x => Some (x, f x))
00:00:15 #658 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-1785-8563-8236aff3c9bb\main.spi
00:00:15 #659 [Verbose] >
00:00:15 #660 [Verbose] > ╭─[ 244.66ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #661 [Verbose] > │ () │
00:00:15 #662 [Verbose] > │ │
00:00:15 #663 [Verbose] > │ │
00:00:15 #664 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #665 [Verbose] >
00:00:15 #666 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #667 [Verbose] > // // test
00:00:15 #668 [Verbose] >
00:00:15 #669 [Verbose] > iterate ((*) 2) 1i32
00:00:15 #670 [Verbose] > |> item 10i32
00:00:15 #671 [Verbose] > |> _assert_eq 1024
00:00:15 #672 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-1810-1042-1f878979e31d\main.spi
00:00:15 #673 [Verbose] >
00:00:15 #674 [Verbose] > ╭─[ 216.24ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #675 [Verbose] > │ let rec method0 () : unit = │
00:00:15 #676 [Verbose] > │ let v0 : string = $"__expect / actual: %A{1024} / expected: %A{1024}" │
00:00:15 #677 [Verbose] > │ () │
00:00:15 #678 [Verbose] > │ method0() │
00:00:15 #679 [Verbose] > │ │
00:00:15 #680 [Verbose] > │ │
00:00:15 #681 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #682 [Verbose] >
00:00:15 #683 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #684 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #685 [Verbose] > │ ## take_while │
00:00:15 #686 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #687 [Verbose] >
00:00:15 #688 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #689 [Verbose] > inl take_while cond s =
00:00:16 #690 [Verbose] > inl rec body i = function
00:00:16 #691 [Verbose] > | StreamCons (st, fn) when cond st i => StreamCons (st, fun () => loop
00:00:16 #692 [Verbose] > (i + 1) (fn ()))
00:00:16 #693 [Verbose] > | _ => StreamNil
00:00:16 #694 [Verbose] > and inl loop i = join_body body i
00:00:16 #695 [Verbose] > loop 0 s
00:00:16 #696 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-1832-3250-342b18fc7f4e\main.spi
00:00:16 #697 [Verbose] >
00:00:16 #698 [Verbose] > ╭─[ 232.00ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #699 [Verbose] > │ () │
00:00:16 #700 [Verbose] > │ │
00:00:16 #701 [Verbose] > │ │
00:00:16 #702 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #703 [Verbose] >
00:00:16 #704 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #705 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #706 [Verbose] > │ ## sum │
00:00:16 #707 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #708 [Verbose] >
00:00:16 #709 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #710 [Verbose] > inl sum seq =
00:00:16 #711 [Verbose] > seq |> fold (+) 0
00:00:16 #712 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-1856-5614-582ebaae1634\main.spi
00:00:16 #713 [Verbose] >
00:00:16 #714 [Verbose] > ╭─[ 209.01ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #715 [Verbose] > │ () │
00:00:16 #716 [Verbose] > │ │
00:00:16 #717 [Verbose] > │ │
00:00:16 #718 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #719 [Verbose] >
00:00:16 #720 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #721 [Verbose] > // // test
00:00:16 #722 [Verbose] >
00:00:16 #723 [Verbose] > listm.init 10i32 id
00:00:16 #724 [Verbose] > |> from_list
00:00:16 #725 [Verbose] > |> sum
00:00:16 #726 [Verbose] > |> _assert_eq 45
00:00:16 #727 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-1877-7724-7b075ec952f1\main.spi
00:00:16 #728 [Verbose] >
00:00:16 #729 [Verbose] > ╭─[ 237.26ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #730 [Verbose] > │ let rec method0 () : unit = │
00:00:16 #731 [Verbose] > │ let v0 : string = $"__expect / actual: %A{45} / expected: %A{45}" │
00:00:16 #732 [Verbose] > │ () │
00:00:16 #733 [Verbose] > │ method0() │
00:00:16 #734 [Verbose] > │ │
00:00:16 #735 [Verbose] > │ │
00:00:16 #736 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #737 [Verbose] >
00:00:16 #738 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #739 [Verbose] > // // test
00:00:16 #740 [Verbose] >
00:00:16 #741 [Verbose] > new_finite_stream print_and_return 10i32
00:00:16 #742 [Verbose] > |> take_while (fun n (_ : i32) => n < 5)
00:00:16 #743 [Verbose] > |> sum
00:00:16 #744 [Verbose] > |> _assert_eq 10
00:00:16 #745 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-1901-0124-08663d845b98\main.spi
00:00:16 #746 [Verbose] >
00:00:16 #747 [Verbose] > ╭─[ 258.16ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #748 [Verbose] > │ let rec method0 () : unit = │
00:00:16 #749 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:16 #750 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:16 #751 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:16 #752 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:16 #753 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:16 #754 [Verbose] > │ printfn $"print_and_return / x: {5}" │
00:00:16 #755 [Verbose] > │ let v0 : string = $"__expect / actual: %A{10} / expected: %A{10}" │
00:00:16 #756 [Verbose] > │ () │
00:00:16 #757 [Verbose] > │ method0() │
00:00:16 #758 [Verbose] > │ │
00:00:16 #759 [Verbose] > │ print_and_return / x: 0 │
00:00:16 #760 [Verbose] > │ print_and_return / x: 1 │
00:00:16 #761 [Verbose] > │ print_and_return / x: 2 │
00:00:16 #762 [Verbose] > │ print_and_return / x: 3 │
00:00:16 #763 [Verbose] > │ print_and_return / x: 4 │
00:00:16 #764 [Verbose] > │ print_and_return / x: 5 │
00:00:16 #765 [Verbose] > │ │
00:00:16 #766 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #767 [Verbose] >
00:00:16 #768 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #769 [Verbose] > // // test
00:00:16 #770 [Verbose] >
00:00:16 #771 [Verbose] > new_infinite_stream print_and_return
00:00:16 #772 [Verbose] > |> take_while (fun n (_ : i32) => n < 5i32)
00:00:16 #773 [Verbose] > |> sum
00:00:16 #774 [Verbose] > |> _assert_eq 10
00:00:17 #775 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-1928-2838-25428fb3290d\main.spi
00:00:17 #776 [Verbose] >
00:00:17 #777 [Verbose] > ╭─[ 240.41ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #778 [Verbose] > │ let rec method0 () : unit = │
00:00:17 #779 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:17 #780 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:17 #781 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:17 #782 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:17 #783 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:17 #784 [Verbose] > │ printfn $"print_and_return / x: {5}" │
00:00:17 #785 [Verbose] > │ let v0 : string = $"__expect / actual: %A{10} / expected: %A{10}" │
00:00:17 #786 [Verbose] > │ () │
00:00:17 #787 [Verbose] > │ method0() │
00:00:17 #788 [Verbose] > │ │
00:00:17 #789 [Verbose] > │ print_and_return / x: 0 │
00:00:17 #790 [Verbose] > │ print_and_return / x: 1 │
00:00:17 #791 [Verbose] > │ print_and_return / x: 2 │
00:00:17 #792 [Verbose] > │ print_and_return / x: 3 │
00:00:17 #793 [Verbose] > │ print_and_return / x: 4 │
00:00:17 #794 [Verbose] > │ print_and_return / x: 5 │
00:00:17 #795 [Verbose] > │ │
00:00:17 #796 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #797 [Verbose] >
00:00:17 #798 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #799 [Verbose] > // // test
00:00:17 #800 [Verbose] >
00:00:17 #801 [Verbose] > iterate ((*) 6) 1i32
00:00:17 #802 [Verbose] > |> take_while (fun _ i => i <= 7i32)
00:00:17 #803 [Verbose] > |> to_list
00:00:17 #804 [Verbose] > |> _assert_eq [[ 1i32; 6; 36; 216; 1296; 7776; 46656; 279936 ]]
00:00:17 #805 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-1953-5346-5fb15d1ce051\main.spi
00:00:17 #806 [Verbose] >
00:00:17 #807 [Verbose] > ╭─[ 522.25ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #808 [Verbose] > │ type UH0 = │
00:00:17 #809 [Verbose] > │ | UH0_0 of int32 * UH0 │
00:00:17 #810 [Verbose] > │ | UH0_1 │
00:00:17 #811 [Verbose] > │ let rec method0 () : unit = │
00:00:17 #812 [Verbose] > │ let v63 : UH0 = UH0_1 │
00:00:17 #813 [Verbose] > │ let v64 : UH0 = UH0_0(279936, v63) │
00:00:17 #814 [Verbose] > │ let v65 : UH0 = UH0_0(46656, v64) │
00:00:17 #815 [Verbose] > │ let v66 : UH0 = UH0_0(7776, v65) │
00:00:17 #816 [Verbose] > │ let v67 : UH0 = UH0_0(1296, v66) │
00:00:17 #817 [Verbose] > │ let v68 : UH0 = UH0_0(216, v67) │
00:00:17 #818 [Verbose] > │ let v69 : UH0 = UH0_0(36, v68) │
00:00:17 #819 [Verbose] > │ let v70 : UH0 = UH0_0(6, v69) │
00:00:17 #820 [Verbose] > │ let v71 : UH0 = UH0_0(1, v70) │
00:00:17 #821 [Verbose] > │ let v72 : UH0 = UH0_1 │
00:00:17 #822 [Verbose] > │ let v73 : UH0 = UH0_0(279936, v72) │
00:00:17 #823 [Verbose] > │ let v74 : UH0 = UH0_0(46656, v73) │
00:00:17 #824 [Verbose] > │ let v75 : UH0 = UH0_0(7776, v74) │
00:00:17 #825 [Verbose] > │ let v76 : UH0 = UH0_0(1296, v75) │
00:00:17 #826 [Verbose] > │ let v77 : UH0 = UH0_0(216, v76) │
00:00:17 #827 [Verbose] > │ let v78 : UH0 = UH0_0(36, v77) │
00:00:17 #828 [Verbose] > │ let v79 : UH0 = UH0_0(6, v78) │
00:00:17 #829 [Verbose] > │ let v80 : UH0 = UH0_0(1, v79) │
00:00:17 #830 [Verbose] > │ let v81 : string = $"__expect / actual: %A{v71} / expected: %A{v80}" │
00:00:17 #831 [Verbose] > │ () │
00:00:17 #832 [Verbose] > │ method0() │
00:00:17 #833 [Verbose] > │ │
00:00:17 #834 [Verbose] > │ │
00:00:17 #835 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #836 [Verbose] >
00:00:17 #837 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 #838 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 #839 [Verbose] > │ ## indexed │
00:00:17 #840 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #841 [Verbose] >
00:00:17 #842 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #843 [Verbose] > inl indexed s =
00:00:17 #844 [Verbose] > ((StreamNil, 0), s)
00:00:17 #845 [Verbose] > ||> fold fun (acc, i) x =>
00:00:17 #846 [Verbose] > StreamCons ((i, x), fun () => acc), i + 1
00:00:17 #847 [Verbose] > |> fst
00:00:17 #848 [Verbose] > |> rev
00:00:17 #849 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-2008-0812-0dfc2f8335af\main.spi
00:00:17 #850 [Verbose] >
00:00:17 #851 [Verbose] > ╭─[ 207.08ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #852 [Verbose] > │ () │
00:00:17 #853 [Verbose] > │ │
00:00:17 #854 [Verbose] > │ │
00:00:17 #855 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #856 [Verbose] >
00:00:17 #857 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #858 [Verbose] > // // test
00:00:17 #859 [Verbose] >
00:00:17 #860 [Verbose] > listm.init 10i32 ((*) 2)
00:00:17 #861 [Verbose] > |> from_list
00:00:17 #862 [Verbose] > |> indexed
00:00:17 #863 [Verbose] > |> item 5i32
00:00:17 #864 [Verbose] > |> _assert_eq (5i32, 10i32)
00:00:18 #865 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-2028-2880-21a75f4f12ec\main.spi
00:00:18 #866 [Verbose] >
00:00:18 #867 [Verbose] > ╭─[ 193.25ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #868 [Verbose] > │ let rec method0 () : unit = │
00:00:18 #869 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (5, 10)} / expected: │
00:00:18 #870 [Verbose] > │ %A{struct (5, 10)}" │
00:00:18 #871 [Verbose] > │ () │
00:00:18 #872 [Verbose] > │ method0() │
00:00:18 #873 [Verbose] > │ │
00:00:18 #874 [Verbose] > │ │
00:00:18 #875 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #876 [Verbose] >
00:00:18 #877 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 #878 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 #879 [Verbose] > │ ## map │
00:00:18 #880 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #881 [Verbose] >
00:00:18 #882 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #883 [Verbose] > inl map fn s =
00:00:18 #884 [Verbose] > (s, StreamNil)
00:00:18 #885 [Verbose] > ||> fold_back fun x acc =>
00:00:18 #886 [Verbose] > StreamCons (fn x, fun () => acc)
00:00:18 #887 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-2049-4978-4b0eca8a71ab\main.spi
00:00:18 #888 [Verbose] >
00:00:18 #889 [Verbose] > ╭─[ 205.66ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #890 [Verbose] > │ () │
00:00:18 #891 [Verbose] > │ │
00:00:18 #892 [Verbose] > │ │
00:00:18 #893 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #894 [Verbose] >
00:00:18 #895 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #896 [Verbose] > // // test
00:00:18 #897 [Verbose] >
00:00:18 #898 [Verbose] > listm.init 10i32 id
00:00:18 #899 [Verbose] > |> from_list
00:00:18 #900 [Verbose] > |> map ((*) 2)
00:00:18 #901 [Verbose] > |> item 5i32
00:00:18 #902 [Verbose] > |> _assert_eq 10i32
00:00:18 #903 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-2069-6977-6c7a7e3385fb\main.spi
00:00:18 #904 [Verbose] >
00:00:18 #905 [Verbose] > ╭─[ 185.98ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #906 [Verbose] > │ let rec method0 () : unit = │
00:00:18 #907 [Verbose] > │ let v0 : string = $"__expect / actual: %A{10} / expected: %A{10}" │
00:00:18 #908 [Verbose] > │ () │
00:00:18 #909 [Verbose] > │ method0() │
00:00:18 #910 [Verbose] > │ │
00:00:18 #911 [Verbose] > │ │
00:00:18 #912 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #913 [Verbose] >
00:00:18 #914 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 #915 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 #916 [Verbose] > │ ## zip_with │
00:00:18 #917 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #918 [Verbose] >
00:00:18 #919 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #920 [Verbose] > inl zip_with fn s1 s2 =
00:00:18 #921 [Verbose] > inl rec loop s1 s2 =
00:00:18 #922 [Verbose] > match s1, s2 with
00:00:18 #923 [Verbose] > | StreamCons (st1, fn1), StreamCons (st2, fn2) =>
00:00:18 #924 [Verbose] > StreamCons (fn st1 st2, fun () => loop (fn1 ()) (fn2 ()))
00:00:18 #925 [Verbose] > | StreamNil, _ | _, StreamNil => StreamNil
00:00:18 #926 [Verbose] > loop s1 s2
00:00:18 #927 [Verbose] >
00:00:18 #928 [Verbose] > inl zip_with_ fn s1 s2 =
00:00:18 #929 [Verbose] > let rec loop s1 s2 =
00:00:18 #930 [Verbose] > match s1, s2 with
00:00:18 #931 [Verbose] > | StreamCons (st1, fn1), StreamCons (st2, fn2) =>
00:00:18 #932 [Verbose] > StreamCons (fn st1 st2, fun () => loop (fn1 ()) (fn2 ()))
00:00:18 #933 [Verbose] > | StreamNil, _ | _, StreamNil => StreamNil
00:00:18 #934 [Verbose] > loop s1 s2
00:00:18 #935 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-2088-8881-8335bc145a5b\main.spi
00:00:18 #936 [Verbose] >
00:00:18 #937 [Verbose] > ╭─[ 210.73ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #938 [Verbose] > │ () │
00:00:18 #939 [Verbose] > │ │
00:00:18 #940 [Verbose] > │ │
00:00:18 #941 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #942 [Verbose] >
00:00:18 #943 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #944 [Verbose] > // // test
00:00:18 #945 [Verbose] >
00:00:18 #946 [Verbose] > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:00:18 #947 [Verbose] > ||> zip_with (+)
00:00:18 #948 [Verbose] > |> item 2i32
00:00:18 #949 [Verbose] > |> _assert_eq 6
00:00:18 #950 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-2110-1009-195ed317a367\main.spi
00:00:18 #951 [Verbose] >
00:00:18 #952 [Verbose] > ╭─[ 176.75ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #953 [Verbose] > │ let rec method0 () : unit = │
00:00:18 #954 [Verbose] > │ let v0 : string = $"__expect / actual: %A{6} / expected: %A{6}" │
00:00:18 #955 [Verbose] > │ () │
00:00:18 #956 [Verbose] > │ method0() │
00:00:18 #957 [Verbose] > │ │
00:00:18 #958 [Verbose] > │ │
00:00:18 #959 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #960 [Verbose] >
00:00:18 #961 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 #962 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 #963 [Verbose] > │ ## zip │
00:00:18 #964 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #965 [Verbose] >
00:00:18 #966 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #967 [Verbose] > inl zip s1 s2 =
00:00:18 #968 [Verbose] > zip_with pair s1 s2
00:00:18 #969 [Verbose] >
00:00:18 #970 [Verbose] > inl zip_ s1 s2 =
00:00:18 #971 [Verbose] > zip_with_ pair s1 s2
00:00:19 #972 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-2128-2851-2bc8e3e27f5f\main.spi
00:00:19 #973 [Verbose] >
00:00:19 #974 [Verbose] > ╭─[ 205.13ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #975 [Verbose] > │ () │
00:00:19 #976 [Verbose] > │ │
00:00:19 #977 [Verbose] > │ │
00:00:19 #978 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #979 [Verbose] >
00:00:19 #980 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #981 [Verbose] > // // test
00:00:19 #982 [Verbose] >
00:00:19 #983 [Verbose] > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:00:19 #984 [Verbose] > ||> zip
00:00:19 #985 [Verbose] > |> item 5i32
00:00:19 #986 [Verbose] > |> _assert_eq (5, 10)
00:00:19 #987 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-2149-4911-4aa11c998c6f\main.spi
00:00:19 #988 [Verbose] >
00:00:19 #989 [Verbose] > ╭─[ 203.00ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #990 [Verbose] > │ let rec method0 () : unit = │
00:00:19 #991 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (5, 10)} / expected: │
00:00:19 #992 [Verbose] > │ %A{struct (5, 10)}" │
00:00:19 #993 [Verbose] > │ () │
00:00:19 #994 [Verbose] > │ method0() │
00:00:19 #995 [Verbose] > │ │
00:00:19 #996 [Verbose] > │ │
00:00:19 #997 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #998 [Verbose] >
00:00:19 #999 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 #1000 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 #1001 [Verbose] > │ ## unzip │
00:00:19 #1002 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1003 [Verbose] >
00:00:19 #1004 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #1005 [Verbose] > inl unzip s =
00:00:19 #1006 [Verbose] > inl rec body s =
00:00:19 #1007 [Verbose] > match s with
00:00:19 #1008 [Verbose] > | StreamCons ((x, y), fn) =>
00:00:19 #1009 [Verbose] > inl xs, ys = loop (fn ())
00:00:19 #1010 [Verbose] > StreamCons (x, fun () => xs), StreamCons (y, fun () => ys)
00:00:19 #1011 [Verbose] > | StreamNil => pair StreamNil StreamNil
00:00:19 #1012 [Verbose] > and inl loop x =
00:00:19 #1013 [Verbose] > if var_is x |> not
00:00:19 #1014 [Verbose] > then body x
00:00:19 #1015 [Verbose] > else
00:00:19 #1016 [Verbose] > inl x = dyn x
00:00:19 #1017 [Verbose] > join body x
00:00:19 #1018 [Verbose] > loop s
00:00:19 #1019 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-2169-6993-66ffd559c3c8\main.spi
00:00:19 #1020 [Verbose] >
00:00:19 #1021 [Verbose] > ╭─[ 198.57ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #1022 [Verbose] > │ () │
00:00:19 #1023 [Verbose] > │ │
00:00:19 #1024 [Verbose] > │ │
00:00:19 #1025 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1026 [Verbose] >
00:00:19 #1027 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #1028 [Verbose] > // // test
00:00:19 #1029 [Verbose] >
00:00:19 #1030 [Verbose] > listm.init 10i32 id
00:00:19 #1031 [Verbose] > |> listm.map (fun x => x, x)
00:00:19 #1032 [Verbose] > |> from_list
00:00:19 #1033 [Verbose] > |> unzip
00:00:19 #1034 [Verbose] > |> fun x, y =>
00:00:19 #1035 [Verbose] > x |> sum
00:00:19 #1036 [Verbose] > |> _assert_eq 45
00:00:19 #1037 [Verbose] >
00:00:19 #1038 [Verbose] > y |> sum
00:00:19 #1039 [Verbose] > |> _assert_eq 45
00:00:19 #1040 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-2190-9002-98ce054ac67a\main.spi
00:00:19 #1041 [Verbose] >
00:00:19 #1042 [Verbose] > ╭─[ 218.00ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #1043 [Verbose] > │ let rec method0 () : unit = │
00:00:19 #1044 [Verbose] > │ let v0 : string = $"__expect / actual: %A{45} / expected: %A{45}" │
00:00:19 #1045 [Verbose] > │ let v1 : string = $"__expect / actual: %A{45} / expected: %A{45}" │
00:00:19 #1046 [Verbose] > │ () │
00:00:19 #1047 [Verbose] > │ method0() │
00:00:19 #1048 [Verbose] > │ │
00:00:19 #1049 [Verbose] > │ │
00:00:19 #1050 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #1051 [Verbose] > [NbConvertApp] Converting notebook stream.dib.ipynb to html
00:00:21 #1052 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:21 #1053 [Verbose] > validate(nb)
00:00:22 #1054 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:22 #1055 [Verbose] > return _pygments_highlight(
00:00:22 #1056 [Verbose] > [NbConvertApp] Writing 358688 bytes to stream.dib.html
00:00:23 #1057 [Debug] executeAsync / exitCode: 0 / output.Length: 60521
00:00:23 #1058 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\lib\spiral
00:00:00 #4 [Verbose] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #6 [Debug] runWithTimeoutAsync / timeout: 500
00:00:00 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805
00:00:01 #11 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 seq.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:03 #12 [Verbose] >
00:00:03 #13 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 #14 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:03 #15 [Verbose] > │ # seq │
00:00:03 #16 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:03 #17 [Verbose] >
00:00:03 #18 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:03 #19 [Verbose] > // // test
00:00:03 #20 [Verbose] >
00:00:03 #21 [Verbose] > open testing
00:00:07 #22 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-3280-8086-81fa4b1e3a38\main.spi
00:00:09 #23 [Verbose] >
00:00:09 #24 [Verbose] > ╭─[ 5.83s - stdout ]───────────────────────────────────────────────────────────╮
00:00:09 #25 [Verbose] > │ () │
00:00:09 #26 [Verbose] > │ │
00:00:09 #27 [Verbose] > │ │
00:00:09 #28 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #29 [Verbose] >
00:00:09 #30 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:09 #31 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:09 #32 [Verbose] > │ ## seq │
00:00:09 #33 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:09 #34 [Verbose] >
00:00:09 #35 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:09 #36 [Verbose] > type seq dim el = dim -> option el
00:00:09 #37 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-3618-1892-1fe661b720fb\main.spi
00:00:10 #38 [Verbose] >
00:00:10 #39 [Verbose] > ╭─[ 297.65ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #40 [Verbose] > │ () │
00:00:10 #41 [Verbose] > │ │
00:00:10 #42 [Verbose] > │ │
00:00:10 #43 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #44 [Verbose] >
00:00:10 #45 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #46 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #47 [Verbose] > │ ## try_item │
00:00:10 #48 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #49 [Verbose] >
00:00:10 #50 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #51 [Verbose] > inl try_item n s =
00:00:10 #52 [Verbose] > n |> s
00:00:10 #53 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-3649-4940-45a25c9bf1d4\main.spi
00:00:10 #54 [Verbose] >
00:00:10 #55 [Verbose] > ╭─[ 321.22ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #56 [Verbose] > │ () │
00:00:10 #57 [Verbose] > │ │
00:00:10 #58 [Verbose] > │ │
00:00:10 #59 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #60 [Verbose] >
00:00:10 #61 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #62 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #63 [Verbose] > │ ## from_list │
00:00:10 #64 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #65 [Verbose] >
00:00:10 #66 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #67 [Verbose] > inl from_list list =
00:00:10 #68 [Verbose] > fun n =>
00:00:10 #69 [Verbose] > list
00:00:10 #70 [Verbose] > |> listm'.try_item n
00:00:10 #71 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-3681-8159-8f381f04a064\main.spi
00:00:10 #72 [Verbose] >
00:00:10 #73 [Verbose] > ╭─[ 210.76ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #74 [Verbose] > │ () │
00:00:10 #75 [Verbose] > │ │
00:00:10 #76 [Verbose] > │ │
00:00:10 #77 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #78 [Verbose] >
00:00:10 #79 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #80 [Verbose] > // // test
00:00:10 #81 [Verbose] >
00:00:10 #82 [Verbose] > listm.init 10i32 print_and_return
00:00:10 #83 [Verbose] > |> from_list
00:00:10 #84 [Verbose] > |> try_item 5i32
00:00:10 #85 [Verbose] > |> _assert_eq (Some 5i32)
00:00:10 #86 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-3702-0294-0a97d316e7bf\main.spi
00:00:11 #87 [Verbose] >
00:00:11 #88 [Verbose] > ╭─[ 1.35s - stdout ]───────────────────────────────────────────────────────────╮
00:00:11 #89 [Verbose] > │ type [<Struct>] US0 = │
00:00:11 #90 [Verbose] > │ | US0_0 │
00:00:11 #91 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:11 #92 [Verbose] > │ let rec method0 () : unit = │
00:00:11 #93 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:11 #94 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:11 #95 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:11 #96 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:11 #97 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:11 #98 [Verbose] > │ printfn $"print_and_return / x: {5}" │
00:00:11 #99 [Verbose] > │ printfn $"print_and_return / x: {6}" │
00:00:11 #100 [Verbose] > │ printfn $"print_and_return / x: {7}" │
00:00:11 #101 [Verbose] > │ printfn $"print_and_return / x: {8}" │
00:00:11 #102 [Verbose] > │ printfn $"print_and_return / x: {9}" │
00:00:11 #103 [Verbose] > │ let v3 : US0 = US0_1(5) │
00:00:11 #104 [Verbose] > │ let v4 : US0 = US0_1(5) │
00:00:11 #105 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:11 #106 [Verbose] > │ () │
00:00:11 #107 [Verbose] > │ method0() │
00:00:11 #108 [Verbose] > │ │
00:00:11 #109 [Verbose] > │ print_and_return / x: 0 │
00:00:11 #110 [Verbose] > │ print_and_return / x: 1 │
00:00:11 #111 [Verbose] > │ print_and_return / x: 2 │
00:00:11 #112 [Verbose] > │ print_and_return / x: 3 │
00:00:11 #113 [Verbose] > │ print_and_return / x: 4 │
00:00:11 #114 [Verbose] > │ print_and_return / x: 5 │
00:00:11 #115 [Verbose] > │ print_and_return / x: 6 │
00:00:11 #116 [Verbose] > │ print_and_return / x: 7 │
00:00:11 #117 [Verbose] > │ print_and_return / x: 8 │
00:00:11 #118 [Verbose] > │ print_and_return / x: 9 │
00:00:11 #119 [Verbose] > │ │
00:00:11 #120 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #121 [Verbose] >
00:00:11 #122 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #123 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #124 [Verbose] > │ ## map │
00:00:11 #125 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #126 [Verbose] >
00:00:11 #127 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #128 [Verbose] > inl map fn s =
00:00:11 #129 [Verbose] > fun n =>
00:00:11 #130 [Verbose] > n
00:00:11 #131 [Verbose] > |> s
00:00:11 #132 [Verbose] > |> optionm.map fn
00:00:12 #133 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-3839-3931-33dbbe14b958\main.spi
00:00:12 #134 [Verbose] >
00:00:12 #135 [Verbose] > ╭─[ 297.51ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #136 [Verbose] > │ () │
00:00:12 #137 [Verbose] > │ │
00:00:12 #138 [Verbose] > │ │
00:00:12 #139 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #140 [Verbose] >
00:00:12 #141 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #142 [Verbose] > // // test
00:00:12 #143 [Verbose] >
00:00:12 #144 [Verbose] > listm.init 10i32 id
00:00:12 #145 [Verbose] > |> from_list
00:00:12 #146 [Verbose] > |> map ((*) 2)
00:00:12 #147 [Verbose] > |> try_item 5i32
00:00:12 #148 [Verbose] > |> _assert_eq (Some 10i32)
00:00:12 #149 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-3869-6953-648598828fad\main.spi
00:00:12 #150 [Verbose] >
00:00:12 #151 [Verbose] > ╭─[ 319.85ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #152 [Verbose] > │ type [<Struct>] US0 = │
00:00:12 #153 [Verbose] > │ | US0_0 │
00:00:12 #154 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:12 #155 [Verbose] > │ let rec method0 () : unit = │
00:00:12 #156 [Verbose] > │ let v3 : US0 = US0_1(10) │
00:00:12 #157 [Verbose] > │ let v4 : US0 = US0_1(10) │
00:00:12 #158 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:12 #159 [Verbose] > │ () │
00:00:12 #160 [Verbose] > │ method0() │
00:00:12 #161 [Verbose] > │ │
00:00:12 #162 [Verbose] > │ │
00:00:12 #163 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #164 [Verbose] >
00:00:12 #165 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:12 #166 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:12 #167 [Verbose] > │ ## mapi │
00:00:12 #168 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #169 [Verbose] >
00:00:12 #170 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #171 [Verbose] > inl mapi fn s =
00:00:12 #172 [Verbose] > fun n =>
00:00:12 #173 [Verbose] > n
00:00:12 #174 [Verbose] > |> s
00:00:12 #175 [Verbose] > |> optionm.map (fn n)
00:00:12 #176 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-3902-0264-0a76cbb49f4c\main.spi
00:00:12 #177 [Verbose] >
00:00:12 #178 [Verbose] > ╭─[ 204.91ms - stdout ]────────────────────────────────────────────────────────╮
00:00:12 #179 [Verbose] > │ () │
00:00:12 #180 [Verbose] > │ │
00:00:12 #181 [Verbose] > │ │
00:00:12 #182 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:12 #183 [Verbose] >
00:00:12 #184 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:12 #185 [Verbose] > // // test
00:00:12 #186 [Verbose] >
00:00:12 #187 [Verbose] > listm.init 10i32 print_and_return
00:00:12 #188 [Verbose] > |> from_list
00:00:12 #189 [Verbose] > |> mapi fun i x => i + x
00:00:12 #190 [Verbose] > |> try_item 5i32
00:00:12 #191 [Verbose] > |> _assert_eq (Some 10i32)
00:00:12 #192 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-3923-2324-2b4ef8e59b76\main.spi
00:00:13 #193 [Verbose] >
00:00:13 #194 [Verbose] > ╭─[ 271.02ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #195 [Verbose] > │ type [<Struct>] US0 = │
00:00:13 #196 [Verbose] > │ | US0_0 │
00:00:13 #197 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:13 #198 [Verbose] > │ let rec method0 () : unit = │
00:00:13 #199 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:13 #200 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:13 #201 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:13 #202 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:13 #203 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:13 #204 [Verbose] > │ printfn $"print_and_return / x: {5}" │
00:00:13 #205 [Verbose] > │ printfn $"print_and_return / x: {6}" │
00:00:13 #206 [Verbose] > │ printfn $"print_and_return / x: {7}" │
00:00:13 #207 [Verbose] > │ printfn $"print_and_return / x: {8}" │
00:00:13 #208 [Verbose] > │ printfn $"print_and_return / x: {9}" │
00:00:13 #209 [Verbose] > │ let v3 : US0 = US0_1(10) │
00:00:13 #210 [Verbose] > │ let v4 : US0 = US0_1(10) │
00:00:13 #211 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:13 #212 [Verbose] > │ () │
00:00:13 #213 [Verbose] > │ method0() │
00:00:13 #214 [Verbose] > │ │
00:00:13 #215 [Verbose] > │ print_and_return / x: 0 │
00:00:13 #216 [Verbose] > │ print_and_return / x: 1 │
00:00:13 #217 [Verbose] > │ print_and_return / x: 2 │
00:00:13 #218 [Verbose] > │ print_and_return / x: 3 │
00:00:13 #219 [Verbose] > │ print_and_return / x: 4 │
00:00:13 #220 [Verbose] > │ print_and_return / x: 5 │
00:00:13 #221 [Verbose] > │ print_and_return / x: 6 │
00:00:13 #222 [Verbose] > │ print_and_return / x: 7 │
00:00:13 #223 [Verbose] > │ print_and_return / x: 8 │
00:00:13 #224 [Verbose] > │ print_and_return / x: 9 │
00:00:13 #225 [Verbose] > │ │
00:00:13 #226 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #227 [Verbose] >
00:00:13 #228 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #229 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #230 [Verbose] > │ ## choose │
00:00:13 #231 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #232 [Verbose] >
00:00:13 #233 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #234 [Verbose] > inl choose forall dim {number} t u. (fn : t -> option u) (s : seq dim t) : seq
00:00:13 #235 [Verbose] > dim u =
00:00:13 #236 [Verbose] > fun n =>
00:00:13 #237 [Verbose] > inl rec body fn s i i' =
00:00:13 #238 [Verbose] > match i |> s with
00:00:13 #239 [Verbose] > | None => None
00:00:13 #240 [Verbose] > | Some x =>
00:00:13 #241 [Verbose] > match x |> fn with
00:00:13 #242 [Verbose] > | Some x when n = i' => Some x
00:00:13 #243 [Verbose] > | Some _ => loop (i + 1) (i' + 1)
00:00:13 #244 [Verbose] > | _ => loop (i + 1) i'
00:00:13 #245 [Verbose] > and inl loop i i' =
00:00:13 #246 [Verbose] > if n |> var_is |> not
00:00:13 #247 [Verbose] > then body fn s i i'
00:00:13 #248 [Verbose] > else
00:00:13 #249 [Verbose] > inl fn = join fn
00:00:13 #250 [Verbose] > inl s = join s
00:00:13 #251 [Verbose] > join body fn s i i'
00:00:13 #252 [Verbose] > loop 0 0
00:00:13 #253 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-3952-5201-582e57b68125\main.spi
00:00:13 #254 [Verbose] >
00:00:13 #255 [Verbose] > ╭─[ 193.43ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #256 [Verbose] > │ () │
00:00:13 #257 [Verbose] > │ │
00:00:13 #258 [Verbose] > │ │
00:00:13 #259 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #260 [Verbose] >
00:00:13 #261 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #262 [Verbose] > // // test
00:00:13 #263 [Verbose] >
00:00:13 #264 [Verbose] > listm.init 10i32 print_and_return
00:00:13 #265 [Verbose] > |> from_list
00:00:13 #266 [Verbose] > |> choose (fun x => if x % 2 = 0 then Some x else None)
00:00:13 #267 [Verbose] > |> try_item 1i32
00:00:13 #268 [Verbose] > |> _assert_eq (Some 2i32)
00:00:13 #269 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-3971-7138-7fc59b64a250\main.spi
00:00:13 #270 [Verbose] >
00:00:13 #271 [Verbose] > ╭─[ 273.60ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #272 [Verbose] > │ type [<Struct>] US0 = │
00:00:13 #273 [Verbose] > │ | US0_0 │
00:00:13 #274 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:13 #275 [Verbose] > │ let rec method0 () : unit = │
00:00:13 #276 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:13 #277 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:13 #278 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:13 #279 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:13 #280 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:13 #281 [Verbose] > │ printfn $"print_and_return / x: {5}" │
00:00:13 #282 [Verbose] > │ printfn $"print_and_return / x: {6}" │
00:00:13 #283 [Verbose] > │ printfn $"print_and_return / x: {7}" │
00:00:13 #284 [Verbose] > │ printfn $"print_and_return / x: {8}" │
00:00:13 #285 [Verbose] > │ printfn $"print_and_return / x: {9}" │
00:00:13 #286 [Verbose] > │ let v3 : US0 = US0_1(2) │
00:00:13 #287 [Verbose] > │ let v4 : US0 = US0_1(2) │
00:00:13 #288 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:13 #289 [Verbose] > │ () │
00:00:13 #290 [Verbose] > │ method0() │
00:00:13 #291 [Verbose] > │ │
00:00:13 #292 [Verbose] > │ print_and_return / x: 0 │
00:00:13 #293 [Verbose] > │ print_and_return / x: 1 │
00:00:13 #294 [Verbose] > │ print_and_return / x: 2 │
00:00:13 #295 [Verbose] > │ print_and_return / x: 3 │
00:00:13 #296 [Verbose] > │ print_and_return / x: 4 │
00:00:13 #297 [Verbose] > │ print_and_return / x: 5 │
00:00:13 #298 [Verbose] > │ print_and_return / x: 6 │
00:00:13 #299 [Verbose] > │ print_and_return / x: 7 │
00:00:13 #300 [Verbose] > │ print_and_return / x: 8 │
00:00:13 #301 [Verbose] > │ print_and_return / x: 9 │
00:00:13 #302 [Verbose] > │ │
00:00:13 #303 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #304 [Verbose] >
00:00:13 #305 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #306 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #307 [Verbose] > │ ## indexed │
00:00:13 #308 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #309 [Verbose] >
00:00:13 #310 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #311 [Verbose] > inl indexed s =
00:00:13 #312 [Verbose] > s
00:00:13 #313 [Verbose] > |> mapi fun i x =>
00:00:13 #314 [Verbose] > i, x
00:00:13 #315 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4000-0002-00869c5484f6\main.spi
00:00:13 #316 [Verbose] >
00:00:13 #317 [Verbose] > ╭─[ 197.58ms - stdout ]────────────────────────────────────────────────────────╮
00:00:13 #318 [Verbose] > │ () │
00:00:13 #319 [Verbose] > │ │
00:00:13 #320 [Verbose] > │ │
00:00:13 #321 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #322 [Verbose] >
00:00:13 #323 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:13 #324 [Verbose] > // // test
00:00:13 #325 [Verbose] >
00:00:13 #326 [Verbose] > listm.init 10i32 ((*) 2)
00:00:13 #327 [Verbose] > |> from_list
00:00:13 #328 [Verbose] > |> indexed
00:00:13 #329 [Verbose] > |> try_item 5i32
00:00:13 #330 [Verbose] > |> _assert_eq (Some (5i32, 10i32))
00:00:13 #331 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4020-2011-2627b4b90bb0\main.spi
00:00:14 #332 [Verbose] >
00:00:14 #333 [Verbose] > ╭─[ 355.34ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #334 [Verbose] > │ type [<Struct>] US0 = │
00:00:14 #335 [Verbose] > │ | US0_0 │
00:00:14 #336 [Verbose] > │ | US0_1 of f1_0 : int32 * f1_1 : int32 │
00:00:14 #337 [Verbose] > │ let rec method0 () : unit = │
00:00:14 #338 [Verbose] > │ let v3 : US0 = US0_1(5, 10) │
00:00:14 #339 [Verbose] > │ let v4 : US0 = US0_1(5, 10) │
00:00:14 #340 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:14 #341 [Verbose] > │ () │
00:00:14 #342 [Verbose] > │ method0() │
00:00:14 #343 [Verbose] > │ │
00:00:14 #344 [Verbose] > │ │
00:00:14 #345 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #346 [Verbose] >
00:00:14 #347 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #348 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #349 [Verbose] > │ ## zip │
00:00:14 #350 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #351 [Verbose] >
00:00:14 #352 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #353 [Verbose] > inl zip n seq1 seq2 =
00:00:14 #354 [Verbose] > seq1 n, seq2 n
00:00:14 #355 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4057-5739-5e54dd4899bf\main.spi
00:00:14 #356 [Verbose] >
00:00:14 #357 [Verbose] > ╭─[ 186.65ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #358 [Verbose] > │ () │
00:00:14 #359 [Verbose] > │ │
00:00:14 #360 [Verbose] > │ │
00:00:14 #361 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #362 [Verbose] >
00:00:14 #363 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #364 [Verbose] > // // test
00:00:14 #365 [Verbose] >
00:00:14 #366 [Verbose] > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:00:14 #367 [Verbose] > ||> zip 5i32
00:00:14 #368 [Verbose] > |> _assert_eq (Some 5, Some 10)
00:00:14 #369 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4076-7615-78a970f245b3\main.spi
00:00:14 #370 [Verbose] >
00:00:14 #371 [Verbose] > ╭─[ 247.31ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #372 [Verbose] > │ type [<Struct>] US0 = │
00:00:14 #373 [Verbose] > │ | US0_0 │
00:00:14 #374 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:14 #375 [Verbose] > │ let rec method0 () : unit = │
00:00:14 #376 [Verbose] > │ let v6 : US0 = US0_1(5) │
00:00:14 #377 [Verbose] > │ let v7 : US0 = US0_1(10) │
00:00:14 #378 [Verbose] > │ let v8 : US0 = US0_1(5) │
00:00:14 #379 [Verbose] > │ let v9 : US0 = US0_1(10) │
00:00:14 #380 [Verbose] > │ let v10 : string = $"__expect / actual: %A{struct (v6, v7)} / expected: │
00:00:14 #381 [Verbose] > │ %A{struct (v8, v9)}" │
00:00:14 #382 [Verbose] > │ () │
00:00:14 #383 [Verbose] > │ method0() │
00:00:14 #384 [Verbose] > │ │
00:00:14 #385 [Verbose] > │ │
00:00:14 #386 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #387 [Verbose] >
00:00:14 #388 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #389 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #390 [Verbose] > │ ## zip_with │
00:00:14 #391 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #392 [Verbose] >
00:00:14 #393 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #394 [Verbose] > inl zip_with fn seq1 seq2 =
00:00:14 #395 [Verbose] > fun n =>
00:00:14 #396 [Verbose] > fn (seq1 n) (seq2 n)
00:00:14 #397 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4101-0190-0b26055b0f36\main.spi
00:00:14 #398 [Verbose] >
00:00:14 #399 [Verbose] > ╭─[ 210.95ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #400 [Verbose] > │ () │
00:00:14 #401 [Verbose] > │ │
00:00:14 #402 [Verbose] > │ │
00:00:14 #403 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #404 [Verbose] >
00:00:14 #405 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #406 [Verbose] > // // test
00:00:14 #407 [Verbose] >
00:00:14 #408 [Verbose] > ((listm.init 10i32 id |> from_list), (listm.init 10i32 ((*) 2) |> from_list))
00:00:14 #409 [Verbose] > ||> zip_with (optionm'.choose (+))
00:00:14 #410 [Verbose] > |> try_item 2i32
00:00:14 #411 [Verbose] > |> _assert_eq (Some 6)
00:00:14 #412 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4123-2315-2b96d2d951b1\main.spi
00:00:15 #413 [Verbose] >
00:00:15 #414 [Verbose] > ╭─[ 275.16ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #415 [Verbose] > │ type [<Struct>] US0 = │
00:00:15 #416 [Verbose] > │ | US0_0 │
00:00:15 #417 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:15 #418 [Verbose] > │ let rec method0 () : unit = │
00:00:15 #419 [Verbose] > │ let v3 : US0 = US0_1(6) │
00:00:15 #420 [Verbose] > │ let v4 : US0 = US0_1(6) │
00:00:15 #421 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:15 #422 [Verbose] > │ () │
00:00:15 #423 [Verbose] > │ method0() │
00:00:15 #424 [Verbose] > │ │
00:00:15 #425 [Verbose] > │ │
00:00:15 #426 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #427 [Verbose] >
00:00:15 #428 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #429 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #430 [Verbose] > │ ## fold │
00:00:15 #431 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #432 [Verbose] >
00:00:15 #433 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #434 [Verbose] > inl fold fn init seq =
00:00:15 #435 [Verbose] > inl rec loop acc n =
00:00:15 #436 [Verbose] > match seq n with
00:00:15 #437 [Verbose] > | Some x => loop (fn acc x) (n + 1)
00:00:15 #438 [Verbose] > | None => acc
00:00:15 #439 [Verbose] > loop init 0
00:00:15 #440 [Verbose] >
00:00:15 #441 [Verbose] > inl fold_ fn init seq =
00:00:15 #442 [Verbose] > let rec loop acc n =
00:00:15 #443 [Verbose] > match seq n with
00:00:15 #444 [Verbose] > | Some x => loop (fn acc x) (n + 1)
00:00:15 #445 [Verbose] > | None => acc
00:00:15 #446 [Verbose] > loop init 0
00:00:15 #447 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4151-5157-5370a0b24c06\main.spi
00:00:15 #448 [Verbose] >
00:00:15 #449 [Verbose] > ╭─[ 212.85ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #450 [Verbose] > │ () │
00:00:15 #451 [Verbose] > │ │
00:00:15 #452 [Verbose] > │ │
00:00:15 #453 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #454 [Verbose] >
00:00:15 #455 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #456 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #457 [Verbose] > │ ## sum │
00:00:15 #458 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #459 [Verbose] >
00:00:15 #460 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #461 [Verbose] > inl sum seq =
00:00:15 #462 [Verbose] > seq |> fold (+) 0
00:00:15 #463 [Verbose] >
00:00:15 #464 [Verbose] > inl sum_ seq =
00:00:15 #465 [Verbose] > seq |> fold_ (+) 0
00:00:15 #466 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4173-7346-7f7b86b3c142\main.spi
00:00:15 #467 [Verbose] >
00:00:15 #468 [Verbose] > ╭─[ 261.89ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #469 [Verbose] > │ () │
00:00:15 #470 [Verbose] > │ │
00:00:15 #471 [Verbose] > │ │
00:00:15 #472 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #473 [Verbose] >
00:00:15 #474 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #475 [Verbose] > // // test
00:00:15 #476 [Verbose] >
00:00:15 #477 [Verbose] > listm.init 10i32 id
00:00:15 #478 [Verbose] > |> from_list
00:00:15 #479 [Verbose] > |> fun f (n : i32) => f n
00:00:15 #480 [Verbose] > |> sum
00:00:15 #481 [Verbose] > |> _assert_eq 45
00:00:15 #482 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4199-9993-99a31ab4f1fc\main.spi
00:00:15 #483 [Verbose] >
00:00:15 #484 [Verbose] > ╭─[ 248.79ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #485 [Verbose] > │ let rec method0 () : unit = │
00:00:15 #486 [Verbose] > │ let v0 : string = $"__expect / actual: %A{45} / expected: %A{45}" │
00:00:15 #487 [Verbose] > │ () │
00:00:15 #488 [Verbose] > │ method0() │
00:00:15 #489 [Verbose] > │ │
00:00:15 #490 [Verbose] > │ │
00:00:15 #491 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #492 [Verbose] >
00:00:15 #493 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #494 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #495 [Verbose] > │ ## to_list │
00:00:15 #496 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #497 [Verbose] >
00:00:15 #498 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:15 #499 [Verbose] > inl to_list seq =
00:00:15 #500 [Verbose] > seq
00:00:15 #501 [Verbose] > |> fold (fun acc x => x :: acc) [[]]
00:00:15 #502 [Verbose] > |> listm.rev
00:00:15 #503 [Verbose] >
00:00:15 #504 [Verbose] > inl to_list_ seq =
00:00:15 #505 [Verbose] > seq
00:00:15 #506 [Verbose] > |> fold_ (fun acc x => x :: acc) [[]]
00:00:15 #507 [Verbose] > |> listm.rev
00:00:15 #508 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4225-2537-20530ca8d5e5\main.spi
00:00:16 #509 [Verbose] >
00:00:16 #510 [Verbose] > ╭─[ 225.76ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #511 [Verbose] > │ () │
00:00:16 #512 [Verbose] > │ │
00:00:16 #513 [Verbose] > │ │
00:00:16 #514 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #515 [Verbose] >
00:00:16 #516 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #517 [Verbose] > // // test
00:00:16 #518 [Verbose] >
00:00:16 #519 [Verbose] > listm.init 10i32 id
00:00:16 #520 [Verbose] > |> from_list
00:00:16 #521 [Verbose] > |> fun f (n : i32) => f n
00:00:16 #522 [Verbose] > |> to_list
00:00:16 #523 [Verbose] > |> _assert_eq (listm.init 10i32 id)
00:00:16 #524 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4248-4816-494987ea6113\main.spi
00:00:16 #525 [Verbose] >
00:00:16 #526 [Verbose] > ╭─[ 327.43ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #527 [Verbose] > │ type UH0 = │
00:00:16 #528 [Verbose] > │ | UH0_0 of int32 * UH0 │
00:00:16 #529 [Verbose] > │ | UH0_1 │
00:00:16 #530 [Verbose] > │ let rec method0 () : unit = │
00:00:16 #531 [Verbose] > │ let v88 : UH0 = UH0_1 │
00:00:16 #532 [Verbose] > │ let v89 : UH0 = UH0_0(9, v88) │
00:00:16 #533 [Verbose] > │ let v90 : UH0 = UH0_0(8, v89) │
00:00:16 #534 [Verbose] > │ let v91 : UH0 = UH0_0(7, v90) │
00:00:16 #535 [Verbose] > │ let v92 : UH0 = UH0_0(6, v91) │
00:00:16 #536 [Verbose] > │ let v93 : UH0 = UH0_0(5, v92) │
00:00:16 #537 [Verbose] > │ let v94 : UH0 = UH0_0(4, v93) │
00:00:16 #538 [Verbose] > │ let v95 : UH0 = UH0_0(3, v94) │
00:00:16 #539 [Verbose] > │ let v96 : UH0 = UH0_0(2, v95) │
00:00:16 #540 [Verbose] > │ let v97 : UH0 = UH0_0(1, v96) │
00:00:16 #541 [Verbose] > │ let v98 : UH0 = UH0_0(0, v97) │
00:00:16 #542 [Verbose] > │ let v99 : UH0 = UH0_1 │
00:00:16 #543 [Verbose] > │ let v100 : UH0 = UH0_0(9, v99) │
00:00:16 #544 [Verbose] > │ let v101 : UH0 = UH0_0(8, v100) │
00:00:16 #545 [Verbose] > │ let v102 : UH0 = UH0_0(7, v101) │
00:00:16 #546 [Verbose] > │ let v103 : UH0 = UH0_0(6, v102) │
00:00:16 #547 [Verbose] > │ let v104 : UH0 = UH0_0(5, v103) │
00:00:16 #548 [Verbose] > │ let v105 : UH0 = UH0_0(4, v104) │
00:00:16 #549 [Verbose] > │ let v106 : UH0 = UH0_0(3, v105) │
00:00:16 #550 [Verbose] > │ let v107 : UH0 = UH0_0(2, v106) │
00:00:16 #551 [Verbose] > │ let v108 : UH0 = UH0_0(1, v107) │
00:00:16 #552 [Verbose] > │ let v109 : UH0 = UH0_0(0, v108) │
00:00:16 #553 [Verbose] > │ let v110 : string = $"__expect / actual: %A{v98} / expected: %A{v109}" │
00:00:16 #554 [Verbose] > │ () │
00:00:16 #555 [Verbose] > │ method0() │
00:00:16 #556 [Verbose] > │ │
00:00:16 #557 [Verbose] > │ │
00:00:16 #558 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #559 [Verbose] >
00:00:16 #560 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #561 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #562 [Verbose] > │ ## from_array │
00:00:16 #563 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #564 [Verbose] >
00:00:16 #565 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #566 [Verbose] > inl from_array forall dim {number; int} el. (array : a dim el) : seq dim el =
00:00:16 #567 [Verbose] > fun n =>
00:00:16 #568 [Verbose] > if n >= length array
00:00:16 #569 [Verbose] > then None
00:00:16 #570 [Verbose] > else index array n |> Some
00:00:16 #571 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4282-8256-8c34f9ff72f6\main.spi
00:00:16 #572 [Verbose] >
00:00:16 #573 [Verbose] > ╭─[ 200.45ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #574 [Verbose] > │ () │
00:00:16 #575 [Verbose] > │ │
00:00:16 #576 [Verbose] > │ │
00:00:16 #577 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #578 [Verbose] >
00:00:16 #579 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #580 [Verbose] > // // test
00:00:16 #581 [Verbose] >
00:00:16 #582 [Verbose] > a ;[[ 1; 2; 3 ]]
00:00:16 #583 [Verbose] > |> from_array
00:00:16 #584 [Verbose] > |> try_item 1i32
00:00:16 #585 [Verbose] > |> _assert_eq (Some 2i32)
00:00:16 #586 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4302-0279-05e4378ca03e\main.spi
00:00:17 #587 [Verbose] >
00:00:17 #588 [Verbose] > ╭─[ 757.04ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #589 [Verbose] > │ type [<Struct>] US0 = │
00:00:17 #590 [Verbose] > │ | US0_0 │
00:00:17 #591 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:17 #592 [Verbose] > │ let rec method1 (v0 : (int32 [])) : (int32 []) = │
00:00:17 #593 [Verbose] > │ v0 │
00:00:17 #594 [Verbose] > │ and method2 (v0 : bool) : bool = │
00:00:17 #595 [Verbose] > │ v0 │
00:00:17 #596 [Verbose] > │ and method0 () : unit = │
00:00:17 #597 [Verbose] > │ let v0 : (int32 []) = [|1; 2; 3|] │
00:00:17 #598 [Verbose] > │ let v1 : (int32 []) = method1(v0) │
00:00:17 #599 [Verbose] > │ let v2 : int32 = v1.Length │
00:00:17 #600 [Verbose] > │ let v3 : bool = 1 >= v2 │
00:00:17 #601 [Verbose] > │ let v7 : US0 = │
00:00:17 #602 [Verbose] > │ if v3 then │
00:00:17 #603 [Verbose] > │ US0_0 │
00:00:17 #604 [Verbose] > │ else │
00:00:17 #605 [Verbose] > │ let v5 : int32 = v1.[int 1] │
00:00:17 #606 [Verbose] > │ US0_1(v5) │
00:00:17 #607 [Verbose] > │ let v11 : bool = │
00:00:17 #608 [Verbose] > │ match v7 with │
00:00:17 #609 [Verbose] > │ | US0_1(v9) -> (* Some *) │
00:00:17 #610 [Verbose] > │ let v10 : bool = v9 = 2 │
00:00:17 #611 [Verbose] > │ v10 │
00:00:17 #612 [Verbose] > │ | _ -> │
00:00:17 #613 [Verbose] > │ false │
00:00:17 #614 [Verbose] > │ let v13 : bool = │
00:00:17 #615 [Verbose] > │ if v11 then │
00:00:17 #616 [Verbose] > │ true │
00:00:17 #617 [Verbose] > │ else │
00:00:17 #618 [Verbose] > │ method2(v11) │
00:00:17 #619 [Verbose] > │ let v14 : US0 = US0_1(2) │
00:00:17 #620 [Verbose] > │ let v15 : string = $"__expect / actual: %A{v7} / expected: %A{v14}" │
00:00:17 #621 [Verbose] > │ let v16 : bool = v13 = false │
00:00:17 #622 [Verbose] > │ if v16 then │
00:00:17 #623 [Verbose] > │ failwith<unit> v15 │
00:00:17 #624 [Verbose] > │ method0() │
00:00:17 #625 [Verbose] > │ │
00:00:17 #626 [Verbose] > │ │
00:00:17 #627 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #628 [Verbose] >
00:00:17 #629 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:17 #630 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:17 #631 [Verbose] > │ ## to_array │
00:00:17 #632 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #633 [Verbose] >
00:00:17 #634 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #635 [Verbose] > inl to_array seq =
00:00:17 #636 [Verbose] > inl ar = a ;[[]] |> mut
00:00:17 #637 [Verbose] > ((), seq)
00:00:17 #638 [Verbose] > ||> fold fun _ x =>
00:00:17 #639 [Verbose] > ar <- *ar /@ a ;[[x]]
00:00:17 #640 [Verbose] > *ar
00:00:17 #641 [Verbose] >
00:00:17 #642 [Verbose] > inl to_array_ seq =
00:00:17 #643 [Verbose] > inl ar = a ;[[]] |> mut
00:00:17 #644 [Verbose] > ((), seq)
00:00:17 #645 [Verbose] > ||> fold_ fun _ x =>
00:00:17 #646 [Verbose] > ar <- *ar /@ a ;[[x]]
00:00:17 #647 [Verbose] > *ar
00:00:17 #648 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4380-8080-8cb4bdb0b639\main.spi
00:00:17 #649 [Verbose] >
00:00:17 #650 [Verbose] > ╭─[ 204.48ms - stdout ]────────────────────────────────────────────────────────╮
00:00:17 #651 [Verbose] > │ () │
00:00:17 #652 [Verbose] > │ │
00:00:17 #653 [Verbose] > │ │
00:00:17 #654 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:17 #655 [Verbose] >
00:00:17 #656 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:17 #657 [Verbose] > // // test
00:00:17 #658 [Verbose] >
00:00:17 #659 [Verbose] > listm.init 10i32 id
00:00:17 #660 [Verbose] > |> from_list
00:00:17 #661 [Verbose] > |> fun (x : i32 -> _) => x
00:00:17 #662 [Verbose] > |> to_array
00:00:17 #663 [Verbose] > |> _assert_eq (a ;[[ 0; 1; 2; 3; 4; 5; 6; 7; 8; 9 ]] : _ i32 _)
00:00:17 #664 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4401-0135-0a0f232c738c\main.spi
00:00:18 #665 [Verbose] >
00:00:18 #666 [Verbose] > ╭─[ 491.81ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #667 [Verbose] > │ type Mut0 = {mutable l0 : (int32 [])} │
00:00:18 #668 [Verbose] > │ and Mut1 = {mutable l0 : int32} │
00:00:18 #669 [Verbose] > │ let rec method1 (v0 : (int32 [])) : (int32 []) = │
00:00:18 #670 [Verbose] > │ v0 │
00:00:18 #671 [Verbose] > │ and method2 (v0 : int32, v1 : Mut1) : bool = │
00:00:18 #672 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:18 #673 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:18 #674 [Verbose] > │ v3 │
00:00:18 #675 [Verbose] > │ and method3 (v0 : (int32 []), v1 : (int32 []), v2 : int32) : bool = │
00:00:18 #676 [Verbose] > │ let v3 : int32 = v0.Length │
00:00:18 #677 [Verbose] > │ let v4 : bool = v2 < v3 │
00:00:18 #678 [Verbose] > │ if v4 then │
00:00:18 #679 [Verbose] > │ let v5 : int32 = v0.[int v2] │
00:00:18 #680 [Verbose] > │ let v6 : int32 = v1.[int v2] │
00:00:18 #681 [Verbose] > │ let v7 : bool = v5 = v6 │
00:00:18 #682 [Verbose] > │ if v7 then │
00:00:18 #683 [Verbose] > │ let v8 : int32 = v2 + 1 │
00:00:18 #684 [Verbose] > │ method3(v0, v1, v8) │
00:00:18 #685 [Verbose] > │ else │
00:00:18 #686 [Verbose] > │ false │
00:00:18 #687 [Verbose] > │ else │
00:00:18 #688 [Verbose] > │ true │
00:00:18 #689 [Verbose] > │ and method4 (v0 : bool) : bool = │
00:00:18 #690 [Verbose] > │ v0 │
00:00:18 #691 [Verbose] > │ and method0 () : unit = │
00:00:18 #692 [Verbose] > │ let v0 : (int32 []) = [||] │
00:00:18 #693 [Verbose] > │ let v1 : (int32 []) = method1(v0) │
00:00:18 #694 [Verbose] > │ let v2 : Mut0 = {l0 = v1} : Mut0 │
00:00:18 #695 [Verbose] > │ let v3 : (int32 []) = v2.l0 │
00:00:18 #696 [Verbose] > │ let v4 : (int32 []) = [|0|] │
00:00:18 #697 [Verbose] > │ let v5 : (int32 []) = method1(v4) │
00:00:18 #698 [Verbose] > │ let v6 : int32 = v3.Length │
00:00:18 #699 [Verbose] > │ let v7 : int32 = v5.Length │
00:00:18 #700 [Verbose] > │ let v8 : int32 = v6 + v7 │
00:00:18 #701 [Verbose] > │ let v9 : (int32 []) = Array.zeroCreate<int32> (v8) │
00:00:18 #702 [Verbose] > │ let v10 : Mut1 = {l0 = 0} : Mut1 │
00:00:18 #703 [Verbose] > │ while method2(v8, v10) do │
00:00:18 #704 [Verbose] > │ let v12 : int32 = v10.l0 │
00:00:18 #705 [Verbose] > │ let v13 : bool = v12 < v6 │
00:00:18 #706 [Verbose] > │ let v17 : int32 = │
00:00:18 #707 [Verbose] > │ if v13 then │
00:00:18 #708 [Verbose] > │ let v14 : int32 = v3.[int v12] │
00:00:18 #709 [Verbose] > │ v14 │
00:00:18 #710 [Verbose] > │ else │
00:00:18 #711 [Verbose] > │ let v15 : int32 = v12 - v6 │
00:00:18 #712 [Verbose] > │ let v16 : int32 = v5.[int v15] │
00:00:18 #713 [Verbose] > │ v16 │
00:00:18 #714 [Verbose] > │ v9.[int v12] <- v17 │
00:00:18 #715 [Verbose] > │ let v18 : int32 = v12 + 1 │
00:00:18 #716 [Verbose] > │ v10.l0 <- v18 │
00:00:18 #717 [Verbose] > │ () │
00:00:18 #718 [Verbose] > │ v2.l0 <- v9 │
00:00:18 #719 [Verbose] > │ let v19 : (int32 []) = v2.l0 │
00:00:18 #720 [Verbose] > │ let v20 : (int32 []) = [|1|] │
00:00:18 #721 [Verbose] > │ let v21 : (int32 []) = method1(v20) │
00:00:18 #722 [Verbose] > │ let v22 : int32 = v19.Length │
00:00:18 #723 [Verbose] > │ let v23 : int32 = v21.Length │
00:00:18 #724 [Verbose] > │ let v24 : int32 = v22 + v23 │
00:00:18 #725 [Verbose] > │ let v25 : (int32 []) = Array.zeroCreate<int32> (v24) │
00:00:18 #726 [Verbose] > │ let v26 : Mut1 = {l0 = 0} : Mut1 │
00:00:18 #727 [Verbose] > │ while method2(v24, v26) do │
00:00:18 #728 [Verbose] > │ let v28 : int32 = v26.l0 │
00:00:18 #729 [Verbose] > │ let v29 : bool = v28 < v22 │
00:00:18 #730 [Verbose] > │ let v33 : int32 = │
00:00:18 #731 [Verbose] > │ if v29 then │
00:00:18 #732 [Verbose] > │ let v30 : int32 = v19.[int v28] │
00:00:18 #733 [Verbose] > │ v30 │
00:00:18 #734 [Verbose] > │ else │
00:00:18 #735 [Verbose] > │ let v31 : int32 = v28 - v22 │
00:00:18 #736 [Verbose] > │ let v32 : int32 = v21.[int v31] │
00:00:18 #737 [Verbose] > │ v32 │
00:00:18 #738 [Verbose] > │ v25.[int v28] <- v33 │
00:00:18 #739 [Verbose] > │ let v34 : int32 = v28 + 1 │
00:00:18 #740 [Verbose] > │ v26.l0 <- v34 │
00:00:18 #741 [Verbose] > │ () │
00:00:18 #742 [Verbose] > │ v2.l0 <- v25 │
00:00:18 #743 [Verbose] > │ let v35 : (int32 []) = v2.l0 │
00:00:18 #744 [Verbose] > │ let v36 : (int32 []) = [|2|] │
00:00:18 #745 [Verbose] > │ let v37 : (int32 []) = method1(v36) │
00:00:18 #746 [Verbose] > │ let v38 : int32 = v35.Length │
00:00:18 #747 [Verbose] > │ let v39 : int32 = v37.Length │
00:00:18 #748 [Verbose] > │ let v40 : int32 = v38 + v39 │
00:00:18 #749 [Verbose] > │ let v41 : (int32 []) = Array.zeroCreate<int32> (v40) │
00:00:18 #750 [Verbose] > │ let v42 : Mut1 = {l0 = 0} : Mut1 │
00:00:18 #751 [Verbose] > │ while method2(v40, v42) do │
00:00:18 #752 [Verbose] > │ let v44 : int32 = v42.l0 │
00:00:18 #753 [Verbose] > │ let v45 : bool = v44 < v38 │
00:00:18 #754 [Verbose] > │ let v49 : int32 = │
00:00:18 #755 [Verbose] > │ if v45 then │
00:00:18 #756 [Verbose] > │ let v46 : int32 = v35.[int v44] │
00:00:18 #757 [Verbose] > │ v46 │
00:00:18 #758 [Verbose] > │ else │
00:00:18 #759 [Verbose] > │ let v47 : int32 = v44 - v38 │
00:00:18 #760 [Verbose] > │ let v48 : int32 = v37.[int v47] │
00:00:18 #761 [Verbose] > │ v48 │
00:00:18 #762 [Verbose] > │ v41.[int v44] <- v49 │
00:00:18 #763 [Verbose] > │ let v50 : int32 = v44 + 1 │
00:00:18 #764 [Verbose] > │ v42.l0 <- v50 │
00:00:18 #765 [Verbose] > │ () │
00:00:18 #766 [Verbose] > │ v2.l0 <- v41 │
00:00:18 #767 [Verbose] > │ let v51 : (int32 []) = v2.l0 │
00:00:18 #768 [Verbose] > │ let v52 : (int32 []) = [|3|] │
00:00:18 #769 [Verbose] > │ let v53 : (int32 []) = method1(v52) │
00:00:18 #770 [Verbose] > │ let v54 : int32 = v51.Length │
00:00:18 #771 [Verbose] > │ let v55 : int32 = v53.Length │
00:00:18 #772 [Verbose] > │ let v56 : int32 = v54 + v55 │
00:00:18 #773 [Verbose] > │ let v57 : (int32 []) = Array.zeroCreate<int32> (v56) │
00:00:18 #774 [Verbose] > │ let v58 : Mut1 = {l0 = 0} : Mut1 │
00:00:18 #775 [Verbose] > │ while method2(v56, v58) do │
00:00:18 #776 [Verbose] > │ let v60 : int32 = v58.l0 │
00:00:18 #777 [Verbose] > │ let v61 : bool = v60 < v54 │
00:00:18 #778 [Verbose] > │ let v65 : int32 = │
00:00:18 #779 [Verbose] > │ if v61 then │
00:00:18 #780 [Verbose] > │ let v62 : int32 = v51.[int v60] │
00:00:18 #781 [Verbose] > │ v62 │
00:00:18 #782 [Verbose] > │ else │
00:00:18 #783 [Verbose] > │ let v63 : int32 = v60 - v54 │
00:00:18 #784 [Verbose] > │ let v64 : int32 = v53.[int v63] │
00:00:18 #785 [Verbose] > │ v64 │
00:00:18 #786 [Verbose] > │ v57.[int v60] <- v65 │
00:00:18 #787 [Verbose] > │ let v66 : int32 = v60 + 1 │
00:00:18 #788 [Verbose] > │ v58.l0 <- v66 │
00:00:18 #789 [Verbose] > │ () │
00:00:18 #790 [Verbose] > │ v2.l0 <- v57 │
00:00:18 #791 [Verbose] > │ let v67 : (int32 []) = v2.l0 │
00:00:18 #792 [Verbose] > │ let v68 : (int32 []) = [|4|] │
00:00:18 #793 [Verbose] > │ let v69 : (int32 []) = method1(v68) │
00:00:18 #794 [Verbose] > │ let v70 : int32 = v67.Length │
00:00:18 #795 [Verbose] > │ let v71 : int32 = v69.Length │
00:00:18 #796 [Verbose] > │ let v72 : int32 = v70 + v71 │
00:00:18 #797 [Verbose] > │ let v73 : (int32 []) = Array.zeroCreate<int32> (v72) │
00:00:18 #798 [Verbose] > │ let v74 : Mut1 = {l0 = 0} : Mut1 │
00:00:18 #799 [Verbose] > │ while method2(v72, v74) do │
00:00:18 #800 [Verbose] > │ let v76 : int32 = v74.l0 │
00:00:18 #801 [Verbose] > │ let v77 : bool = v76 < v70 │
00:00:18 #802 [Verbose] > │ let v81 : int32 = │
00:00:18 #803 [Verbose] > │ if v77 then │
00:00:18 #804 [Verbose] > │ let v78 : int32 = v67.[int v76] │
00:00:18 #805 [Verbose] > │ v78 │
00:00:18 #806 [Verbose] > │ else │
00:00:18 #807 [Verbose] > │ let v79 : int32 = v76 - v70 │
00:00:18 #808 [Verbose] > │ let v80 : int32 = v69.[int v79] │
00:00:18 #809 [Verbose] > │ v80 │
00:00:18 #810 [Verbose] > │ v73.[int v76] <- v81 │
00:00:18 #811 [Verbose] > │ let v82 : int32 = v76 + 1 │
00:00:18 #812 [Verbose] > │ v74.l0 <- v82 │
00:00:18 #813 [Verbose] > │ () │
00:00:18 #814 [Verbose] > │ v2.l0 <- v73 │
00:00:18 #815 [Verbose] > │ let v83 : (int32 []) = v2.l0 │
00:00:18 #816 [Verbose] > │ let v84 : (int32 []) = [|5|] │
00:00:18 #817 [Verbose] > │ let v85 : (int32 []) = method1(v84) │
00:00:18 #818 [Verbose] > │ let v86 : int32 = v83.Length │
00:00:18 #819 [Verbose] > │ let v87 : int32 = v85.Length │
00:00:18 #820 [Verbose] > │ let v88 : int32 = v86 + v87 │
00:00:18 #821 [Verbose] > │ let v89 : (int32 []) = Array.zeroCreate<int32> (v88) │
00:00:18 #822 [Verbose] > │ let v90 : Mut1 = {l0 = 0} : Mut1 │
00:00:18 #823 [Verbose] > │ while method2(v88, v90) do │
00:00:18 #824 [Verbose] > │ let v92 : int32 = v90.l0 │
00:00:18 #825 [Verbose] > │ let v93 : bool = v92 < v86 │
00:00:18 #826 [Verbose] > │ let v97 : int32 = │
00:00:18 #827 [Verbose] > │ if v93 then │
00:00:18 #828 [Verbose] > │ let v94 : int32 = v83.[int v92] │
00:00:18 #829 [Verbose] > │ v94 │
00:00:18 #830 [Verbose] > │ else │
00:00:18 #831 [Verbose] > │ let v95 : int32 = v92 - v86 │
00:00:18 #832 [Verbose] > │ let v96 : int32 = v85.[int v95] │
00:00:18 #833 [Verbose] > │ v96 │
00:00:18 #834 [Verbose] > │ v89.[int v92] <- v97 │
00:00:18 #835 [Verbose] > │ let v98 : int32 = v92 + 1 │
00:00:18 #836 [Verbose] > │ v90.l0 <- v98 │
00:00:18 #837 [Verbose] > │ () │
00:00:18 #838 [Verbose] > │ v2.l0 <- v89 │
00:00:18 #839 [Verbose] > │ let v99 : (int32 []) = v2.l0 │
00:00:18 #840 [Verbose] > │ let v100 : (int32 []) = [|6|] │
00:00:18 #841 [Verbose] > │ let v101 : (int32 []) = method1(v100) │
00:00:18 #842 [Verbose] > │ let v102 : int32 = v99.Length │
00:00:18 #843 [Verbose] > │ let v103 : int32 = v101.Length │
00:00:18 #844 [Verbose] > │ let v104 : int32 = v102 + v103 │
00:00:18 #845 [Verbose] > │ let v105 : (int32 []) = Array.zeroCreate<int32> (v104) │
00:00:18 #846 [Verbose] > │ let v106 : Mut1 = {l0 = 0} : Mut1 │
00:00:18 #847 [Verbose] > │ while method2(v104, v106) do │
00:00:18 #848 [Verbose] > │ let v108 : int32 = v106.l0 │
00:00:18 #849 [Verbose] > │ let v109 : bool = v108 < v102 │
00:00:18 #850 [Verbose] > │ let v113 : int32 = │
00:00:18 #851 [Verbose] > │ if v109 then │
00:00:18 #852 [Verbose] > │ let v110 : int32 = v99.[int v108] │
00:00:18 #853 [Verbose] > │ v110 │
00:00:18 #854 [Verbose] > │ else │
00:00:18 #855 [Verbose] > │ let v111 : int32 = v108 - v102 │
00:00:18 #856 [Verbose] > │ let v112 : int32 = v101.[int v111] │
00:00:18 #857 [Verbose] > │ v112 │
00:00:18 #858 [Verbose] > │ v105.[int v108] <- v113 │
00:00:18 #859 [Verbose] > │ let v114 : int32 = v108 + 1 │
00:00:18 #860 [Verbose] > │ v106.l0 <- v114 │
00:00:18 #861 [Verbose] > │ () │
00:00:18 #862 [Verbose] > │ v2.l0 <- v105 │
00:00:18 #863 [Verbose] > │ let v115 : (int32 []) = v2.l0 │
00:00:18 #864 [Verbose] > │ let v116 : (int32 []) = [|7|] │
00:00:18 #865 [Verbose] > │ let v117 : (int32 []) = method1(v116) │
00:00:18 #866 [Verbose] > │ let v118 : int32 = v115.Length │
00:00:18 #867 [Verbose] > │ let v119 : int32 = v117.Length │
00:00:18 #868 [Verbose] > │ let v120 : int32 = v118 + v119 │
00:00:18 #869 [Verbose] > │ let v121 : (int32 []) = Array.zeroCreate<int32> (v120) │
00:00:18 #870 [Verbose] > │ let v122 : Mut1 = {l0 = 0} : Mut1 │
00:00:18 #871 [Verbose] > │ while method2(v120, v122) do │
00:00:18 #872 [Verbose] > │ let v124 : int32 = v122.l0 │
00:00:18 #873 [Verbose] > │ let v125 : bool = v124 < v118 │
00:00:18 #874 [Verbose] > │ let v129 : int32 = │
00:00:18 #875 [Verbose] > │ if v125 then │
00:00:18 #876 [Verbose] > │ let v126 : int32 = v115.[int v124] │
00:00:18 #877 [Verbose] > │ v126 │
00:00:18 #878 [Verbose] > │ else │
00:00:18 #879 [Verbose] > │ let v127 : int32 = v124 - v118 │
00:00:18 #880 [Verbose] > │ let v128 : int32 = v117.[int v127] │
00:00:18 #881 [Verbose] > │ v128 │
00:00:18 #882 [Verbose] > │ v121.[int v124] <- v129 │
00:00:18 #883 [Verbose] > │ let v130 : int32 = v124 + 1 │
00:00:18 #884 [Verbose] > │ v122.l0 <- v130 │
00:00:18 #885 [Verbose] > │ () │
00:00:18 #886 [Verbose] > │ v2.l0 <- v121 │
00:00:18 #887 [Verbose] > │ let v131 : (int32 []) = v2.l0 │
00:00:18 #888 [Verbose] > │ let v132 : (int32 []) = [|8|] │
00:00:18 #889 [Verbose] > │ let v133 : (int32 []) = method1(v132) │
00:00:18 #890 [Verbose] > │ let v134 : int32 = v131.Length │
00:00:18 #891 [Verbose] > │ let v135 : int32 = v133.Length │
00:00:18 #892 [Verbose] > │ let v136 : int32 = v134 + v135 │
00:00:18 #893 [Verbose] > │ let v137 : (int32 []) = Array.zeroCreate<int32> (v136) │
00:00:18 #894 [Verbose] > │ let v138 : Mut1 = {l0 = 0} : Mut1 │
00:00:18 #895 [Verbose] > │ while method2(v136, v138) do │
00:00:18 #896 [Verbose] > │ let v140 : int32 = v138.l0 │
00:00:18 #897 [Verbose] > │ let v141 : bool = v140 < v134 │
00:00:18 #898 [Verbose] > │ let v145 : int32 = │
00:00:18 #899 [Verbose] > │ if v141 then │
00:00:18 #900 [Verbose] > │ let v142 : int32 = v131.[int v140] │
00:00:18 #901 [Verbose] > │ v142 │
00:00:18 #902 [Verbose] > │ else │
00:00:18 #903 [Verbose] > │ let v143 : int32 = v140 - v134 │
00:00:18 #904 [Verbose] > │ let v144 : int32 = v133.[int v143] │
00:00:18 #905 [Verbose] > │ v144 │
00:00:18 #906 [Verbose] > │ v137.[int v140] <- v145 │
00:00:18 #907 [Verbose] > │ let v146 : int32 = v140 + 1 │
00:00:18 #908 [Verbose] > │ v138.l0 <- v146 │
00:00:18 #909 [Verbose] > │ () │
00:00:18 #910 [Verbose] > │ v2.l0 <- v137 │
00:00:18 #911 [Verbose] > │ let v147 : (int32 []) = v2.l0 │
00:00:18 #912 [Verbose] > │ let v148 : (int32 []) = [|9|] │
00:00:18 #913 [Verbose] > │ let v149 : (int32 []) = method1(v148) │
00:00:18 #914 [Verbose] > │ let v150 : int32 = v147.Length │
00:00:18 #915 [Verbose] > │ let v151 : int32 = v149.Length │
00:00:18 #916 [Verbose] > │ let v152 : int32 = v150 + v151 │
00:00:18 #917 [Verbose] > │ let v153 : (int32 []) = Array.zeroCreate<int32> (v152) │
00:00:18 #918 [Verbose] > │ let v154 : Mut1 = {l0 = 0} : Mut1 │
00:00:18 #919 [Verbose] > │ while method2(v152, v154) do │
00:00:18 #920 [Verbose] > │ let v156 : int32 = v154.l0 │
00:00:18 #921 [Verbose] > │ let v157 : bool = v156 < v150 │
00:00:18 #922 [Verbose] > │ let v161 : int32 = │
00:00:18 #923 [Verbose] > │ if v157 then │
00:00:18 #924 [Verbose] > │ let v158 : int32 = v147.[int v156] │
00:00:18 #925 [Verbose] > │ v158 │
00:00:18 #926 [Verbose] > │ else │
00:00:18 #927 [Verbose] > │ let v159 : int32 = v156 - v150 │
00:00:18 #928 [Verbose] > │ let v160 : int32 = v149.[int v159] │
00:00:18 #929 [Verbose] > │ v160 │
00:00:18 #930 [Verbose] > │ v153.[int v156] <- v161 │
00:00:18 #931 [Verbose] > │ let v162 : int32 = v156 + 1 │
00:00:18 #932 [Verbose] > │ v154.l0 <- v162 │
00:00:18 #933 [Verbose] > │ () │
00:00:18 #934 [Verbose] > │ v2.l0 <- v153 │
00:00:18 #935 [Verbose] > │ let v163 : (int32 []) = v2.l0 │
00:00:18 #936 [Verbose] > │ let v164 : (int32 []) = [|0; 1; 2; 3; 4; 5; 6; 7; 8; 9|] │
00:00:18 #937 [Verbose] > │ let v165 : (int32 []) = method1(v164) │
00:00:18 #938 [Verbose] > │ let v166 : int32 = v163.Length │
00:00:18 #939 [Verbose] > │ let v167 : int32 = v165.Length │
00:00:18 #940 [Verbose] > │ let v168 : bool = v166 = v167 │
00:00:18 #941 [Verbose] > │ let v169 : bool = v168 <> true │
00:00:18 #942 [Verbose] > │ let v172 : bool = │
00:00:18 #943 [Verbose] > │ if v169 then │
00:00:18 #944 [Verbose] > │ false │
00:00:18 #945 [Verbose] > │ else │
00:00:18 #946 [Verbose] > │ let v170 : int32 = 0 │
00:00:18 #947 [Verbose] > │ method3(v163, v165, v170) │
00:00:18 #948 [Verbose] > │ let v174 : bool = │
00:00:18 #949 [Verbose] > │ if v172 then │
00:00:18 #950 [Verbose] > │ true │
00:00:18 #951 [Verbose] > │ else │
00:00:18 #952 [Verbose] > │ method4(v172) │
00:00:18 #953 [Verbose] > │ let v175 : string = $"__expect / actual: %A{v163} / expected: %A{v165}" │
00:00:18 #954 [Verbose] > │ let v176 : bool = v174 = false │
00:00:18 #955 [Verbose] > │ if v176 then │
00:00:18 #956 [Verbose] > │ failwith<unit> v175 │
00:00:18 #957 [Verbose] > │ method0() │
00:00:18 #958 [Verbose] > │ │
00:00:18 #959 [Verbose] > │ │
00:00:18 #960 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #961 [Verbose] >
00:00:18 #962 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 #963 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 #964 [Verbose] > │ ## take_while │
00:00:18 #965 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #966 [Verbose] >
00:00:18 #967 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #968 [Verbose] > inl take_while cond seq =
00:00:18 #969 [Verbose] > inl rec loop acc i =
00:00:18 #970 [Verbose] > match seq i with
00:00:18 #971 [Verbose] > | Some st when cond st i => loop (st :: acc) (i + 1)
00:00:18 #972 [Verbose] > | _ => acc |> listm.rev
00:00:18 #973 [Verbose] > loop [[]] 0
00:00:18 #974 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4465-6552-67be13c8d512\main.spi
00:00:18 #975 [Verbose] >
00:00:18 #976 [Verbose] > ╭─[ 199.53ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #977 [Verbose] > │ () │
00:00:18 #978 [Verbose] > │ │
00:00:18 #979 [Verbose] > │ │
00:00:18 #980 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #981 [Verbose] >
00:00:18 #982 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #983 [Verbose] > // // test
00:00:18 #984 [Verbose] >
00:00:18 #985 [Verbose] > listm.init 10i32 id
00:00:18 #986 [Verbose] > |> from_list
00:00:18 #987 [Verbose] > |> take_while (fun n (_ : i32) => n < 5)
00:00:18 #988 [Verbose] > |> listm'.sum
00:00:18 #989 [Verbose] > |> _assert_eq 10
00:00:18 #990 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4485-8547-815172a5e21b\main.spi
00:00:18 #991 [Verbose] >
00:00:18 #992 [Verbose] > ╭─[ 237.17ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #993 [Verbose] > │ let rec method0 () : unit = │
00:00:18 #994 [Verbose] > │ let v0 : string = $"__expect / actual: %A{10} / expected: %A{10}" │
00:00:18 #995 [Verbose] > │ () │
00:00:18 #996 [Verbose] > │ method0() │
00:00:18 #997 [Verbose] > │ │
00:00:18 #998 [Verbose] > │ │
00:00:18 #999 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #1000 [Verbose] >
00:00:18 #1001 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #1002 [Verbose] > // // test
00:00:18 #1003 [Verbose] >
00:00:18 #1004 [Verbose] > stream.new_finite_stream print_and_return 10i32
00:00:18 #1005 [Verbose] > |> flip stream.try_item
00:00:18 #1006 [Verbose] > |> take_while (fun n (_ : i32) => n < 5)
00:00:18 #1007 [Verbose] > |> listm'.sum
00:00:18 #1008 [Verbose] > |> _assert_eq 10
00:00:18 #1009 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4509-0956-02c8098eb999\main.spi
00:00:18 #1010 [Verbose] >
00:00:18 #1011 [Verbose] > ╭─[ 224.29ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #1012 [Verbose] > │ let rec method0 () : unit = │
00:00:18 #1013 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:18 #1014 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:18 #1015 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:18 #1016 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:18 #1017 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:18 #1018 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:18 #1019 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:18 #1020 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:18 #1021 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:18 #1022 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:18 #1023 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:18 #1024 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:18 #1025 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:18 #1026 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:18 #1027 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:18 #1028 [Verbose] > │ printfn $"print_and_return / x: {5}" │
00:00:18 #1029 [Verbose] > │ let v0 : string = $"__expect / actual: %A{10} / expected: %A{10}" │
00:00:18 #1030 [Verbose] > │ () │
00:00:18 #1031 [Verbose] > │ method0() │
00:00:18 #1032 [Verbose] > │ │
00:00:18 #1033 [Verbose] > │ print_and_return / x: 0 │
00:00:18 #1034 [Verbose] > │ print_and_return / x: 1 │
00:00:18 #1035 [Verbose] > │ print_and_return / x: 1 │
00:00:18 #1036 [Verbose] > │ print_and_return / x: 2 │
00:00:18 #1037 [Verbose] > │ print_and_return / x: 1 │
00:00:18 #1038 [Verbose] > │ print_and_return / x: 2 │
00:00:18 #1039 [Verbose] > │ print_and_return / x: 3 │
00:00:18 #1040 [Verbose] > │ print_and_return / x: 1 │
00:00:18 #1041 [Verbose] > │ print_and_return / x: 2 │
00:00:18 #1042 [Verbose] > │ print_and_return / x: 3 │
00:00:18 #1043 [Verbose] > │ print_and_return / x: 4 │
00:00:18 #1044 [Verbose] > │ print_and_return / x: 1 │
00:00:18 #1045 [Verbose] > │ print_and_return / x: 2 │
00:00:18 #1046 [Verbose] > │ print_and_return / x: 3 │
00:00:18 #1047 [Verbose] > │ print_and_return / x: 4 │
00:00:18 #1048 [Verbose] > │ print_and_return / x: 5 │
00:00:18 #1049 [Verbose] > │ │
00:00:18 #1050 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #1051 [Verbose] >
00:00:18 #1052 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 #1053 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 #1054 [Verbose] > │ ## take_while_ │
00:00:18 #1055 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #1056 [Verbose] >
00:00:18 #1057 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #1058 [Verbose] > inl take_while_ cond seq =
00:00:18 #1059 [Verbose] > let rec loop acc i =
00:00:18 #1060 [Verbose] > match seq i with
00:00:18 #1061 [Verbose] > | Some st when cond st i => loop (st :: acc) (i + 1)
00:00:18 #1062 [Verbose] > | _ => acc |> listm.rev
00:00:18 #1063 [Verbose] > loop [[]] 0
00:00:19 #1064 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4533-3364-3c6f096711f0\main.spi
00:00:19 #1065 [Verbose] >
00:00:19 #1066 [Verbose] > ╭─[ 187.64ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #1067 [Verbose] > │ () │
00:00:19 #1068 [Verbose] > │ │
00:00:19 #1069 [Verbose] > │ │
00:00:19 #1070 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1071 [Verbose] >
00:00:19 #1072 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #1073 [Verbose] > // // test
00:00:19 #1074 [Verbose] >
00:00:19 #1075 [Verbose] > stream.new_infinite_stream_ print_and_return
00:00:19 #1076 [Verbose] > |> flip stream.try_item
00:00:19 #1077 [Verbose] > |> take_while_ (fun n (_ : i32) => n < 5i32)
00:00:19 #1078 [Verbose] > |> listm'.sum
00:00:19 #1079 [Verbose] > |> _assert_eq 10
00:00:19 #1080 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4552-5261-5eab27f56532\main.spi
00:00:19 #1081 [Verbose] >
00:00:19 #1082 [Verbose] > ╭─[ 391.03ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #1083 [Verbose] > │ type UH0 = │
00:00:19 #1084 [Verbose] > │ | UH0_0 of int32 * (unit -> UH0) │
00:00:19 #1085 [Verbose] > │ | UH0_1 │
00:00:19 #1086 [Verbose] > │ and UH1 = │
00:00:19 #1087 [Verbose] > │ | UH1_0 of int32 * UH1 │
00:00:19 #1088 [Verbose] > │ | UH1_1 │
00:00:19 #1089 [Verbose] > │ and [<Struct>] US0 = │
00:00:19 #1090 [Verbose] > │ | US0_0 │
00:00:19 #1091 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:19 #1092 [Verbose] > │ let rec closure0 (v0 : int32) () : UH0 = │
00:00:19 #1093 [Verbose] > │ let v1 : int32 = v0 + 1 │
00:00:19 #1094 [Verbose] > │ method1(v1) │
00:00:19 #1095 [Verbose] > │ and method1 (v0 : int32) : UH0 = │
00:00:19 #1096 [Verbose] > │ printfn $"print_and_return / x: {v0}" │
00:00:19 #1097 [Verbose] > │ let v1 : (unit -> UH0) = closure0(v0) │
00:00:19 #1098 [Verbose] > │ UH0_0(v0, v1) │
00:00:19 #1099 [Verbose] > │ and method3 (v0 : int32, v1 : UH0) : US0 = │
00:00:19 #1100 [Verbose] > │ match v1 with │
00:00:19 #1101 [Verbose] > │ | UH0_0(v2, v3) -> (* StreamCons *) │
00:00:19 #1102 [Verbose] > │ let v4 : bool = v0 <= 0 │
00:00:19 #1103 [Verbose] > │ if v4 then │
00:00:19 #1104 [Verbose] > │ US0_1(v2) │
00:00:19 #1105 [Verbose] > │ else │
00:00:19 #1106 [Verbose] > │ let v6 : int32 = v0 - 1 │
00:00:19 #1107 [Verbose] > │ let v7 : UH0 = v3 () │
00:00:19 #1108 [Verbose] > │ method3(v6, v7) │
00:00:19 #1109 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:19 #1110 [Verbose] > │ US0_0 │
00:00:19 #1111 [Verbose] > │ and method4 (v0 : UH1, v1 : UH1) : UH1 = │
00:00:19 #1112 [Verbose] > │ match v0 with │
00:00:19 #1113 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:00:19 #1114 [Verbose] > │ let v4 : UH1 = UH1_0(v2, v1) │
00:00:19 #1115 [Verbose] > │ method4(v3, v4) │
00:00:19 #1116 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:19 #1117 [Verbose] > │ v1 │
00:00:19 #1118 [Verbose] > │ and method2 (v0 : UH0, v1 : UH1, v2 : int32) : UH1 = │
00:00:19 #1119 [Verbose] > │ let v3 : US0 = method3(v2, v0) │
00:00:19 #1120 [Verbose] > │ match v3 with │
00:00:19 #1121 [Verbose] > │ | US0_1(v4) -> (* Some *) │
00:00:19 #1122 [Verbose] > │ let v5 : bool = v4 < 5 │
00:00:19 #1123 [Verbose] > │ if v5 then │
00:00:19 #1124 [Verbose] > │ let v6 : UH1 = UH1_0(v4, v1) │
00:00:19 #1125 [Verbose] > │ let v7 : int32 = v2 + 1 │
00:00:19 #1126 [Verbose] > │ method2(v0, v6, v7) │
00:00:19 #1127 [Verbose] > │ else │
00:00:19 #1128 [Verbose] > │ let v9 : UH1 = UH1_1 │
00:00:19 #1129 [Verbose] > │ method4(v1, v9) │
00:00:19 #1130 [Verbose] > │ | _ -> │
00:00:19 #1131 [Verbose] > │ let v12 : UH1 = UH1_1 │
00:00:19 #1132 [Verbose] > │ method4(v1, v12) │
00:00:19 #1133 [Verbose] > │ and method5 (v0 : UH1, v1 : int32) : int32 = │
00:00:19 #1134 [Verbose] > │ match v0 with │
00:00:19 #1135 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:00:19 #1136 [Verbose] > │ let v4 : int32 = v1 + v2 │
00:00:19 #1137 [Verbose] > │ method5(v3, v4) │
00:00:19 #1138 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:19 #1139 [Verbose] > │ v1 │
00:00:19 #1140 [Verbose] > │ and method6 (v0 : bool) : bool = │
00:00:19 #1141 [Verbose] > │ v0 │
00:00:19 #1142 [Verbose] > │ and method0 () : unit = │
00:00:19 #1143 [Verbose] > │ let v0 : int32 = 0 │
00:00:19 #1144 [Verbose] > │ let v1 : UH0 = method1(v0) │
00:00:19 #1145 [Verbose] > │ let v2 : UH1 = UH1_1 │
00:00:19 #1146 [Verbose] > │ let v3 : int32 = 0 │
00:00:19 #1147 [Verbose] > │ let v4 : UH1 = method2(v1, v2, v3) │
00:00:19 #1148 [Verbose] > │ let v5 : int32 = 0 │
00:00:19 #1149 [Verbose] > │ let v6 : int32 = method5(v4, v5) │
00:00:19 #1150 [Verbose] > │ let v7 : bool = v6 = 10 │
00:00:19 #1151 [Verbose] > │ let v9 : bool = │
00:00:19 #1152 [Verbose] > │ if v7 then │
00:00:19 #1153 [Verbose] > │ true │
00:00:19 #1154 [Verbose] > │ else │
00:00:19 #1155 [Verbose] > │ method6(v7) │
00:00:19 #1156 [Verbose] > │ let v10 : string = $"__expect / actual: %A{v6} / expected: %A{10}" │
00:00:19 #1157 [Verbose] > │ let v11 : bool = v9 = false │
00:00:19 #1158 [Verbose] > │ if v11 then │
00:00:19 #1159 [Verbose] > │ failwith<unit> v10 │
00:00:19 #1160 [Verbose] > │ method0() │
00:00:19 #1161 [Verbose] > │ │
00:00:19 #1162 [Verbose] > │ print_and_return / x: 0 │
00:00:19 #1163 [Verbose] > │ print_and_return / x: 1 │
00:00:19 #1164 [Verbose] > │ print_and_return / x: 1 │
00:00:19 #1165 [Verbose] > │ print_and_return / x: 2 │
00:00:19 #1166 [Verbose] > │ print_and_return / x: 1 │
00:00:19 #1167 [Verbose] > │ print_and_return / x: 2 │
00:00:19 #1168 [Verbose] > │ print_and_return / x: 3 │
00:00:19 #1169 [Verbose] > │ print_and_return / x: 1 │
00:00:19 #1170 [Verbose] > │ print_and_return / x: 2 │
00:00:19 #1171 [Verbose] > │ print_and_return / x: 3 │
00:00:19 #1172 [Verbose] > │ print_and_return / x: 4 │
00:00:19 #1173 [Verbose] > │ print_and_return / x: 1 │
00:00:19 #1174 [Verbose] > │ print_and_return / x: 2 │
00:00:19 #1175 [Verbose] > │ print_and_return / x: 3 │
00:00:19 #1176 [Verbose] > │ print_and_return / x: 4 │
00:00:19 #1177 [Verbose] > │ print_and_return / x: 5 │
00:00:19 #1178 [Verbose] > │ │
00:00:19 #1179 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1180 [Verbose] >
00:00:19 #1181 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #1182 [Verbose] > // // test
00:00:19 #1183 [Verbose] >
00:00:19 #1184 [Verbose] > stream.new_infinite_stream_ print_and_return
00:00:19 #1185 [Verbose] > |> stream.memoize
00:00:19 #1186 [Verbose] > |> fun list =>
00:00:19 #1187 [Verbose] > inl list = list ()
00:00:19 #1188 [Verbose] > fun n =>
00:00:19 #1189 [Verbose] > list |> stream.try_item n
00:00:19 #1190 [Verbose] > |> take_while_ (fun n (_ : i32) => n < 5i32)
00:00:19 #1191 [Verbose] > |> listm'.sum
00:00:19 #1192 [Verbose] > |> _assert_eq 10
00:00:19 #1193 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4597-9712-91e54d24c513\main.spi
00:00:19 #1194 [Verbose] >
00:00:19 #1195 [Verbose] > ╭─[ 273.66ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #1196 [Verbose] > │ type UH0 = │
00:00:19 #1197 [Verbose] > │ | UH0_0 of int32 * (unit -> UH0) │
00:00:19 #1198 [Verbose] > │ | UH0_1 │
00:00:19 #1199 [Verbose] > │ and [<Struct>] US0 = │
00:00:19 #1200 [Verbose] > │ | US0_0 of f0_0 : UH0 │
00:00:19 #1201 [Verbose] > │ | US0_1 of f1_0 : (unit -> UH0) │
00:00:19 #1202 [Verbose] > │ and Mut0 = {mutable l0 : US0} │
00:00:19 #1203 [Verbose] > │ and UH1 = │
00:00:19 #1204 [Verbose] > │ | UH1_0 of int32 * UH1 │
00:00:19 #1205 [Verbose] > │ | UH1_1 │
00:00:19 #1206 [Verbose] > │ and [<Struct>] US1 = │
00:00:19 #1207 [Verbose] > │ | US1_0 │
00:00:19 #1208 [Verbose] > │ | US1_1 of f1_0 : int32 │
00:00:19 #1209 [Verbose] > │ let rec closure0 (v0 : int32) () : UH0 = │
00:00:19 #1210 [Verbose] > │ let v1 : int32 = v0 + 1 │
00:00:19 #1211 [Verbose] > │ method1(v1) │
00:00:19 #1212 [Verbose] > │ and method1 (v0 : int32) : UH0 = │
00:00:19 #1213 [Verbose] > │ printfn $"print_and_return / x: {v0}" │
00:00:19 #1214 [Verbose] > │ let v1 : (unit -> UH0) = closure0(v0) │
00:00:19 #1215 [Verbose] > │ UH0_0(v0, v1) │
00:00:19 #1216 [Verbose] > │ and closure1 (v0 : UH0) () : UH0 = │
00:00:19 #1217 [Verbose] > │ v0 │
00:00:19 #1218 [Verbose] > │ and closure2 (v0 : UH0, v1 : Mut0) () : UH0 = │
00:00:19 #1219 [Verbose] > │ let v2 : US0 = v1.l0 │
00:00:19 #1220 [Verbose] > │ match v2 with │
00:00:19 #1221 [Verbose] > │ | US0_0(v3) -> (* Computed *) │
00:00:19 #1222 [Verbose] > │ v3 │
00:00:19 #1223 [Verbose] > │ | US0_1(v4) -> (* NotComputed *) │
00:00:19 #1224 [Verbose] > │ let v5 : UH0 = v4 () │
00:00:19 #1225 [Verbose] > │ let v12 : UH0 = │
00:00:19 #1226 [Verbose] > │ match v5 with │
00:00:19 #1227 [Verbose] > │ | UH0_0(v7, v8) -> (* StreamCons *) │
00:00:19 #1228 [Verbose] > │ let v9 : (unit -> UH0) = method2(v0, v8) │
00:00:19 #1229 [Verbose] > │ UH0_0(v7, v9) │
00:00:19 #1230 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:19 #1231 [Verbose] > │ UH0_1 │
00:00:19 #1232 [Verbose] > │ let v13 : US0 = US0_0(v12) │
00:00:19 #1233 [Verbose] > │ v1.l0 <- v13 │
00:00:19 #1234 [Verbose] > │ v12 │
00:00:19 #1235 [Verbose] > │ and method2 (v0 : UH0, v1 : (unit -> UH0)) : (unit -> UH0) = │
00:00:19 #1236 [Verbose] > │ let v2 : US0 = US0_1(v1) │
00:00:19 #1237 [Verbose] > │ let v3 : Mut0 = {l0 = v2} : Mut0 │
00:00:19 #1238 [Verbose] > │ closure2(v0, v3) │
00:00:19 #1239 [Verbose] > │ and method4 (v0 : int32, v1 : UH0) : US1 = │
00:00:19 #1240 [Verbose] > │ match v1 with │
00:00:19 #1241 [Verbose] > │ | UH0_0(v2, v3) -> (* StreamCons *) │
00:00:19 #1242 [Verbose] > │ let v4 : bool = v0 <= 0 │
00:00:19 #1243 [Verbose] > │ if v4 then │
00:00:19 #1244 [Verbose] > │ US1_1(v2) │
00:00:19 #1245 [Verbose] > │ else │
00:00:19 #1246 [Verbose] > │ let v6 : int32 = v0 - 1 │
00:00:19 #1247 [Verbose] > │ let v7 : UH0 = v3 () │
00:00:19 #1248 [Verbose] > │ method4(v6, v7) │
00:00:19 #1249 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:19 #1250 [Verbose] > │ US1_0 │
00:00:19 #1251 [Verbose] > │ and method5 (v0 : UH1, v1 : UH1) : UH1 = │
00:00:19 #1252 [Verbose] > │ match v0 with │
00:00:19 #1253 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:00:19 #1254 [Verbose] > │ let v4 : UH1 = UH1_0(v2, v1) │
00:00:19 #1255 [Verbose] > │ method5(v3, v4) │
00:00:19 #1256 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:19 #1257 [Verbose] > │ v1 │
00:00:19 #1258 [Verbose] > │ and method3 (v0 : UH0, v1 : UH1, v2 : int32) : UH1 = │
00:00:19 #1259 [Verbose] > │ let v3 : US1 = method4(v2, v0) │
00:00:19 #1260 [Verbose] > │ match v3 with │
00:00:19 #1261 [Verbose] > │ | US1_1(v4) -> (* Some *) │
00:00:19 #1262 [Verbose] > │ let v5 : bool = v4 < 5 │
00:00:19 #1263 [Verbose] > │ if v5 then │
00:00:19 #1264 [Verbose] > │ let v6 : UH1 = UH1_0(v4, v1) │
00:00:19 #1265 [Verbose] > │ let v7 : int32 = v2 + 1 │
00:00:19 #1266 [Verbose] > │ method3(v0, v6, v7) │
00:00:19 #1267 [Verbose] > │ else │
00:00:19 #1268 [Verbose] > │ let v9 : UH1 = UH1_1 │
00:00:19 #1269 [Verbose] > │ method5(v1, v9) │
00:00:19 #1270 [Verbose] > │ | _ -> │
00:00:19 #1271 [Verbose] > │ let v12 : UH1 = UH1_1 │
00:00:19 #1272 [Verbose] > │ method5(v1, v12) │
00:00:19 #1273 [Verbose] > │ and method6 (v0 : UH1, v1 : int32) : int32 = │
00:00:19 #1274 [Verbose] > │ match v0 with │
00:00:19 #1275 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:00:19 #1276 [Verbose] > │ let v4 : int32 = v1 + v2 │
00:00:19 #1277 [Verbose] > │ method6(v3, v4) │
00:00:19 #1278 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:19 #1279 [Verbose] > │ v1 │
00:00:19 #1280 [Verbose] > │ and method7 (v0 : bool) : bool = │
00:00:19 #1281 [Verbose] > │ v0 │
00:00:19 #1282 [Verbose] > │ and method0 () : unit = │
00:00:19 #1283 [Verbose] > │ let v0 : int32 = 0 │
00:00:19 #1284 [Verbose] > │ let v1 : UH0 = method1(v0) │
00:00:19 #1285 [Verbose] > │ let v2 : (unit -> UH0) = closure1(v1) │
00:00:19 #1286 [Verbose] > │ let v3 : (unit -> UH0) = method2(v1, v2) │
00:00:19 #1287 [Verbose] > │ let v4 : UH0 = v3 () │
00:00:19 #1288 [Verbose] > │ let v5 : UH1 = UH1_1 │
00:00:19 #1289 [Verbose] > │ let v6 : int32 = 0 │
00:00:19 #1290 [Verbose] > │ let v7 : UH1 = method3(v4, v5, v6) │
00:00:19 #1291 [Verbose] > │ let v8 : int32 = 0 │
00:00:19 #1292 [Verbose] > │ let v9 : int32 = method6(v7, v8) │
00:00:19 #1293 [Verbose] > │ let v10 : bool = v9 = 10 │
00:00:19 #1294 [Verbose] > │ let v12 : bool = │
00:00:19 #1295 [Verbose] > │ if v10 then │
00:00:19 #1296 [Verbose] > │ true │
00:00:19 #1297 [Verbose] > │ else │
00:00:19 #1298 [Verbose] > │ method7(v10) │
00:00:19 #1299 [Verbose] > │ let v13 : string = $"__expect / actual: %A{v9} / expected: %A{10}" │
00:00:19 #1300 [Verbose] > │ let v14 : bool = v12 = false │
00:00:19 #1301 [Verbose] > │ if v14 then │
00:00:19 #1302 [Verbose] > │ failwith<unit> v13 │
00:00:19 #1303 [Verbose] > │ method0() │
00:00:19 #1304 [Verbose] > │ │
00:00:19 #1305 [Verbose] > │ print_and_return / x: 0 │
00:00:19 #1306 [Verbose] > │ print_and_return / x: 1 │
00:00:19 #1307 [Verbose] > │ print_and_return / x: 2 │
00:00:19 #1308 [Verbose] > │ print_and_return / x: 3 │
00:00:19 #1309 [Verbose] > │ print_and_return / x: 4 │
00:00:19 #1310 [Verbose] > │ print_and_return / x: 5 │
00:00:19 #1311 [Verbose] > │ │
00:00:19 #1312 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #1313 [Verbose] >
00:00:19 #1314 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #1315 [Verbose] > // // test
00:00:19 #1316 [Verbose] >
00:00:19 #1317 [Verbose] > stream.new_finite_stream print_and_return 10i32
00:00:19 #1318 [Verbose] > |> stream.memoize
00:00:19 #1319 [Verbose] > |> fun list =>
00:00:19 #1320 [Verbose] > inl list = list ()
00:00:19 #1321 [Verbose] > fun n =>
00:00:19 #1322 [Verbose] > list |> stream.try_item n
00:00:19 #1323 [Verbose] > |> take_while_ (fun n (_ : i32) => n < 5)
00:00:19 #1324 [Verbose] > |> listm'.sum
00:00:19 #1325 [Verbose] > |> _assert_eq 10
00:00:20 #1326 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4630-3006-35853c590ed1\main.spi
00:00:20 #1327 [Verbose] >
00:00:20 #1328 [Verbose] > ╭─[ 342.78ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #1329 [Verbose] > │ type UH0 = │
00:00:20 #1330 [Verbose] > │ | UH0_0 of int32 * (unit -> UH0) │
00:00:20 #1331 [Verbose] > │ | UH0_1 │
00:00:20 #1332 [Verbose] > │ and [<Struct>] US0 = │
00:00:20 #1333 [Verbose] > │ | US0_0 of f0_0 : UH0 │
00:00:20 #1334 [Verbose] > │ | US0_1 of f1_0 : (unit -> UH0) │
00:00:20 #1335 [Verbose] > │ and Mut0 = {mutable l0 : US0} │
00:00:20 #1336 [Verbose] > │ and UH1 = │
00:00:20 #1337 [Verbose] > │ | UH1_0 of int32 * UH1 │
00:00:20 #1338 [Verbose] > │ | UH1_1 │
00:00:20 #1339 [Verbose] > │ and [<Struct>] US1 = │
00:00:20 #1340 [Verbose] > │ | US1_0 │
00:00:20 #1341 [Verbose] > │ | US1_1 of f1_0 : int32 │
00:00:20 #1342 [Verbose] > │ let rec closure10 () () : UH0 = │
00:00:20 #1343 [Verbose] > │ UH0_1 │
00:00:20 #1344 [Verbose] > │ and closure9 () () : UH0 = │
00:00:20 #1345 [Verbose] > │ printfn $"print_and_return / x: {9}" │
00:00:20 #1346 [Verbose] > │ let v0 : (unit -> UH0) = closure10() │
00:00:20 #1347 [Verbose] > │ UH0_0(9, v0) │
00:00:20 #1348 [Verbose] > │ and closure8 () () : UH0 = │
00:00:20 #1349 [Verbose] > │ printfn $"print_and_return / x: {8}" │
00:00:20 #1350 [Verbose] > │ let v0 : (unit -> UH0) = closure9() │
00:00:20 #1351 [Verbose] > │ UH0_0(8, v0) │
00:00:20 #1352 [Verbose] > │ and closure7 () () : UH0 = │
00:00:20 #1353 [Verbose] > │ printfn $"print_and_return / x: {7}" │
00:00:20 #1354 [Verbose] > │ let v0 : (unit -> UH0) = closure8() │
00:00:20 #1355 [Verbose] > │ UH0_0(7, v0) │
00:00:20 #1356 [Verbose] > │ and closure6 () () : UH0 = │
00:00:20 #1357 [Verbose] > │ printfn $"print_and_return / x: {6}" │
00:00:20 #1358 [Verbose] > │ let v0 : (unit -> UH0) = closure7() │
00:00:20 #1359 [Verbose] > │ UH0_0(6, v0) │
00:00:20 #1360 [Verbose] > │ and closure5 () () : UH0 = │
00:00:20 #1361 [Verbose] > │ printfn $"print_and_return / x: {5}" │
00:00:20 #1362 [Verbose] > │ let v0 : (unit -> UH0) = closure6() │
00:00:20 #1363 [Verbose] > │ UH0_0(5, v0) │
00:00:20 #1364 [Verbose] > │ and closure4 () () : UH0 = │
00:00:20 #1365 [Verbose] > │ printfn $"print_and_return / x: {4}" │
00:00:20 #1366 [Verbose] > │ let v0 : (unit -> UH0) = closure5() │
00:00:20 #1367 [Verbose] > │ UH0_0(4, v0) │
00:00:20 #1368 [Verbose] > │ and closure3 () () : UH0 = │
00:00:20 #1369 [Verbose] > │ printfn $"print_and_return / x: {3}" │
00:00:20 #1370 [Verbose] > │ let v0 : (unit -> UH0) = closure4() │
00:00:20 #1371 [Verbose] > │ UH0_0(3, v0) │
00:00:20 #1372 [Verbose] > │ and closure2 () () : UH0 = │
00:00:20 #1373 [Verbose] > │ printfn $"print_and_return / x: {2}" │
00:00:20 #1374 [Verbose] > │ let v0 : (unit -> UH0) = closure3() │
00:00:20 #1375 [Verbose] > │ UH0_0(2, v0) │
00:00:20 #1376 [Verbose] > │ and closure1 () () : UH0 = │
00:00:20 #1377 [Verbose] > │ printfn $"print_and_return / x: {1}" │
00:00:20 #1378 [Verbose] > │ let v0 : (unit -> UH0) = closure2() │
00:00:20 #1379 [Verbose] > │ UH0_0(1, v0) │
00:00:20 #1380 [Verbose] > │ and closure0 () () : UH0 = │
00:00:20 #1381 [Verbose] > │ let v0 : (unit -> UH0) = closure1() │
00:00:20 #1382 [Verbose] > │ UH0_0(0, v0) │
00:00:20 #1383 [Verbose] > │ and closure11 (v0 : Mut0) () : UH0 = │
00:00:20 #1384 [Verbose] > │ let v1 : US0 = v0.l0 │
00:00:20 #1385 [Verbose] > │ match v1 with │
00:00:20 #1386 [Verbose] > │ | US0_0(v2) -> (* Computed *) │
00:00:20 #1387 [Verbose] > │ v2 │
00:00:20 #1388 [Verbose] > │ | US0_1(v3) -> (* NotComputed *) │
00:00:20 #1389 [Verbose] > │ let v4 : UH0 = v3 () │
00:00:20 #1390 [Verbose] > │ let v13 : UH0 = │
00:00:20 #1391 [Verbose] > │ match v4 with │
00:00:20 #1392 [Verbose] > │ | UH0_0(v6, v7) -> (* StreamCons *) │
00:00:20 #1393 [Verbose] > │ let v8 : US0 = US0_1(v7) │
00:00:20 #1394 [Verbose] > │ let v9 : Mut0 = {l0 = v8} : Mut0 │
00:00:20 #1395 [Verbose] > │ let v10 : (unit -> UH0) = closure11(v9) │
00:00:20 #1396 [Verbose] > │ UH0_0(v6, v10) │
00:00:20 #1397 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:20 #1398 [Verbose] > │ UH0_1 │
00:00:20 #1399 [Verbose] > │ let v14 : US0 = US0_0(v13) │
00:00:20 #1400 [Verbose] > │ v0.l0 <- v14 │
00:00:20 #1401 [Verbose] > │ v13 │
00:00:20 #1402 [Verbose] > │ and method2 (v0 : int32, v1 : UH0) : US1 = │
00:00:20 #1403 [Verbose] > │ match v1 with │
00:00:20 #1404 [Verbose] > │ | UH0_0(v2, v3) -> (* StreamCons *) │
00:00:20 #1405 [Verbose] > │ let v4 : bool = v0 <= 0 │
00:00:20 #1406 [Verbose] > │ if v4 then │
00:00:20 #1407 [Verbose] > │ US1_1(v2) │
00:00:20 #1408 [Verbose] > │ else │
00:00:20 #1409 [Verbose] > │ let v6 : int32 = v0 - 1 │
00:00:20 #1410 [Verbose] > │ let v7 : UH0 = v3 () │
00:00:20 #1411 [Verbose] > │ method2(v6, v7) │
00:00:20 #1412 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:20 #1413 [Verbose] > │ US1_0 │
00:00:20 #1414 [Verbose] > │ and method3 (v0 : UH1, v1 : UH1) : UH1 = │
00:00:20 #1415 [Verbose] > │ match v0 with │
00:00:20 #1416 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:00:20 #1417 [Verbose] > │ let v4 : UH1 = UH1_0(v2, v1) │
00:00:20 #1418 [Verbose] > │ method3(v3, v4) │
00:00:20 #1419 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:20 #1420 [Verbose] > │ v1 │
00:00:20 #1421 [Verbose] > │ and method1 (v0 : UH0, v1 : UH1, v2 : int32) : UH1 = │
00:00:20 #1422 [Verbose] > │ let v3 : US1 = method2(v2, v0) │
00:00:20 #1423 [Verbose] > │ match v3 with │
00:00:20 #1424 [Verbose] > │ | US1_1(v4) -> (* Some *) │
00:00:20 #1425 [Verbose] > │ let v5 : bool = v4 < 5 │
00:00:20 #1426 [Verbose] > │ if v5 then │
00:00:20 #1427 [Verbose] > │ let v6 : UH1 = UH1_0(v4, v1) │
00:00:20 #1428 [Verbose] > │ let v7 : int32 = v2 + 1 │
00:00:20 #1429 [Verbose] > │ method1(v0, v6, v7) │
00:00:20 #1430 [Verbose] > │ else │
00:00:20 #1431 [Verbose] > │ let v9 : UH1 = UH1_1 │
00:00:20 #1432 [Verbose] > │ method3(v1, v9) │
00:00:20 #1433 [Verbose] > │ | _ -> │
00:00:20 #1434 [Verbose] > │ let v12 : UH1 = UH1_1 │
00:00:20 #1435 [Verbose] > │ method3(v1, v12) │
00:00:20 #1436 [Verbose] > │ and method4 (v0 : UH1, v1 : int32) : int32 = │
00:00:20 #1437 [Verbose] > │ match v0 with │
00:00:20 #1438 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:00:20 #1439 [Verbose] > │ let v4 : int32 = v1 + v2 │
00:00:20 #1440 [Verbose] > │ method4(v3, v4) │
00:00:20 #1441 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:20 #1442 [Verbose] > │ v1 │
00:00:20 #1443 [Verbose] > │ and method5 (v0 : bool) : bool = │
00:00:20 #1444 [Verbose] > │ v0 │
00:00:20 #1445 [Verbose] > │ and method0 () : unit = │
00:00:20 #1446 [Verbose] > │ printfn $"print_and_return / x: {0}" │
00:00:20 #1447 [Verbose] > │ let v0 : (unit -> UH0) = closure0() │
00:00:20 #1448 [Verbose] > │ let v1 : US0 = US0_1(v0) │
00:00:20 #1449 [Verbose] > │ let v2 : Mut0 = {l0 = v1} : Mut0 │
00:00:20 #1450 [Verbose] > │ let v3 : US0 = v2.l0 │
00:00:20 #1451 [Verbose] > │ let v18 : UH0 = │
00:00:20 #1452 [Verbose] > │ match v3 with │
00:00:20 #1453 [Verbose] > │ | US0_0(v4) -> (* Computed *) │
00:00:20 #1454 [Verbose] > │ v4 │
00:00:20 #1455 [Verbose] > │ | US0_1(v5) -> (* NotComputed *) │
00:00:20 #1456 [Verbose] > │ let v6 : UH0 = v5 () │
00:00:20 #1457 [Verbose] > │ let v15 : UH0 = │
00:00:20 #1458 [Verbose] > │ match v6 with │
00:00:20 #1459 [Verbose] > │ | UH0_0(v8, v9) -> (* StreamCons *) │
00:00:20 #1460 [Verbose] > │ let v10 : US0 = US0_1(v9) │
00:00:20 #1461 [Verbose] > │ let v11 : Mut0 = {l0 = v10} : Mut0 │
00:00:20 #1462 [Verbose] > │ let v12 : (unit -> UH0) = closure11(v11) │
00:00:20 #1463 [Verbose] > │ UH0_0(v8, v12) │
00:00:20 #1464 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:20 #1465 [Verbose] > │ UH0_1 │
00:00:20 #1466 [Verbose] > │ let v16 : US0 = US0_0(v15) │
00:00:20 #1467 [Verbose] > │ v2.l0 <- v16 │
00:00:20 #1468 [Verbose] > │ v15 │
00:00:20 #1469 [Verbose] > │ let v19 : UH1 = UH1_1 │
00:00:20 #1470 [Verbose] > │ let v20 : int32 = 0 │
00:00:20 #1471 [Verbose] > │ let v21 : UH1 = method1(v18, v19, v20) │
00:00:20 #1472 [Verbose] > │ let v22 : int32 = 0 │
00:00:20 #1473 [Verbose] > │ let v23 : int32 = method4(v21, v22) │
00:00:20 #1474 [Verbose] > │ let v24 : bool = v23 = 10 │
00:00:20 #1475 [Verbose] > │ let v26 : bool = │
00:00:20 #1476 [Verbose] > │ if v24 then │
00:00:20 #1477 [Verbose] > │ true │
00:00:20 #1478 [Verbose] > │ else │
00:00:20 #1479 [Verbose] > │ method5(v24) │
00:00:20 #1480 [Verbose] > │ let v27 : string = $"__expect / actual: %A{v23} / expected: %A{10}" │
00:00:20 #1481 [Verbose] > │ let v28 : bool = v26 = false │
00:00:20 #1482 [Verbose] > │ if v28 then │
00:00:20 #1483 [Verbose] > │ failwith<unit> v27 │
00:00:20 #1484 [Verbose] > │ method0() │
00:00:20 #1485 [Verbose] > │ │
00:00:20 #1486 [Verbose] > │ print_and_return / x: 0 │
00:00:20 #1487 [Verbose] > │ print_and_return / x: 1 │
00:00:20 #1488 [Verbose] > │ print_and_return / x: 2 │
00:00:20 #1489 [Verbose] > │ print_and_return / x: 3 │
00:00:20 #1490 [Verbose] > │ print_and_return / x: 4 │
00:00:20 #1491 [Verbose] > │ print_and_return / x: 5 │
00:00:20 #1492 [Verbose] > │ │
00:00:20 #1493 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #1494 [Verbose] >
00:00:20 #1495 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 #1496 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 #1497 [Verbose] > │ ## memoize │
00:00:20 #1498 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #1499 [Verbose] >
00:00:20 #1500 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #1501 [Verbose] > inl memoize seq =
00:00:20 #1502 [Verbose] > inl state = mut [[]]
00:00:20 #1503 [Verbose] > fun n =>
00:00:20 #1504 [Verbose] > match *state |> listm'.try_find (fun (n', _) => n' = n) with
00:00:20 #1505 [Verbose] > | Some (_, v) => v
00:00:20 #1506 [Verbose] > | None =>
00:00:20 #1507 [Verbose] > inl new_state = seq n
00:00:20 #1508 [Verbose] > state <- (n, new_state) :: *state
00:00:20 #1509 [Verbose] > new_state
00:00:20 #1510 [Verbose] >
00:00:20 #1511 [Verbose] > inl memoize_ seq =
00:00:20 #1512 [Verbose] > inl state = mut [[]]
00:00:20 #1513 [Verbose] > fun n =>
00:00:20 #1514 [Verbose] > match *state |> listm'.try_find_ (fun (n', _) => n' = n) with
00:00:20 #1515 [Verbose] > | Some (_, v) => v
00:00:20 #1516 [Verbose] > | None =>
00:00:20 #1517 [Verbose] > inl new_state = seq n
00:00:20 #1518 [Verbose] > state <- (n, new_state) :: *state
00:00:20 #1519 [Verbose] > new_state
00:00:20 #1520 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4671-7190-742e0e2c2db5\main.spi
00:00:20 #1521 [Verbose] >
00:00:20 #1522 [Verbose] > ╭─[ 214.03ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #1523 [Verbose] > │ () │
00:00:20 #1524 [Verbose] > │ │
00:00:20 #1525 [Verbose] > │ │
00:00:20 #1526 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #1527 [Verbose] >
00:00:20 #1528 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #1529 [Verbose] > // // test
00:00:20 #1530 [Verbose] >
00:00:20 #1531 [Verbose] > inl seq =
00:00:20 #1532 [Verbose] > fun n =>
00:00:20 #1533 [Verbose] > n |> print_and_return |> Some
00:00:20 #1534 [Verbose] > |> memoize_
00:00:20 #1535 [Verbose] >
00:00:20 #1536 [Verbose] > seq
00:00:20 #1537 [Verbose] > |> take_while_ (fun n (_ : i32) => n < 5)
00:00:20 #1538 [Verbose] > |> listm'.sum
00:00:20 #1539 [Verbose] > |> _assert_eq 10
00:00:20 #1540 [Verbose] >
00:00:20 #1541 [Verbose] > seq
00:00:20 #1542 [Verbose] > |> take_while_ (fun n _ => n < 5)
00:00:20 #1543 [Verbose] > |> listm'.sum
00:00:20 #1544 [Verbose] > |> _assert_eq 10
00:00:20 #1545 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4693-9360-9901f20e431f\main.spi
00:00:20 #1546 [Verbose] >
00:00:20 #1547 [Verbose] > ╭─[ 391.09ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #1548 [Verbose] > │ type [<Struct>] US0 = │
00:00:20 #1549 [Verbose] > │ | US0_0 │
00:00:20 #1550 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:00:20 #1551 [Verbose] > │ and UH0 = │
00:00:20 #1552 [Verbose] > │ | UH0_0 of int32 * US0 * UH0 │
00:00:20 #1553 [Verbose] > │ | UH0_1 │
00:00:20 #1554 [Verbose] > │ and Mut0 = {mutable l0 : UH0} │
00:00:20 #1555 [Verbose] > │ and UH1 = │
00:00:20 #1556 [Verbose] > │ | UH1_0 of int32 * UH1 │
00:00:20 #1557 [Verbose] > │ | UH1_1 │
00:00:20 #1558 [Verbose] > │ and [<Struct>] US1 = │
00:00:20 #1559 [Verbose] > │ | US1_0 │
00:00:20 #1560 [Verbose] > │ | US1_1 of f1_0 : int32 * f1_1 : US0 │
00:00:20 #1561 [Verbose] > │ let rec method2 (v0 : int32, v1 : UH0) : US1 = │
00:00:20 #1562 [Verbose] > │ match v1 with │
00:00:20 #1563 [Verbose] > │ | UH0_0(v3, v4, v5) -> (* Cons *) │
00:00:20 #1564 [Verbose] > │ let v6 : bool = v3 = v0 │
00:00:20 #1565 [Verbose] > │ if v6 then │
00:00:20 #1566 [Verbose] > │ US1_1(v3, v4) │
00:00:20 #1567 [Verbose] > │ else │
00:00:20 #1568 [Verbose] > │ method2(v0, v5) │
00:00:20 #1569 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:20 #1570 [Verbose] > │ US1_0 │
00:00:20 #1571 [Verbose] > │ and method3 (v0 : UH1, v1 : UH1) : UH1 = │
00:00:20 #1572 [Verbose] > │ match v0 with │
00:00:20 #1573 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:00:20 #1574 [Verbose] > │ let v4 : UH1 = UH1_0(v2, v1) │
00:00:20 #1575 [Verbose] > │ method3(v3, v4) │
00:00:20 #1576 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:20 #1577 [Verbose] > │ v1 │
00:00:20 #1578 [Verbose] > │ and method1 (v0 : Mut0, v1 : UH1, v2 : int32) : UH1 = │
00:00:20 #1579 [Verbose] > │ let v3 : UH0 = v0.l0 │
00:00:20 #1580 [Verbose] > │ let v4 : US1 = method2(v2, v3) │
00:00:20 #1581 [Verbose] > │ let v12 : US0 = │
00:00:20 #1582 [Verbose] > │ match v4 with │
00:00:20 #1583 [Verbose] > │ | US1_0 -> (* None *) │
00:00:20 #1584 [Verbose] > │ printfn $"print_and_return / x: {v2}" │
00:00:20 #1585 [Verbose] > │ let v7 : UH0 = v0.l0 │
00:00:20 #1586 [Verbose] > │ let v8 : US0 = US0_1(v2) │
00:00:20 #1587 [Verbose] > │ let v9 : UH0 = UH0_0(v2, v8, v7) │
00:00:20 #1588 [Verbose] > │ v0.l0 <- v9 │
00:00:20 #1589 [Verbose] > │ US0_1(v2) │
00:00:20 #1590 [Verbose] > │ | US1_1(v5, v6) -> (* Some *) │
00:00:20 #1591 [Verbose] > │ v6 │
00:00:20 #1592 [Verbose] > │ match v12 with │
00:00:20 #1593 [Verbose] > │ | US0_1(v13) -> (* Some *) │
00:00:20 #1594 [Verbose] > │ let v14 : bool = v13 < 5 │
00:00:20 #1595 [Verbose] > │ if v14 then │
00:00:20 #1596 [Verbose] > │ let v15 : UH1 = UH1_0(v13, v1) │
00:00:20 #1597 [Verbose] > │ let v16 : int32 = v2 + 1 │
00:00:20 #1598 [Verbose] > │ method1(v0, v15, v16) │
00:00:20 #1599 [Verbose] > │ else │
00:00:20 #1600 [Verbose] > │ let v18 : UH1 = UH1_1 │
00:00:20 #1601 [Verbose] > │ method3(v1, v18) │
00:00:20 #1602 [Verbose] > │ | _ -> │
00:00:20 #1603 [Verbose] > │ let v21 : UH1 = UH1_1 │
00:00:20 #1604 [Verbose] > │ method3(v1, v21) │
00:00:20 #1605 [Verbose] > │ and method4 (v0 : UH1, v1 : int32) : int32 = │
00:00:20 #1606 [Verbose] > │ match v0 with │
00:00:20 #1607 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:00:20 #1608 [Verbose] > │ let v4 : int32 = v1 + v2 │
00:00:20 #1609 [Verbose] > │ method4(v3, v4) │
00:00:20 #1610 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:20 #1611 [Verbose] > │ v1 │
00:00:20 #1612 [Verbose] > │ and method5 (v0 : bool) : bool = │
00:00:20 #1613 [Verbose] > │ v0 │
00:00:20 #1614 [Verbose] > │ and method6 (v0 : Mut0, v1 : UH1, v2 : int32) : UH1 = │
00:00:20 #1615 [Verbose] > │ let v3 : UH0 = v0.l0 │
00:00:20 #1616 [Verbose] > │ let v4 : US1 = method2(v2, v3) │
00:00:20 #1617 [Verbose] > │ let v12 : US0 = │
00:00:20 #1618 [Verbose] > │ match v4 with │
00:00:20 #1619 [Verbose] > │ | US1_0 -> (* None *) │
00:00:20 #1620 [Verbose] > │ printfn $"print_and_return / x: {v2}" │
00:00:20 #1621 [Verbose] > │ let v7 : UH0 = v0.l0 │
00:00:20 #1622 [Verbose] > │ let v8 : US0 = US0_1(v2) │
00:00:20 #1623 [Verbose] > │ let v9 : UH0 = UH0_0(v2, v8, v7) │
00:00:20 #1624 [Verbose] > │ v0.l0 <- v9 │
00:00:20 #1625 [Verbose] > │ US0_1(v2) │
00:00:20 #1626 [Verbose] > │ | US1_1(v5, v6) -> (* Some *) │
00:00:20 #1627 [Verbose] > │ v6 │
00:00:20 #1628 [Verbose] > │ match v12 with │
00:00:20 #1629 [Verbose] > │ | US0_1(v13) -> (* Some *) │
00:00:20 #1630 [Verbose] > │ let v14 : bool = v13 < 5 │
00:00:20 #1631 [Verbose] > │ if v14 then │
00:00:20 #1632 [Verbose] > │ let v15 : UH1 = UH1_0(v13, v1) │
00:00:20 #1633 [Verbose] > │ let v16 : int32 = v2 + 1 │
00:00:20 #1634 [Verbose] > │ method6(v0, v15, v16) │
00:00:20 #1635 [Verbose] > │ else │
00:00:20 #1636 [Verbose] > │ let v18 : UH1 = UH1_1 │
00:00:20 #1637 [Verbose] > │ method3(v1, v18) │
00:00:20 #1638 [Verbose] > │ | _ -> │
00:00:20 #1639 [Verbose] > │ let v21 : UH1 = UH1_1 │
00:00:20 #1640 [Verbose] > │ method3(v1, v21) │
00:00:20 #1641 [Verbose] > │ and method0 () : unit = │
00:00:20 #1642 [Verbose] > │ let v0 : UH0 = UH0_1 │
00:00:20 #1643 [Verbose] > │ let v1 : Mut0 = {l0 = v0} : Mut0 │
00:00:20 #1644 [Verbose] > │ let v2 : UH1 = UH1_1 │
00:00:20 #1645 [Verbose] > │ let v3 : int32 = 0 │
00:00:20 #1646 [Verbose] > │ let v4 : UH1 = method1(v1, v2, v3) │
00:00:20 #1647 [Verbose] > │ let v5 : int32 = 0 │
00:00:20 #1648 [Verbose] > │ let v6 : int32 = method4(v4, v5) │
00:00:20 #1649 [Verbose] > │ let v7 : bool = v6 = 10 │
00:00:20 #1650 [Verbose] > │ let v9 : bool = │
00:00:20 #1651 [Verbose] > │ if v7 then │
00:00:20 #1652 [Verbose] > │ true │
00:00:20 #1653 [Verbose] > │ else │
00:00:20 #1654 [Verbose] > │ method5(v7) │
00:00:20 #1655 [Verbose] > │ let v10 : string = $"__expect / actual: %A{v6} / expected: %A{10}" │
00:00:20 #1656 [Verbose] > │ let v11 : bool = v9 = false │
00:00:20 #1657 [Verbose] > │ if v11 then │
00:00:20 #1658 [Verbose] > │ failwith<unit> v10 │
00:00:20 #1659 [Verbose] > │ let v12 : UH1 = UH1_1 │
00:00:20 #1660 [Verbose] > │ let v13 : int32 = 0 │
00:00:20 #1661 [Verbose] > │ let v14 : UH1 = method6(v1, v12, v13) │
00:00:20 #1662 [Verbose] > │ let v15 : int32 = 0 │
00:00:20 #1663 [Verbose] > │ let v16 : int32 = method4(v14, v15) │
00:00:20 #1664 [Verbose] > │ let v17 : bool = v16 = 10 │
00:00:20 #1665 [Verbose] > │ let v19 : bool = │
00:00:20 #1666 [Verbose] > │ if v17 then │
00:00:20 #1667 [Verbose] > │ true │
00:00:20 #1668 [Verbose] > │ else │
00:00:20 #1669 [Verbose] > │ method5(v17) │
00:00:20 #1670 [Verbose] > │ let v20 : string = $"__expect / actual: %A{v16} / expected: %A{10}" │
00:00:20 #1671 [Verbose] > │ let v21 : bool = v19 = false │
00:00:20 #1672 [Verbose] > │ if v21 then │
00:00:20 #1673 [Verbose] > │ failwith<unit> v20 │
00:00:20 #1674 [Verbose] > │ method0() │
00:00:20 #1675 [Verbose] > │ │
00:00:20 #1676 [Verbose] > │ print_and_return / x: 0 │
00:00:20 #1677 [Verbose] > │ print_and_return / x: 1 │
00:00:20 #1678 [Verbose] > │ print_and_return / x: 2 │
00:00:20 #1679 [Verbose] > │ print_and_return / x: 3 │
00:00:20 #1680 [Verbose] > │ print_and_return / x: 4 │
00:00:20 #1681 [Verbose] > │ print_and_return / x: 5 │
00:00:20 #1682 [Verbose] > │ │
00:00:20 #1683 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #1684 [Verbose] >
00:00:20 #1685 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 #1686 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 #1687 [Verbose] > │ ## iterate │
00:00:20 #1688 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #1689 [Verbose] >
00:00:20 #1690 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #1691 [Verbose] > inl iterate f x0 num_steps =
00:00:20 #1692 [Verbose] > inl rec loop x n =
00:00:20 #1693 [Verbose] > if n <= 0
00:00:20 #1694 [Verbose] > then x
00:00:20 #1695 [Verbose] > else loop (f x) (n - 1)
00:00:20 #1696 [Verbose] > loop x0 num_steps
00:00:21 #1697 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4738-3842-36982144a3bc\main.spi
00:00:21 #1698 [Verbose] >
00:00:21 #1699 [Verbose] > ╭─[ 220.38ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #1700 [Verbose] > │ () │
00:00:21 #1701 [Verbose] > │ │
00:00:21 #1702 [Verbose] > │ │
00:00:21 #1703 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #1704 [Verbose] >
00:00:21 #1705 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #1706 [Verbose] > // // test
00:00:21 #1707 [Verbose] >
00:00:21 #1708 [Verbose] > 10i32 |> iterate ((*) 2) 1i32
00:00:21 #1709 [Verbose] > |> _assert_eq 1024
00:00:21 #1710 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4760-6056-6dca124ee03d\main.spi
00:00:21 #1711 [Verbose] >
00:00:21 #1712 [Verbose] > ╭─[ 205.01ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #1713 [Verbose] > │ let rec method0 () : unit = │
00:00:21 #1714 [Verbose] > │ let v0 : string = $"__expect / actual: %A{1024} / expected: %A{1024}" │
00:00:21 #1715 [Verbose] > │ () │
00:00:21 #1716 [Verbose] > │ method0() │
00:00:21 #1717 [Verbose] > │ │
00:00:21 #1718 [Verbose] > │ │
00:00:21 #1719 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #1720 [Verbose] >
00:00:21 #1721 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #1722 [Verbose] > inl iterate_ f x0 num_steps =
00:00:21 #1723 [Verbose] > let rec loop x n =
00:00:21 #1724 [Verbose] > if n <= 0
00:00:21 #1725 [Verbose] > then x
00:00:21 #1726 [Verbose] > else loop (f x) (n - 1)
00:00:21 #1727 [Verbose] > loop x0 num_steps
00:00:21 #1728 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4781-8144-818293bf24d5\main.spi
00:00:21 #1729 [Verbose] >
00:00:21 #1730 [Verbose] > ╭─[ 226.90ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #1731 [Verbose] > │ () │
00:00:21 #1732 [Verbose] > │ │
00:00:21 #1733 [Verbose] > │ │
00:00:21 #1734 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #1735 [Verbose] >
00:00:21 #1736 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #1737 [Verbose] > // // test
00:00:21 #1738 [Verbose] >
00:00:21 #1739 [Verbose] > 10i32 |> iterate_ ((*) 2) 1i32
00:00:21 #1740 [Verbose] > |> _assert_eq 1024
00:00:21 #1741 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4804-0433-0537ea64c35c\main.spi
00:00:21 #1742 [Verbose] >
00:00:21 #1743 [Verbose] > ╭─[ 228.07ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #1744 [Verbose] > │ let rec method1 (v0 : int32, v1 : int32) : int32 = │
00:00:21 #1745 [Verbose] > │ let v2 : bool = v1 <= 0 │
00:00:21 #1746 [Verbose] > │ if v2 then │
00:00:21 #1747 [Verbose] > │ v0 │
00:00:21 #1748 [Verbose] > │ else │
00:00:21 #1749 [Verbose] > │ let v3 : int32 = 2 * v0 │
00:00:21 #1750 [Verbose] > │ let v4 : int32 = v1 - 1 │
00:00:21 #1751 [Verbose] > │ method1(v3, v4) │
00:00:21 #1752 [Verbose] > │ and method2 (v0 : bool) : bool = │
00:00:21 #1753 [Verbose] > │ v0 │
00:00:21 #1754 [Verbose] > │ and method0 () : unit = │
00:00:21 #1755 [Verbose] > │ let v0 : int32 = 1 │
00:00:21 #1756 [Verbose] > │ let v1 : int32 = 10 │
00:00:21 #1757 [Verbose] > │ let v2 : int32 = method1(v0, v1) │
00:00:21 #1758 [Verbose] > │ let v3 : bool = v2 = 1024 │
00:00:21 #1759 [Verbose] > │ let v5 : bool = │
00:00:21 #1760 [Verbose] > │ if v3 then │
00:00:21 #1761 [Verbose] > │ true │
00:00:21 #1762 [Verbose] > │ else │
00:00:21 #1763 [Verbose] > │ method2(v3) │
00:00:21 #1764 [Verbose] > │ let v6 : string = $"__expect / actual: %A{v2} / expected: %A{1024}" │
00:00:21 #1765 [Verbose] > │ let v7 : bool = v5 = false │
00:00:21 #1766 [Verbose] > │ if v7 then │
00:00:21 #1767 [Verbose] > │ failwith<unit> v6 │
00:00:21 #1768 [Verbose] > │ method0() │
00:00:21 #1769 [Verbose] > │ │
00:00:21 #1770 [Verbose] > │ │
00:00:21 #1771 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #1772 [Verbose] >
00:00:21 #1773 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #1774 [Verbose] > inl iterate' f x0 num_steps =
00:00:21 #1775 [Verbose] > listm.init num_steps id
00:00:21 #1776 [Verbose] > |> listm.fold (fun x _ => f x) x0
00:00:22 #1777 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4829-2975-20e2a9bf6ba9\main.spi
00:00:22 #1778 [Verbose] >
00:00:22 #1779 [Verbose] > ╭─[ 228.47ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #1780 [Verbose] > │ () │
00:00:22 #1781 [Verbose] > │ │
00:00:22 #1782 [Verbose] > │ │
00:00:22 #1783 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #1784 [Verbose] >
00:00:22 #1785 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #1786 [Verbose] > // // test
00:00:22 #1787 [Verbose] >
00:00:22 #1788 [Verbose] > 10i32 |> iterate' ((*) 2) 1i32
00:00:22 #1789 [Verbose] > |> _assert_eq 1024
00:00:22 #1790 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4852-5269-5a5e0909aa46\main.spi
00:00:22 #1791 [Verbose] >
00:00:22 #1792 [Verbose] > ╭─[ 219.82ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #1793 [Verbose] > │ let rec method0 () : unit = │
00:00:22 #1794 [Verbose] > │ let v0 : string = $"__expect / actual: %A{1024} / expected: %A{1024}" │
00:00:22 #1795 [Verbose] > │ () │
00:00:22 #1796 [Verbose] > │ method0() │
00:00:22 #1797 [Verbose] > │ │
00:00:22 #1798 [Verbose] > │ │
00:00:22 #1799 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #1800 [Verbose] >
00:00:22 #1801 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 #1802 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 #1803 [Verbose] > │ ## find_last │
00:00:22 #1804 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #1805 [Verbose] >
00:00:22 #1806 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #1807 [Verbose] > inl find_last forall item result. fold_fn fn target : option result =
00:00:22 #1808 [Verbose] > fold_fn (fun (item : item) (result : option result) =>
00:00:22 #1809 [Verbose] > match result with
00:00:22 #1810 [Verbose] > | None => fn item
00:00:22 #1811 [Verbose] > | result => result
00:00:22 #1812 [Verbose] > ) target (None : option result)
00:00:22 #1813 [Verbose] >
00:00:22 #1814 [Verbose] > inl array_find_last forall item result. (fn : item -> option result) (target : a
00:00:22 #1815 [Verbose] > i32 item) : option result =
00:00:22 #1816 [Verbose] > find_last am.foldBack fn target
00:00:22 #1817 [Verbose] >
00:00:22 #1818 [Verbose] > inl list_find_last forall item result. (fn : item -> option result) (target :
00:00:22 #1819 [Verbose] > list item) : option result =
00:00:22 #1820 [Verbose] > find_last listm.foldBack fn target
00:00:22 #1821 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-4875-7516-79b81e105098\main.spi
00:00:22 #1822 [Verbose] >
00:00:22 #1823 [Verbose] > ╭─[ 212.06ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #1824 [Verbose] > │ () │
00:00:22 #1825 [Verbose] > │ │
00:00:22 #1826 [Verbose] > │ │
00:00:22 #1827 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #1828 [Verbose] > [NbConvertApp] Converting notebook seq.dib.ipynb to html
00:00:24 #1829 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:24 #1830 [Verbose] > validate(nb)
00:00:24 #1831 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:24 #1832 [Verbose] > return _pygments_highlight(
00:00:25 #1833 [Verbose] > [NbConvertApp] Writing 392783 bytes to seq.dib.html
00:00:26 #1834 [Debug] executeAsync / exitCode: 0 / output.Length: 118728
00:00:26 #1835 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\lib\spiral
00:00:00 #4 [Verbose] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #6 [Debug] runWithTimeoutAsync / timeout: 500
00:00:00 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805
00:00:01 #11 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 util.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:03 #12 [Verbose] >
00:00:04 #13 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 #14 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 #15 [Verbose] > │ # util │
00:00:04 #16 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:04 #17 [Verbose] >
00:00:04 #18 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:04 #19 [Verbose] > // // test
00:00:04 #20 [Verbose] >
00:00:04 #21 [Verbose] > open testing
00:00:07 #22 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0042-5971-7147-7668caad0483\main.spi
00:00:10 #23 [Verbose] >
00:00:10 #24 [Verbose] > ╭─[ 6.02s - stdout ]───────────────────────────────────────────────────────────╮
00:00:10 #25 [Verbose] > │ () │
00:00:10 #26 [Verbose] > │ │
00:00:10 #27 [Verbose] > │ │
00:00:10 #28 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #29 [Verbose] >
00:00:10 #30 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #31 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #32 [Verbose] > │ ## ski │
00:00:10 #33 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #34 [Verbose] >
00:00:10 #35 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #36 [Verbose] > union rec ski =
00:00:10 #37 [Verbose] > | I
00:00:10 #38 [Verbose] > | K
00:00:10 #39 [Verbose] > | S
00:00:10 #40 [Verbose] > | App : ski * ski
00:00:10 #41 [Verbose] >
00:00:10 #42 [Verbose] > inl rec eval ski =
00:00:10 #43 [Verbose] > match ski with
00:00:10 #44 [Verbose] > | App (App (K, x), y) => eval x
00:00:10 #45 [Verbose] > | App (App (App (S, x), y), z) => eval (App (App (x, z), App (y, z)))
00:00:10 #46 [Verbose] > | App (I, x) => eval x
00:00:10 #47 [Verbose] > | App (K, x) => App (K, eval x)
00:00:10 #48 [Verbose] > | App (f, x) => eval (App (eval f, x))
00:00:10 #49 [Verbose] > | _ => ski
00:00:10 #50 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-0316-1687-1a5bcf4a97f7\main.spi
00:00:10 #51 [Verbose] >
00:00:10 #52 [Verbose] > ╭─[ 291.89ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #53 [Verbose] > │ () │
00:00:10 #54 [Verbose] > │ │
00:00:10 #55 [Verbose] > │ │
00:00:10 #56 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #57 [Verbose] >
00:00:10 #58 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #59 [Verbose] > // // test
00:00:10 #60 [Verbose] >
00:00:10 #61 [Verbose] > eval I
00:00:10 #62 [Verbose] > |> _assert_eq I
00:00:10 #63 [Verbose] >
00:00:10 #64 [Verbose] > eval (App (I, I))
00:00:10 #65 [Verbose] > |> _assert_eq I
00:00:10 #66 [Verbose] >
00:00:10 #67 [Verbose] > eval (App (I, App (I, I)))
00:00:10 #68 [Verbose] > |> _assert_eq I
00:00:10 #69 [Verbose] >
00:00:10 #70 [Verbose] > eval (App (App (I, I), I))
00:00:10 #71 [Verbose] > |> _assert_eq I
00:00:10 #72 [Verbose] >
00:00:10 #73 [Verbose] > eval (App (App (App (I, I), I), I))
00:00:10 #74 [Verbose] > |> _assert_eq I
00:00:10 #75 [Verbose] >
00:00:10 #76 [Verbose] > eval K
00:00:10 #77 [Verbose] > |> _assert_eq K
00:00:10 #78 [Verbose] >
00:00:10 #79 [Verbose] > eval (App (K, I))
00:00:10 #80 [Verbose] > |> _assert_eq (App (K, I))
00:00:10 #81 [Verbose] >
00:00:10 #82 [Verbose] > eval (App (K, K))
00:00:10 #83 [Verbose] > |> _assert_eq (App (K, K))
00:00:10 #84 [Verbose] >
00:00:10 #85 [Verbose] > eval (App (App (K, I), K))
00:00:10 #86 [Verbose] > |> _assert_eq I
00:00:10 #87 [Verbose] >
00:00:10 #88 [Verbose] > eval (App (App (K, K), I))
00:00:10 #89 [Verbose] > |> _assert_eq K
00:00:10 #90 [Verbose] >
00:00:10 #91 [Verbose] > eval (App (App (App (App (K, K), I), S), K))
00:00:10 #92 [Verbose] > |> _assert_eq S
00:00:10 #93 [Verbose] >
00:00:10 #94 [Verbose] > eval S
00:00:10 #95 [Verbose] > |> _assert_eq S
00:00:10 #96 [Verbose] >
00:00:10 #97 [Verbose] > eval (App (App (App (S, I), I), I))
00:00:10 #98 [Verbose] > |> _assert_eq I
00:00:10 #99 [Verbose] >
00:00:10 #100 [Verbose] > eval (App (App (App (S, K), K), I))
00:00:10 #101 [Verbose] > |> _assert_eq I
00:00:10 #102 [Verbose] >
00:00:10 #103 [Verbose] > eval (App (App (App (S, K), I), (App (App (K, I), S))))
00:00:10 #104 [Verbose] > |> _assert_eq I
00:00:10 #105 [Verbose] >
00:00:10 #106 [Verbose] > eval (App (App (K, S), App (I, App (App (App (S, K), S), I))))
00:00:10 #107 [Verbose] > |> _assert_eq S
00:00:10 #108 [Verbose] >
00:00:10 #109 [Verbose] > eval (App (App (App (S, K), I), K))
00:00:10 #110 [Verbose] > |> _assert_eq K
00:00:10 #111 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-0344-4454-4997ba596ce1\main.spi
00:00:11 #112 [Verbose] >
00:00:11 #113 [Verbose] > ╭─[ 1.42s - stdout ]───────────────────────────────────────────────────────────╮
00:00:11 #114 [Verbose] > │ type UH0 = │
00:00:11 #115 [Verbose] > │ | UH0_0 of UH0 * UH0 │
00:00:11 #116 [Verbose] > │ | UH0_1 │
00:00:11 #117 [Verbose] > │ | UH0_2 │
00:00:11 #118 [Verbose] > │ | UH0_3 │
00:00:11 #119 [Verbose] > │ let rec method0 () : unit = │
00:00:11 #120 [Verbose] > │ let v3 : UH0 = UH0_1 │
00:00:11 #121 [Verbose] > │ let v4 : UH0 = UH0_1 │
00:00:11 #122 [Verbose] > │ let v5 : string = $"__expect / actual: %A{v3} / expected: %A{v4}" │
00:00:11 #123 [Verbose] > │ let v9 : UH0 = UH0_1 │
00:00:11 #124 [Verbose] > │ let v10 : UH0 = UH0_1 │
00:00:11 #125 [Verbose] > │ let v11 : string = $"__expect / actual: %A{v9} / expected: %A{v10}" │
00:00:11 #126 [Verbose] > │ let v15 : UH0 = UH0_1 │
00:00:11 #127 [Verbose] > │ let v16 : UH0 = UH0_1 │
00:00:11 #128 [Verbose] > │ let v17 : string = $"__expect / actual: %A{v15} / expected: %A{v16}" │
00:00:11 #129 [Verbose] > │ let v21 : UH0 = UH0_1 │
00:00:11 #130 [Verbose] > │ let v22 : UH0 = UH0_1 │
00:00:11 #131 [Verbose] > │ let v23 : string = $"__expect / actual: %A{v21} / expected: %A{v22}" │
00:00:11 #132 [Verbose] > │ let v27 : UH0 = UH0_1 │
00:00:11 #133 [Verbose] > │ let v28 : UH0 = UH0_1 │
00:00:11 #134 [Verbose] > │ let v29 : string = $"__expect / actual: %A{v27} / expected: %A{v28}" │
00:00:11 #135 [Verbose] > │ let v33 : UH0 = UH0_2 │
00:00:11 #136 [Verbose] > │ let v34 : UH0 = UH0_2 │
00:00:11 #137 [Verbose] > │ let v35 : string = $"__expect / actual: %A{v33} / expected: %A{v34}" │
00:00:11 #138 [Verbose] > │ let v47 : UH0 = UH0_2 │
00:00:11 #139 [Verbose] > │ let v48 : UH0 = UH0_1 │
00:00:11 #140 [Verbose] > │ let v49 : UH0 = UH0_0(v47, v48) │
00:00:11 #141 [Verbose] > │ let v50 : UH0 = UH0_2 │
00:00:11 #142 [Verbose] > │ let v51 : UH0 = UH0_1 │
00:00:11 #143 [Verbose] > │ let v52 : UH0 = UH0_0(v50, v51) │
00:00:11 #144 [Verbose] > │ let v53 : string = $"__expect / actual: %A{v49} / expected: %A{v52}" │
00:00:11 #145 [Verbose] > │ let v65 : UH0 = UH0_2 │
00:00:11 #146 [Verbose] > │ let v66 : UH0 = UH0_2 │
00:00:11 #147 [Verbose] > │ let v67 : UH0 = UH0_0(v65, v66) │
00:00:11 #148 [Verbose] > │ let v68 : UH0 = UH0_2 │
00:00:11 #149 [Verbose] > │ let v69 : UH0 = UH0_2 │
00:00:11 #150 [Verbose] > │ let v70 : UH0 = UH0_0(v68, v69) │
00:00:11 #151 [Verbose] > │ let v71 : string = $"__expect / actual: %A{v67} / expected: %A{v70}" │
00:00:11 #152 [Verbose] > │ let v75 : UH0 = UH0_1 │
00:00:11 #153 [Verbose] > │ let v76 : UH0 = UH0_1 │
00:00:11 #154 [Verbose] > │ let v77 : string = $"__expect / actual: %A{v75} / expected: %A{v76}" │
00:00:11 #155 [Verbose] > │ let v81 : UH0 = UH0_2 │
00:00:11 #156 [Verbose] > │ let v82 : UH0 = UH0_2 │
00:00:11 #157 [Verbose] > │ let v83 : string = $"__expect / actual: %A{v81} / expected: %A{v82}" │
00:00:11 #158 [Verbose] > │ let v87 : UH0 = UH0_3 │
00:00:11 #159 [Verbose] > │ let v88 : UH0 = UH0_3 │
00:00:11 #160 [Verbose] > │ let v89 : string = $"__expect / actual: %A{v87} / expected: %A{v88}" │
00:00:11 #161 [Verbose] > │ let v93 : UH0 = UH0_3 │
00:00:11 #162 [Verbose] > │ let v94 : UH0 = UH0_3 │
00:00:11 #163 [Verbose] > │ let v95 : string = $"__expect / actual: %A{v93} / expected: %A{v94}" │
00:00:11 #164 [Verbose] > │ let v99 : UH0 = UH0_1 │
00:00:11 #165 [Verbose] > │ let v100 : UH0 = UH0_1 │
00:00:11 #166 [Verbose] > │ let v101 : string = $"__expect / actual: %A{v99} / expected: %A{v100}" │
00:00:11 #167 [Verbose] > │ let v105 : UH0 = UH0_1 │
00:00:11 #168 [Verbose] > │ let v106 : UH0 = UH0_1 │
00:00:11 #169 [Verbose] > │ let v107 : string = $"__expect / actual: %A{v105} / expected: %A{v106}" │
00:00:11 #170 [Verbose] > │ let v111 : UH0 = UH0_1 │
00:00:11 #171 [Verbose] > │ let v112 : UH0 = UH0_1 │
00:00:11 #172 [Verbose] > │ let v113 : string = $"__expect / actual: %A{v111} / expected: %A{v112}" │
00:00:11 #173 [Verbose] > │ let v117 : UH0 = UH0_3 │
00:00:11 #174 [Verbose] > │ let v118 : UH0 = UH0_3 │
00:00:11 #175 [Verbose] > │ let v119 : string = $"__expect / actual: %A{v117} / expected: %A{v118}" │
00:00:11 #176 [Verbose] > │ let v123 : UH0 = UH0_2 │
00:00:11 #177 [Verbose] > │ let v124 : UH0 = UH0_2 │
00:00:11 #178 [Verbose] > │ let v125 : string = $"__expect / actual: %A{v123} / expected: %A{v124}" │
00:00:11 #179 [Verbose] > │ () │
00:00:11 #180 [Verbose] > │ method0() │
00:00:11 #181 [Verbose] > │ │
00:00:11 #182 [Verbose] > │ │
00:00:11 #183 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #184 [Verbose] > [NbConvertApp] Converting notebook util.dib.ipynb to html
00:00:13 #185 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:13 #186 [Verbose] > validate(nb)
00:00:14 #187 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:14 #188 [Verbose] > return _pygments_highlight(
00:00:14 #189 [Verbose] > [NbConvertApp] Writing 286664 bytes to util.dib.html
00:00:15 #190 [Debug] executeAsync / exitCode: 0 / output.Length: 9367
00:00:15 #191 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\lib\spiral
00:00:00 #4 [Verbose] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #6 [Debug] runWithTimeoutAsync / timeout: 500
00:00:00 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805
00:00:01 #11 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 rust.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:03 #12 [Verbose] >
00:00:03 #13 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:03 #14 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 #15 [Verbose] > │ # rust │
00:00:04 #16 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:04 #17 [Verbose] >
00:00:04 #18 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:04 #19 [Verbose] > // // test
00:00:04 #20 [Verbose] >
00:00:04 #21 [Verbose] > open testing
00:00:07 #22 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-1524-2464-2f5909167f80\main.spi
00:00:10 #23 [Verbose] >
00:00:10 #24 [Verbose] > ╭─[ 6.14s - stdout ]───────────────────────────────────────────────────────────╮
00:00:10 #25 [Verbose] > │ () │
00:00:10 #26 [Verbose] > │ │
00:00:10 #27 [Verbose] > │ │
00:00:10 #28 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #29 [Verbose] >
00:00:10 #30 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #31 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #32 [Verbose] > │ ## emit_expr │
00:00:10 #33 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #34 [Verbose] >
00:00:10 #35 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #36 [Verbose] > inl emit_expr forall a t. (args : a) (code : string) : t =
00:00:10 #37 [Verbose] > real
00:00:10 #38 [Verbose] > $"Fable.Core.RustInterop.emitRustExpr !args !code" : t
00:00:10 #39 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-1896-9611-988667bcd942\main.spi
00:00:10 #40 [Verbose] >
00:00:10 #41 [Verbose] > ╭─[ 256.05ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #42 [Verbose] > │ () │
00:00:10 #43 [Verbose] > │ │
00:00:10 #44 [Verbose] > │ │
00:00:10 #45 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #46 [Verbose] >
00:00:10 #47 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #48 [Verbose] > inl types () =
00:00:10 #49 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Func0<$0>\")>]] type
00:00:10 #50 [Verbose] > Func0<'T> = class end"
00:00:10 #51 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Func1<$0, $1>\")>]] type
00:00:10 #52 [Verbose] > Func0<'T, 'U> = class end"
00:00:10 #53 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Box<$0>\")>]] type Box<'T> =
00:00:10 #54 [Verbose] > class end"
00:00:10 #55 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"dyn $0\")>]] type Dyn<'T> =
00:00:10 #56 [Verbose] > class end"
00:00:10 #57 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Fn() -> $0\")>]] type Fn<'T>
00:00:10 #58 [Verbose] > = class end"
00:00:10 #59 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Fn()\")>]] type FnUnit =
00:00:10 #60 [Verbose] > class end"
00:00:10 #61 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"FnOnce() -> $0\")>]] type
00:00:10 #62 [Verbose] > FnOnce<'T> = class end"
00:00:10 #63 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"Fn($0, $1)\")>]] type
00:00:10 #64 [Verbose] > ActionFn2<'T, 'U> = class end"
00:00:10 #65 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"impl $0\")>]] type Impl<'T> =
00:00:10 #66 [Verbose] > class end"
00:00:10 #67 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"mut $0\")>]] type Mut<'T> =
00:00:10 #68 [Verbose] > class end"
00:00:10 #69 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"&$0\")>]] type Ref<'T> =
00:00:10 #70 [Verbose] > class end"
00:00:10 #71 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"&'static $0\")>]] type
00:00:10 #72 [Verbose] > StaticRef<'T> = class end"
00:00:10 #73 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"MutCell<$0>\")>]] type
00:00:10 #74 [Verbose] > MutCell<'T> = class end"
00:00:10 #75 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::any::Any\")>]] type
00:00:10 #76 [Verbose] > std_any_Any = class end"
00:00:10 #77 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::cell::RefCell<$0>\")>]]
00:00:10 #78 [Verbose] > type std_cell_RefCell<'T> = class end"
00:00:10 #79 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::pin::Pin<$0>\")>]] type
00:00:10 #80 [Verbose] > std_pin_Pin<'T> = class end"
00:00:10 #81 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::rc::Rc<$0>\")>]] type
00:00:10 #82 [Verbose] > std_rc_Rc<'T> = class end"
00:00:10 #83 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::rc::Weak<$0>\")>]] type
00:00:10 #84 [Verbose] > std_rc_Weak<'T> = class end"
00:00:10 #85 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"std::sync::Arc<$0>\")>]] type
00:00:10 #86 [Verbose] > std_sync_Arc<'T> = class end"
00:00:10 #87 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-1921-2149-2d6fef098748\main.spi
00:00:10 #88 [Verbose] >
00:00:10 #89 [Verbose] > ╭─[ 272.78ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #90 [Verbose] > │ () │
00:00:10 #91 [Verbose] > │ │
00:00:10 #92 [Verbose] > │ │
00:00:10 #93 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #94 [Verbose] >
00:00:10 #95 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #96 [Verbose] > nominal ref_cell t = $"std_cell_RefCell<`t>"
00:00:10 #97 [Verbose] > nominal rc t = $"std_rc_Rc<`t>"
00:00:10 #98 [Verbose] > nominal weak_rc t = $"std_rc_Weak<`t>"
00:00:10 #99 [Verbose] > nominal box t = $"Box<`t>"
00:00:10 #100 [Verbose] > nominal mut_cell t = $"MutCell<`t>"
00:00:10 #101 [Verbose] > nominal pin t = $"std_pin_Pin<`t>"
00:00:10 #102 [Verbose] > nominal arc t = $"std_sync_Arc<`t>"
00:00:10 #103 [Verbose] > nominal dyn' t = $"Dyn<`t>"
00:00:10 #104 [Verbose] > nominal fn' t = $"Fn<`t>"
00:00:10 #105 [Verbose] > nominal action_fn2 t u = $"ActionFn2<`t, `u>"
00:00:10 #106 [Verbose] > nominal fn_once t = $"FnOnce<`t>"
00:00:10 #107 [Verbose] > nominal fn_unit = $"FnUnit"
00:00:10 #108 [Verbose] > nominal func0 t = $"Func0<`t>"
00:00:10 #109 [Verbose] > nominal func1 t u = $"Func0<`t, `u>"
00:00:10 #110 [Verbose] > nominal impl t = $"Impl<`t>"
00:00:10 #111 [Verbose] > nominal mut' t = $"Mut<`t>"
00:00:10 #112 [Verbose] > nominal ref' t = $"Ref<`t>"
00:00:10 #113 [Verbose] > nominal static_ref' t = $"StaticRef<`t>"
00:00:10 #114 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-1948-4898-4c5952bb1eb4\main.spi
00:00:10 #115 [Verbose] >
00:00:10 #116 [Verbose] > ╭─[ 220.65ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #117 [Verbose] > │ () │
00:00:10 #118 [Verbose] > │ │
00:00:10 #119 [Verbose] > │ │
00:00:10 #120 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #121 [Verbose] >
00:00:10 #122 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #123 [Verbose] > inl (~!\) forall t. (code : string) : t =
00:00:10 #124 [Verbose] > emit_expr () code
00:00:10 #125 [Verbose] >
00:00:10 #126 [Verbose] > inl (~!\\) forall t u. ((args : t), (code : string)) : u =
00:00:10 #127 [Verbose] > emit_expr args code
00:00:10 #128 [Verbose] >
00:00:10 #129 [Verbose] > inl new_box forall t. (x : t) : box t =
00:00:10 #130 [Verbose] > inl x = join x
00:00:10 #131 [Verbose] > !\($'"Box::new(!x)"')
00:00:10 #132 [Verbose] >
00:00:10 #133 [Verbose] > inl new_rc forall t. (x : t) : rc t =
00:00:10 #134 [Verbose] > inl x = join x
00:00:10 #135 [Verbose] > !\($'"std::rc::Rc::new(!x)"')
00:00:10 #136 [Verbose] >
00:00:10 #137 [Verbose] > inl rc_clone forall t. (x : rc t) : rc t =
00:00:10 #138 [Verbose] > inl x = join x
00:00:10 #139 [Verbose] > !\($'"std::rc::Rc::clone(&!x)"')
00:00:10 #140 [Verbose] >
00:00:10 #141 [Verbose] > inl rc_downgrade forall t. (x : rc t) : weak_rc t =
00:00:10 #142 [Verbose] > inl x = join x
00:00:10 #143 [Verbose] > !\($'"std::rc::Rc::downgrade(&!x)"')
00:00:10 #144 [Verbose] >
00:00:10 #145 [Verbose] > inl new_ref_cell forall t. (x : t) : ref_cell t =
00:00:10 #146 [Verbose] > inl x = join x
00:00:10 #147 [Verbose] > !\($'"std::cell::RefCell::new(!x)"')
00:00:10 #148 [Verbose] >
00:00:10 #149 [Verbose] > inl ref_cell_borrow forall t. (x : rc (ref_cell t)) : t =
00:00:10 #150 [Verbose] > inl x = join x
00:00:10 #151 [Verbose] > !\($'"*std::cell::RefCell::borrow(&std::rc::Rc::clone(&!x))"')
00:00:10 #152 [Verbose] >
00:00:10 #153 [Verbose] > inl ref_cell_borrow_mut forall t. (x : rc (ref_cell t)) : mut' t =
00:00:10 #154 [Verbose] > inl x = join x
00:00:10 #155 [Verbose] > !\($'"*std::cell::RefCell::borrow_mut(&std::rc::Rc::clone(&!x))"')
00:00:10 #156 [Verbose] >
00:00:10 #157 [Verbose] > inl to_mut forall t. (x : t) : mut' t =
00:00:10 #158 [Verbose] > // !\($'"let mut !x = !x"')
00:00:10 #159 [Verbose] > // !\($'"!x"')
00:00:10 #160 [Verbose] > emit_expr () $"\"let mut !x = !x\""
00:00:10 #161 [Verbose] > emit_expr () $"\"!x\""
00:00:10 #162 [Verbose] >
00:00:10 #163 [Verbose] > inl ref_map forall t u. (fn : t -> u) (x : ref' t) : ref' u =
00:00:10 #164 [Verbose] > !\($'"!fn(!x)"')
00:00:10 #165 [Verbose] >
00:00:10 #166 [Verbose] > inl from_mut forall t. (x : mut' t) : t =
00:00:10 #167 [Verbose] > !\($'"!x"')
00:00:10 #168 [Verbose] >
00:00:10 #169 [Verbose] > inl new_arc forall t. (x : t) : arc t =
00:00:10 #170 [Verbose] > inl x = join x
00:00:10 #171 [Verbose] > !\($'"std::sync::Arc::new(!x)"')
00:00:10 #172 [Verbose] >
00:00:10 #173 [Verbose] > inl box_fn forall t. (x : () -> ()) : box t =
00:00:10 #174 [Verbose] > inl x = join x
00:00:10 #175 [Verbose] > !\($'"Box::new(move || !x())"')
00:00:10 #176 [Verbose] >
00:00:10 #177 [Verbose] > inl new_pin forall t. (x : t) : pin (box t) =
00:00:10 #178 [Verbose] > inl x = join x
00:00:10 #179 [Verbose] > !\($'"Box::pin(!x)"')
00:00:10 #180 [Verbose] >
00:00:10 #181 [Verbose] > inl deref forall t. (ref : ref' t) : t =
00:00:10 #182 [Verbose] > inl ref = join ref
00:00:10 #183 [Verbose] > !\($'"*!ref"')
00:00:10 #184 [Verbose] >
00:00:10 #185 [Verbose] > inl ops_deref forall t. (ref : t) : t =
00:00:10 #186 [Verbose] > inl ref = join ref
00:00:10 #187 [Verbose] > !\($'"core::ops::Deref::deref(&!ref)"')
00:00:10 #188 [Verbose] >
00:00:10 #189 [Verbose] > inl func0_get forall t. (x : func0 t) : t =
00:00:10 #190 [Verbose] > inl x = join x
00:00:10 #191 [Verbose] > !\($'"!x()"')
00:00:10 #192 [Verbose] >
00:00:10 #193 [Verbose] > inl func0_move forall t. (fn : func0 t) : t =
00:00:10 #194 [Verbose] > inl fn = join fn
00:00:10 #195 [Verbose] > !\($'"(move || !fn())()"')
00:00:10 #196 [Verbose] >
00:00:10 #197 [Verbose] > inl move forall t. (fn : () -> t) : func0 t =
00:00:10 #198 [Verbose] > inl fn = join fn
00:00:10 #199 [Verbose] > !\($'"Func0::new(move || !fn())"')
00:00:10 #200 [Verbose] >
00:00:10 #201 [Verbose] > inl to_static_ref_unbox forall t. (x : ref' t) : static_ref' t =
00:00:10 #202 [Verbose] > $"!x |> unbox"
00:00:10 #203 [Verbose] >
00:00:10 #204 [Verbose] > inl from_static_ref_unbox forall t. (x : static_ref' t) : ref' t =
00:00:10 #205 [Verbose] > $"!x |> unbox"
00:00:10 #206 [Verbose] >
00:00:10 #207 [Verbose] > inl box_leak forall t. (x : box t) : static_ref' (mut' t) =
00:00:10 #208 [Verbose] > emit_expr () $"\"Box::leak(!x)\""
00:00:10 #209 [Verbose] >
00:00:10 #210 [Verbose] >
00:00:10 #211 [Verbose] > inl fix_closure depth' x' =
00:00:10 #212 [Verbose] > inl depth = depth' |> fst
00:00:10 #213 [Verbose] > if depth = 1
00:00:10 #214 [Verbose] > then !\($'"!x' })"')
00:00:10 #215 [Verbose] > elif depth = 2
00:00:10 #216 [Verbose] > then !\($'"!x' }})"')
00:00:10 #217 [Verbose] > elif depth = 3
00:00:10 #218 [Verbose] > then !\($'"!x' }}})"')
00:00:10 #219 [Verbose] > elif depth = 4
00:00:10 #220 [Verbose] > then !\($'"!x' }}}})"')
00:00:10 #221 [Verbose] > elif depth = 5
00:00:10 #222 [Verbose] > then !\($'"!x' }}}}})"')
00:00:10 #223 [Verbose] > elif depth = 6 // , 4) // ?
00:00:10 #224 [Verbose] > then !\($'"!x' }}}}}})"')
00:00:10 #225 [Verbose] > elif depth = 7 // , 5) // 7
00:00:10 #226 [Verbose] > then !\($'"!x' }}}}}}})"')
00:00:10 #227 [Verbose] > elif depth = 8 // , 5) // 7
00:00:10 #228 [Verbose] > then !\($'"!x' }}}}}}}})"')
00:00:10 #229 [Verbose] >
00:00:10 #230 [Verbose] > inl depth = depth' |> snd
00:00:10 #231 [Verbose] > if depth = 1
00:00:10 #232 [Verbose] > then !\($'" { //"')
00:00:10 #233 [Verbose] > elif depth = 2
00:00:10 #234 [Verbose] > then !\($'" {{ //"')
00:00:10 #235 [Verbose] > elif depth = 3
00:00:10 #236 [Verbose] > then !\($'" {{{ //"')
00:00:10 #237 [Verbose] > elif depth = 4
00:00:10 #238 [Verbose] > then !\($'" {{{{ //"')
00:00:10 #239 [Verbose] > elif depth = 5
00:00:10 #240 [Verbose] > then !\($'" {{{{{ //"')
00:00:10 #241 [Verbose] > elif depth = 6
00:00:10 #242 [Verbose] > then !\($'"!x' {{{{{{ //"')
00:00:10 #243 [Verbose] > elif depth = 7
00:00:10 #244 [Verbose] > then !\($'"!x' {{{{{{{ //"')
00:00:10 #245 [Verbose] > elif depth = 8
00:00:10 #246 [Verbose] > then !\($'"!x' {{{{{{{{ //"')
00:00:11 #247 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-1971-7121-7c5ed40b8e85\main.spi
00:00:11 #248 [Verbose] >
00:00:11 #249 [Verbose] > ╭─[ 297.81ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #250 [Verbose] > │ () │
00:00:11 #251 [Verbose] > │ │
00:00:11 #252 [Verbose] > │ │
00:00:11 #253 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #254 [Verbose] > [NbConvertApp] Converting notebook rust.dib.ipynb to html
00:00:13 #255 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:13 #256 [Verbose] > validate(nb)
00:00:13 #257 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:13 #258 [Verbose] > return _pygments_highlight(
00:00:14 #259 [Verbose] > [NbConvertApp] Writing 304969 bytes to rust.dib.html
00:00:14 #260 [Debug] executeAsync / exitCode: 0 / output.Length: 9692
00:00:14 #261 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\lib\spiral
00:00:00 #4 [Verbose] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #6 [Debug] runWithTimeoutAsync / timeout: 500
00:00:01 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805
00:00:01 #11 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 physics.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:03 #12 [Verbose] >
00:00:04 #13 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 #14 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 #15 [Verbose] > │ # physics │
00:00:04 #16 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:04 #17 [Verbose] >
00:00:04 #18 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:04 #19 [Verbose] > #!import ../../lib/fsharp/Plotting.dib
00:00:04 #20 [Verbose] >
00:00:04 #21 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:04 #22 [Verbose] > #r
00:00:04 #23 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
00:00:04 #24 [Verbose] > spNetCore.Html.Abstractions.dll"
00:00:04 #25 [Verbose] > #r
00:00:04 #26 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:04 #27 [Verbose] > otNet.Interactive.dll"
00:00:04 #28 [Verbose] > #r
00:00:04 #29 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:04 #30 [Verbose] > otNet.Interactive.FSharp.dll"
00:00:04 #31 [Verbose] > #r
00:00:04 #32 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:04 #33 [Verbose] > otNet.Interactive.Formatting.dll"
00:00:04 #34 [Verbose] > open System
00:00:04 #35 [Verbose] > open System.IO
00:00:04 #36 [Verbose] > open System.Text
00:00:04 #37 [Verbose] > open Microsoft.DotNet.Interactive.Formatting
00:00:07 #38 [Verbose] >
00:00:07 #39 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:07 #40 [Verbose] > #r
00:00:07 #41 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:07 #42 [Verbose] > otNet.Interactive.FSharp.dll"
00:00:07 #43 [Verbose] > open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
00:00:07 #44 [Verbose] > #r
00:00:07 #45 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:07 #46 [Verbose] > otNet.Interactive.dll"
00:00:07 #47 [Verbose] > open type Microsoft.DotNet.Interactive.Kernel
00:00:07 #48 [Verbose] >
00:00:07 #49 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:07 #50 [Verbose] > //// test
00:00:07 #51 [Verbose] >
00:00:07 #52 [Verbose] > Formatter.ListExpansionLimit <- 100
00:00:08 #53 [Verbose] >
00:00:08 #54 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:08 #55 [Verbose] > #r
00:00:08 #56 [Verbose] > @"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
00:00:08 #57 [Verbose] > dard2.1/FSharp.Control.AsyncSeq.dll"
00:00:08 #58 [Verbose] > #r
00:00:08 #59 [Verbose] > @"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
00:00:08 #60 [Verbose] > 0/System.Reactive.dll"
00:00:08 #61 [Verbose] > #r
00:00:08 #62 [Verbose] > @"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib
00:00:08 #63 [Verbose] > netstandard2.0/System.Reactive.Linq.dll"
00:00:08 #64 [Verbose] > #r
00:00:08 #65 [Verbose] > @"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"
00:00:08 #66 [Verbose] > #r
00:00:08 #67 [Verbose] > @"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li
00:00:08 #68 [Verbose] > b/net6.0/System.CommandLine.dll"
00:00:08 #69 [Verbose] > #r
00:00:08 #70 [Verbose] > @"../../../../../../../.nuget/packages/fsharp.json/0.4.1/lib/netstandard2.0/FSha
00:00:08 #71 [Verbose] > rp.Json.dll"
00:00:08 #72 [Verbose] >
00:00:08 #73 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:08 #74 [Verbose] > #if !INTERACTIVE
00:00:08 #75 [Verbose] > namespace Polyglot
00:00:08 #76 [Verbose] > #endif
00:00:08 #77 [Verbose] >
00:00:08 #78 [Verbose] > module Common =
00:00:08 #79 [Verbose] >
00:00:08 #80 [Verbose] > let nl = System.Environment.NewLine
00:00:08 #81 [Verbose] > let q = @""""
00:00:08 #82 [Verbose] >
00:00:08 #83 [Verbose] > let inline cons head tail = head :: tail
00:00:08 #84 [Verbose] >
00:00:08 #85 [Verbose] > module String =
00:00:08 #86 [Verbose] > let inline contains (value : string) (input : string) =
00:00:08 #87 [Verbose] > input.Contains value
00:00:08 #88 [Verbose] >
00:00:08 #89 [Verbose] > let inline endsWith (value : string) (input : string) =
00:00:08 #90 [Verbose] > input.EndsWith value
00:00:08 #91 [Verbose] >
00:00:08 #92 [Verbose] > let inline padLeft totalWidth paddingChar (input : string) =
00:00:08 #93 [Verbose] > input.PadLeft (totalWidth, paddingChar)
00:00:08 #94 [Verbose] >
00:00:08 #95 [Verbose] > let inline replace (oldValue : string) (newValue : string) (input :
00:00:08 #96 [Verbose] > string) =
00:00:08 #97 [Verbose] > input.Replace (oldValue, newValue)
00:00:08 #98 [Verbose] >
00:00:08 #99 [Verbose] > let inline split separator (input : string) =
00:00:08 #100 [Verbose] > input.Split separator
00:00:08 #101 [Verbose] >
00:00:08 #102 [Verbose] > let inline spli...
00:00:09 #103 [Verbose] >
00:00:09 #104 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:09 #105 [Verbose] > #if !INTERACTIVE
00:00:09 #106 [Verbose] > namespace Polyglot
00:00:09 #107 [Verbose] > #endif
00:00:09 #108 [Verbose] >
00:00:09 #109 [Verbose] > module CommonFSharp =
00:00:09 #110 [Verbose] >
00:00:09 #111 [Verbose] > open Common
00:00:09 #112 [Verbose] >
00:00:09 #113 [Verbose] > /// ## getUnionCaseName
00:00:09 #114 [Verbose] >
00:00:09 #115 [Verbose] > let inline getUnionCaseName<'T> (x: 'T) =
00:00:09 #116 [Verbose] > match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
00:00:09 #117 [Verbose] > | case, _ -> case.Name
00:00:09 #118 [Verbose] >
00:00:09 #119 [Verbose] >
00:00:09 #120 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:09 #121 [Verbose] > #if !INTERACTIVE
00:00:09 #122 [Verbose] > namespace Polyglot
00:00:09 #123 [Verbose] > #endif
00:00:09 #124 [Verbose] >
00:00:09 #125 [Verbose] > module Crypto =
00:00:09 #126 [Verbose] >
00:00:09 #127 [Verbose] > open Common
00:00:09 #128 [Verbose] >
00:00:09 #129 [Verbose] > /// ## hashText
00:00:09 #130 [Verbose] >
00:00:09 #131 [Verbose] > let hashText (input : string) =
00:00:09 #132 [Verbose] > use sha256 = System.Security.Cryptography.SHA256.Create ()
00:00:09 #133 [Verbose] > input
00:00:09 #134 [Verbose] > |> System.Text.Encoding.UTF8.GetBytes
00:00:09 #135 [Verbose] > |> sha256.ComputeHash
00:00:09 #136 [Verbose] > |> Array.map (fun b -> b.ToString "x2")
00:00:09 #137 [Verbose] > |> String.concat ""
00:00:09 #138 [Verbose] >
00:00:09 #139 [Verbose] >
00:00:09 #140 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:09 #141 [Verbose] > #if !INTERACTIVE
00:00:09 #142 [Verbose] > namespace Polyglot
00:00:09 #143 [Verbose] > #endif
00:00:09 #144 [Verbose] >
00:00:09 #145 [Verbose] > module Async =
00:00:09 #146 [Verbose] >
00:00:09 #147 [Verbose] > open Common
00:00:09 #148 [Verbose] >
00:00:09 #149 [Verbose] > /// ## choice
00:00:09 #150 [Verbose] >
00:00:09 #151 [Verbose] > let inline choice asyncs = async {
00:00:09 #152 [Verbose] > let e = Event<_> ()
00:00:09 #153 [Verbose] > use cts = new System.Threading.CancellationTokenSource ()
00:00:09 #154 [Verbose] > let fn =
00:00:09 #155 [Verbose] > asyncs
00:00:09 #156 [Verbose] > |> Seq.map (fun a -> async {
00:00:09 #157 [Verbose] > let! x = a
00:00:09 #158 [Verbose] > e.Trigger x
00:00:09 #159 [Verbose] > })
00:00:09 #160 [Verbose] > |> Async.Parallel
00:00:09 #161 [Verbose] > |> Async.Ignore
00:00:09 #162 [Verbose] > Async.Start (fn, cts.Token)
00:00:09 #163 [Verbose] > let! result = Async.AwaitEvent e.Publish
00:00:09 #164 [Verbose] > cts.Cancel ()
00:00:09 #165 [Verbose] > return result
00:00:09 #166 [Verbose] > }
00:00:09 #167 [Verbose] >
00:00:09 #168 [Verbose] > /// ## map
00:00:09 #169 [Verbose] >
00:00:09 #170 [Verbose] > let inline map fn a = async {
00:00:09 #171 [Verbose] > let! x = a
00:00:09 #172 [Verbose] > return fn x
00:00:09 #173 [Verbose] > }
00:00:09 #174 [Verbose] >
00:00:09 #175 [Verbose] > /// ## catch
00:00:09 #176 [Verbose] >
00:00:09 #177 [Verbose] > let inline catch a =
00:00:09 #178 [Verbose] > a
00:00:09 #179 [Verbose] > |> Async.Catch
00:00:09 #180 [Verbose] > ...
00:00:10 #181 [Verbose] >
00:00:10 #182 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:10 #183 [Verbose] > #if !INTERACTIVE
00:00:10 #184 [Verbose] > namespace Polyglot
00:00:10 #185 [Verbose] > #endif
00:00:10 #186 [Verbose] >
00:00:10 #187 [Verbose] > module AsyncSeq =
00:00:10 #188 [Verbose] >
00:00:10 #189 [Verbose] > open Common
00:00:10 #190 [Verbose] >
00:00:10 #191 [Verbose] > /// ## subscribeEvent
00:00:10 #192 [Verbose] >
00:00:10 #193 [Verbose] > let inline subscribeEvent (event: IEvent<'H, 'A>) map =
00:00:10 #194 [Verbose] > let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
00:00:10 #195 [Verbose] > 'A>(event.AddHandler, event.RemoveHandler)
00:00:10 #196 [Verbose] > System.Reactive.Linq.Observable.Select (observable, fun event -> map
00:00:10 #197 [Verbose] > event.EventArgs)
00:00:10 #198 [Verbose] > |> FSharp.Control.AsyncSeq.ofObservableBuffered
00:00:10 #199 [Verbose] >
00:00:10 #200 [Verbose] > let subscribeToken (token : System.Threading.CancellationToken) =
00:00:10 #201 [Verbose] > let tcs = new System.Threading.Tasks.TaskCompletionSource ()
00:00:10 #202 [Verbose] > System.Action tcs.SetResult |> token.Register |> ignore
00:00:10 #203 [Verbose] > let start = System.DateTime.Now.Ticks
00:00:10 #204 [Verbose] > FSharp.Control.AsyncSeq.unfoldAsync
00:00:10 #205 [Verbose] > (fun (...
00:00:10 #206 [Verbose] >
00:00:10 #207 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:10 #208 [Verbose] > #if !INTERACTIVE
00:00:10 #209 [Verbose] > namespace Polyglot
00:00:10 #210 [Verbose] > #endif
00:00:10 #211 [Verbose] >
00:00:10 #212 [Verbose] > module Networking =
00:00:10 #213 [Verbose] >
00:00:10 #214 [Verbose] > open Common
00:00:10 #215 [Verbose] >
00:00:10 #216 [Verbose] > /// ## testPortOpen
00:00:10 #217 [Verbose] >
00:00:10 #218 [Verbose] > let inline testPortOpen port = async {
00:00:10 #219 [Verbose] > let! ct = Async.CancellationToken
00:00:10 #220 [Verbose] > use client = new System.Net.Sockets.TcpClient ()
00:00:10 #221 [Verbose] > try
00:00:10 #222 [Verbose] > do! client.ConnectAsync ("127.0.0.1", port, ct) |>
00:00:10 #223 [Verbose] > Async.awaitValueTaskUnit
00:00:10 #224 [Verbose] > return true
00:00:10 #225 [Verbose] > with ex ->
00:00:10 #226 [Verbose] > trace Verbose (fun () -> $"testPortOpen / ex: {ex |>
00:00:10 #227 [Verbose] > printException}") getLocals
00:00:10 #228 [Verbose] > return false
00:00:10 #229 [Verbose] > }
00:00:10 #230 [Verbose] >
00:00:10 #231 [Verbose] > let inline testPortOpenTimeout timeout port = async {
00:00:10 #232 [Verbose] > let! result =
00:00:10 #233 [Verbose] > testPortOpen port
00:00:10 #234 [Verbose] > |> Async.runWithTimeoutAsync timeout
00:00:10 #235 [Verbose] > return
00:00:10 #236 [Verbose] > match result with
00:00:10 #237 [Verbose] > | None -> false
00:00:10 #238 [Verbose] > ...
00:00:10 #239 [Verbose] >
00:00:10 #240 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:10 #241 [Verbose] > #if !INTERACTIVE
00:00:10 #242 [Verbose] > namespace Polyglot
00:00:10 #243 [Verbose] > #endif
00:00:10 #244 [Verbose] >
00:00:10 #245 [Verbose] > module Runtime =
00:00:10 #246 [Verbose] >
00:00:10 #247 [Verbose] > open Common
00:00:10 #248 [Verbose] >
00:00:10 #249 [Verbose] > /// ## isWindows
00:00:10 #250 [Verbose] >
00:00:10 #251 [Verbose] > let isWindows =
00:00:10 #252 [Verbose] > fun () ->
00:00:10 #253 [Verbose] > System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform
00:00:10 #254 [Verbose] > System.Runtime.InteropServices.OSPlatform.Windows
00:00:10 #255 [Verbose] > |> memoize
00:00:10 #256 [Verbose] >
00:00:10 #257 [Verbose] > /// ## getExecutableSuffix
00:00:10 #258 [Verbose] >
00:00:10 #259 [Verbose] > let inline getExecutableSuffix () =
00:00:10 #260 [Verbose] > if isWindows ()
00:00:10 #261 [Verbose] > then ".exe"
00:00:10 #262 [Verbose] > else ""
00:00:10 #263 [Verbose] >
00:00:10 #264 [Verbose] > /// ## splitCommand
00:00:10 #265 [Verbose] >
00:00:10 #266 [Verbose] > type private CommandParseStep =
00:00:10 #267 [Verbose] > | Start
00:00:10 #268 [Verbose] > | Path of quoted: bool
00:00:10 #269 [Verbose] > | Arguments
00:00:10 #270 [Verbose] >
00:00:10 #271 [Verbose] > let splitCommand (command: string) =
00:00:10 #272 [Verbose] > let rec loop (path, args) chars step =
00:00:10 #273 [Verbose] > match chars, step with
00:00:10 #274 [Verbose] > | ('"' | '\'') :: tail, _ when path = "" -> loop (pat...
00:00:11 #275 [Verbose] >
00:00:11 #276 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:11 #277 [Verbose] > #if !INTERACTIVE
00:00:11 #278 [Verbose] > namespace Polyglot
00:00:11 #279 [Verbose] > #endif
00:00:11 #280 [Verbose] >
00:00:11 #281 [Verbose] > module FileSystem =
00:00:11 #282 [Verbose] >
00:00:11 #283 [Verbose] > open Common
00:00:11 #284 [Verbose] >
00:00:11 #285 [Verbose] > /// ## Operators
00:00:11 #286 [Verbose] >
00:00:11 #287 [Verbose] > module Operators =
00:00:11 #288 [Verbose] > let inline (</>) a b =
00:00:11 #289 [Verbose] > System.IO.Path.Combine (a, b)
00:00:11 #290 [Verbose] >
00:00:11 #291 [Verbose] > open Operators
00:00:11 #292 [Verbose] >
00:00:11 #293 [Verbose] > /// ## createTempDirectoryName
00:00:11 #294 [Verbose] >
00:00:11 #295 [Verbose] > let inline createTempDirectoryName () =
00:00:11 #296 [Verbose] > let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name
00:00:11 #297 [Verbose] >
00:00:11 #298 [Verbose] > System.IO.Path.GetTempPath ()
00:00:11 #299 [Verbose] > </> $"!{root}"
00:00:11 #300 [Verbose] > </> string (newGuidFromDateTime System.DateTime.Now)
00:00:11 #301 [Verbose] >
00:00:11 #302 [Verbose] > /// ## createTempDirectory
00:00:11 #303 [Verbose] >
00:00:11 #304 [Verbose] > let inline createTempDirectory () =
00:00:11 #305 [Verbose] > let tempFolder = createTempDirectoryName ()
00:00:11 #306 [Verbose] > let result = System.IO.Directory.CreateDirectory tempFolder
00:00:11 #307 [Verbose] >
00:00:11 #308 [Verbose] > if not result.Exists then
00:00:11 #309 [Verbose] > let ge...
00:00:14 #310 [Verbose] >
00:00:14 #311 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:14 #312 [Verbose] > open Common
00:00:14 #313 [Verbose] > open FileSystem.Operators
00:00:14 #314 [Verbose] >
00:00:14 #315 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:14 #316 [Verbose] > let tmpSpiralPath = Path.GetTempPath () </> "!dotnet-interactive-spiral"
00:00:14 #317 [Verbose] > let linePlotsDataPath = tmpSpiralPath </> "line-plots-data"
00:00:14 #318 [Verbose] > let linePlotsSvgPath = tmpSpiralPath </> "line-plots-svg"
00:00:14 #319 [Verbose] >
00:00:14 #320 [Verbose] > [[ tmpSpiralPath; linePlotsDataPath; linePlotsSvgPath ]]
00:00:14 #321 [Verbose] > |> List.iter (fun dir -> if Directory.Exists dir |> not then
00:00:14 #322 [Verbose] > Directory.CreateDirectory dir |> ignore)
00:00:14 #323 [Verbose] >
00:00:14 #324 [Verbose] > Formatter.Register<struct (string * string * string * struct (string * float
00:00:14 #325 [Verbose] > array * float array) array)> (
00:00:14 #326 [Verbose] > (fun struct (caption, x_desc, y_desc, ys) ->
00:00:14 #327 [Verbose] > let json = (caption, x_desc, y_desc, ys) |> FSharp.Json.Json.serialize
00:00:14 #328 [Verbose] > async {
00:00:14 #329 [Verbose] > let hashHex = json |> Crypto.hashText
00:00:14 #330 [Verbose] > let svgPath = linePlotsSvgPath </> $"{hashHex}.svg"
00:00:14 #331 [Verbose] >
00:00:14 #332 [Verbose] > if System.IO.File.Exi...
00:00:14 #333 [Verbose] >
00:00:14 #334 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #335 [Verbose] > // // test
00:00:14 #336 [Verbose] >
00:00:14 #337 [Verbose] > open testing
00:00:16 #338 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-3998-9831-92c0bcc2a3b4\main.spi
00:00:18 #339 [Verbose] >
00:00:18 #340 [Verbose] > ╭─[ 3.25s - stdout ]───────────────────────────────────────────────────────────╮
00:00:18 #341 [Verbose] > │ () │
00:00:18 #342 [Verbose] > │ │
00:00:18 #343 [Verbose] > │ │
00:00:18 #344 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #345 [Verbose] >
00:00:18 #346 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #347 [Verbose] > open listm'_operators
00:00:18 #348 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-4257-5785-5ba7ff690c48\main.spi
00:00:18 #349 [Verbose] >
00:00:18 #350 [Verbose] > ╭─[ 265.78ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #351 [Verbose] > │ () │
00:00:18 #352 [Verbose] > │ │
00:00:18 #353 [Verbose] > │ │
00:00:18 #354 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #355 [Verbose] >
00:00:18 #356 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:18 #357 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:18 #358 [Verbose] > │ ## init_series │
00:00:18 #359 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #360 [Verbose] >
00:00:18 #361 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #362 [Verbose] > // // test
00:00:18 #363 [Verbose] >
00:00:18 #364 [Verbose] > inl x : a _ f64 = am'.init_series -3 3 0.01
00:00:18 #365 [Verbose] > inl y = x |> am.map math.square
00:00:18 #366 [Verbose] > "square", "x", "y", ;[[ "square", x, y ]]
00:00:18 #367 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-4285-8598-8b2334eb074d\main.spi
00:00:18 #368 [Verbose] >
00:00:18 #369 [Verbose] > ╭─[ 453.03ms - return value ]──────────────────────────────────────────────────╮
00:00:18 #370 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:18 #371 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:18 #372 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:18 #373 [Verbose] > │ stroke="none"/> │
00:00:18 #374 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:18 #375 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:18 #376 [Verbose] > │ fill="#FFFFFF"> │
00:00:18 #377 [Verbose] > │ square │
00:00:18 #378 [Verbose] > │ </text> │
00:00:18 #379 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:00:18 #380 [Verbose] > │ y2="75"/> │
00:00:18 #381 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:18 #382 [Verbose] > │ y2="75"/> │
00:00:18 #383 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:00:18 #384 [Verbose] > │ y2="75"/> │
00:00:18 #385 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:00:18 #386 [Verbose] > │ y2="75"/> │
00:00:18 #387 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:00:18 #388 [Verbose] > │ ... │
00:00:18 #389 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #390 [Verbose] >
00:00:18 #391 [Verbose] > ╭─[ 470.45ms - stdout ]────────────────────────────────────────────────────────╮
00:00:18 #392 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:18 #393 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:18 #394 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:18 #395 [Verbose] > │ let v2 : bool = v1 < 601 │
00:00:18 #396 [Verbose] > │ v2 │
00:00:18 #397 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:18 #398 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:18 #399 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:18 #400 [Verbose] > │ v3 │
00:00:18 #401 [Verbose] > │ and method3 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:18 #402 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:18 #403 [Verbose] > │ v0 │
00:00:18 #404 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:18 #405 [Verbose] > │ []) * (float [])) [])) = │
00:00:18 #406 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (601) │
00:00:18 #407 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:18 #408 [Verbose] > │ while method1(v1) do │
00:00:18 #409 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:18 #410 [Verbose] > │ let v4 : float = float v3 │
00:00:18 #411 [Verbose] > │ let v5 : float = 0.01 * v4 │
00:00:18 #412 [Verbose] > │ let v6 : float = -3.0 + v5 │
00:00:18 #413 [Verbose] > │ v0.[int v3] <- v6 │
00:00:18 #414 [Verbose] > │ let v7 : int32 = v3 + 1 │
00:00:18 #415 [Verbose] > │ v1.l0 <- v7 │
00:00:18 #416 [Verbose] > │ () │
00:00:18 #417 [Verbose] > │ let v8 : int32 = v0.Length │
00:00:18 #418 [Verbose] > │ let v9 : (float []) = Array.zeroCreate<float> (v8) │
00:00:18 #419 [Verbose] > │ let v10 : Mut0 = {l0 = 0} : Mut0 │
00:00:18 #420 [Verbose] > │ while method2(v8, v10) do │
00:00:18 #421 [Verbose] > │ let v12 : int32 = v10.l0 │
00:00:18 #422 [Verbose] > │ let v13 : float = v0.[int v12] │
00:00:18 #423 [Verbose] > │ let v14 : float = v13 ** 2.0 │
00:00:18 #424 [Verbose] > │ v9.[int v12] <- v14 │
00:00:18 #425 [Verbose] > │ let v15 : int32 = v12 + 1 │
00:00:18 #426 [Verbose] > │ v10.l0 <- v15 │
00:00:18 #427 [Verbose] > │ () │
00:00:18 #428 [Verbose] > │ let v16 : string = "square" │
00:00:18 #429 [Verbose] > │ let v17 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:18 #430 [Verbose] > │ (v16, v0, v9)|] │
00:00:18 #431 [Verbose] > │ let v18 : (struct (string * (float []) * (float [])) []) = method3(v17) │
00:00:18 #432 [Verbose] > │ let v19 : string = "x" │
00:00:18 #433 [Verbose] > │ let v20 : string = "y" │
00:00:18 #434 [Verbose] > │ struct (v16, v19, v20, v18) │
00:00:18 #435 [Verbose] > │ method0() │
00:00:18 #436 [Verbose] > │ │
00:00:18 #437 [Verbose] > │ │
00:00:18 #438 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:18 #439 [Verbose] >
00:00:18 #440 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:18 #441 [Verbose] > // // test
00:00:18 #442 [Verbose] >
00:00:18 #443 [Verbose] > inl x : a _ f64 = am'.init_series -10 10 0.1
00:00:18 #444 [Verbose] > inl y_sin = x |> am.map sin
00:00:18 #445 [Verbose] > inl y_cos = x |> am.map cos
00:00:18 #446 [Verbose] > "sin cos", "x", "y", ;[[ "sin", x, y_sin; "cos", x, y_cos ]]
00:00:19 #447 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-4334-3483-3a85fc57150d\main.spi
00:00:19 #448 [Verbose] >
00:00:19 #449 [Verbose] > ╭─[ 318.39ms - return value ]──────────────────────────────────────────────────╮
00:00:19 #450 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:19 #451 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:19 #452 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:19 #453 [Verbose] > │ stroke="none"/> │
00:00:19 #454 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:19 #455 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:19 #456 [Verbose] > │ fill="#FFFFFF"> │
00:00:19 #457 [Verbose] > │ sin cos │
00:00:19 #458 [Verbose] > │ </text> │
00:00:19 #459 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="57" y1="424" x2="57" │
00:00:19 #460 [Verbose] > │ y2="75"/> │
00:00:19 #461 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:19 #462 [Verbose] > │ y2="75"/> │
00:00:19 #463 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="82" y1="424" x2="82" │
00:00:19 #464 [Verbose] > │ y2="75"/> │
00:00:19 #465 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:00:19 #466 [Verbose] > │ y2="75"/> │
00:00:19 #467 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="107" y1="424" │
00:00:19 #468 [Verbose] > │ x2="10... │
00:00:19 #469 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #470 [Verbose] >
00:00:19 #471 [Verbose] > ╭─[ 327.95ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #472 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:19 #473 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:19 #474 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:19 #475 [Verbose] > │ let v2 : bool = v1 < 201 │
00:00:19 #476 [Verbose] > │ v2 │
00:00:19 #477 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:19 #478 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:19 #479 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:19 #480 [Verbose] > │ v3 │
00:00:19 #481 [Verbose] > │ and method3 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:19 #482 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:19 #483 [Verbose] > │ v0 │
00:00:19 #484 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:19 #485 [Verbose] > │ []) * (float [])) [])) = │
00:00:19 #486 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (201) │
00:00:19 #487 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:19 #488 [Verbose] > │ while method1(v1) do │
00:00:19 #489 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:19 #490 [Verbose] > │ let v4 : float = float v3 │
00:00:19 #491 [Verbose] > │ let v5 : float = 0.1 * v4 │
00:00:19 #492 [Verbose] > │ let v6 : float = -10.0 + v5 │
00:00:19 #493 [Verbose] > │ v0.[int v3] <- v6 │
00:00:19 #494 [Verbose] > │ let v7 : int32 = v3 + 1 │
00:00:19 #495 [Verbose] > │ v1.l0 <- v7 │
00:00:19 #496 [Verbose] > │ () │
00:00:19 #497 [Verbose] > │ let v8 : int32 = v0.Length │
00:00:19 #498 [Verbose] > │ let v9 : (float []) = Array.zeroCreate<float> (v8) │
00:00:19 #499 [Verbose] > │ let v10 : Mut0 = {l0 = 0} : Mut0 │
00:00:19 #500 [Verbose] > │ while method2(v8, v10) do │
00:00:19 #501 [Verbose] > │ let v12 : int32 = v10.l0 │
00:00:19 #502 [Verbose] > │ let v13 : float = v0.[int v12] │
00:00:19 #503 [Verbose] > │ let v14 : float = sin v13 │
00:00:19 #504 [Verbose] > │ v9.[int v12] <- v14 │
00:00:19 #505 [Verbose] > │ let v15 : int32 = v12 + 1 │
00:00:19 #506 [Verbose] > │ v10.l0 <- v15 │
00:00:19 #507 [Verbose] > │ () │
00:00:19 #508 [Verbose] > │ let v16 : (float []) = Array.zeroCreate<float> (v8) │
00:00:19 #509 [Verbose] > │ let v17 : Mut0 = {l0 = 0} : Mut0 │
00:00:19 #510 [Verbose] > │ while method2(v8, v17) do │
00:00:19 #511 [Verbose] > │ let v19 : int32 = v17.l0 │
00:00:19 #512 [Verbose] > │ let v20 : float = v0.[int v19] │
00:00:19 #513 [Verbose] > │ let v21 : float = cos v20 │
00:00:19 #514 [Verbose] > │ v16.[int v19] <- v21 │
00:00:19 #515 [Verbose] > │ let v22 : int32 = v19 + 1 │
00:00:19 #516 [Verbose] > │ v17.l0 <- v22 │
00:00:19 #517 [Verbose] > │ () │
00:00:19 #518 [Verbose] > │ let v23 : string = "sin" │
00:00:19 #519 [Verbose] > │ let v24 : string = "cos" │
00:00:19 #520 [Verbose] > │ let v25 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:19 #521 [Verbose] > │ (v23, v0, v9); struct (v24, v0, v16)|] │
00:00:19 #522 [Verbose] > │ let v26 : (struct (string * (float []) * (float [])) []) = method3(v25) │
00:00:19 #523 [Verbose] > │ let v27 : string = "sin cos" │
00:00:19 #524 [Verbose] > │ let v28 : string = "x" │
00:00:19 #525 [Verbose] > │ let v29 : string = "y" │
00:00:19 #526 [Verbose] > │ struct (v27, v28, v29, v26) │
00:00:19 #527 [Verbose] > │ method0() │
00:00:19 #528 [Verbose] > │ │
00:00:19 #529 [Verbose] > │ │
00:00:19 #530 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #531 [Verbose] >
00:00:19 #532 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #533 [Verbose] > // // test
00:00:19 #534 [Verbose] >
00:00:19 #535 [Verbose] > inl y_pos y0 vy0 ay t =
00:00:19 #536 [Verbose] > y0 + vy0 * t + ay * (t |> math.square) / 2
00:00:19 #537 [Verbose] >
00:00:19 #538 [Verbose] > inl x : a _ f64 = am'.init_series 0 5 0.01
00:00:19 #539 [Verbose] > inl y = x |> am.map (y_pos 0 20 -9.8)
00:00:19 #540 [Verbose] > "projectile motion", "time (s)", "", ;[[ "height of projectile (m)", x, y ]]
00:00:19 #541 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-4369-6976-6d41f1d31e47\main.spi
00:00:19 #542 [Verbose] >
00:00:19 #543 [Verbose] > ╭─[ 330.07ms - return value ]──────────────────────────────────────────────────╮
00:00:19 #544 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:19 #545 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:19 #546 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:19 #547 [Verbose] > │ stroke="none"/> │
00:00:19 #548 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:19 #549 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:19 #550 [Verbose] > │ fill="#FFFFFF"> │
00:00:19 #551 [Verbose] > │ projectile motion │
00:00:19 #552 [Verbose] > │ </text> │
00:00:19 #553 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:00:19 #554 [Verbose] > │ y2="75"/> │
00:00:19 #555 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:19 #556 [Verbose] > │ y2="75"/> │
00:00:19 #557 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:00:19 #558 [Verbose] > │ y2="75"/> │
00:00:19 #559 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:00:19 #560 [Verbose] > │ y2="75"/> │
00:00:19 #561 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="99" y1="42... │
00:00:19 #562 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #563 [Verbose] >
00:00:19 #564 [Verbose] > ╭─[ 339.21ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #565 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:19 #566 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:19 #567 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:19 #568 [Verbose] > │ let v2 : bool = v1 < 501 │
00:00:19 #569 [Verbose] > │ v2 │
00:00:19 #570 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:19 #571 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:19 #572 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:19 #573 [Verbose] > │ v3 │
00:00:19 #574 [Verbose] > │ and method3 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:19 #575 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:19 #576 [Verbose] > │ v0 │
00:00:19 #577 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:19 #578 [Verbose] > │ []) * (float [])) [])) = │
00:00:19 #579 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (501) │
00:00:19 #580 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:19 #581 [Verbose] > │ while method1(v1) do │
00:00:19 #582 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:19 #583 [Verbose] > │ let v4 : float = float v3 │
00:00:19 #584 [Verbose] > │ let v5 : float = 0.01 * v4 │
00:00:19 #585 [Verbose] > │ v0.[int v3] <- v5 │
00:00:19 #586 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:19 #587 [Verbose] > │ v1.l0 <- v6 │
00:00:19 #588 [Verbose] > │ () │
00:00:19 #589 [Verbose] > │ let v7 : int32 = v0.Length │
00:00:19 #590 [Verbose] > │ let v8 : (float []) = Array.zeroCreate<float> (v7) │
00:00:19 #591 [Verbose] > │ let v9 : Mut0 = {l0 = 0} : Mut0 │
00:00:19 #592 [Verbose] > │ while method2(v7, v9) do │
00:00:19 #593 [Verbose] > │ let v11 : int32 = v9.l0 │
00:00:19 #594 [Verbose] > │ let v12 : float = v0.[int v11] │
00:00:19 #595 [Verbose] > │ let v13 : float = 20.0 * v12 │
00:00:19 #596 [Verbose] > │ let v14 : float = v12 ** 2.0 │
00:00:19 #597 [Verbose] > │ let v15 : float = -9.8 * v14 │
00:00:19 #598 [Verbose] > │ let v16 : float = v15 / 2.0 │
00:00:19 #599 [Verbose] > │ let v17 : float = v13 + v16 │
00:00:19 #600 [Verbose] > │ v8.[int v11] <- v17 │
00:00:19 #601 [Verbose] > │ let v18 : int32 = v11 + 1 │
00:00:19 #602 [Verbose] > │ v9.l0 <- v18 │
00:00:19 #603 [Verbose] > │ () │
00:00:19 #604 [Verbose] > │ let v19 : string = "height of projectile (m)" │
00:00:19 #605 [Verbose] > │ let v20 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:19 #606 [Verbose] > │ (v19, v0, v8)|] │
00:00:19 #607 [Verbose] > │ let v21 : (struct (string * (float []) * (float [])) []) = method3(v20) │
00:00:19 #608 [Verbose] > │ let v22 : string = "projectile motion" │
00:00:19 #609 [Verbose] > │ let v23 : string = "time (s)" │
00:00:19 #610 [Verbose] > │ let v24 : string = "" │
00:00:19 #611 [Verbose] > │ struct (v22, v23, v24, v21) │
00:00:19 #612 [Verbose] > │ method0() │
00:00:19 #613 [Verbose] > │ │
00:00:19 #614 [Verbose] > │ │
00:00:19 #615 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #616 [Verbose] >
00:00:19 #617 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:19 #618 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:19 #619 [Verbose] > │ ## velocity_cf │
00:00:19 #620 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #621 [Verbose] >
00:00:19 #622 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #623 [Verbose] > type mass = f64
00:00:19 #624 [Verbose] > type time = f64
00:00:19 #625 [Verbose] > type position = f64
00:00:19 #626 [Verbose] > type velocity = f64
00:00:19 #627 [Verbose] > type force = f64
00:00:19 #628 [Verbose] >
00:00:19 #629 [Verbose] > type velocity_cf = mass -> velocity -> list force -> (time -> velocity)
00:00:19 #630 [Verbose] >
00:00:19 #631 [Verbose] > inl velocity_cf m v0 fs =
00:00:19 #632 [Verbose] > inl f_net = fs |> listm'.sum
00:00:19 #633 [Verbose] > inl a0 = f_net / m
00:00:19 #634 [Verbose] > inl v t = v0 + a0 * t
00:00:19 #635 [Verbose] > v
00:00:19 #636 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-4405-0552-0021bcff464f\main.spi
00:00:19 #637 [Verbose] >
00:00:19 #638 [Verbose] > ╭─[ 269.65ms - stdout ]────────────────────────────────────────────────────────╮
00:00:19 #639 [Verbose] > │ () │
00:00:19 #640 [Verbose] > │ │
00:00:19 #641 [Verbose] > │ │
00:00:19 #642 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:19 #643 [Verbose] >
00:00:19 #644 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:19 #645 [Verbose] > // // test
00:00:19 #646 [Verbose] >
00:00:19 #647 [Verbose] > velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]] 0
00:00:19 #648 [Verbose] > |> _assert_eq 0.6
00:00:19 #649 [Verbose] >
00:00:19 #650 [Verbose] > velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]] 1
00:00:19 #651 [Verbose] > |> _assert_eq 0.2
00:00:20 #652 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-4432-3271-3f5ffe549008\main.spi
00:00:20 #653 [Verbose] >
00:00:20 #654 [Verbose] > ╭─[ 240.13ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #655 [Verbose] > │ let rec method0 () : unit = │
00:00:20 #656 [Verbose] > │ let v0 : string = $"__expect / actual: %A{0.6} / expected: %A{0.6}" │
00:00:20 #657 [Verbose] > │ let v1 : string = $"__expect / actual: %A{0.2} / expected: %A{0.2}" │
00:00:20 #658 [Verbose] > │ () │
00:00:20 #659 [Verbose] > │ method0() │
00:00:20 #660 [Verbose] > │ │
00:00:20 #661 [Verbose] > │ │
00:00:20 #662 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #663 [Verbose] >
00:00:20 #664 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #665 [Verbose] > // // test
00:00:20 #666 [Verbose] >
00:00:20 #667 [Verbose] > inl x = am'.init_series 0 4 0.1
00:00:20 #668 [Verbose] > inl y = x |> am.map (velocity_cf 0.1f64 0.6 [[ 0.04; -0.08 ]])
00:00:20 #669 [Verbose] > "car on an air track", "time (s)", "", ;[[ "velocity of car (m/s)", x, y ]]
00:00:20 #670 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-4456-5689-5883d66c7284\main.spi
00:00:20 #671 [Verbose] >
00:00:20 #672 [Verbose] > ╭─[ 370.02ms - return value ]──────────────────────────────────────────────────╮
00:00:20 #673 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:20 #674 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:20 #675 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:20 #676 [Verbose] > │ stroke="none"/> │
00:00:20 #677 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:20 #678 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:20 #679 [Verbose] > │ fill="#FFFFFF"> │
00:00:20 #680 [Verbose] > │ car on an air track │
00:00:20 #681 [Verbose] > │ </text> │
00:00:20 #682 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="57" y1="424" x2="57" │
00:00:20 #683 [Verbose] > │ y2="75"/> │
00:00:20 #684 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:20 #685 [Verbose] > │ y2="75"/> │
00:00:20 #686 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="82" y1="424" x2="82" │
00:00:20 #687 [Verbose] > │ y2="75"/> │
00:00:20 #688 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x2="94" │
00:00:20 #689 [Verbose] > │ y2="75"/> │
00:00:20 #690 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="107" y1=... │
00:00:20 #691 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #692 [Verbose] >
00:00:20 #693 [Verbose] > ╭─[ 382.74ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #694 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:20 #695 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:20 #696 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:20 #697 [Verbose] > │ let v2 : bool = v1 < 41 │
00:00:20 #698 [Verbose] > │ v2 │
00:00:20 #699 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:20 #700 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:20 #701 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:20 #702 [Verbose] > │ v3 │
00:00:20 #703 [Verbose] > │ and method3 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:20 #704 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:20 #705 [Verbose] > │ v0 │
00:00:20 #706 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:20 #707 [Verbose] > │ []) * (float [])) [])) = │
00:00:20 #708 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (41) │
00:00:20 #709 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:20 #710 [Verbose] > │ while method1(v1) do │
00:00:20 #711 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:20 #712 [Verbose] > │ let v4 : float = float v3 │
00:00:20 #713 [Verbose] > │ let v5 : float = 0.1 * v4 │
00:00:20 #714 [Verbose] > │ v0.[int v3] <- v5 │
00:00:20 #715 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:20 #716 [Verbose] > │ v1.l0 <- v6 │
00:00:20 #717 [Verbose] > │ () │
00:00:20 #718 [Verbose] > │ let v7 : int32 = v0.Length │
00:00:20 #719 [Verbose] > │ let v8 : (float []) = Array.zeroCreate<float> (v7) │
00:00:20 #720 [Verbose] > │ let v9 : Mut0 = {l0 = 0} : Mut0 │
00:00:20 #721 [Verbose] > │ while method2(v7, v9) do │
00:00:20 #722 [Verbose] > │ let v11 : int32 = v9.l0 │
00:00:20 #723 [Verbose] > │ let v12 : float = v0.[int v11] │
00:00:20 #724 [Verbose] > │ let v13 : float = -0.39999999999999997 * v12 │
00:00:20 #725 [Verbose] > │ let v14 : float = 0.6 + v13 │
00:00:20 #726 [Verbose] > │ v8.[int v11] <- v14 │
00:00:20 #727 [Verbose] > │ let v15 : int32 = v11 + 1 │
00:00:20 #728 [Verbose] > │ v9.l0 <- v15 │
00:00:20 #729 [Verbose] > │ () │
00:00:20 #730 [Verbose] > │ let v16 : string = "velocity of car (m/s)" │
00:00:20 #731 [Verbose] > │ let v17 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:20 #732 [Verbose] > │ (v16, v0, v8)|] │
00:00:20 #733 [Verbose] > │ let v18 : (struct (string * (float []) * (float [])) []) = method3(v17) │
00:00:20 #734 [Verbose] > │ let v19 : string = "car on an air track" │
00:00:20 #735 [Verbose] > │ let v20 : string = "time (s)" │
00:00:20 #736 [Verbose] > │ let v21 : string = "" │
00:00:20 #737 [Verbose] > │ struct (v19, v20, v21, v18) │
00:00:20 #738 [Verbose] > │ method0() │
00:00:20 #739 [Verbose] > │ │
00:00:20 #740 [Verbose] > │ │
00:00:20 #741 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #742 [Verbose] >
00:00:20 #743 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:20 #744 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:20 #745 [Verbose] > │ ## derivative │
00:00:20 #746 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #747 [Verbose] >
00:00:20 #748 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #749 [Verbose] > type derivative = (f64 -> f64) -> f64 -> f64
00:00:20 #750 [Verbose] >
00:00:20 #751 [Verbose] > inl derivative dt : derivative =
00:00:20 #752 [Verbose] > fun x t =>
00:00:20 #753 [Verbose] > (x (t + dt / 2) - x (t - dt / 2)) / dt
00:00:20 #754 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-4497-9743-93b9fb45d7ae\main.spi
00:00:20 #755 [Verbose] >
00:00:20 #756 [Verbose] > ╭─[ 211.62ms - stdout ]────────────────────────────────────────────────────────╮
00:00:20 #757 [Verbose] > │ () │
00:00:20 #758 [Verbose] > │ │
00:00:20 #759 [Verbose] > │ │
00:00:20 #760 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:20 #761 [Verbose] >
00:00:20 #762 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:20 #763 [Verbose] > // // test
00:00:20 #764 [Verbose] >
00:00:20 #765 [Verbose] > derivative 1 (fun x => x ** 4 / 4) 1 - 1
00:00:20 #766 [Verbose] > |> _assert_approx_eq None 0.25
00:00:20 #767 [Verbose] >
00:00:20 #768 [Verbose] > derivative 0.001 (fun x => x ** 4 / 4) 1 - 1
00:00:20 #769 [Verbose] > |> _assert_approx_eq None 0.0000002499998827953931
00:00:20 #770 [Verbose] >
00:00:20 #771 [Verbose] > derivative 0.000001 (fun x => x ** 4 / 4) 1 - 1
00:00:20 #772 [Verbose] > |> _assert_approx_eq None 0.000000000001000088900582341
00:00:20 #773 [Verbose] >
00:00:20 #774 [Verbose] > derivative 0.000000001 (fun x => x ** 4 / 4) 1 - 1
00:00:20 #775 [Verbose] > |> _assert_approx_eq None 0.00000008274037099909037
00:00:20 #776 [Verbose] >
00:00:20 #777 [Verbose] > derivative 0.000000000001 (fun x => x ** 4 / 4) 1 - 1
00:00:20 #778 [Verbose] > |> _assert_approx_eq None 0.00008890058234101161
00:00:20 #779 [Verbose] >
00:00:20 #780 [Verbose] > derivative 0.000000000000001 (fun x => x ** 4 / 4) 1 - 1
00:00:20 #781 [Verbose] > |> _assert_approx_eq None -0.0007992778373592246
00:00:20 #782 [Verbose] >
00:00:20 #783 [Verbose] > derivative 0.000000000000000001 (fun x => x ** 4 / 4) 1 - 1
00:00:20 #784 [Verbose] > |> _assert_approx_eq None -1
00:00:20 #785 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-4518-1872-1eb36b0cf025\main.spi
00:00:21 #786 [Verbose] >
00:00:21 #787 [Verbose] > ╭─[ 227.15ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #788 [Verbose] > │ let rec method0 () : unit = │
00:00:21 #789 [Verbose] > │ let v0 : string = $"__expect / actual: %A{0.25} / expected: %A{0.25}" │
00:00:21 #790 [Verbose] > │ let v1 : string = $"__expect / actual: %A{2.499998827953931E-07} / │
00:00:21 #791 [Verbose] > │ expected: %A{2.499998827953931E-07}" │
00:00:21 #792 [Verbose] > │ let v2 : string = $"__expect / actual: %A{1.000088900582341E-12} / │
00:00:21 #793 [Verbose] > │ expected: %A{1.000088900582341E-12}" │
00:00:21 #794 [Verbose] > │ let v3 : string = $"__expect / actual: %A{8.274037099909037E-08} / │
00:00:21 #795 [Verbose] > │ expected: %A{8.274037099909037E-08}" │
00:00:21 #796 [Verbose] > │ let v4 : string = $"__expect / actual: %A{8.890058234101161E-05} / │
00:00:21 #797 [Verbose] > │ expected: %A{8.890058234101161E-05}" │
00:00:21 #798 [Verbose] > │ let v5 : string = $"__expect / actual: %A{-0.0007992778373592246} / │
00:00:21 #799 [Verbose] > │ expected: %A{-0.0007992778373592246}" │
00:00:21 #800 [Verbose] > │ let v6 : string = $"__expect / actual: %A{-1.0} / expected: %A{-1.0}" │
00:00:21 #801 [Verbose] > │ () │
00:00:21 #802 [Verbose] > │ method0() │
00:00:21 #803 [Verbose] > │ │
00:00:21 #804 [Verbose] > │ │
00:00:21 #805 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #806 [Verbose] >
00:00:21 #807 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:21 #808 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:21 #809 [Verbose] > │ ## integration │
00:00:21 #810 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #811 [Verbose] >
00:00:21 #812 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #813 [Verbose] > type integration = (f64 -> f64) -> f64 -> f64 -> f64
00:00:21 #814 [Verbose] >
00:00:21 #815 [Verbose] > inl integral dt : integration =
00:00:21 #816 [Verbose] > fun f a b =>
00:00:21 #817 [Verbose] > inl rec loop t y =
00:00:21 #818 [Verbose] > if t < b
00:00:21 #819 [Verbose] > then loop (t + dt) (y + f t * dt)
00:00:21 #820 [Verbose] > else t, y
00:00:21 #821 [Verbose] > loop (a + dt / 2) 0
00:00:21 #822 [Verbose] > |> snd
00:00:21 #823 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-4542-4226-45d56489920e\main.spi
00:00:21 #824 [Verbose] >
00:00:21 #825 [Verbose] > ╭─[ 281.26ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #826 [Verbose] > │ () │
00:00:21 #827 [Verbose] > │ │
00:00:21 #828 [Verbose] > │ │
00:00:21 #829 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #830 [Verbose] >
00:00:21 #831 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #832 [Verbose] > // // test
00:00:21 #833 [Verbose] >
00:00:21 #834 [Verbose] > integral 0.01 math.square 0 1
00:00:21 #835 [Verbose] > |> _assert_approx_eq None 0.33332500000000004
00:00:21 #836 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-4570-7080-7897900dea71\main.spi
00:00:21 #837 [Verbose] >
00:00:21 #838 [Verbose] > ╭─[ 214.09ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #839 [Verbose] > │ let rec method0 () : unit = │
00:00:21 #840 [Verbose] > │ let v0 : string = $"__expect / actual: %A{0.3333250000000004} / │
00:00:21 #841 [Verbose] > │ expected: %A{0.33332500000000004}" │
00:00:21 #842 [Verbose] > │ () │
00:00:21 #843 [Verbose] > │ method0() │
00:00:21 #844 [Verbose] > │ │
00:00:21 #845 [Verbose] > │ │
00:00:21 #846 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #847 [Verbose] >
00:00:21 #848 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #849 [Verbose] > inl integral' dt : integration =
00:00:21 #850 [Verbose] > fun f a b =>
00:00:21 #851 [Verbose] > listm'.init_series (a + dt / 2) (b - dt / 2) dt
00:00:21 #852 [Verbose] > |> listm.map (f >> (*) dt)
00:00:21 #853 [Verbose] > |> listm'.sum
00:00:21 #854 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-4592-9240-95209bc7806a\main.spi
00:00:21 #855 [Verbose] >
00:00:21 #856 [Verbose] > ╭─[ 228.86ms - stdout ]────────────────────────────────────────────────────────╮
00:00:21 #857 [Verbose] > │ () │
00:00:21 #858 [Verbose] > │ │
00:00:21 #859 [Verbose] > │ │
00:00:21 #860 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:21 #861 [Verbose] >
00:00:21 #862 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:21 #863 [Verbose] > // // test
00:00:21 #864 [Verbose] >
00:00:21 #865 [Verbose] > integral' 0.1 math.square 0 1
00:00:21 #866 [Verbose] > |> _assert_approx_eq None (integral 0.1 math.square 0 1)
00:00:21 #867 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-4615-1566-1f02ae771044\main.spi
00:00:22 #868 [Verbose] >
00:00:22 #869 [Verbose] > ╭─[ 218.19ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #870 [Verbose] > │ let rec method0 () : unit = │
00:00:22 #871 [Verbose] > │ let v0 : string = $"__expect / actual: %A{0.3325000000000001} / │
00:00:22 #872 [Verbose] > │ expected: %A{0.33249999999999996}" │
00:00:22 #873 [Verbose] > │ () │
00:00:22 #874 [Verbose] > │ method0() │
00:00:22 #875 [Verbose] > │ │
00:00:22 #876 [Verbose] > │ │
00:00:22 #877 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #878 [Verbose] >
00:00:22 #879 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #880 [Verbose] > inl integral'' dt : integration =
00:00:22 #881 [Verbose] > fun f a b =>
00:00:22 #882 [Verbose] > am'.init_series (a + dt / 2) (b - dt / 2) dt
00:00:22 #883 [Verbose] > |> am.map (f >> (*) dt)
00:00:22 #884 [Verbose] > |> am'.sum
00:00:22 #885 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-4637-3768-36ff83ec0612\main.spi
00:00:22 #886 [Verbose] >
00:00:22 #887 [Verbose] > ╭─[ 228.42ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #888 [Verbose] > │ () │
00:00:22 #889 [Verbose] > │ │
00:00:22 #890 [Verbose] > │ │
00:00:22 #891 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #892 [Verbose] >
00:00:22 #893 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #894 [Verbose] > // // test
00:00:22 #895 [Verbose] >
00:00:22 #896 [Verbose] > integral'' 0.01 math.square 0 1
00:00:22 #897 [Verbose] > |> _assert_approx_eq None (integral 0.01 math.square 0 1)
00:00:22 #898 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-4660-6076-6420533e3fce\main.spi
00:00:22 #899 [Verbose] >
00:00:22 #900 [Verbose] > ╭─[ 291.62ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #901 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:22 #902 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : float} │
00:00:22 #903 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:22 #904 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:22 #905 [Verbose] > │ let v2 : bool = v1 < 100 │
00:00:22 #906 [Verbose] > │ v2 │
00:00:22 #907 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:22 #908 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:22 #909 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:22 #910 [Verbose] > │ v3 │
00:00:22 #911 [Verbose] > │ and method3 (v0 : int32, v1 : Mut1) : bool = │
00:00:22 #912 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:22 #913 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:22 #914 [Verbose] > │ v3 │
00:00:22 #915 [Verbose] > │ and method4 (v0 : bool) : bool = │
00:00:22 #916 [Verbose] > │ v0 │
00:00:22 #917 [Verbose] > │ and method0 () : unit = │
00:00:22 #918 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (100) │
00:00:22 #919 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:22 #920 [Verbose] > │ while method1(v1) do │
00:00:22 #921 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:22 #922 [Verbose] > │ let v4 : float = float v3 │
00:00:22 #923 [Verbose] > │ let v5 : float = 0.01 * v4 │
00:00:22 #924 [Verbose] > │ let v6 : float = 0.005 + v5 │
00:00:22 #925 [Verbose] > │ v0.[int v3] <- v6 │
00:00:22 #926 [Verbose] > │ let v7 : int32 = v3 + 1 │
00:00:22 #927 [Verbose] > │ v1.l0 <- v7 │
00:00:22 #928 [Verbose] > │ () │
00:00:22 #929 [Verbose] > │ let v8 : int32 = v0.Length │
00:00:22 #930 [Verbose] > │ let v9 : (float []) = Array.zeroCreate<float> (v8) │
00:00:22 #931 [Verbose] > │ let v10 : Mut0 = {l0 = 0} : Mut0 │
00:00:22 #932 [Verbose] > │ while method2(v8, v10) do │
00:00:22 #933 [Verbose] > │ let v12 : int32 = v10.l0 │
00:00:22 #934 [Verbose] > │ let v13 : float = v0.[int v12] │
00:00:22 #935 [Verbose] > │ let v14 : float = v13 ** 2.0 │
00:00:22 #936 [Verbose] > │ let v15 : float = 0.01 * v14 │
00:00:22 #937 [Verbose] > │ v9.[int v12] <- v15 │
00:00:22 #938 [Verbose] > │ let v16 : int32 = v12 + 1 │
00:00:22 #939 [Verbose] > │ v10.l0 <- v16 │
00:00:22 #940 [Verbose] > │ () │
00:00:22 #941 [Verbose] > │ let v17 : int32 = v9.Length │
00:00:22 #942 [Verbose] > │ let v18 : Mut1 = {l0 = 0; l1 = 0.0} : Mut1 │
00:00:22 #943 [Verbose] > │ while method3(v17, v18) do │
00:00:22 #944 [Verbose] > │ let v20 : int32 = v18.l0 │
00:00:22 #945 [Verbose] > │ let v21 : float = v18.l1 │
00:00:22 #946 [Verbose] > │ let v22 : float = v9.[int v20] │
00:00:22 #947 [Verbose] > │ let v23 : float = v21 + v22 │
00:00:22 #948 [Verbose] > │ let v24 : int32 = v20 + 1 │
00:00:22 #949 [Verbose] > │ v18.l0 <- v24 │
00:00:22 #950 [Verbose] > │ v18.l1 <- v23 │
00:00:22 #951 [Verbose] > │ () │
00:00:22 #952 [Verbose] > │ let v25 : float = v18.l1 │
00:00:22 #953 [Verbose] > │ let v26 : float = 0.3333250000000004 - v25 │
00:00:22 #954 [Verbose] > │ let v27 : float = -v26 │
00:00:22 #955 [Verbose] > │ let v28 : bool = v26 >= v27 │
00:00:22 #956 [Verbose] > │ let v29 : float = │
00:00:22 #957 [Verbose] > │ if v28 then │
00:00:22 #958 [Verbose] > │ v26 │
00:00:22 #959 [Verbose] > │ else │
00:00:22 #960 [Verbose] > │ v27 │
00:00:22 #961 [Verbose] > │ let v30 : bool = v29 < 1E-08 │
00:00:22 #962 [Verbose] > │ let v32 : bool = │
00:00:22 #963 [Verbose] > │ if v30 then │
00:00:22 #964 [Verbose] > │ true │
00:00:22 #965 [Verbose] > │ else │
00:00:22 #966 [Verbose] > │ method4(v30) │
00:00:22 #967 [Verbose] > │ let v33 : string = $"__expect / actual: %A{v25} / expected: │
00:00:22 #968 [Verbose] > │ %A{0.3333250000000004}" │
00:00:22 #969 [Verbose] > │ let v34 : bool = v32 = false │
00:00:22 #970 [Verbose] > │ if v34 then │
00:00:22 #971 [Verbose] > │ failwith<unit> v33 │
00:00:22 #972 [Verbose] > │ method0() │
00:00:22 #973 [Verbose] > │ │
00:00:22 #974 [Verbose] > │ │
00:00:22 #975 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #976 [Verbose] >
00:00:22 #977 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 #978 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 #979 [Verbose] > │ ## anti_derivative │
00:00:22 #980 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #981 [Verbose] >
00:00:22 #982 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #983 [Verbose] > inl anti_derivative dt v0 a t =
00:00:22 #984 [Verbose] > v0 + integral' dt a 0 t
00:00:22 #985 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-4692-9249-99fe30eeb4df\main.spi
00:00:22 #986 [Verbose] >
00:00:22 #987 [Verbose] > ╭─[ 243.74ms - stdout ]────────────────────────────────────────────────────────╮
00:00:22 #988 [Verbose] > │ () │
00:00:22 #989 [Verbose] > │ │
00:00:22 #990 [Verbose] > │ │
00:00:22 #991 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #992 [Verbose] >
00:00:22 #993 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 #994 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 #995 [Verbose] > │ ## velocity_ft │
00:00:22 #996 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #997 [Verbose] >
00:00:22 #998 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:22 #999 [Verbose] > type velocity_ft = mass -> velocity -> list (time -> force) -> (time ->
00:00:22 #1000 [Verbose] > velocity)
00:00:22 #1001 [Verbose] >
00:00:22 #1002 [Verbose] > inl velocity_ft dt : velocity_ft =
00:00:22 #1003 [Verbose] > fun m v0 fs =>
00:00:22 #1004 [Verbose] > inl f_net t = fs |> listm.map (fun f => f t) |> listm'.sum
00:00:22 #1005 [Verbose] > inl a t = f_net t / m
00:00:22 #1006 [Verbose] > anti_derivative dt v0 a
00:00:22 #1007 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-4717-1731-16c1f8e31984\main.spi
00:00:23 #1008 [Verbose] >
00:00:23 #1009 [Verbose] > ╭─[ 261.66ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 #1010 [Verbose] > │ () │
00:00:23 #1011 [Verbose] > │ │
00:00:23 #1012 [Verbose] > │ │
00:00:23 #1013 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #1014 [Verbose] >
00:00:23 #1015 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 #1016 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 #1017 [Verbose] > │ ## position_ft │
00:00:23 #1018 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #1019 [Verbose] >
00:00:23 #1020 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 #1021 [Verbose] > type position_ft = mass -> position -> velocity -> list (time -> force) -> (time
00:00:23 #1022 [Verbose] > -> position)
00:00:23 #1023 [Verbose] >
00:00:23 #1024 [Verbose] > inl position_ft dt : position_ft =
00:00:23 #1025 [Verbose] > fun m x0 v0 fs =>
00:00:23 #1026 [Verbose] > velocity_ft dt m v0 fs
00:00:23 #1027 [Verbose] > |> anti_derivative dt x0
00:00:23 #1028 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-4743-4392-4ecbad399eb5\main.spi
00:00:23 #1029 [Verbose] >
00:00:23 #1030 [Verbose] > ╭─[ 228.56ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 #1031 [Verbose] > │ () │
00:00:23 #1032 [Verbose] > │ │
00:00:23 #1033 [Verbose] > │ │
00:00:23 #1034 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #1035 [Verbose] >
00:00:23 #1036 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 #1037 [Verbose] > // // test
00:00:23 #1038 [Verbose] >
00:00:23 #1039 [Verbose] > inl pedal_coast (t : time) : force =
00:00:23 #1040 [Verbose] > inl t_cycle = 20
00:00:23 #1041 [Verbose] > inl n_complete : i32 = t / t_cycle |> conv
00:00:23 #1042 [Verbose] > inl remainder = t - conv n_complete * t_cycle
00:00:23 #1043 [Verbose] > if remainder > 0 && remainder < 10
00:00:23 #1044 [Verbose] > then 10
00:00:23 #1045 [Verbose] > else 0
00:00:23 #1046 [Verbose] >
00:00:23 #1047 [Verbose] > inl x = am'.init_series -5 45 0.1
00:00:23 #1048 [Verbose] > inl y = x |> am.map pedal_coast
00:00:23 #1049 [Verbose] > "child pedaling then coasting", "time (s)", "", ;[[ "force on bike (N)", x, y ]]
00:00:23 #1050 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-4767-6704-68da7ac1770a\main.spi
00:00:23 #1051 [Verbose] >
00:00:23 #1052 [Verbose] > ╭─[ 288.32ms - return value ]──────────────────────────────────────────────────╮
00:00:23 #1053 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:23 #1054 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:23 #1055 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:23 #1056 [Verbose] > │ stroke="none"/> │
00:00:23 #1057 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:23 #1058 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:23 #1059 [Verbose] > │ fill="#FFFFFF"> │
00:00:23 #1060 [Verbose] > │ child pedaling then coasting │
00:00:23 #1061 [Verbose] > │ </text> │
00:00:23 #1062 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:00:23 #1063 [Verbose] > │ y2="75"/> │
00:00:23 #1064 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:23 #1065 [Verbose] > │ y2="75"/> │
00:00:23 #1066 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:00:23 #1067 [Verbose] > │ y2="75"/> │
00:00:23 #1068 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:00:23 #1069 [Verbose] > │ y2="75"/> │
00:00:23 #1070 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1=... │
00:00:23 #1071 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #1072 [Verbose] >
00:00:23 #1073 [Verbose] > ╭─[ 297.98ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 #1074 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:23 #1075 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:23 #1076 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:23 #1077 [Verbose] > │ let v2 : bool = v1 < 501 │
00:00:23 #1078 [Verbose] > │ v2 │
00:00:23 #1079 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:23 #1080 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:23 #1081 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:23 #1082 [Verbose] > │ v3 │
00:00:23 #1083 [Verbose] > │ and method3 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:23 #1084 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:23 #1085 [Verbose] > │ v0 │
00:00:23 #1086 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:23 #1087 [Verbose] > │ []) * (float [])) [])) = │
00:00:23 #1088 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (501) │
00:00:23 #1089 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:23 #1090 [Verbose] > │ while method1(v1) do │
00:00:23 #1091 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:23 #1092 [Verbose] > │ let v4 : float = float v3 │
00:00:23 #1093 [Verbose] > │ let v5 : float = 0.1 * v4 │
00:00:23 #1094 [Verbose] > │ let v6 : float = -5.0 + v5 │
00:00:23 #1095 [Verbose] > │ v0.[int v3] <- v6 │
00:00:23 #1096 [Verbose] > │ let v7 : int32 = v3 + 1 │
00:00:23 #1097 [Verbose] > │ v1.l0 <- v7 │
00:00:23 #1098 [Verbose] > │ () │
00:00:23 #1099 [Verbose] > │ let v8 : int32 = v0.Length │
00:00:23 #1100 [Verbose] > │ let v9 : (float []) = Array.zeroCreate<float> (v8) │
00:00:23 #1101 [Verbose] > │ let v10 : Mut0 = {l0 = 0} : Mut0 │
00:00:23 #1102 [Verbose] > │ while method2(v8, v10) do │
00:00:23 #1103 [Verbose] > │ let v12 : int32 = v10.l0 │
00:00:23 #1104 [Verbose] > │ let v13 : float = v0.[int v12] │
00:00:23 #1105 [Verbose] > │ let v14 : float = v13 / 20.0 │
00:00:23 #1106 [Verbose] > │ let v15 : int32 = int32 v14 │
00:00:23 #1107 [Verbose] > │ let v16 : float = float v15 │
00:00:23 #1108 [Verbose] > │ let v17 : float = v16 * 20.0 │
00:00:23 #1109 [Verbose] > │ let v18 : float = v13 - v17 │
00:00:23 #1110 [Verbose] > │ let v19 : bool = v18 > 0.0 │
00:00:23 #1111 [Verbose] > │ let v21 : bool = │
00:00:23 #1112 [Verbose] > │ if v19 then │
00:00:23 #1113 [Verbose] > │ let v20 : bool = v18 < 10.0 │
00:00:23 #1114 [Verbose] > │ v20 │
00:00:23 #1115 [Verbose] > │ else │
00:00:23 #1116 [Verbose] > │ false │
00:00:23 #1117 [Verbose] > │ let v22 : float = │
00:00:23 #1118 [Verbose] > │ if v21 then │
00:00:23 #1119 [Verbose] > │ 10.0 │
00:00:23 #1120 [Verbose] > │ else │
00:00:23 #1121 [Verbose] > │ 0.0 │
00:00:23 #1122 [Verbose] > │ v9.[int v12] <- v22 │
00:00:23 #1123 [Verbose] > │ let v23 : int32 = v12 + 1 │
00:00:23 #1124 [Verbose] > │ v10.l0 <- v23 │
00:00:23 #1125 [Verbose] > │ () │
00:00:23 #1126 [Verbose] > │ let v24 : string = "force on bike (N)" │
00:00:23 #1127 [Verbose] > │ let v25 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:23 #1128 [Verbose] > │ (v24, v0, v9)|] │
00:00:23 #1129 [Verbose] > │ let v26 : (struct (string * (float []) * (float [])) []) = method3(v25) │
00:00:23 #1130 [Verbose] > │ let v27 : string = "child pedaling then coasting" │
00:00:23 #1131 [Verbose] > │ let v28 : string = "time (s)" │
00:00:23 #1132 [Verbose] > │ let v29 : string = "" │
00:00:23 #1133 [Verbose] > │ struct (v27, v28, v29, v26) │
00:00:23 #1134 [Verbose] > │ method0() │
00:00:23 #1135 [Verbose] > │ │
00:00:23 #1136 [Verbose] > │ │
00:00:23 #1137 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #1138 [Verbose] >
00:00:23 #1139 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 #1140 [Verbose] > // // test
00:00:23 #1141 [Verbose] >
00:00:23 #1142 [Verbose] > inl x = am'.init_series -5 45 1
00:00:23 #1143 [Verbose] > inl y = x |> am.map (position_ft 0.1f64 20 0 0 [[ pedal_coast ]])
00:00:23 #1144 [Verbose] > "child pedaling then coasting", "time (s)", "", ;[[ "position of bike (m)", x, y
00:00:23 #1145 [Verbose] > ]]
00:00:23 #1146 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-4799-9911-98ab0126dc58\main.spi
00:00:24 #1147 [Verbose] >
00:00:24 #1148 [Verbose] > ╭─[ 579.17ms - return value ]──────────────────────────────────────────────────╮
00:00:24 #1149 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:24 #1150 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:24 #1151 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:24 #1152 [Verbose] > │ stroke="none"/> │
00:00:24 #1153 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:24 #1154 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:24 #1155 [Verbose] > │ fill="#FFFFFF"> │
00:00:24 #1156 [Verbose] > │ child pedaling then coasting │
00:00:24 #1157 [Verbose] > │ </text> │
00:00:24 #1158 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:00:24 #1159 [Verbose] > │ y2="75"/> │
00:00:24 #1160 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:24 #1161 [Verbose] > │ y2="75"/> │
00:00:24 #1162 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:00:24 #1163 [Verbose] > │ y2="75"/> │
00:00:24 #1164 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:00:24 #1165 [Verbose] > │ y2="75"/> │
00:00:24 #1166 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1=... │
00:00:24 #1167 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #1168 [Verbose] >
00:00:24 #1169 [Verbose] > ╭─[ 590.67ms - stdout ]────────────────────────────────────────────────────────╮
00:00:24 #1170 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:24 #1171 [Verbose] > │ and UH0 = │
00:00:24 #1172 [Verbose] > │ | UH0_0 of float * UH0 │
00:00:24 #1173 [Verbose] > │ | UH0_1 │
00:00:24 #1174 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:24 #1175 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:24 #1176 [Verbose] > │ let v2 : bool = v1 < 51 │
00:00:24 #1177 [Verbose] > │ v2 │
00:00:24 #1178 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:24 #1179 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:24 #1180 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:24 #1181 [Verbose] > │ v3 │
00:00:24 #1182 [Verbose] > │ and method3 (v0 : float, v1 : float) : UH0 = │
00:00:24 #1183 [Verbose] > │ let v2 : bool = v1 < v0 │
00:00:24 #1184 [Verbose] > │ if v2 then │
00:00:24 #1185 [Verbose] > │ let v3 : float = 0.1 * v1 │
00:00:24 #1186 [Verbose] > │ let v4 : float = 0.05 + v3 │
00:00:24 #1187 [Verbose] > │ let v5 : float = v1 + 1.0 │
00:00:24 #1188 [Verbose] > │ let v6 : UH0 = method3(v0, v5) │
00:00:24 #1189 [Verbose] > │ UH0_0(v4, v6) │
00:00:24 #1190 [Verbose] > │ else │
00:00:24 #1191 [Verbose] > │ UH0_1 │
00:00:24 #1192 [Verbose] > │ and method5 (v0 : UH0, v1 : UH0) : UH0 = │
00:00:24 #1193 [Verbose] > │ match v0 with │
00:00:24 #1194 [Verbose] > │ | UH0_0(v2, v3) -> (* Cons *) │
00:00:24 #1195 [Verbose] > │ let v4 : UH0 = method5(v3, v1) │
00:00:24 #1196 [Verbose] > │ let v5 : float = v2 / 20.0 │
00:00:24 #1197 [Verbose] > │ let v6 : int32 = int32 v5 │
00:00:24 #1198 [Verbose] > │ let v7 : float = float v6 │
00:00:24 #1199 [Verbose] > │ let v8 : float = v7 * 20.0 │
00:00:24 #1200 [Verbose] > │ let v9 : float = v2 - v8 │
00:00:24 #1201 [Verbose] > │ let v10 : bool = v9 > 0.0 │
00:00:24 #1202 [Verbose] > │ let v12 : bool = │
00:00:24 #1203 [Verbose] > │ if v10 then │
00:00:24 #1204 [Verbose] > │ let v11 : bool = v9 < 10.0 │
00:00:24 #1205 [Verbose] > │ v11 │
00:00:24 #1206 [Verbose] > │ else │
00:00:24 #1207 [Verbose] > │ false │
00:00:24 #1208 [Verbose] > │ let v13 : float = │
00:00:24 #1209 [Verbose] > │ if v12 then │
00:00:24 #1210 [Verbose] > │ 10.0 │
00:00:24 #1211 [Verbose] > │ else │
00:00:24 #1212 [Verbose] > │ 0.0 │
00:00:24 #1213 [Verbose] > │ let v14 : float = v13 / 20.0 │
00:00:24 #1214 [Verbose] > │ let v15 : float = 0.1 * v14 │
00:00:24 #1215 [Verbose] > │ UH0_0(v15, v4) │
00:00:24 #1216 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:24 #1217 [Verbose] > │ v1 │
00:00:24 #1218 [Verbose] > │ and method6 (v0 : UH0, v1 : float) : float = │
00:00:24 #1219 [Verbose] > │ match v0 with │
00:00:24 #1220 [Verbose] > │ | UH0_0(v2, v3) -> (* Cons *) │
00:00:24 #1221 [Verbose] > │ let v4 : float = v1 + v2 │
00:00:24 #1222 [Verbose] > │ method6(v3, v4) │
00:00:24 #1223 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:24 #1224 [Verbose] > │ v1 │
00:00:24 #1225 [Verbose] > │ and method4 (v0 : UH0, v1 : UH0) : UH0 = │
00:00:24 #1226 [Verbose] > │ match v0 with │
00:00:24 #1227 [Verbose] > │ | UH0_0(v2, v3) -> (* Cons *) │
00:00:24 #1228 [Verbose] > │ let v4 : UH0 = method4(v3, v1) │
00:00:24 #1229 [Verbose] > │ let v5 : float = v2 - 0.05 │
00:00:24 #1230 [Verbose] > │ let v6 : float = v5 - 0.05 │
00:00:24 #1231 [Verbose] > │ let v7 : float = v6 / 0.1 │
00:00:24 #1232 [Verbose] > │ let v8 : float = v7 + 1.0 │
00:00:24 #1233 [Verbose] > │ let v9 : float = 0.0 │
00:00:24 #1234 [Verbose] > │ let v10 : UH0 = method3(v8, v9) │
00:00:24 #1235 [Verbose] > │ let v11 : UH0 = UH0_1 │
00:00:24 #1236 [Verbose] > │ let v12 : UH0 = method5(v10, v11) │
00:00:24 #1237 [Verbose] > │ let v13 : float = 0.0 │
00:00:24 #1238 [Verbose] > │ let v14 : float = method6(v12, v13) │
00:00:24 #1239 [Verbose] > │ let v15 : float = 0.1 * v14 │
00:00:24 #1240 [Verbose] > │ UH0_0(v15, v4) │
00:00:24 #1241 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:24 #1242 [Verbose] > │ v1 │
00:00:24 #1243 [Verbose] > │ and method7 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:24 #1244 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:24 #1245 [Verbose] > │ v0 │
00:00:24 #1246 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:24 #1247 [Verbose] > │ []) * (float [])) [])) = │
00:00:24 #1248 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (51) │
00:00:24 #1249 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:24 #1250 [Verbose] > │ while method1(v1) do │
00:00:24 #1251 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:24 #1252 [Verbose] > │ let v4 : float = float v3 │
00:00:24 #1253 [Verbose] > │ let v5 : float = -5.0 + v4 │
00:00:24 #1254 [Verbose] > │ v0.[int v3] <- v5 │
00:00:24 #1255 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:24 #1256 [Verbose] > │ v1.l0 <- v6 │
00:00:24 #1257 [Verbose] > │ () │
00:00:24 #1258 [Verbose] > │ let v7 : int32 = v0.Length │
00:00:24 #1259 [Verbose] > │ let v8 : (float []) = Array.zeroCreate<float> (v7) │
00:00:24 #1260 [Verbose] > │ let v9 : Mut0 = {l0 = 0} : Mut0 │
00:00:24 #1261 [Verbose] > │ while method2(v7, v9) do │
00:00:24 #1262 [Verbose] > │ let v11 : int32 = v9.l0 │
00:00:24 #1263 [Verbose] > │ let v12 : float = v0.[int v11] │
00:00:24 #1264 [Verbose] > │ let v13 : float = v12 - 0.05 │
00:00:24 #1265 [Verbose] > │ let v14 : float = v13 - 0.05 │
00:00:24 #1266 [Verbose] > │ let v15 : float = v14 / 0.1 │
00:00:24 #1267 [Verbose] > │ let v16 : float = v15 + 1.0 │
00:00:24 #1268 [Verbose] > │ let v17 : float = 0.0 │
00:00:24 #1269 [Verbose] > │ let v18 : UH0 = method3(v16, v17) │
00:00:24 #1270 [Verbose] > │ let v19 : UH0 = UH0_1 │
00:00:24 #1271 [Verbose] > │ let v20 : UH0 = method4(v18, v19) │
00:00:24 #1272 [Verbose] > │ let v21 : float = 0.0 │
00:00:24 #1273 [Verbose] > │ let v22 : float = method6(v20, v21) │
00:00:24 #1274 [Verbose] > │ v8.[int v11] <- v22 │
00:00:24 #1275 [Verbose] > │ let v23 : int32 = v11 + 1 │
00:00:24 #1276 [Verbose] > │ v9.l0 <- v23 │
00:00:24 #1277 [Verbose] > │ () │
00:00:24 #1278 [Verbose] > │ let v24 : string = "position of bike (m)" │
00:00:24 #1279 [Verbose] > │ let v25 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:24 #1280 [Verbose] > │ (v24, v0, v8)|] │
00:00:24 #1281 [Verbose] > │ let v26 : (struct (string * (float []) * (float [])) []) = method7(v25) │
00:00:24 #1282 [Verbose] > │ let v27 : string = "child pedaling then coasting" │
00:00:24 #1283 [Verbose] > │ let v28 : string = "time (s)" │
00:00:24 #1284 [Verbose] > │ let v29 : string = "" │
00:00:24 #1285 [Verbose] > │ struct (v27, v28, v29, v26) │
00:00:24 #1286 [Verbose] > │ method0() │
00:00:24 #1287 [Verbose] > │ │
00:00:24 #1288 [Verbose] > │ │
00:00:24 #1289 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #1290 [Verbose] >
00:00:24 #1291 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:24 #1292 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:24 #1293 [Verbose] > │ ## velocity_fv │
00:00:24 #1294 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #1295 [Verbose] >
00:00:24 #1296 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 #1297 [Verbose] > inl newton_second_v m fs v0 =
00:00:24 #1298 [Verbose] > fs |> listm.map (fun f => f v0) |> listm'.sum |> fun x => x / m
00:00:24 #1299 [Verbose] >
00:00:24 #1300 [Verbose] > inl update_velocity dt m fs v0 =
00:00:24 #1301 [Verbose] > v0 + newton_second_v m fs v0 * dt
00:00:24 #1302 [Verbose] >
00:00:24 #1303 [Verbose] > inl velocity_fv dt m v0 fs t =
00:00:24 #1304 [Verbose] > stream.iterate (update_velocity dt m fs) v0
00:00:24 #1305 [Verbose] > |> stream.try_item (t / dt |> math.round |> abs)
00:00:24 #1306 [Verbose] > |> optionm'.default_value 0
00:00:24 #1307 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-4863-6380-6308771e1991\main.spi
00:00:24 #1308 [Verbose] >
00:00:24 #1309 [Verbose] > ╭─[ 235.75ms - stdout ]────────────────────────────────────────────────────────╮
00:00:24 #1310 [Verbose] > │ () │
00:00:24 #1311 [Verbose] > │ │
00:00:24 #1312 [Verbose] > │ │
00:00:24 #1313 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #1314 [Verbose] >
00:00:24 #1315 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 #1316 [Verbose] > inl f_air drag rho area v =
00:00:24 #1317 [Verbose] > -drag * rho * area * abs v * v / 2
00:00:24 #1318 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-4887-8755-8f48186f4901\main.spi
00:00:24 #1319 [Verbose] >
00:00:24 #1320 [Verbose] > ╭─[ 231.56ms - stdout ]────────────────────────────────────────────────────────╮
00:00:24 #1321 [Verbose] > │ () │
00:00:24 #1322 [Verbose] > │ │
00:00:24 #1323 [Verbose] > │ │
00:00:24 #1324 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:24 #1325 [Verbose] >
00:00:24 #1326 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:24 #1327 [Verbose] > // // test
00:00:24 #1328 [Verbose] >
00:00:24 #1329 [Verbose] > inl x = am'.init_series 0 60 0.5
00:00:24 #1330 [Verbose] > inl y = x |> am.map (velocity_fv 1 70 0f64 [[ fun _ => 100; f_air 2 1.225 0.6
00:00:24 #1331 [Verbose] > ]])
00:00:24 #1332 [Verbose] > "bike velocity", "time (s)", "", ;[[ "velocity of bike (m/s)", x, y ]]
00:00:24 #1333 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-4910-1094-1130f131e4e4\main.spi
00:00:25 #1334 [Verbose] >
00:00:25 #1335 [Verbose] > ╭─[ 563.81ms - return value ]──────────────────────────────────────────────────╮
00:00:25 #1336 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:25 #1337 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:25 #1338 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:25 #1339 [Verbose] > │ stroke="none"/> │
00:00:25 #1340 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:25 #1341 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:25 #1342 [Verbose] > │ fill="#FFFFFF"> │
00:00:25 #1343 [Verbose] > │ bike velocity │
00:00:25 #1344 [Verbose] > │ </text> │
00:00:25 #1345 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:00:25 #1346 [Verbose] > │ y2="75"/> │
00:00:25 #1347 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:25 #1348 [Verbose] > │ y2="75"/> │
00:00:25 #1349 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:00:25 #1350 [Verbose] > │ y2="75"/> │
00:00:25 #1351 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:00:25 #1352 [Verbose] > │ y2="75"/> │
00:00:25 #1353 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="94" y1="424" x... │
00:00:25 #1354 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 #1355 [Verbose] >
00:00:25 #1356 [Verbose] > ╭─[ 577.63ms - stdout ]────────────────────────────────────────────────────────╮
00:00:25 #1357 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:25 #1358 [Verbose] > │ and UH0 = │
00:00:25 #1359 [Verbose] > │ | UH0_0 of float * (unit -> UH0) │
00:00:25 #1360 [Verbose] > │ | UH0_1 │
00:00:25 #1361 [Verbose] > │ and [<Struct>] US0 = │
00:00:25 #1362 [Verbose] > │ | US0_0 │
00:00:25 #1363 [Verbose] > │ | US0_1 of f1_0 : float │
00:00:25 #1364 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:25 #1365 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:25 #1366 [Verbose] > │ let v2 : bool = v1 < 121 │
00:00:25 #1367 [Verbose] > │ v2 │
00:00:25 #1368 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:25 #1369 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:25 #1370 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:25 #1371 [Verbose] > │ v3 │
00:00:25 #1372 [Verbose] > │ and closure129 () () : UH0 = │
00:00:25 #1373 [Verbose] > │ let v0 : (unit -> UH0) = closure129() │
00:00:25 #1374 [Verbose] > │ UH0_0(11.664236870396083, v0) │
00:00:25 #1375 [Verbose] > │ and closure128 () () : UH0 = │
00:00:25 #1376 [Verbose] > │ let v0 : (unit -> UH0) = closure129() │
00:00:25 #1377 [Verbose] > │ UH0_0(11.664236870396081, v0) │
00:00:25 #1378 [Verbose] > │ and closure127 () () : UH0 = │
00:00:25 #1379 [Verbose] > │ let v0 : (unit -> UH0) = closure128() │
00:00:25 #1380 [Verbose] > │ UH0_0(11.66423687039608, v0) │
00:00:25 #1381 [Verbose] > │ and closure126 () () : UH0 = │
00:00:25 #1382 [Verbose] > │ let v0 : (unit -> UH0) = closure127() │
00:00:25 #1383 [Verbose] > │ UH0_0(11.664236870396078, v0) │
00:00:25 #1384 [Verbose] > │ and closure125 () () : UH0 = │
00:00:25 #1385 [Verbose] > │ let v0 : (unit -> UH0) = closure126() │
00:00:25 #1386 [Verbose] > │ UH0_0(11.664236870396074, v0) │
00:00:25 #1387 [Verbose] > │ and closure124 () () : UH0 = │
00:00:25 #1388 [Verbose] > │ let v0 : (unit -> UH0) = closure125() │
00:00:25 #1389 [Verbose] > │ UH0_0(11.66423687039607, v0) │
00:00:25 #1390 [Verbose] > │ and closure123 () () : UH0 = │
00:00:25 #1391 [Verbose] > │ let v0 : (unit -> UH0) = closure124() │
00:00:25 #1392 [Verbose] > │ UH0_0(11.664236870396065, v0) │
00:00:25 #1393 [Verbose] > │ and closure122 () () : UH0 = │
00:00:25 #1394 [Verbose] > │ let v0 : (unit -> UH0) = closure123() │
00:00:25 #1395 [Verbose] > │ UH0_0(11.664236870396058, v0) │
00:00:25 #1396 [Verbose] > │ and closure121 () () : UH0 = │
00:00:25 #1397 [Verbose] > │ let v0 : (unit -> UH0) = closure122() │
00:00:25 #1398 [Verbose] > │ UH0_0(11.66423687039605, v0) │
00:00:25 #1399 [Verbose] > │ and closure120 () () : UH0 = │
00:00:25 #1400 [Verbose] > │ let v0 : (unit -> UH0) = closure121() │
00:00:25 #1401 [Verbose] > │ UH0_0(11.664236870396037, v0) │
00:00:25 #1402 [Verbose] > │ and closure119 () () : UH0 = │
00:00:25 #1403 [Verbose] > │ let v0 : (unit -> UH0) = closure120() │
00:00:25 #1404 [Verbose] > │ UH0_0(11.66423687039602, v0) │
00:00:25 #1405 [Verbose] > │ and closure118 () () : UH0 = │
00:00:25 #1406 [Verbose] > │ let v0 : (unit -> UH0) = closure119() │
00:00:25 #1407 [Verbose] > │ UH0_0(11.664236870396, v0) │
00:00:25 #1408 [Verbose] > │ and closure117 () () : UH0 = │
00:00:25 #1409 [Verbose] > │ let v0 : (unit -> UH0) = closure118() │
00:00:25 #1410 [Verbose] > │ UH0_0(11.664236870395971, v0) │
00:00:25 #1411 [Verbose] > │ and closure116 () () : UH0 = │
00:00:25 #1412 [Verbose] > │ let v0 : (unit -> UH0) = closure117() │
00:00:25 #1413 [Verbose] > │ UH0_0(11.664236870395934, v0) │
00:00:25 #1414 [Verbose] > │ and closure115 () () : UH0 = │
00:00:25 #1415 [Verbose] > │ let v0 : (unit -> UH0) = closure116() │
00:00:25 #1416 [Verbose] > │ UH0_0(11.664236870395884, v0) │
00:00:25 #1417 [Verbose] > │ and closure114 () () : UH0 = │
00:00:25 #1418 [Verbose] > │ let v0 : (unit -> UH0) = closure115() │
00:00:25 #1419 [Verbose] > │ UH0_0(11.664236870395818, v0) │
00:00:25 #1420 [Verbose] > │ and closure113 () () : UH0 = │
00:00:25 #1421 [Verbose] > │ let v0 : (unit -> UH0) = closure114() │
00:00:25 #1422 [Verbose] > │ UH0_0(11.664236870395731, v0) │
00:00:25 #1423 [Verbose] > │ and closure112 () () : UH0 = │
00:00:25 #1424 [Verbose] > │ let v0 : (unit -> UH0) = closure113() │
00:00:25 #1425 [Verbose] > │ UH0_0(11.664236870395616, v0) │
00:00:25 #1426 [Verbose] > │ and closure111 () () : UH0 = │
00:00:25 #1427 [Verbose] > │ let v0 : (unit -> UH0) = closure112() │
00:00:25 #1428 [Verbose] > │ UH0_0(11.664236870395463, v0) │
00:00:25 #1429 [Verbose] > │ and closure110 () () : UH0 = │
00:00:25 #1430 [Verbose] > │ let v0 : (unit -> UH0) = closure111() │
00:00:25 #1431 [Verbose] > │ UH0_0(11.66423687039526, v0) │
00:00:25 #1432 [Verbose] > │ and closure109 () () : UH0 = │
00:00:25 #1433 [Verbose] > │ let v0 : (unit -> UH0) = closure110() │
00:00:25 #1434 [Verbose] > │ UH0_0(11.664236870394992, v0) │
00:00:25 #1435 [Verbose] > │ and closure108 () () : UH0 = │
00:00:25 #1436 [Verbose] > │ let v0 : (unit -> UH0) = closure109() │
00:00:25 #1437 [Verbose] > │ UH0_0(11.664236870394637, v0) │
00:00:25 #1438 [Verbose] > │ and closure107 () () : UH0 = │
00:00:25 #1439 [Verbose] > │ let v0 : (unit -> UH0) = closure108() │
00:00:25 #1440 [Verbose] > │ UH0_0(11.664236870394168, v0) │
00:00:25 #1441 [Verbose] > │ and closure106 () () : UH0 = │
00:00:25 #1442 [Verbose] > │ let v0 : (unit -> UH0) = closure107() │
00:00:25 #1443 [Verbose] > │ UH0_0(11.664236870393546, v0) │
00:00:25 #1444 [Verbose] > │ and closure105 () () : UH0 = │
00:00:25 #1445 [Verbose] > │ let v0 : (unit -> UH0) = closure106() │
00:00:25 #1446 [Verbose] > │ UH0_0(11.664236870392722, v0) │
00:00:25 #1447 [Verbose] > │ and closure104 () () : UH0 = │
00:00:25 #1448 [Verbose] > │ let v0 : (unit -> UH0) = closure105() │
00:00:25 #1449 [Verbose] > │ UH0_0(11.664236870391631, v0) │
00:00:25 #1450 [Verbose] > │ and closure103 () () : UH0 = │
00:00:25 #1451 [Verbose] > │ let v0 : (unit -> UH0) = closure104() │
00:00:25 #1452 [Verbose] > │ UH0_0(11.664236870390187, v0) │
00:00:25 #1453 [Verbose] > │ and closure102 () () : UH0 = │
00:00:25 #1454 [Verbose] > │ let v0 : (unit -> UH0) = closure103() │
00:00:25 #1455 [Verbose] > │ UH0_0(11.664236870388274, v0) │
00:00:25 #1456 [Verbose] > │ and closure101 () () : UH0 = │
00:00:25 #1457 [Verbose] > │ let v0 : (unit -> UH0) = closure102() │
00:00:25 #1458 [Verbose] > │ UH0_0(11.66423687038574, v0) │
00:00:25 #1459 [Verbose] > │ and closure100 () () : UH0 = │
00:00:25 #1460 [Verbose] > │ let v0 : (unit -> UH0) = closure101() │
00:00:25 #1461 [Verbose] > │ UH0_0(11.664236870382384, v0) │
00:00:25 #1462 [Verbose] > │ and closure99 () () : UH0 = │
00:00:25 #1463 [Verbose] > │ let v0 : (unit -> UH0) = closure100() │
00:00:25 #1464 [Verbose] > │ UH0_0(11.664236870377938, v0) │
00:00:25 #1465 [Verbose] > │ and closure98 () () : UH0 = │
00:00:25 #1466 [Verbose] > │ let v0 : (unit -> UH0) = closure99() │
00:00:25 #1467 [Verbose] > │ UH0_0(11.66423687037205, v0) │
00:00:25 #1468 [Verbose] > │ and closure97 () () : UH0 = │
00:00:25 #1469 [Verbose] > │ let v0 : (unit -> UH0) = closure98() │
00:00:25 #1470 [Verbose] > │ UH0_0(11.664236870364254, v0) │
00:00:25 #1471 [Verbose] > │ and closure96 () () : UH0 = │
00:00:25 #1472 [Verbose] > │ let v0 : (unit -> UH0) = closure97() │
00:00:25 #1473 [Verbose] > │ UH0_0(11.664236870353927, v0) │
00:00:25 #1474 [Verbose] > │ and closure95 () () : UH0 = │
00:00:25 #1475 [Verbose] > │ let v0 : (unit -> UH0) = closure96() │
00:00:25 #1476 [Verbose] > │ UH0_0(11.664236870340249, v0) │
00:00:25 #1477 [Verbose] > │ and closure94 () () : UH0 = │
00:00:25 #1478 [Verbose] > │ let v0 : (unit -> UH0) = closure95() │
00:00:25 #1479 [Verbose] > │ UH0_0(11.664236870322135, v0) │
00:00:25 #1480 [Verbose] > │ and closure93 () () : UH0 = │
00:00:25 #1481 [Verbose] > │ let v0 : (unit -> UH0) = closure94() │
00:00:25 #1482 [Verbose] > │ UH0_0(11.664236870298145, v0) │
00:00:25 #1483 [Verbose] > │ and closure92 () () : UH0 = │
00:00:25 #1484 [Verbose] > │ let v0 : (unit -> UH0) = closure93() │
00:00:25 #1485 [Verbose] > │ UH0_0(11.664236870266372, v0) │
00:00:25 #1486 [Verbose] > │ and closure91 () () : UH0 = │
00:00:25 #1487 [Verbose] > │ let v0 : (unit -> UH0) = closure92() │
00:00:25 #1488 [Verbose] > │ UH0_0(11.664236870224292, v0) │
00:00:25 #1489 [Verbose] > │ and closure90 () () : UH0 = │
00:00:25 #1490 [Verbose] > │ let v0 : (unit -> UH0) = closure91() │
00:00:25 #1491 [Verbose] > │ UH0_0(11.66423687016856, v0) │
00:00:25 #1492 [Verbose] > │ and closure89 () () : UH0 = │
00:00:25 #1493 [Verbose] > │ let v0 : (unit -> UH0) = closure90() │
00:00:25 #1494 [Verbose] > │ UH0_0(11.664236870094747, v0) │
00:00:25 #1495 [Verbose] > │ and closure88 () () : UH0 = │
00:00:25 #1496 [Verbose] > │ let v0 : (unit -> UH0) = closure89() │
00:00:25 #1497 [Verbose] > │ UH0_0(11.664236869996989, v0) │
00:00:25 #1498 [Verbose] > │ and closure87 () () : UH0 = │
00:00:25 #1499 [Verbose] > │ let v0 : (unit -> UH0) = closure88() │
00:00:25 #1500 [Verbose] > │ UH0_0(11.664236869867516, v0) │
00:00:25 #1501 [Verbose] > │ and closure86 () () : UH0 = │
00:00:25 #1502 [Verbose] > │ let v0 : (unit -> UH0) = closure87() │
00:00:25 #1503 [Verbose] > │ UH0_0(11.66423686969604, v0) │
00:00:25 #1504 [Verbose] > │ and closure85 () () : UH0 = │
00:00:25 #1505 [Verbose] > │ let v0 : (unit -> UH0) = closure86() │
00:00:25 #1506 [Verbose] > │ UH0_0(11.664236869468937, v0) │
00:00:25 #1507 [Verbose] > │ and closure84 () () : UH0 = │
00:00:25 #1508 [Verbose] > │ let v0 : (unit -> UH0) = closure85() │
00:00:25 #1509 [Verbose] > │ UH0_0(11.664236869168157, v0) │
00:00:25 #1510 [Verbose] > │ and closure83 () () : UH0 = │
00:00:25 #1511 [Verbose] > │ let v0 : (unit -> UH0) = closure84() │
00:00:25 #1512 [Verbose] > │ UH0_0(11.6642368687698, v0) │
00:00:25 #1513 [Verbose] > │ and closure82 () () : UH0 = │
00:00:25 #1514 [Verbose] > │ let v0 : (unit -> UH0) = closure83() │
00:00:25 #1515 [Verbose] > │ UH0_0(11.664236868242211, v0) │
00:00:25 #1516 [Verbose] > │ and closure81 () () : UH0 = │
00:00:25 #1517 [Verbose] > │ let v0 : (unit -> UH0) = closure82() │
00:00:25 #1518 [Verbose] > │ UH0_0(11.664236867543465, v0) │
00:00:25 #1519 [Verbose] > │ and closure80 () () : UH0 = │
00:00:25 #1520 [Verbose] > │ let v0 : (unit -> UH0) = closure81() │
00:00:25 #1521 [Verbose] > │ UH0_0(11.664236866618037, v0) │
00:00:25 #1522 [Verbose] > │ and closure79 () () : UH0 = │
00:00:25 #1523 [Verbose] > │ let v0 : (unit -> UH0) = closure80() │
00:00:25 #1524 [Verbose] > │ UH0_0(11.664236865392386, v0) │
00:00:25 #1525 [Verbose] > │ and closure78 () () : UH0 = │
00:00:25 #1526 [Verbose] > │ let v0 : (unit -> UH0) = closure79() │
00:00:25 #1527 [Verbose] > │ UH0_0(11.664236863769117, v0) │
00:00:25 #1528 [Verbose] > │ and closure77 () () : UH0 = │
00:00:25 #1529 [Verbose] > │ let v0 : (unit -> UH0) = closure78() │
00:00:25 #1530 [Verbose] > │ UH0_0(11.664236861619237, v0) │
00:00:25 #1531 [Verbose] > │ and closure76 () () : UH0 = │
00:00:25 #1532 [Verbose] > │ let v0 : (unit -> UH0) = closure77() │
00:00:25 #1533 [Verbose] > │ UH0_0(11.664236858771906, v0) │
00:00:25 #1534 [Verbose] > │ and closure75 () () : UH0 = │
00:00:25 #1535 [Verbose] > │ let v0 : (unit -> UH0) = closure76() │
00:00:25 #1536 [Verbose] > │ UH0_0(11.66423685500086, v0) │
00:00:25 #1537 [Verbose] > │ and closure74 () () : UH0 = │
00:00:25 #1538 [Verbose] > │ let v0 : (unit -> UH0) = closure75() │
00:00:25 #1539 [Verbose] > │ UH0_0(11.664236850006436, v0) │
00:00:25 #1540 [Verbose] > │ and closure73 () () : UH0 = │
00:00:25 #1541 [Verbose] > │ let v0 : (unit -> UH0) = closure74() │
00:00:25 #1542 [Verbose] > │ UH0_0(11.664236843391752, v0) │
00:00:25 #1543 [Verbose] > │ and closure72 () () : UH0 = │
00:00:25 #1544 [Verbose] > │ let v0 : (unit -> UH0) = closure73() │
00:00:25 #1545 [Verbose] > │ UH0_0(11.664236834631172, v0) │
00:00:25 #1546 [Verbose] > │ and closure71 () () : UH0 = │
00:00:25 #1547 [Verbose] > │ let v0 : (unit -> UH0) = closure72() │
00:00:25 #1548 [Verbose] > │ UH0_0(11.66423682302854, v0) │
00:00:25 #1549 [Verbose] > │ and closure70 () () : UH0 = │
00:00:25 #1550 [Verbose] > │ let v0 : (unit -> UH0) = closure71() │
00:00:25 #1551 [Verbose] > │ UH0_0(11.664236807661855, v0) │
00:00:25 #1552 [Verbose] > │ and closure69 () () : UH0 = │
00:00:25 #1553 [Verbose] > │ let v0 : (unit -> UH0) = closure70() │
00:00:25 #1554 [Verbose] > │ UH0_0(11.664236787310005, v0) │
00:00:25 #1555 [Verbose] > │ and closure68 () () : UH0 = │
00:00:25 #1556 [Verbose] > │ let v0 : (unit -> UH0) = closure69() │
00:00:25 #1557 [Verbose] > │ UH0_0(11.664236760355733, v0) │
00:00:25 #1558 [Verbose] > │ and closure67 () () : UH0 = │
00:00:25 #1559 [Verbose] > │ let v0 : (unit -> UH0) = closure68() │
00:00:25 #1560 [Verbose] > │ UH0_0(11.664236724657123, v0) │
00:00:25 #1561 [Verbose] > │ and closure66 () () : UH0 = │
00:00:25 #1562 [Verbose] > │ let v0 : (unit -> UH0) = closure67() │
00:00:25 #1563 [Verbose] > │ UH0_0(11.66423667737739, v0) │
00:00:25 #1564 [Verbose] > │ and closure65 () () : UH0 = │
00:00:25 #1565 [Verbose] > │ let v0 : (unit -> UH0) = closure66() │
00:00:25 #1566 [Verbose] > │ UH0_0(11.664236614759462, v0) │
00:00:25 #1567 [Verbose] > │ and closure64 () () : UH0 = │
00:00:25 #1568 [Verbose] > │ let v0 : (unit -> UH0) = closure65() │
00:00:25 #1569 [Verbose] > │ UH0_0(11.664236531827415, v0) │
00:00:25 #1570 [Verbose] > │ and closure63 () () : UH0 = │
00:00:25 #1571 [Verbose] > │ let v0 : (unit -> UH0) = closure64() │
00:00:25 #1572 [Verbose] > │ UH0_0(11.664236421991067, v0) │
00:00:25 #1573 [Verbose] > │ and closure62 () () : UH0 = │
00:00:25 #1574 [Verbose] > │ let v0 : (unit -> UH0) = closure63() │
00:00:25 #1575 [Verbose] > │ UH0_0(11.664236276522294, v0) │
00:00:25 #1576 [Verbose] > │ and closure61 () () : UH0 = │
00:00:25 #1577 [Verbose] > │ let v0 : (unit -> UH0) = closure62() │
00:00:25 #1578 [Verbose] > │ UH0_0(11.664236083861448, v0) │
00:00:25 #1579 [Verbose] > │ and closure60 () () : UH0 = │
00:00:25 #1580 [Verbose] > │ let v0 : (unit -> UH0) = closure61() │
00:00:25 #1581 [Verbose] > │ UH0_0(11.664235828698772, v0) │
00:00:25 #1582 [Verbose] > │ and closure59 () () : UH0 = │
00:00:25 #1583 [Verbose] > │ let v0 : (unit -> UH0) = closure60() │
00:00:25 #1584 [Verbose] > │ UH0_0(11.664235490757811, v0) │
00:00:25 #1585 [Verbose] > │ and closure58 () () : UH0 = │
00:00:25 #1586 [Verbose] > │ let v0 : (unit -> UH0) = closure59() │
00:00:25 #1587 [Verbose] > │ UH0_0(11.664235043184158, v0) │
00:00:25 #1588 [Verbose] > │ and closure57 () () : UH0 = │
00:00:25 #1589 [Verbose] > │ let v0 : (unit -> UH0) = closure58() │
00:00:25 #1590 [Verbose] > │ UH0_0(11.66423445041147, v0) │
00:00:25 #1591 [Verbose] > │ and closure56 () () : UH0 = │
00:00:25 #1592 [Verbose] > │ let v0 : (unit -> UH0) = closure57() │
00:00:25 #1593 [Verbose] > │ UH0_0(11.664233665335203, v0) │
00:00:25 #1594 [Verbose] > │ and closure55 () () : UH0 = │
00:00:25 #1595 [Verbose] > │ let v0 : (unit -> UH0) = closure56() │
00:00:25 #1596 [Verbose] > │ UH0_0(11.664232625569467, v0) │
00:00:25 #1597 [Verbose] > │ and closure54 () () : UH0 = │
00:00:25 #1598 [Verbose] > │ let v0 : (unit -> UH0) = closure55() │
00:00:25 #1599 [Verbose] > │ UH0_0(11.664231248489562, v0) │
00:00:25 #1600 [Verbose] > │ and closure53 () () : UH0 = │
00:00:25 #1601 [Verbose] > │ let v0 : (unit -> UH0) = closure54() │
00:00:25 #1602 [Verbose] > │ UH0_0(11.664229424666262, v0) │
00:00:25 #1603 [Verbose] > │ and closure52 () () : UH0 = │
00:00:25 #1604 [Verbose] > │ let v0 : (unit -> UH0) = closure53() │
00:00:25 #1605 [Verbose] > │ UH0_0(11.66422700917009, v0) │
00:00:25 #1606 [Verbose] > │ and closure51 () () : UH0 = │
00:00:25 #1607 [Verbose] > │ let v0 : (unit -> UH0) = closure52() │
00:00:25 #1608 [Verbose] > │ UH0_0(11.664223810054642, v0) │
00:00:25 #1609 [Verbose] > │ and closure50 () () : UH0 = │
00:00:25 #1610 [Verbose] > │ let v0 : (unit -> UH0) = closure51() │
00:00:25 #1611 [Verbose] > │ UH0_0(11.664219573103773, v0) │
00:00:25 #1612 [Verbose] > │ and closure49 () () : UH0 = │
00:00:25 #1613 [Verbose] > │ let v0 : (unit -> UH0) = closure50() │
00:00:25 #1614 [Verbose] > │ UH0_0(11.6642139616307, v0) │
00:00:25 #1615 [Verbose] > │ and closure48 () () : UH0 = │
00:00:25 #1616 [Verbose] > │ let v0 : (unit -> UH0) = closure49() │
00:00:25 #1617 [Verbose] > │ UH0_0(11.664206529723813, v0) │
00:00:25 #1618 [Verbose] > │ and closure47 () () : UH0 = │
00:00:25 #1619 [Verbose] > │ let v0 : (unit -> UH0) = closure48() │
00:00:25 #1620 [Verbose] > │ UH0_0(11.664196686813408, v0) │
00:00:25 #1621 [Verbose] > │ and closure46 () () : UH0 = │
00:00:25 #1622 [Verbose] > │ let v0 : (unit -> UH0) = closure47() │
00:00:25 #1623 [Verbose] > │ UH0_0(11.664183650743945, v0) │
00:00:25 #1624 [Verbose] > │ and closure45 () () : UH0 = │
00:00:25 #1625 [Verbose] > │ let v0 : (unit -> UH0) = closure46() │
00:00:25 #1626 [Verbose] > │ UH0_0(11.664166385623318, v0) │
00:00:25 #1627 [Verbose] > │ and closure44 () () : UH0 = │
00:00:25 #1628 [Verbose] > │ let v0 : (unit -> UH0) = closure45() │
00:00:25 #1629 [Verbose] > │ UH0_0(11.664143519511356, v0) │
00:00:25 #1630 [Verbose] > │ and closure43 () () : UH0 = │
00:00:25 #1631 [Verbose] > │ let v0 : (unit -> UH0) = closure44() │
00:00:25 #1632 [Verbose] > │ UH0_0(11.664113235408447, v0) │
00:00:25 #1633 [Verbose] > │ and closure42 () () : UH0 = │
00:00:25 #1634 [Verbose] > │ let v0 : (unit -> UH0) = closure43() │
00:00:25 #1635 [Verbose] > │ UH0_0(11.66407312688485, v0) │
00:00:25 #1636 [Verbose] > │ and closure41 () () : UH0 = │
00:00:25 #1637 [Verbose] > │ let v0 : (unit -> UH0) = closure42() │
00:00:25 #1638 [Verbose] > │ UH0_0(11.664020006883758, v0) │
00:00:25 #1639 [Verbose] > │ and closure40 () () : UH0 = │
00:00:25 #1640 [Verbose] > │ let v0 : (unit -> UH0) = closure41() │
00:00:25 #1641 [Verbose] > │ UH0_0(11.663949654514292, v0) │
00:00:25 #1642 [Verbose] > │ and closure39 () () : UH0 = │
00:00:25 #1643 [Verbose] > │ let v0 : (unit -> UH0) = closure40() │
00:00:25 #1644 [Verbose] > │ UH0_0(11.663856479730171, v0) │
00:00:25 #1645 [Verbose] > │ and closure38 () () : UH0 = │
00:00:25 #1646 [Verbose] > │ let v0 : (unit -> UH0) = closure39() │
00:00:25 #1647 [Verbose] > │ UH0_0(11.663733079277343, v0) │
00:00:25 #1648 [Verbose] > │ and closure37 () () : UH0 = │
00:00:25 #1649 [Verbose] > │ let v0 : (unit -> UH0) = closure38() │
00:00:25 #1650 [Verbose] > │ UH0_0(11.663569648675777, v0) │
00:00:25 #1651 [Verbose] > │ and closure36 () () : UH0 = │
00:00:25 #1652 [Verbose] > │ let v0 : (unit -> UH0) = closure37() │
00:00:25 #1653 [Verbose] > │ UH0_0(11.663353203599439, v0) │
00:00:25 #1654 [Verbose] > │ and closure35 () () : UH0 = │
00:00:25 #1655 [Verbose] > │ let v0 : (unit -> UH0) = closure36() │
00:00:25 #1656 [Verbose] > │ UH0_0(11.663066548940721, v0) │
00:00:25 #1657 [Verbose] > │ and closure34 () () : UH0 = │
00:00:25 #1658 [Verbose] > │ let v0 : (unit -> UH0) = closure35() │
00:00:25 #1659 [Verbose] > │ UH0_0(11.662686913915445, v0) │
00:00:25 #1660 [Verbose] > │ and closure33 () () : UH0 = │
00:00:25 #1661 [Verbose] > │ let v0 : (unit -> UH0) = closure34() │
00:00:25 #1662 [Verbose] > │ UH0_0(11.662184145236864, v0) │
00:00:25 #1663 [Verbose] > │ and closure32 () () : UH0 = │
00:00:25 #1664 [Verbose] > │ let v0 : (unit -> UH0) = closure33() │
00:00:25 #1665 [Verbose] > │ UH0_0(11.661518315638029, v0) │
00:00:25 #1666 [Verbose] > │ and closure31 () () : UH0 = │
00:00:25 #1667 [Verbose] > │ let v0 : (unit -> UH0) = closure32() │
00:00:25 #1668 [Verbose] > │ UH0_0(11.66063655920926, v0) │
00:00:25 #1669 [Verbose] > │ and closure30 () () : UH0 = │
00:00:25 #1670 [Verbose] > │ let v0 : (unit -> UH0) = closure31() │
00:00:25 #1671 [Verbose] > │ UH0_0(11.659468884709733, v0) │
00:00:25 #1672 [Verbose] > │ and closure29 () () : UH0 = │
00:00:25 #1673 [Verbose] > │ let v0 : (unit -> UH0) = closure30() │
00:00:25 #1674 [Verbose] > │ UH0_0(11.657922638782631, v0) │
00:00:25 #1675 [Verbose] > │ and closure28 () () : UH0 = │
00:00:25 #1676 [Verbose] > │ let v0 : (unit -> UH0) = closure29() │
00:00:25 #1677 [Verbose] > │ UH0_0(11.655875187195818, v0) │
00:00:25 #1678 [Verbose] > │ and closure27 () () : UH0 = │
00:00:25 #1679 [Verbose] > │ let v0 : (unit -> UH0) = closure28() │
00:00:25 #1680 [Verbose] > │ UH0_0(11.653164246713697, v0) │
00:00:25 #1681 [Verbose] > │ and closure26 () () : UH0 = │
00:00:25 #1682 [Verbose] > │ let v0 : (unit -> UH0) = closure27() │
00:00:25 #1683 [Verbose] > │ UH0_0(11.64957512416459, v0) │
00:00:25 #1684 [Verbose] > │ and closure25 () () : UH0 = │
00:00:25 #1685 [Verbose] > │ let v0 : (unit -> UH0) = closure26() │
00:00:25 #1686 [Verbose] > │ UH0_0(11.644823892116417, v0) │
00:00:25 #1687 [Verbose] > │ and closure24 () () : UH0 = │
00:00:25 #1688 [Verbose] > │ let v0 : (unit -> UH0) = closure25() │
00:00:25 #1689 [Verbose] > │ UH0_0(11.63853524018339, v0) │
00:00:25 #1690 [Verbose] > │ and closure23 () () : UH0 = │
00:00:25 #1691 [Verbose] > │ let v0 : (unit -> UH0) = closure24() │
00:00:25 #1692 [Verbose] > │ UH0_0(11.630213374558416, v0) │
00:00:25 #1693 [Verbose] > │ and closure22 () () : UH0 = │
00:00:25 #1694 [Verbose] > │ let v0 : (unit -> UH0) = closure23() │
00:00:25 #1695 [Verbose] > │ UH0_0(11.619203884549703, v0) │
00:00:25 #1696 [Verbose] > │ and closure21 () () : UH0 = │
00:00:25 #1697 [Verbose] > │ let v0 : (unit -> UH0) = closure22() │
00:00:25 #1698 [Verbose] > │ UH0_0(11.604643948207235, v0) │
00:00:25 #1699 [Verbose] > │ and closure20 () () : UH0 = │
00:00:25 #1700 [Verbose] > │ let v0 : (unit -> UH0) = closure21() │
00:00:25 #1701 [Verbose] > │ UH0_0(11.585397618384544, v0) │
00:00:25 #1702 [Verbose] > │ and closure19 () () : UH0 = │
00:00:25 #1703 [Verbose] > │ let v0 : (unit -> UH0) = closure20() │
00:00:25 #1704 [Verbose] > │ UH0_0(11.559972254267073, v0) │
00:00:25 #1705 [Verbose] > │ and closure18 () () : UH0 = │
00:00:25 #1706 [Verbose] > │ let v0 : (unit -> UH0) = closure19() │
00:00:25 #1707 [Verbose] > │ UH0_0(11.526411536153837, v0) │
00:00:25 #1708 [Verbose] > │ and closure17 () () : UH0 = │
00:00:25 #1709 [Verbose] > │ let v0 : (unit -> UH0) = closure18() │
00:00:25 #1710 [Verbose] > │ UH0_0(11.48216011776808, v0) │
00:00:25 #1711 [Verbose] > │ and closure16 () () : UH0 = │
00:00:25 #1712 [Verbose] > │ let v0 : (unit -> UH0) = closure17() │
00:00:25 #1713 [Verbose] > │ UH0_0(11.42389519391233, v0) │
00:00:25 #1714 [Verbose] > │ and closure15 () () : UH0 = │
00:00:25 #1715 [Verbose] > │ let v0 : (unit -> UH0) = closure16() │
00:00:25 #1716 [Verbose] > │ UH0_0(11.347321723441393, v0) │
00:00:25 #1717 [Verbose] > │ and closure14 () () : UH0 = │
00:00:25 #1718 [Verbose] > │ let v0 : (unit -> UH0) = closure15() │
00:00:25 #1719 [Verbose] > │ UH0_0(11.246931775734161, v0) │
00:00:25 #1720 [Verbose] > │ and closure13 () () : UH0 = │
00:00:25 #1721 [Verbose] > │ let v0 : (unit -> UH0) = closure14() │
00:00:25 #1722 [Verbose] > │ UH0_0(11.115736011467376, v0) │
00:00:25 #1723 [Verbose] > │ and closure12 () () : UH0 = │
00:00:25 #1724 [Verbose] > │ let v0 : (unit -> UH0) = closure13() │
00:00:25 #1725 [Verbose] > │ UH0_0(10.94498876251829, v0) │
00:00:25 #1726 [Verbose] > │ and closure11 () () : UH0 = │
00:00:25 #1727 [Verbose] > │ let v0 : (unit -> UH0) = closure12() │
00:00:25 #1728 [Verbose] > │ UH0_0(10.72394989903564, v0) │
00:00:25 #1729 [Verbose] > │ and closure10 () () : UH0 = │
00:00:25 #1730 [Verbose] > │ let v0 : (unit -> UH0) = closure11() │
00:00:25 #1731 [Verbose] > │ UH0_0(10.439758275369812, v0) │
00:00:25 #1732 [Verbose] > │ and closure9 () () : UH0 = │
00:00:25 #1733 [Verbose] > │ let v0 : (unit -> UH0) = closure10() │
00:00:25 #1734 [Verbose] > │ UH0_0(10.077531599826058, v0) │
00:00:25 #1735 [Verbose] > │ and closure8 () () : UH0 = │
00:00:25 #1736 [Verbose] > │ let v0 : (unit -> UH0) = closure9() │
00:00:25 #1737 [Verbose] > │ UH0_0(9.62084761372258, v0) │
00:00:25 #1738 [Verbose] > │ and closure7 () () : UH0 = │
00:00:25 #1739 [Verbose] > │ let v0 : (unit -> UH0) = closure8() │
00:00:25 #1740 [Verbose] > │ UH0_0(9.052781056066443, v0) │
00:00:25 #1741 [Verbose] > │ and closure6 () () : UH0 = │
00:00:25 #1742 [Verbose] > │ let v0 : (unit -> UH0) = closure7() │
00:00:25 #1743 [Verbose] > │ UH0_0(8.357635347880503, v0) │
00:00:25 #1744 [Verbose] > │ and closure5 () () : UH0 = │
00:00:25 #1745 [Verbose] > │ let v0 : (unit -> UH0) = closure6() │
00:00:25 #1746 [Verbose] > │ UH0_0(7.523376447621674, v0) │
00:00:25 #1747 [Verbose] > │ and closure4 () () : UH0 = │
00:00:25 #1748 [Verbose] > │ let v0 : (unit -> UH0) = closure5() │
00:00:25 #1749 [Verbose] > │ UH0_0(6.544529054818572, v0) │
00:00:25 #1750 [Verbose] > │ and closure3 () () : UH0 = │
00:00:25 #1751 [Verbose] > │ let v0 : (unit -> UH0) = closure4() │
00:00:25 #1752 [Verbose] > │ UH0_0(5.424976512996006, v0) │
00:00:25 #1753 [Verbose] > │ and closure2 () () : UH0 = │
00:00:25 #1754 [Verbose] > │ let v0 : (unit -> UH0) = closure3() │
00:00:25 #1755 [Verbose] > │ UH0_0(4.179852321428571, v0) │
00:00:25 #1756 [Verbose] > │ and closure1 () () : UH0 = │
00:00:25 #1757 [Verbose] > │ let v0 : (unit -> UH0) = closure2() │
00:00:25 #1758 [Verbose] > │ UH0_0(2.835714285714286, v0) │
00:00:25 #1759 [Verbose] > │ and closure0 () () : UH0 = │
00:00:25 #1760 [Verbose] > │ let v0 : (unit -> UH0) = closure1() │
00:00:25 #1761 [Verbose] > │ UH0_0(1.4285714285714286, v0) │
00:00:25 #1762 [Verbose] > │ and method3 (v0 : float, v1 : UH0) : US0 = │
00:00:25 #1763 [Verbose] > │ match v1 with │
00:00:25 #1764 [Verbose] > │ | UH0_0(v2, v3) -> (* StreamCons *) │
00:00:25 #1765 [Verbose] > │ let v4 : bool = v0 <= 0.0 │
00:00:25 #1766 [Verbose] > │ if v4 then │
00:00:25 #1767 [Verbose] > │ US0_1(v2) │
00:00:25 #1768 [Verbose] > │ else │
00:00:25 #1769 [Verbose] > │ let v6 : float = v0 - 1.0 │
00:00:25 #1770 [Verbose] > │ let v7 : UH0 = v3 () │
00:00:25 #1771 [Verbose] > │ method3(v6, v7) │
00:00:25 #1772 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:25 #1773 [Verbose] > │ US0_0 │
00:00:25 #1774 [Verbose] > │ and method4 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:25 #1775 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:25 #1776 [Verbose] > │ v0 │
00:00:25 #1777 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:25 #1778 [Verbose] > │ []) * (float [])) [])) = │
00:00:25 #1779 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (121) │
00:00:25 #1780 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:25 #1781 [Verbose] > │ while method1(v1) do │
00:00:25 #1782 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:25 #1783 [Verbose] > │ let v4 : float = float v3 │
00:00:25 #1784 [Verbose] > │ let v5 : float = 0.5 * v4 │
00:00:25 #1785 [Verbose] > │ v0.[int v3] <- v5 │
00:00:25 #1786 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:25 #1787 [Verbose] > │ v1.l0 <- v6 │
00:00:25 #1788 [Verbose] > │ () │
00:00:25 #1789 [Verbose] > │ let v7 : int32 = v0.Length │
00:00:25 #1790 [Verbose] > │ let v8 : (float []) = Array.zeroCreate<float> (v7) │
00:00:25 #1791 [Verbose] > │ let v9 : Mut0 = {l0 = 0} : Mut0 │
00:00:25 #1792 [Verbose] > │ while method2(v7, v9) do │
00:00:25 #1793 [Verbose] > │ let v11 : int32 = v9.l0 │
00:00:25 #1794 [Verbose] > │ let v12 : float = v0.[int v11] │
00:00:25 #1795 [Verbose] > │ let v13 : float = round v12 │
00:00:25 #1796 [Verbose] > │ let v14 : float = -v13 │
00:00:25 #1797 [Verbose] > │ let v15 : bool = v13 >= v14 │
00:00:25 #1798 [Verbose] > │ let v16 : float = │
00:00:25 #1799 [Verbose] > │ if v15 then │
00:00:25 #1800 [Verbose] > │ v13 │
00:00:25 #1801 [Verbose] > │ else │
00:00:25 #1802 [Verbose] > │ v14 │
00:00:25 #1803 [Verbose] > │ let v17 : float = 0.0 │
00:00:25 #1804 [Verbose] > │ let v18 : (unit -> UH0) = closure0() │
00:00:25 #1805 [Verbose] > │ let v19 : UH0 = UH0_0(v17, v18) │
00:00:25 #1806 [Verbose] > │ let v20 : US0 = method3(v16, v19) │
00:00:25 #1807 [Verbose] > │ let v23 : float = │
00:00:25 #1808 [Verbose] > │ match v20 with │
00:00:25 #1809 [Verbose] > │ | US0_0 -> (* None *) │
00:00:25 #1810 [Verbose] > │ 0.0 │
00:00:25 #1811 [Verbose] > │ | US0_1(v21) -> (* Some *) │
00:00:25 #1812 [Verbose] > │ v21 │
00:00:25 #1813 [Verbose] > │ v8.[int v11] <- v23 │
00:00:25 #1814 [Verbose] > │ let v24 : int32 = v11 + 1 │
00:00:25 #1815 [Verbose] > │ v9.l0 <- v24 │
00:00:25 #1816 [Verbose] > │ () │
00:00:25 #1817 [Verbose] > │ let v25 : string = "velocity of bike (m/s)" │
00:00:25 #1818 [Verbose] > │ let v26 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:25 #1819 [Verbose] > │ (v25, v0, v8)|] │
00:00:25 #1820 [Verbose] > │ let v27 : (struct (string * (float []) * (float [])) []) = method4(v26) │
00:00:25 #1821 [Verbose] > │ let v28 : string = "bike velocity" │
00:00:25 #1822 [Verbose] > │ let v29 : string = "time (s)" │
00:00:25 #1823 [Verbose] > │ let v30 : string = "" │
00:00:25 #1824 [Verbose] > │ struct (v28, v29, v30, v27) │
00:00:25 #1825 [Verbose] > │ method0() │
00:00:25 #1826 [Verbose] > │ │
00:00:25 #1827 [Verbose] > │ │
00:00:25 #1828 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 #1829 [Verbose] >
00:00:25 #1830 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:25 #1831 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:25 #1832 [Verbose] > │ ## velocity_ftv │
00:00:25 #1833 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:25 #1834 [Verbose] >
00:00:25 #1835 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:25 #1836 [Verbose] > inl newton_second_tv m fs (t, v0) =
00:00:25 #1837 [Verbose] > inl f_net = fs |> listm.map (fun f => f (t, v0)) |> listm'.sum
00:00:25 #1838 [Verbose] > inl acc = f_net / m
00:00:25 #1839 [Verbose] > 1, acc
00:00:25 #1840 [Verbose] >
00:00:25 #1841 [Verbose] > inl update_tv dt m fs (t, v0) =
00:00:25 #1842 [Verbose] > inl dtdt, dvdt = newton_second_tv m fs (t, v0)
00:00:25 #1843 [Verbose] > t + dtdt * dt, v0 + dvdt * dt
00:00:25 #1844 [Verbose] >
00:00:25 #1845 [Verbose] > inl velocity_ftv dt m tv0 fs t =
00:00:25 #1846 [Verbose] > stream.iterate (join update_tv dt m fs) tv0
00:00:25 #1847 [Verbose] > |> stream.try_item (t / dt |> math.round |> abs)
00:00:25 #1848 [Verbose] > |> optionm.map snd
00:00:25 #1849 [Verbose] > |> optionm'.default_value 0
00:00:25 #1850 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-4996-9606-9e83cff849e5\main.spi
00:00:26 #1851 [Verbose] >
00:00:26 #1852 [Verbose] > ╭─[ 602.87ms - stdout ]────────────────────────────────────────────────────────╮
00:00:26 #1853 [Verbose] > │ () │
00:00:26 #1854 [Verbose] > │ │
00:00:26 #1855 [Verbose] > │ │
00:00:26 #1856 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 #1857 [Verbose] >
00:00:26 #1858 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:26 #1859 [Verbose] > // // test
00:00:26 #1860 [Verbose] >
00:00:26 #1861 [Verbose] > inl x = am'.init_series 0 100 0.1
00:00:26 #1862 [Verbose] > inl y =
00:00:26 #1863 [Verbose] > x
00:00:26 #1864 [Verbose] > |> am.map (
00:00:26 #1865 [Verbose] > velocity_ftv 0.1 20 (dyn (0, 0)) [[ fun (t, _) => pedal_coast t; fun (_,
00:00:26 #1866 [Verbose] > v) => f_air 2 1.225 0.5 v ]]
00:00:26 #1867 [Verbose] > )
00:00:26 #1868 [Verbose] > "pedaling and coasting with air", "time (s)", "", ;[[ "velocity of bike (m/s)",
00:00:26 #1869 [Verbose] > x, y ]]
00:00:26 #1870 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5056-5625-586a35d2a522\main.spi
00:00:26 #1871 [Verbose] >
00:00:26 #1872 [Verbose] > ╭─[ 459.57ms - return value ]──────────────────────────────────────────────────╮
00:00:26 #1873 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:26 #1874 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:26 #1875 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:26 #1876 [Verbose] > │ stroke="none"/> │
00:00:26 #1877 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:26 #1878 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:26 #1879 [Verbose] > │ fill="#FFFFFF"> │
00:00:26 #1880 [Verbose] > │ pedaling and coasting with air │
00:00:26 #1881 [Verbose] > │ </text> │
00:00:26 #1882 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:00:26 #1883 [Verbose] > │ y2="75"/> │
00:00:26 #1884 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:26 #1885 [Verbose] > │ y2="75"/> │
00:00:26 #1886 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:00:26 #1887 [Verbose] > │ y2="75"/> │
00:00:26 #1888 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:00:26 #1889 [Verbose] > │ y2="75"/> │
00:00:26 #1890 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x... │
00:00:26 #1891 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 #1892 [Verbose] >
00:00:26 #1893 [Verbose] > ╭─[ 475.87ms - stdout ]────────────────────────────────────────────────────────╮
00:00:26 #1894 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:26 #1895 [Verbose] > │ and UH0 = │
00:00:26 #1896 [Verbose] > │ | UH0_0 of float * float * (unit -> UH0) │
00:00:26 #1897 [Verbose] > │ | UH0_1 │
00:00:26 #1898 [Verbose] > │ and [<Struct>] US0 = │
00:00:26 #1899 [Verbose] > │ | US0_0 │
00:00:26 #1900 [Verbose] > │ | US0_1 of f1_0 : float * f1_1 : float │
00:00:26 #1901 [Verbose] > │ and [<Struct>] US1 = │
00:00:26 #1902 [Verbose] > │ | US1_0 │
00:00:26 #1903 [Verbose] > │ | US1_1 of f1_0 : float │
00:00:26 #1904 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:26 #1905 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:26 #1906 [Verbose] > │ let v2 : bool = v1 < 1001 │
00:00:26 #1907 [Verbose] > │ v2 │
00:00:26 #1908 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:26 #1909 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:26 #1910 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:26 #1911 [Verbose] > │ v3 │
00:00:26 #1912 [Verbose] > │ and closure0 () struct (v0 : float, v1 : float) : struct (float * float) = │
00:00:26 #1913 [Verbose] > │ let v2 : float = -v1 │
00:00:26 #1914 [Verbose] > │ let v3 : bool = v1 >= v2 │
00:00:26 #1915 [Verbose] > │ let v4 : float = │
00:00:26 #1916 [Verbose] > │ if v3 then │
00:00:26 #1917 [Verbose] > │ v1 │
00:00:26 #1918 [Verbose] > │ else │
00:00:26 #1919 [Verbose] > │ v2 │
00:00:26 #1920 [Verbose] > │ let v5 : float = -1.225 * v4 │
00:00:26 #1921 [Verbose] > │ let v6 : float = v5 * v1 │
00:00:26 #1922 [Verbose] > │ let v7 : float = v6 / 2.0 │
00:00:26 #1923 [Verbose] > │ let v8 : float = v0 / 20.0 │
00:00:26 #1924 [Verbose] > │ let v9 : int32 = int32 v8 │
00:00:26 #1925 [Verbose] > │ let v10 : float = float v9 │
00:00:26 #1926 [Verbose] > │ let v11 : float = v10 * 20.0 │
00:00:26 #1927 [Verbose] > │ let v12 : float = v0 - v11 │
00:00:26 #1928 [Verbose] > │ let v13 : bool = v12 > 0.0 │
00:00:26 #1929 [Verbose] > │ let v15 : bool = │
00:00:26 #1930 [Verbose] > │ if v13 then │
00:00:26 #1931 [Verbose] > │ let v14 : bool = v12 < 10.0 │
00:00:26 #1932 [Verbose] > │ v14 │
00:00:26 #1933 [Verbose] > │ else │
00:00:26 #1934 [Verbose] > │ false │
00:00:26 #1935 [Verbose] > │ let v16 : float = │
00:00:26 #1936 [Verbose] > │ if v15 then │
00:00:26 #1937 [Verbose] > │ 10.0 │
00:00:26 #1938 [Verbose] > │ else │
00:00:26 #1939 [Verbose] > │ 0.0 │
00:00:26 #1940 [Verbose] > │ let v17 : float = v16 + v7 │
00:00:26 #1941 [Verbose] > │ let v18 : float = v17 / 20.0 │
00:00:26 #1942 [Verbose] > │ let v19 : float = v0 + 0.1 │
00:00:26 #1943 [Verbose] > │ let v20 : float = v18 * 0.1 │
00:00:26 #1944 [Verbose] > │ let v21 : float = v1 + v20 │
00:00:26 #1945 [Verbose] > │ struct (v19, v21) │
00:00:26 #1946 [Verbose] > │ and method3 () : (struct (float * float) -> struct (float * float)) = │
00:00:26 #1947 [Verbose] > │ closure0() │
00:00:26 #1948 [Verbose] > │ and closure1 (v0 : (struct (float * float) -> struct (float * float)), v1 : │
00:00:26 #1949 [Verbose] > │ float, v2 : float, v3 : float, v4 : float) () : UH0 = │
00:00:26 #1950 [Verbose] > │ let struct (v5 : float, v6 : float) = v0 struct (v3, v4) │
00:00:26 #1951 [Verbose] > │ let v7 : (unit -> UH0) = closure1(v0, v1, v2, v5, v6) │
00:00:26 #1952 [Verbose] > │ UH0_0(v3, v4, v7) │
00:00:26 #1953 [Verbose] > │ and method4 (v0 : float, v1 : UH0) : US0 = │
00:00:26 #1954 [Verbose] > │ match v1 with │
00:00:26 #1955 [Verbose] > │ | UH0_0(v2, v3, v4) -> (* StreamCons *) │
00:00:26 #1956 [Verbose] > │ let v5 : bool = v0 <= 0.0 │
00:00:26 #1957 [Verbose] > │ if v5 then │
00:00:26 #1958 [Verbose] > │ US0_1(v2, v3) │
00:00:26 #1959 [Verbose] > │ else │
00:00:26 #1960 [Verbose] > │ let v7 : float = v0 - 1.0 │
00:00:26 #1961 [Verbose] > │ let v8 : UH0 = v4 () │
00:00:26 #1962 [Verbose] > │ method4(v7, v8) │
00:00:26 #1963 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:26 #1964 [Verbose] > │ US0_0 │
00:00:26 #1965 [Verbose] > │ and method5 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:26 #1966 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:26 #1967 [Verbose] > │ v0 │
00:00:26 #1968 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:26 #1969 [Verbose] > │ []) * (float [])) [])) = │
00:00:26 #1970 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (1001) │
00:00:26 #1971 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:26 #1972 [Verbose] > │ while method1(v1) do │
00:00:26 #1973 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:26 #1974 [Verbose] > │ let v4 : float = float v3 │
00:00:26 #1975 [Verbose] > │ let v5 : float = 0.1 * v4 │
00:00:26 #1976 [Verbose] > │ v0.[int v3] <- v5 │
00:00:26 #1977 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:26 #1978 [Verbose] > │ v1.l0 <- v6 │
00:00:26 #1979 [Verbose] > │ () │
00:00:26 #1980 [Verbose] > │ let v7 : float = 0.0 │
00:00:26 #1981 [Verbose] > │ let v8 : float = 0.0 │
00:00:26 #1982 [Verbose] > │ let v9 : int32 = v0.Length │
00:00:26 #1983 [Verbose] > │ let v10 : (float []) = Array.zeroCreate<float> (v9) │
00:00:26 #1984 [Verbose] > │ let v11 : Mut0 = {l0 = 0} : Mut0 │
00:00:26 #1985 [Verbose] > │ while method2(v9, v11) do │
00:00:26 #1986 [Verbose] > │ let v13 : int32 = v11.l0 │
00:00:26 #1987 [Verbose] > │ let v14 : float = v0.[int v13] │
00:00:26 #1988 [Verbose] > │ let v15 : (struct (float * float) -> struct (float * float)) = │
00:00:26 #1989 [Verbose] > │ method3() │
00:00:26 #1990 [Verbose] > │ let struct (v16 : float, v17 : float) = v15 struct (v7, v8) │
00:00:26 #1991 [Verbose] > │ let v18 : float = v14 / 0.1 │
00:00:26 #1992 [Verbose] > │ let v19 : float = round v18 │
00:00:26 #1993 [Verbose] > │ let v20 : float = -v19 │
00:00:26 #1994 [Verbose] > │ let v21 : bool = v19 >= v20 │
00:00:26 #1995 [Verbose] > │ let v22 : float = │
00:00:26 #1996 [Verbose] > │ if v21 then │
00:00:26 #1997 [Verbose] > │ v19 │
00:00:26 #1998 [Verbose] > │ else │
00:00:26 #1999 [Verbose] > │ v20 │
00:00:26 #2000 [Verbose] > │ let v23 : (unit -> UH0) = closure1(v15, v7, v8, v16, v17) │
00:00:26 #2001 [Verbose] > │ let v24 : UH0 = UH0_0(v7, v8, v23) │
00:00:26 #2002 [Verbose] > │ let v25 : US0 = method4(v22, v24) │
00:00:26 #2003 [Verbose] > │ let v31 : US1 = │
00:00:26 #2004 [Verbose] > │ match v25 with │
00:00:26 #2005 [Verbose] > │ | US0_0 -> (* None *) │
00:00:26 #2006 [Verbose] > │ US1_0 │
00:00:26 #2007 [Verbose] > │ | US0_1(v26, v27) -> (* Some *) │
00:00:26 #2008 [Verbose] > │ US1_1(v27) │
00:00:26 #2009 [Verbose] > │ let v34 : float = │
00:00:26 #2010 [Verbose] > │ match v31 with │
00:00:26 #2011 [Verbose] > │ | US1_0 -> (* None *) │
00:00:26 #2012 [Verbose] > │ 0.0 │
00:00:26 #2013 [Verbose] > │ | US1_1(v32) -> (* Some *) │
00:00:26 #2014 [Verbose] > │ v32 │
00:00:26 #2015 [Verbose] > │ v10.[int v13] <- v34 │
00:00:26 #2016 [Verbose] > │ let v35 : int32 = v13 + 1 │
00:00:26 #2017 [Verbose] > │ v11.l0 <- v35 │
00:00:26 #2018 [Verbose] > │ () │
00:00:26 #2019 [Verbose] > │ let v36 : string = "velocity of bike (m/s)" │
00:00:26 #2020 [Verbose] > │ let v37 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:26 #2021 [Verbose] > │ (v36, v0, v10)|] │
00:00:26 #2022 [Verbose] > │ let v38 : (struct (string * (float []) * (float [])) []) = method5(v37) │
00:00:26 #2023 [Verbose] > │ let v39 : string = "pedaling and coasting with air" │
00:00:26 #2024 [Verbose] > │ let v40 : string = "time (s)" │
00:00:26 #2025 [Verbose] > │ let v41 : string = "" │
00:00:26 #2026 [Verbose] > │ struct (v39, v40, v41, v38) │
00:00:26 #2027 [Verbose] > │ method0() │
00:00:26 #2028 [Verbose] > │ │
00:00:26 #2029 [Verbose] > │ │
00:00:26 #2030 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 #2031 [Verbose] >
00:00:26 #2032 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:26 #2033 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:26 #2034 [Verbose] > │ ## velocity_ftxv │
00:00:26 #2035 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 #2036 [Verbose] >
00:00:26 #2037 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:26 #2038 [Verbose] > nominal state_1d = time * position * velocity
00:00:26 #2039 [Verbose] > nominal rrr = f64 * f64 * f64
00:00:26 #2040 [Verbose] >
00:00:26 #2041 [Verbose] > inl newton_second_1d m fs (state_1d (t, x0, v0)) =
00:00:26 #2042 [Verbose] > inl f_net = fs |> listm.map (fun f => f (state_1d (t, x0, v0))) |>
00:00:26 #2043 [Verbose] > listm'.sum
00:00:26 #2044 [Verbose] > inl acc = f_net / m
00:00:26 #2045 [Verbose] > rrr (1f64, v0, acc)
00:00:26 #2046 [Verbose] >
00:00:26 #2047 [Verbose] > inl euler_1d dt deriv (state_1d (t0, x0, v0) as t) =
00:00:26 #2048 [Verbose] > inl (rrr (_, _, dvdt)) = deriv t
00:00:26 #2049 [Verbose] > inl t1 = t0 + dt
00:00:26 #2050 [Verbose] > inl x1 = x0 + v0 * dt
00:00:26 #2051 [Verbose] > inl v1 = v0 + dvdt * dt
00:00:26 #2052 [Verbose] > state_1d (t1, x1, v1)
00:00:26 #2053 [Verbose] >
00:00:26 #2054 [Verbose] > inl update_txv dt m fs =
00:00:26 #2055 [Verbose] > newton_second_1d m fs |> euler_1d dt
00:00:26 #2056 [Verbose] >
00:00:26 #2057 [Verbose] > inl states_txv dt m txv0 fs =
00:00:26 #2058 [Verbose] > seq.iterate_ (update_txv dt m fs) txv0
00:00:26 #2059 [Verbose] >
00:00:26 #2060 [Verbose] > inl velocity_1d sts t =
00:00:26 #2061 [Verbose] > inl (state_1d (t0, _, _)) = sts 0
00:00:26 #2062 [Verbose] > inl (state_1d (t1, _, _)) = sts 1
00:00:26 #2063 [Verbose] > inl dt = t1 - t0
00:00:26 #2064 [Verbose] > inl num_steps = t / dt |> math.round |> abs
00:00:26 #2065 [Verbose] > inl (state_1d (_, _, v0)) = sts num_steps
00:00:26 #2066 [Verbose] > v0
00:00:26 #2067 [Verbose] >
00:00:26 #2068 [Verbose] > inl velocity_ftxv dt m txv0 fs =
00:00:26 #2069 [Verbose] > states_txv dt m txv0 fs |> velocity_1d
00:00:26 #2070 [Verbose] >
00:00:26 #2071 [Verbose] > inl position_1d sts t =
00:00:26 #2072 [Verbose] > inl (state_1d (t0, _, _)) = sts 0
00:00:26 #2073 [Verbose] > inl (state_1d (t1, _, _)) = sts 1
00:00:26 #2074 [Verbose] > inl dt = t1 - t0
00:00:26 #2075 [Verbose] > inl num_steps = t / dt |> math.round |> abs
00:00:26 #2076 [Verbose] > inl (state_1d (_, x0, _)) = sts num_steps
00:00:26 #2077 [Verbose] > x0
00:00:26 #2078 [Verbose] >
00:00:26 #2079 [Verbose] > inl position_ftxv dt m txv0 fs =
00:00:26 #2080 [Verbose] > states_txv dt m txv0 fs |> position_1d
00:00:26 #2081 [Verbose] >
00:00:26 #2082 [Verbose] > inl spring_force k (state_1d (_, x0, _)) =
00:00:26 #2083 [Verbose] > -k * x0
00:00:26 #2084 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5111-1171-1655424dc507\main.spi
00:00:26 #2085 [Verbose] >
00:00:26 #2086 [Verbose] > ╭─[ 211.29ms - stdout ]────────────────────────────────────────────────────────╮
00:00:26 #2087 [Verbose] > │ () │
00:00:26 #2088 [Verbose] > │ │
00:00:26 #2089 [Verbose] > │ │
00:00:26 #2090 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:26 #2091 [Verbose] >
00:00:26 #2092 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:26 #2093 [Verbose] > // // test
00:00:26 #2094 [Verbose] >
00:00:26 #2095 [Verbose] > inl damped_ho_forces () =
00:00:26 #2096 [Verbose] > [[
00:00:26 #2097 [Verbose] > spring_force 0.8
00:00:26 #2098 [Verbose] > fun (state_1d (_, _, v0)) => f_air 2 1.225 (pi * math.square 0.02) v0
00:00:26 #2099 [Verbose] > fun _ => -0.0027 * 9.80665
00:00:26 #2100 [Verbose] > ]]
00:00:26 #2101 [Verbose] >
00:00:26 #2102 [Verbose] > inl damped_ho_states () =
00:00:26 #2103 [Verbose] > states_txv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ())
00:00:26 #2104 [Verbose] >
00:00:26 #2105 [Verbose] > inl pingpong_position t =
00:00:26 #2106 [Verbose] > position_ftxv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ()) t
00:00:26 #2107 [Verbose] >
00:00:26 #2108 [Verbose] > inl x : a _ f64 = am'.init_series 0 3 0.01
00:00:26 #2109 [Verbose] > inl y = x |> am.map pingpong_position
00:00:26 #2110 [Verbose] > "ping pong ball on a slinky", "time (s)", "", ;[[ "position (m)", x, y ]]
00:00:27 #2111 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5132-3270-37cb4de131c5\main.spi
00:00:27 #2112 [Verbose] >
00:00:27 #2113 [Verbose] > ╭─[ 283.86ms - return value ]──────────────────────────────────────────────────╮
00:00:27 #2114 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:27 #2115 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:27 #2116 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:27 #2117 [Verbose] > │ stroke="none"/> │
00:00:27 #2118 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:27 #2119 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:27 #2120 [Verbose] > │ fill="#FFFFFF"> │
00:00:27 #2121 [Verbose] > │ ping pong ball on a slinky │
00:00:27 #2122 [Verbose] > │ </text> │
00:00:27 #2123 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:00:27 #2124 [Verbose] > │ y2="75"/> │
00:00:27 #2125 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:27 #2126 [Verbose] > │ y2="75"/> │
00:00:27 #2127 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:00:27 #2128 [Verbose] > │ y2="75"/> │
00:00:27 #2129 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:00:27 #2130 [Verbose] > │ y2="75"/> │
00:00:27 #2131 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="9... │
00:00:27 #2132 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 #2133 [Verbose] >
00:00:27 #2134 [Verbose] > ╭─[ 294.67ms - stdout ]────────────────────────────────────────────────────────╮
00:00:27 #2135 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:27 #2136 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:27 #2137 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:27 #2138 [Verbose] > │ let v2 : bool = v1 < 301 │
00:00:27 #2139 [Verbose] > │ v2 │
00:00:27 #2140 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:27 #2141 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:27 #2142 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:27 #2143 [Verbose] > │ v3 │
00:00:27 #2144 [Verbose] > │ and method3 (v0 : float, v1 : float, v2 : float, v3 : float) : struct (float │
00:00:27 #2145 [Verbose] > │ * float * float) = │
00:00:27 #2146 [Verbose] > │ let v4 : bool = v3 <= 0.0 │
00:00:27 #2147 [Verbose] > │ if v4 then │
00:00:27 #2148 [Verbose] > │ struct (v0, v1, v2) │
00:00:27 #2149 [Verbose] > │ else │
00:00:27 #2150 [Verbose] > │ let v5 : float = -v2 │
00:00:27 #2151 [Verbose] > │ let v6 : bool = v2 >= v5 │
00:00:27 #2152 [Verbose] > │ let v7 : float = │
00:00:27 #2153 [Verbose] > │ if v6 then │
00:00:27 #2154 [Verbose] > │ v2 │
00:00:27 #2155 [Verbose] > │ else │
00:00:27 #2156 [Verbose] > │ v5 │
00:00:27 #2157 [Verbose] > │ let v8 : float = -0.0030787608005179976 * v7 │
00:00:27 #2158 [Verbose] > │ let v9 : float = v8 * v2 │
00:00:27 #2159 [Verbose] > │ let v10 : float = v9 / 2.0 │
00:00:27 #2160 [Verbose] > │ let v11 : float = -0.8 * v1 │
00:00:27 #2161 [Verbose] > │ let v12 : float = v11 + v10 │
00:00:27 #2162 [Verbose] > │ let v13 : float = v12 + -0.026477955 │
00:00:27 #2163 [Verbose] > │ let v14 : float = v13 / 0.0027 │
00:00:27 #2164 [Verbose] > │ let v15 : float = v0 + 0.001 │
00:00:27 #2165 [Verbose] > │ let v16 : float = v2 * 0.001 │
00:00:27 #2166 [Verbose] > │ let v17 : float = v1 + v16 │
00:00:27 #2167 [Verbose] > │ let v18 : float = v14 * 0.001 │
00:00:27 #2168 [Verbose] > │ let v19 : float = v2 + v18 │
00:00:27 #2169 [Verbose] > │ let v20 : float = v3 - 1.0 │
00:00:27 #2170 [Verbose] > │ method3(v15, v17, v19, v20) │
00:00:27 #2171 [Verbose] > │ and method4 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:27 #2172 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:27 #2173 [Verbose] > │ v0 │
00:00:27 #2174 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:27 #2175 [Verbose] > │ []) * (float [])) [])) = │
00:00:27 #2176 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (301) │
00:00:27 #2177 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:27 #2178 [Verbose] > │ while method1(v1) do │
00:00:27 #2179 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:27 #2180 [Verbose] > │ let v4 : float = float v3 │
00:00:27 #2181 [Verbose] > │ let v5 : float = 0.01 * v4 │
00:00:27 #2182 [Verbose] > │ v0.[int v3] <- v5 │
00:00:27 #2183 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:27 #2184 [Verbose] > │ v1.l0 <- v6 │
00:00:27 #2185 [Verbose] > │ () │
00:00:27 #2186 [Verbose] > │ let v7 : int32 = v0.Length │
00:00:27 #2187 [Verbose] > │ let v8 : (float []) = Array.zeroCreate<float> (v7) │
00:00:27 #2188 [Verbose] > │ let v9 : Mut0 = {l0 = 0} : Mut0 │
00:00:27 #2189 [Verbose] > │ while method2(v7, v9) do │
00:00:27 #2190 [Verbose] > │ let v11 : int32 = v9.l0 │
00:00:27 #2191 [Verbose] > │ let v12 : float = v0.[int v11] │
00:00:27 #2192 [Verbose] > │ let v13 : float = 0.0 │
00:00:27 #2193 [Verbose] > │ let v14 : float = 0.1 │
00:00:27 #2194 [Verbose] > │ let v15 : float = 0.0 │
00:00:27 #2195 [Verbose] > │ let v16 : float = 0.0 │
00:00:27 #2196 [Verbose] > │ let struct (v17 : float, v18 : float, v19 : float) = method3(v13, │
00:00:27 #2197 [Verbose] > │ v14, v15, v16) │
00:00:27 #2198 [Verbose] > │ let v20 : float = 0.0 │
00:00:27 #2199 [Verbose] > │ let v21 : float = 0.1 │
00:00:27 #2200 [Verbose] > │ let v22 : float = 0.0 │
00:00:27 #2201 [Verbose] > │ let v23 : float = 1.0 │
00:00:27 #2202 [Verbose] > │ let struct (v24 : float, v25 : float, v26 : float) = method3(v20, │
00:00:27 #2203 [Verbose] > │ v21, v22, v23) │
00:00:27 #2204 [Verbose] > │ let v27 : float = v24 - v17 │
00:00:27 #2205 [Verbose] > │ let v28 : float = v12 / v27 │
00:00:27 #2206 [Verbose] > │ let v29 : float = round v28 │
00:00:27 #2207 [Verbose] > │ let v30 : float = -v29 │
00:00:27 #2208 [Verbose] > │ let v31 : bool = v29 >= v30 │
00:00:27 #2209 [Verbose] > │ let v32 : float = │
00:00:27 #2210 [Verbose] > │ if v31 then │
00:00:27 #2211 [Verbose] > │ v29 │
00:00:27 #2212 [Verbose] > │ else │
00:00:27 #2213 [Verbose] > │ v30 │
00:00:27 #2214 [Verbose] > │ let v33 : float = 0.0 │
00:00:27 #2215 [Verbose] > │ let v34 : float = 0.1 │
00:00:27 #2216 [Verbose] > │ let v35 : float = 0.0 │
00:00:27 #2217 [Verbose] > │ let struct (v36 : float, v37 : float, v38 : float) = method3(v33, │
00:00:27 #2218 [Verbose] > │ v34, v35, v32) │
00:00:27 #2219 [Verbose] > │ v8.[int v11] <- v37 │
00:00:27 #2220 [Verbose] > │ let v39 : int32 = v11 + 1 │
00:00:27 #2221 [Verbose] > │ v9.l0 <- v39 │
00:00:27 #2222 [Verbose] > │ () │
00:00:27 #2223 [Verbose] > │ let v40 : string = "position (m)" │
00:00:27 #2224 [Verbose] > │ let v41 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:27 #2225 [Verbose] > │ (v40, v0, v8)|] │
00:00:27 #2226 [Verbose] > │ let v42 : (struct (string * (float []) * (float [])) []) = method4(v41) │
00:00:27 #2227 [Verbose] > │ let v43 : string = "ping pong ball on a slinky" │
00:00:27 #2228 [Verbose] > │ let v44 : string = "time (s)" │
00:00:27 #2229 [Verbose] > │ let v45 : string = "" │
00:00:27 #2230 [Verbose] > │ struct (v43, v44, v45, v42) │
00:00:27 #2231 [Verbose] > │ method0() │
00:00:27 #2232 [Verbose] > │ │
00:00:27 #2233 [Verbose] > │ │
00:00:27 #2234 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 #2235 [Verbose] >
00:00:27 #2236 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:27 #2237 [Verbose] > // // test
00:00:27 #2238 [Verbose] >
00:00:27 #2239 [Verbose] > inl pingpong_velocity t =
00:00:27 #2240 [Verbose] > velocity_ftxv 0.001 0.0027 (state_1d (0, 0.1, 0)) (damped_ho_forces ()) t
00:00:27 #2241 [Verbose] >
00:00:27 #2242 [Verbose] > inl x = am'.init_series 0 3 0.01
00:00:27 #2243 [Verbose] > inl y = x |> am.map pingpong_velocity
00:00:27 #2244 [Verbose] > "ping pong ball on a slinky", "time (s)", "", ;[[ "velocity (m/s)", x, y ]]
00:00:27 #2245 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5167-6770-605174c7d506\main.spi
00:00:27 #2246 [Verbose] >
00:00:27 #2247 [Verbose] > ╭─[ 308.25ms - return value ]──────────────────────────────────────────────────╮
00:00:27 #2248 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:27 #2249 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:27 #2250 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:27 #2251 [Verbose] > │ stroke="none"/> │
00:00:27 #2252 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:27 #2253 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:27 #2254 [Verbose] > │ fill="#FFFFFF"> │
00:00:27 #2255 [Verbose] > │ ping pong ball on a slinky │
00:00:27 #2256 [Verbose] > │ </text> │
00:00:27 #2257 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="61" y1="424" x2="61" │
00:00:27 #2258 [Verbose] > │ y2="75"/> │
00:00:27 #2259 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:27 #2260 [Verbose] > │ y2="75"/> │
00:00:27 #2261 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="78" y1="424" x2="78" │
00:00:27 #2262 [Verbose] > │ y2="75"/> │
00:00:27 #2263 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="86" y1="424" x2="86" │
00:00:27 #2264 [Verbose] > │ y2="75"/> │
00:00:27 #2265 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="9... │
00:00:27 #2266 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 #2267 [Verbose] >
00:00:27 #2268 [Verbose] > ╭─[ 319.89ms - stdout ]────────────────────────────────────────────────────────╮
00:00:27 #2269 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:27 #2270 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:27 #2271 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:27 #2272 [Verbose] > │ let v2 : bool = v1 < 301 │
00:00:27 #2273 [Verbose] > │ v2 │
00:00:27 #2274 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:27 #2275 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:27 #2276 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:27 #2277 [Verbose] > │ v3 │
00:00:27 #2278 [Verbose] > │ and method3 (v0 : float, v1 : float, v2 : float, v3 : float) : struct (float │
00:00:27 #2279 [Verbose] > │ * float * float) = │
00:00:27 #2280 [Verbose] > │ let v4 : bool = v3 <= 0.0 │
00:00:27 #2281 [Verbose] > │ if v4 then │
00:00:27 #2282 [Verbose] > │ struct (v0, v1, v2) │
00:00:27 #2283 [Verbose] > │ else │
00:00:27 #2284 [Verbose] > │ let v5 : float = -v2 │
00:00:27 #2285 [Verbose] > │ let v6 : bool = v2 >= v5 │
00:00:27 #2286 [Verbose] > │ let v7 : float = │
00:00:27 #2287 [Verbose] > │ if v6 then │
00:00:27 #2288 [Verbose] > │ v2 │
00:00:27 #2289 [Verbose] > │ else │
00:00:27 #2290 [Verbose] > │ v5 │
00:00:27 #2291 [Verbose] > │ let v8 : float = -0.0030787608005179976 * v7 │
00:00:27 #2292 [Verbose] > │ let v9 : float = v8 * v2 │
00:00:27 #2293 [Verbose] > │ let v10 : float = v9 / 2.0 │
00:00:27 #2294 [Verbose] > │ let v11 : float = -0.8 * v1 │
00:00:27 #2295 [Verbose] > │ let v12 : float = v11 + v10 │
00:00:27 #2296 [Verbose] > │ let v13 : float = v12 + -0.026477955 │
00:00:27 #2297 [Verbose] > │ let v14 : float = v13 / 0.0027 │
00:00:27 #2298 [Verbose] > │ let v15 : float = v0 + 0.001 │
00:00:27 #2299 [Verbose] > │ let v16 : float = v2 * 0.001 │
00:00:27 #2300 [Verbose] > │ let v17 : float = v1 + v16 │
00:00:27 #2301 [Verbose] > │ let v18 : float = v14 * 0.001 │
00:00:27 #2302 [Verbose] > │ let v19 : float = v2 + v18 │
00:00:27 #2303 [Verbose] > │ let v20 : float = v3 - 1.0 │
00:00:27 #2304 [Verbose] > │ method3(v15, v17, v19, v20) │
00:00:27 #2305 [Verbose] > │ and method4 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:27 #2306 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:27 #2307 [Verbose] > │ v0 │
00:00:27 #2308 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:27 #2309 [Verbose] > │ []) * (float [])) [])) = │
00:00:27 #2310 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (301) │
00:00:27 #2311 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:27 #2312 [Verbose] > │ while method1(v1) do │
00:00:27 #2313 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:27 #2314 [Verbose] > │ let v4 : float = float v3 │
00:00:27 #2315 [Verbose] > │ let v5 : float = 0.01 * v4 │
00:00:27 #2316 [Verbose] > │ v0.[int v3] <- v5 │
00:00:27 #2317 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:27 #2318 [Verbose] > │ v1.l0 <- v6 │
00:00:27 #2319 [Verbose] > │ () │
00:00:27 #2320 [Verbose] > │ let v7 : int32 = v0.Length │
00:00:27 #2321 [Verbose] > │ let v8 : (float []) = Array.zeroCreate<float> (v7) │
00:00:27 #2322 [Verbose] > │ let v9 : Mut0 = {l0 = 0} : Mut0 │
00:00:27 #2323 [Verbose] > │ while method2(v7, v9) do │
00:00:27 #2324 [Verbose] > │ let v11 : int32 = v9.l0 │
00:00:27 #2325 [Verbose] > │ let v12 : float = v0.[int v11] │
00:00:27 #2326 [Verbose] > │ let v13 : float = 0.0 │
00:00:27 #2327 [Verbose] > │ let v14 : float = 0.1 │
00:00:27 #2328 [Verbose] > │ let v15 : float = 0.0 │
00:00:27 #2329 [Verbose] > │ let v16 : float = 0.0 │
00:00:27 #2330 [Verbose] > │ let struct (v17 : float, v18 : float, v19 : float) = method3(v13, │
00:00:27 #2331 [Verbose] > │ v14, v15, v16) │
00:00:27 #2332 [Verbose] > │ let v20 : float = 0.0 │
00:00:27 #2333 [Verbose] > │ let v21 : float = 0.1 │
00:00:27 #2334 [Verbose] > │ let v22 : float = 0.0 │
00:00:27 #2335 [Verbose] > │ let v23 : float = 1.0 │
00:00:27 #2336 [Verbose] > │ let struct (v24 : float, v25 : float, v26 : float) = method3(v20, │
00:00:27 #2337 [Verbose] > │ v21, v22, v23) │
00:00:27 #2338 [Verbose] > │ let v27 : float = v24 - v17 │
00:00:27 #2339 [Verbose] > │ let v28 : float = v12 / v27 │
00:00:27 #2340 [Verbose] > │ let v29 : float = round v28 │
00:00:27 #2341 [Verbose] > │ let v30 : float = -v29 │
00:00:27 #2342 [Verbose] > │ let v31 : bool = v29 >= v30 │
00:00:27 #2343 [Verbose] > │ let v32 : float = │
00:00:27 #2344 [Verbose] > │ if v31 then │
00:00:27 #2345 [Verbose] > │ v29 │
00:00:27 #2346 [Verbose] > │ else │
00:00:27 #2347 [Verbose] > │ v30 │
00:00:27 #2348 [Verbose] > │ let v33 : float = 0.0 │
00:00:27 #2349 [Verbose] > │ let v34 : float = 0.1 │
00:00:27 #2350 [Verbose] > │ let v35 : float = 0.0 │
00:00:27 #2351 [Verbose] > │ let struct (v36 : float, v37 : float, v38 : float) = method3(v33, │
00:00:27 #2352 [Verbose] > │ v34, v35, v32) │
00:00:27 #2353 [Verbose] > │ v8.[int v11] <- v38 │
00:00:27 #2354 [Verbose] > │ let v39 : int32 = v11 + 1 │
00:00:27 #2355 [Verbose] > │ v9.l0 <- v39 │
00:00:27 #2356 [Verbose] > │ () │
00:00:27 #2357 [Verbose] > │ let v40 : string = "velocity (m/s)" │
00:00:27 #2358 [Verbose] > │ let v41 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:27 #2359 [Verbose] > │ (v40, v0, v8)|] │
00:00:27 #2360 [Verbose] > │ let v42 : (struct (string * (float []) * (float [])) []) = method4(v41) │
00:00:27 #2361 [Verbose] > │ let v43 : string = "ping pong ball on a slinky" │
00:00:27 #2362 [Verbose] > │ let v44 : string = "time (s)" │
00:00:27 #2363 [Verbose] > │ let v45 : string = "" │
00:00:27 #2364 [Verbose] > │ struct (v43, v44, v45, v42) │
00:00:27 #2365 [Verbose] > │ method0() │
00:00:27 #2366 [Verbose] > │ │
00:00:27 #2367 [Verbose] > │ │
00:00:27 #2368 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 #2369 [Verbose] >
00:00:27 #2370 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:27 #2371 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:27 #2372 [Verbose] > │ ## shift │
00:00:27 #2373 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 #2374 [Verbose] >
00:00:27 #2375 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:27 #2376 [Verbose] > type update_function s = s -> s
00:00:27 #2377 [Verbose] >
00:00:27 #2378 [Verbose] > type differential_equation s ds = s -> ds
00:00:27 #2379 [Verbose] >
00:00:27 #2380 [Verbose] > type numerical_method s ds = differential_equation s ds -> update_function s
00:00:27 #2381 [Verbose] >
00:00:27 #2382 [Verbose] >
00:00:27 #2383 [Verbose] > inl solver method =
00:00:27 #2384 [Verbose] > method >> seq.iterate
00:00:27 #2385 [Verbose] > inl solver' method =
00:00:27 #2386 [Verbose] > method >> seq.iterate'
00:00:27 #2387 [Verbose] > inl solver_ method =
00:00:27 #2388 [Verbose] > method >> seq.iterate_
00:00:27 #2389 [Verbose] >
00:00:27 #2390 [Verbose] >
00:00:27 #2391 [Verbose] > inl euler_cromer_1d dt deriv (state_1d (t0, x0, v0) as t) =
00:00:27 #2392 [Verbose] > inl (rrr (_, _, dvdt)) = deriv t
00:00:27 #2393 [Verbose] > inl t1 = t0 + dt
00:00:27 #2394 [Verbose] > inl v1 = v0 + dvdt * dt
00:00:27 #2395 [Verbose] > inl x1 = x0 + v1 * dt
00:00:27 #2396 [Verbose] > state_1d (t1, x1, v1)
00:00:27 #2397 [Verbose] >
00:00:27 #2398 [Verbose] > inl update_txv_ec dt m fs =
00:00:27 #2399 [Verbose] > euler_cromer_1d dt (newton_second_1d m fs)
00:00:27 #2400 [Verbose] >
00:00:27 #2401 [Verbose] > prototype (+++) ds : ds -> ds -> ds
00:00:27 #2402 [Verbose] > prototype scale ds : f64 -> ds -> ds
00:00:27 #2403 [Verbose] >
00:00:27 #2404 [Verbose] > instance (+++) rrr = fun (rrr (dtdt0, dxdt0, dvdt0)) (rrr (dtdt1, dxdt1, dvdt1))
00:00:27 #2405 [Verbose] > =>
00:00:27 #2406 [Verbose] > rrr (dtdt0 + dtdt1, dxdt0 + dxdt1, dvdt0 + dvdt1)
00:00:27 #2407 [Verbose] >
00:00:27 #2408 [Verbose] > instance scale rrr = fun w (rrr (dtdt0, dxdt0, dvdt0)) =>
00:00:27 #2409 [Verbose] > rrr (w * dtdt0, w * dxdt0, w * dvdt0)
00:00:27 #2410 [Verbose] >
00:00:27 #2411 [Verbose] > prototype shift s : forall ds. f64 -> ds -> s -> s
00:00:27 #2412 [Verbose] >
00:00:27 #2413 [Verbose] > instance shift state_1d = fun dt ds (state_1d (t, x, v)) =>
00:00:27 #2414 [Verbose] > inl dtdt, dxdt, dvdt =
00:00:27 #2415 [Verbose] > real
00:00:27 #2416 [Verbose] > match ds with
00:00:27 #2417 [Verbose] > | rrr x => x
00:00:27 #2418 [Verbose] > | state_1d x => x
00:00:27 #2419 [Verbose] > state_1d (t + dtdt * dt, x + dxdt * dt, v + dvdt * dt)
00:00:27 #2420 [Verbose] >
00:00:27 #2421 [Verbose] > inl euler dt deriv st0 =
00:00:27 #2422 [Verbose] > shift dt (deriv st0) st0
00:00:27 #2423 [Verbose] >
00:00:27 #2424 [Verbose] > inl runge_kutta_4 dt deriv st0 =
00:00:27 #2425 [Verbose] > inl m0 = deriv st0
00:00:27 #2426 [Verbose] > inl m1 = deriv (shift (dt / 2) m0 st0)
00:00:27 #2427 [Verbose] > inl m2 = deriv (shift (dt / 2) m1 st0)
00:00:27 #2428 [Verbose] > inl m3 = deriv (shift dt m2 st0)
00:00:27 #2429 [Verbose] > shift (dt / 6) (m0 +++ m1 +++ m1 +++ m2 +++ m2 +++ m3) st0
00:00:27 #2430 [Verbose] >
00:00:27 #2431 [Verbose] > inl exponential (_, x0, v0) =
00:00:27 #2432 [Verbose] > 1f64, v0, x0
00:00:27 #2433 [Verbose] >
00:00:27 #2434 [Verbose] > inl of_state_1d (state_1d (t, x, v)) =
00:00:27 #2435 [Verbose] > t, x, v
00:00:27 #2436 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5204-0419-06bb1195f712\main.spi
00:00:27 #2437 [Verbose] >
00:00:27 #2438 [Verbose] > ╭─[ 207.24ms - stdout ]────────────────────────────────────────────────────────╮
00:00:27 #2439 [Verbose] > │ () │
00:00:27 #2440 [Verbose] > │ │
00:00:27 #2441 [Verbose] > │ │
00:00:27 #2442 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:27 #2443 [Verbose] >
00:00:27 #2444 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:27 #2445 [Verbose] > // // test
00:00:27 #2446 [Verbose] >
00:00:27 #2447 [Verbose] > solver (euler 0.01) (of_state_1d >> exponential >> state_1d) (state_1d (0, 1,
00:00:27 #2448 [Verbose] > 1)) 800i32
00:00:27 #2449 [Verbose] > |> _assert_eq (state_1d (7.999999999999874, 2864.8311229272326,
00:00:27 #2450 [Verbose] > 2864.8311229272326))
00:00:27 #2451 [Verbose] >
00:00:27 #2452 [Verbose] > solver (euler_cromer_1d 0.1) (of_state_1d >> exponential >> rrr) (state_1d (0,
00:00:27 #2453 [Verbose] > 1, 1)) 80i32
00:00:27 #2454 [Verbose] > |> _assert_eq (state_1d (7.999999999999988, 3043.379244966009,
00:00:27 #2455 [Verbose] > 2895.0121485099035))
00:00:27 #2456 [Verbose] >
00:00:27 #2457 [Verbose] > solver (runge_kutta_4 1) (of_state_1d >> exponential >> rrr) (state_1d (0, 1,
00:00:27 #2458 [Verbose] > 1)) 8i32
00:00:27 #2459 [Verbose] > |> _assert_eq (state_1d (8.0, 2894.789038540849, 2894.789038540849))
00:00:28 #2460 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5225-2503-2de8ee4a4b98\main.spi
00:00:28 #2461 [Verbose] >
00:00:28 #2462 [Verbose] > ╭─[ 328.54ms - stdout ]────────────────────────────────────────────────────────╮
00:00:28 #2463 [Verbose] > │ let rec method0 () : unit = │
00:00:28 #2464 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (7.999999999999874, │
00:00:28 #2465 [Verbose] > │ 2864.8311229272326, 2864.8311229272326)} / expected: %A{struct │
00:00:28 #2466 [Verbose] > │ (7.999999999999874, 2864.8311229272326, 2864.8311229272326)}" │
00:00:28 #2467 [Verbose] > │ let v1 : string = $"__expect / actual: %A{struct (7.999999999999988, │
00:00:28 #2468 [Verbose] > │ 3043.379244966009, 2895.0121485099035)} / expected: %A{struct │
00:00:28 #2469 [Verbose] > │ (7.999999999999988, 3043.379244966009, 2895.0121485099035)}" │
00:00:28 #2470 [Verbose] > │ let v2 : string = $"__expect / actual: %A{struct (8.0, │
00:00:28 #2471 [Verbose] > │ 2894.789038540849, 2894.789038540849)} / expected: %A{struct (8.0, │
00:00:28 #2472 [Verbose] > │ 2894.789038540849, 2894.789038540849)}" │
00:00:28 #2473 [Verbose] > │ () │
00:00:28 #2474 [Verbose] > │ method0() │
00:00:28 #2475 [Verbose] > │ │
00:00:28 #2476 [Verbose] > │ │
00:00:28 #2477 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 #2478 [Verbose] >
00:00:28 #2479 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:28 #2480 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:28 #2481 [Verbose] > │ ## vec │
00:00:28 #2482 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 #2483 [Verbose] >
00:00:28 #2484 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:28 #2485 [Verbose] > type vec =
00:00:28 #2486 [Verbose] > {
00:00:28 #2487 [Verbose] > x : f64
00:00:28 #2488 [Verbose] > y : f64
00:00:28 #2489 [Verbose] > z : f64
00:00:28 #2490 [Verbose] > }
00:00:28 #2491 [Verbose] >
00:00:28 #2492 [Verbose] > inl vec x y z : vec =
00:00:28 #2493 [Verbose] > { x y z }
00:00:28 #2494 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5258-5877-55a4e9179afd\main.spi
00:00:28 #2495 [Verbose] >
00:00:28 #2496 [Verbose] > ╭─[ 176.10ms - stdout ]────────────────────────────────────────────────────────╮
00:00:28 #2497 [Verbose] > │ () │
00:00:28 #2498 [Verbose] > │ │
00:00:28 #2499 [Verbose] > │ │
00:00:28 #2500 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 #2501 [Verbose] >
00:00:28 #2502 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:28 #2503 [Verbose] > // // test
00:00:28 #2504 [Verbose] >
00:00:28 #2505 [Verbose] > vec 1 2 3 .z
00:00:28 #2506 [Verbose] > |> _assert_eq 3
00:00:28 #2507 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5276-7673-76cfc4b719fa\main.spi
00:00:28 #2508 [Verbose] >
00:00:28 #2509 [Verbose] > ╭─[ 188.85ms - stdout ]────────────────────────────────────────────────────────╮
00:00:28 #2510 [Verbose] > │ let rec method0 () : unit = │
00:00:28 #2511 [Verbose] > │ let v0 : string = $"__expect / actual: %A{3.0} / expected: %A{3.0}" │
00:00:28 #2512 [Verbose] > │ () │
00:00:28 #2513 [Verbose] > │ method0() │
00:00:28 #2514 [Verbose] > │ │
00:00:28 #2515 [Verbose] > │ │
00:00:28 #2516 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 #2517 [Verbose] >
00:00:28 #2518 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:28 #2519 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:28 #2520 [Verbose] > │ ### consts │
00:00:28 #2521 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 #2522 [Verbose] >
00:00:28 #2523 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:28 #2524 [Verbose] > inl i_hat () = vec 1 0 0
00:00:28 #2525 [Verbose] > inl j_hat () = vec 0 1 0
00:00:28 #2526 [Verbose] > inl k_hat () = vec 0 0 1
00:00:28 #2527 [Verbose] > inl zero_vec () = vec 0 0 0
00:00:28 #2528 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5296-9612-9675db94b56c\main.spi
00:00:28 #2529 [Verbose] >
00:00:28 #2530 [Verbose] > ╭─[ 211.16ms - stdout ]────────────────────────────────────────────────────────╮
00:00:28 #2531 [Verbose] > │ () │
00:00:28 #2532 [Verbose] > │ │
00:00:28 #2533 [Verbose] > │ │
00:00:28 #2534 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 #2535 [Verbose] >
00:00:28 #2536 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:28 #2537 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:28 #2538 [Verbose] > │ ### ^+^ │
00:00:28 #2539 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:28 #2540 [Verbose] >
00:00:28 #2541 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:28 #2542 [Verbose] > inl (^+^) (a : vec) (b : vec) =
00:00:28 #2543 [Verbose] > vec (a.x + b.x) (a.y + b.y) (a.z + b.z)
00:00:28 #2544 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5317-1763-14e4fb240e9d\main.spi
00:00:29 #2545 [Verbose] >
00:00:29 #2546 [Verbose] > ╭─[ 197.64ms - stdout ]────────────────────────────────────────────────────────╮
00:00:29 #2547 [Verbose] > │ () │
00:00:29 #2548 [Verbose] > │ │
00:00:29 #2549 [Verbose] > │ │
00:00:29 #2550 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 #2551 [Verbose] >
00:00:29 #2552 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:29 #2553 [Verbose] > // // test
00:00:29 #2554 [Verbose] >
00:00:29 #2555 [Verbose] > vec 1 2 3 ^+^ vec 4 5 6
00:00:29 #2556 [Verbose] > |> _assert_eq (vec 5 7 9)
00:00:29 #2557 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5337-3762-3b5890c40f3c\main.spi
00:00:29 #2558 [Verbose] >
00:00:29 #2559 [Verbose] > ╭─[ 203.48ms - stdout ]────────────────────────────────────────────────────────╮
00:00:29 #2560 [Verbose] > │ let rec method0 () : unit = │
00:00:29 #2561 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (5.0, 7.0, 9.0)} / │
00:00:29 #2562 [Verbose] > │ expected: %A{struct (5.0, 7.0, 9.0)}" │
00:00:29 #2563 [Verbose] > │ () │
00:00:29 #2564 [Verbose] > │ method0() │
00:00:29 #2565 [Verbose] > │ │
00:00:29 #2566 [Verbose] > │ │
00:00:29 #2567 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 #2568 [Verbose] >
00:00:29 #2569 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:29 #2570 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:29 #2571 [Verbose] > │ ### sum_vec │
00:00:29 #2572 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 #2573 [Verbose] >
00:00:29 #2574 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:29 #2575 [Verbose] > inl sum_vec vs =
00:00:29 #2576 [Verbose] > vs |> listm.fold (^+^) (zero_vec ())
00:00:29 #2577 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5358-5855-5a343bda8e20\main.spi
00:00:29 #2578 [Verbose] >
00:00:29 #2579 [Verbose] > ╭─[ 241.65ms - stdout ]────────────────────────────────────────────────────────╮
00:00:29 #2580 [Verbose] > │ () │
00:00:29 #2581 [Verbose] > │ │
00:00:29 #2582 [Verbose] > │ │
00:00:29 #2583 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 #2584 [Verbose] >
00:00:29 #2585 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:29 #2586 [Verbose] > // // test
00:00:29 #2587 [Verbose] >
00:00:29 #2588 [Verbose] > [[ vec 1 2 3; vec 4 5 6 ]]
00:00:29 #2589 [Verbose] > |> sum_vec
00:00:29 #2590 [Verbose] > |> _assert_eq (vec 5 7 9)
00:00:29 #2591 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5382-8289-833555f0c71f\main.spi
00:00:29 #2592 [Verbose] >
00:00:29 #2593 [Verbose] > ╭─[ 234.82ms - stdout ]────────────────────────────────────────────────────────╮
00:00:29 #2594 [Verbose] > │ let rec method0 () : unit = │
00:00:29 #2595 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (5.0, 7.0, 9.0)} / │
00:00:29 #2596 [Verbose] > │ expected: %A{struct (5.0, 7.0, 9.0)}" │
00:00:29 #2597 [Verbose] > │ () │
00:00:29 #2598 [Verbose] > │ method0() │
00:00:29 #2599 [Verbose] > │ │
00:00:29 #2600 [Verbose] > │ │
00:00:29 #2601 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 #2602 [Verbose] >
00:00:29 #2603 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:29 #2604 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:29 #2605 [Verbose] > │ ### *^ │
00:00:29 #2606 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 #2607 [Verbose] >
00:00:29 #2608 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:29 #2609 [Verbose] > inl (*^) c { x y z } =
00:00:29 #2610 [Verbose] > vec (c * x) (c * y) (c * z)
00:00:29 #2611 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5406-0695-0c8327536b6c\main.spi
00:00:29 #2612 [Verbose] >
00:00:29 #2613 [Verbose] > ╭─[ 227.50ms - stdout ]────────────────────────────────────────────────────────╮
00:00:29 #2614 [Verbose] > │ () │
00:00:29 #2615 [Verbose] > │ │
00:00:29 #2616 [Verbose] > │ │
00:00:29 #2617 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 #2618 [Verbose] >
00:00:29 #2619 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:29 #2620 [Verbose] > // // test
00:00:29 #2621 [Verbose] >
00:00:29 #2622 [Verbose] > 5 *^ vec 1 2 3
00:00:29 #2623 [Verbose] > |> _assert_eq (vec 5 10 15)
00:00:30 #2624 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5430-3015-376ace5793cb\main.spi
00:00:30 #2625 [Verbose] >
00:00:30 #2626 [Verbose] > ╭─[ 283.17ms - stdout ]────────────────────────────────────────────────────────╮
00:00:30 #2627 [Verbose] > │ let rec method0 () : unit = │
00:00:30 #2628 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (5.0, 10.0, 15.0)} / │
00:00:30 #2629 [Verbose] > │ expected: %A{struct (5.0, 10.0, 15.0)}" │
00:00:30 #2630 [Verbose] > │ () │
00:00:30 #2631 [Verbose] > │ method0() │
00:00:30 #2632 [Verbose] > │ │
00:00:30 #2633 [Verbose] > │ │
00:00:30 #2634 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 #2635 [Verbose] >
00:00:30 #2636 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:30 #2637 [Verbose] > // // test
00:00:30 #2638 [Verbose] >
00:00:30 #2639 [Verbose] > 3 *^ i_hat () ^+^ 4 *^ k_hat ()
00:00:30 #2640 [Verbose] > |> _assert_eq (vec 3 0 4)
00:00:30 #2641 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5458-5870-56ab140be6ec\main.spi
00:00:30 #2642 [Verbose] >
00:00:30 #2643 [Verbose] > ╭─[ 431.19ms - stdout ]────────────────────────────────────────────────────────╮
00:00:30 #2644 [Verbose] > │ let rec method0 () : unit = │
00:00:30 #2645 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (3.0, 0.0, 4.0)} / │
00:00:30 #2646 [Verbose] > │ expected: %A{struct (3.0, 0.0, 4.0)}" │
00:00:30 #2647 [Verbose] > │ () │
00:00:30 #2648 [Verbose] > │ method0() │
00:00:30 #2649 [Verbose] > │ │
00:00:30 #2650 [Verbose] > │ │
00:00:30 #2651 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 #2652 [Verbose] >
00:00:30 #2653 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:30 #2654 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:30 #2655 [Verbose] > │ ### ^* │
00:00:30 #2656 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 #2657 [Verbose] >
00:00:30 #2658 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:30 #2659 [Verbose] > inl (^*) v c =
00:00:30 #2660 [Verbose] > (*^) c v
00:00:30 #2661 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5502-0230-0154600d996a\main.spi
00:00:30 #2662 [Verbose] >
00:00:30 #2663 [Verbose] > ╭─[ 227.83ms - stdout ]────────────────────────────────────────────────────────╮
00:00:30 #2664 [Verbose] > │ () │
00:00:30 #2665 [Verbose] > │ │
00:00:30 #2666 [Verbose] > │ │
00:00:30 #2667 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:30 #2668 [Verbose] >
00:00:30 #2669 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:30 #2670 [Verbose] > // // test
00:00:30 #2671 [Verbose] >
00:00:30 #2672 [Verbose] > vec 1 2 3 ^* 5
00:00:30 #2673 [Verbose] > |> _assert_eq (vec 5 10 15)
00:00:31 #2674 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5525-2547-29c7b34afe9f\main.spi
00:00:31 #2675 [Verbose] >
00:00:31 #2676 [Verbose] > ╭─[ 186.79ms - stdout ]────────────────────────────────────────────────────────╮
00:00:31 #2677 [Verbose] > │ let rec method0 () : unit = │
00:00:31 #2678 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (5.0, 10.0, 15.0)} / │
00:00:31 #2679 [Verbose] > │ expected: %A{struct (5.0, 10.0, 15.0)}" │
00:00:31 #2680 [Verbose] > │ () │
00:00:31 #2681 [Verbose] > │ method0() │
00:00:31 #2682 [Verbose] > │ │
00:00:31 #2683 [Verbose] > │ │
00:00:31 #2684 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 #2685 [Verbose] >
00:00:31 #2686 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:31 #2687 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:31 #2688 [Verbose] > │ ### ^/ │
00:00:31 #2689 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 #2690 [Verbose] >
00:00:31 #2691 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:31 #2692 [Verbose] > inl (^/) { x y z } c =
00:00:31 #2693 [Verbose] > vec (x / c) (y / c) (z / c)
00:00:31 #2694 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5544-4454-4e183f245cab\main.spi
00:00:31 #2695 [Verbose] >
00:00:31 #2696 [Verbose] > ╭─[ 196.03ms - stdout ]────────────────────────────────────────────────────────╮
00:00:31 #2697 [Verbose] > │ () │
00:00:31 #2698 [Verbose] > │ │
00:00:31 #2699 [Verbose] > │ │
00:00:31 #2700 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 #2701 [Verbose] >
00:00:31 #2702 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:31 #2703 [Verbose] > // // test
00:00:31 #2704 [Verbose] >
00:00:31 #2705 [Verbose] > vec 1 2 3 ^/ 5
00:00:31 #2706 [Verbose] > |> _assert_eq (vec 0.2 0.4 0.6)
00:00:31 #2707 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5564-6445-6842719e8805\main.spi
00:00:31 #2708 [Verbose] >
00:00:31 #2709 [Verbose] > ╭─[ 226.76ms - stdout ]────────────────────────────────────────────────────────╮
00:00:31 #2710 [Verbose] > │ let rec method0 () : unit = │
00:00:31 #2711 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (0.2, 0.4, 0.6)} / │
00:00:31 #2712 [Verbose] > │ expected: %A{struct (0.2, 0.4, 0.6)}" │
00:00:31 #2713 [Verbose] > │ () │
00:00:31 #2714 [Verbose] > │ method0() │
00:00:31 #2715 [Verbose] > │ │
00:00:31 #2716 [Verbose] > │ │
00:00:31 #2717 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 #2718 [Verbose] >
00:00:31 #2719 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:31 #2720 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:31 #2721 [Verbose] > │ ### negate_vec │
00:00:31 #2722 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 #2723 [Verbose] >
00:00:31 #2724 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:31 #2725 [Verbose] > inl negate_vec v =
00:00:31 #2726 [Verbose] > v ^* -1
00:00:31 #2727 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5587-8795-886baa9372be\main.spi
00:00:31 #2728 [Verbose] >
00:00:31 #2729 [Verbose] > ╭─[ 201.50ms - stdout ]────────────────────────────────────────────────────────╮
00:00:31 #2730 [Verbose] > │ () │
00:00:31 #2731 [Verbose] > │ │
00:00:31 #2732 [Verbose] > │ │
00:00:31 #2733 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:31 #2734 [Verbose] >
00:00:31 #2735 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:31 #2736 [Verbose] > // // test
00:00:31 #2737 [Verbose] >
00:00:31 #2738 [Verbose] > vec 1 2 3
00:00:31 #2739 [Verbose] > |> negate_vec
00:00:31 #2740 [Verbose] > |> _assert_eq (vec -1 -2 -3)
00:00:31 #2741 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5608-0831-0b3848ff27bc\main.spi
00:00:32 #2742 [Verbose] >
00:00:32 #2743 [Verbose] > ╭─[ 295.94ms - stdout ]────────────────────────────────────────────────────────╮
00:00:32 #2744 [Verbose] > │ let rec method0 () : unit = │
00:00:32 #2745 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (-1.0, -2.0, -3.0)} / │
00:00:32 #2746 [Verbose] > │ expected: %A{struct (-1.0, -2.0, -3.0)}" │
00:00:32 #2747 [Verbose] > │ () │
00:00:32 #2748 [Verbose] > │ method0() │
00:00:32 #2749 [Verbose] > │ │
00:00:32 #2750 [Verbose] > │ │
00:00:32 #2751 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 #2752 [Verbose] >
00:00:32 #2753 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:32 #2754 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:32 #2755 [Verbose] > │ ### ^-^ │
00:00:32 #2756 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 #2757 [Verbose] >
00:00:32 #2758 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:32 #2759 [Verbose] > inl (^-^) a b =
00:00:32 #2760 [Verbose] > a ^+^ (negate_vec b)
00:00:32 #2761 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5638-3842-356d395b0e29\main.spi
00:00:32 #2762 [Verbose] >
00:00:32 #2763 [Verbose] > ╭─[ 212.99ms - stdout ]────────────────────────────────────────────────────────╮
00:00:32 #2764 [Verbose] > │ () │
00:00:32 #2765 [Verbose] > │ │
00:00:32 #2766 [Verbose] > │ │
00:00:32 #2767 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 #2768 [Verbose] >
00:00:32 #2769 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:32 #2770 [Verbose] > // // test
00:00:32 #2771 [Verbose] >
00:00:32 #2772 [Verbose] > vec 1 2 3 ^-^ vec 4 5 6
00:00:32 #2773 [Verbose] > |> _assert_eq (vec -3 -3 -3)
00:00:32 #2774 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5659-5992-51404f3d512c\main.spi
00:00:32 #2775 [Verbose] >
00:00:32 #2776 [Verbose] > ╭─[ 217.36ms - stdout ]────────────────────────────────────────────────────────╮
00:00:32 #2777 [Verbose] > │ let rec method0 () : unit = │
00:00:32 #2778 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (-3.0, -3.0, -3.0)} / │
00:00:32 #2779 [Verbose] > │ expected: %A{struct (-3.0, -3.0, -3.0)}" │
00:00:32 #2780 [Verbose] > │ () │
00:00:32 #2781 [Verbose] > │ method0() │
00:00:32 #2782 [Verbose] > │ │
00:00:32 #2783 [Verbose] > │ │
00:00:32 #2784 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 #2785 [Verbose] >
00:00:32 #2786 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:32 #2787 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:32 #2788 [Verbose] > │ ### <.> │
00:00:32 #2789 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 #2790 [Verbose] >
00:00:32 #2791 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:32 #2792 [Verbose] > inl (<.>) { x = ax y = ay z = az } { x = bx y = by z = bz } =
00:00:32 #2793 [Verbose] > ax * bx + ay * by + az * bz
00:00:32 #2794 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5682-8232-861b48e58720\main.spi
00:00:32 #2795 [Verbose] >
00:00:32 #2796 [Verbose] > ╭─[ 192.72ms - stdout ]────────────────────────────────────────────────────────╮
00:00:32 #2797 [Verbose] > │ () │
00:00:32 #2798 [Verbose] > │ │
00:00:32 #2799 [Verbose] > │ │
00:00:32 #2800 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 #2801 [Verbose] >
00:00:32 #2802 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:32 #2803 [Verbose] > // // test
00:00:32 #2804 [Verbose] >
00:00:32 #2805 [Verbose] > vec 1 2 3 <.> vec 4 5 6
00:00:32 #2806 [Verbose] > |> _assert_eq 32
00:00:32 #2807 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5701-0186-001bf5d5b5b6\main.spi
00:00:32 #2808 [Verbose] >
00:00:32 #2809 [Verbose] > ╭─[ 203.06ms - stdout ]────────────────────────────────────────────────────────╮
00:00:32 #2810 [Verbose] > │ let rec method0 () : unit = │
00:00:32 #2811 [Verbose] > │ let v0 : string = $"__expect / actual: %A{32.0} / expected: %A{32.0}" │
00:00:32 #2812 [Verbose] > │ () │
00:00:32 #2813 [Verbose] > │ method0() │
00:00:32 #2814 [Verbose] > │ │
00:00:32 #2815 [Verbose] > │ │
00:00:32 #2816 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 #2817 [Verbose] >
00:00:32 #2818 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:32 #2819 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:32 #2820 [Verbose] > │ ### \>\< │
00:00:32 #2821 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:32 #2822 [Verbose] >
00:00:32 #2823 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:32 #2824 [Verbose] > inl (><) (a : vec) (b : vec) =
00:00:32 #2825 [Verbose] > vec
00:00:32 #2826 [Verbose] > (a.y * b.z - a.z * b.y)
00:00:32 #2827 [Verbose] > (a.z * b.x - a.x * b.z)
00:00:32 #2828 [Verbose] > (a.x * b.y - a.y * b.x)
00:00:32 #2829 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5723-2305-2128788428ab\main.spi
00:00:33 #2830 [Verbose] >
00:00:33 #2831 [Verbose] > ╭─[ 210.38ms - stdout ]────────────────────────────────────────────────────────╮
00:00:33 #2832 [Verbose] > │ () │
00:00:33 #2833 [Verbose] > │ │
00:00:33 #2834 [Verbose] > │ │
00:00:33 #2835 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 #2836 [Verbose] >
00:00:33 #2837 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:33 #2838 [Verbose] > // // test
00:00:33 #2839 [Verbose] >
00:00:33 #2840 [Verbose] > vec 1 2 3 >< vec 4 5 6
00:00:33 #2841 [Verbose] > |> _assert_eq (vec -3 6 -3)
00:00:33 #2842 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5743-4392-4a3ac6a97d4e\main.spi
00:00:33 #2843 [Verbose] >
00:00:33 #2844 [Verbose] > ╭─[ 234.88ms - stdout ]────────────────────────────────────────────────────────╮
00:00:33 #2845 [Verbose] > │ let rec method0 () : unit = │
00:00:33 #2846 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (-3.0, 6.0, -3.0)} / │
00:00:33 #2847 [Verbose] > │ expected: %A{struct (-3.0, 6.0, -3.0)}" │
00:00:33 #2848 [Verbose] > │ () │
00:00:33 #2849 [Verbose] > │ method0() │
00:00:33 #2850 [Verbose] > │ │
00:00:33 #2851 [Verbose] > │ │
00:00:33 #2852 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 #2853 [Verbose] >
00:00:33 #2854 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:33 #2855 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:33 #2856 [Verbose] > │ ### magnitude │
00:00:33 #2857 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 #2858 [Verbose] >
00:00:33 #2859 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:33 #2860 [Verbose] > inl magnitude v =
00:00:33 #2861 [Verbose] > v <.> v |> sqrt
00:00:33 #2862 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5767-6788-64a1cf13b0dc\main.spi
00:00:33 #2863 [Verbose] >
00:00:33 #2864 [Verbose] > ╭─[ 226.75ms - stdout ]────────────────────────────────────────────────────────╮
00:00:33 #2865 [Verbose] > │ () │
00:00:33 #2866 [Verbose] > │ │
00:00:33 #2867 [Verbose] > │ │
00:00:33 #2868 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 #2869 [Verbose] >
00:00:33 #2870 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:33 #2871 [Verbose] > // // test
00:00:33 #2872 [Verbose] >
00:00:33 #2873 [Verbose] > vec 1 2 3
00:00:33 #2874 [Verbose] > |> magnitude
00:00:33 #2875 [Verbose] > |> _assert_approx_eq None 3.7416573867739413
00:00:33 #2876 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5790-9078-9c4c97b5bce7\main.spi
00:00:33 #2877 [Verbose] >
00:00:33 #2878 [Verbose] > ╭─[ 219.33ms - stdout ]────────────────────────────────────────────────────────╮
00:00:33 #2879 [Verbose] > │ let rec method0 () : unit = │
00:00:33 #2880 [Verbose] > │ let v0 : string = $"__expect / actual: %A{3.7416573867739413} / │
00:00:33 #2881 [Verbose] > │ expected: %A{3.7416573867739413}" │
00:00:33 #2882 [Verbose] > │ () │
00:00:33 #2883 [Verbose] > │ method0() │
00:00:33 #2884 [Verbose] > │ │
00:00:33 #2885 [Verbose] > │ │
00:00:33 #2886 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 #2887 [Verbose] >
00:00:33 #2888 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:33 #2889 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:33 #2890 [Verbose] > │ ### v1 │
00:00:33 #2891 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 #2892 [Verbose] >
00:00:33 #2893 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:33 #2894 [Verbose] > inl v1 t =
00:00:33 #2895 [Verbose] > 2 *^ (t ** 2 *^ i_hat () ^+^ 3 *^ (t ** 3 *^ j_hat () ^+^ t ** 4 *^ k_hat
00:00:33 #2896 [Verbose] > ()))
00:00:33 #2897 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5813-1332-1907f4405bb6\main.spi
00:00:34 #2898 [Verbose] >
00:00:34 #2899 [Verbose] > ╭─[ 242.34ms - stdout ]────────────────────────────────────────────────────────╮
00:00:34 #2900 [Verbose] > │ () │
00:00:34 #2901 [Verbose] > │ │
00:00:34 #2902 [Verbose] > │ │
00:00:34 #2903 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 #2904 [Verbose] >
00:00:34 #2905 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:34 #2906 [Verbose] > // // test
00:00:34 #2907 [Verbose] >
00:00:34 #2908 [Verbose] > v1 1
00:00:34 #2909 [Verbose] > |> _assert_eq (vec 2 6 6)
00:00:34 #2910 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5837-3769-3b9e06257eec\main.spi
00:00:34 #2911 [Verbose] >
00:00:34 #2912 [Verbose] > ╭─[ 235.32ms - stdout ]────────────────────────────────────────────────────────╮
00:00:34 #2913 [Verbose] > │ let rec method0 () : unit = │
00:00:34 #2914 [Verbose] > │ let v0 : string = $"__expect / actual: %A{struct (2.0, 6.0, 6.0)} / │
00:00:34 #2915 [Verbose] > │ expected: %A{struct (2.0, 6.0, 6.0)}" │
00:00:34 #2916 [Verbose] > │ () │
00:00:34 #2917 [Verbose] > │ method0() │
00:00:34 #2918 [Verbose] > │ │
00:00:34 #2919 [Verbose] > │ │
00:00:34 #2920 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 #2921 [Verbose] >
00:00:34 #2922 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:34 #2923 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:34 #2924 [Verbose] > │ ### vec_derivative │
00:00:34 #2925 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 #2926 [Verbose] >
00:00:34 #2927 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:34 #2928 [Verbose] > type vec_derivative = (f64 -> vec) -> f64 -> vec
00:00:34 #2929 [Verbose] >
00:00:34 #2930 [Verbose] > inl vec_derivative dt : vec_derivative =
00:00:34 #2931 [Verbose] > fun v t =>
00:00:34 #2932 [Verbose] > (v (t + dt / 2) ^-^ v (t - dt / 2)) ^/ dt
00:00:34 #2933 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5861-6176-69dc78d0bdd3\main.spi
00:00:34 #2934 [Verbose] >
00:00:34 #2935 [Verbose] > ╭─[ 524.32ms - stdout ]────────────────────────────────────────────────────────╮
00:00:34 #2936 [Verbose] > │ () │
00:00:34 #2937 [Verbose] > │ │
00:00:34 #2938 [Verbose] > │ │
00:00:34 #2939 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:34 #2940 [Verbose] >
00:00:34 #2941 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:34 #2942 [Verbose] > // // test
00:00:34 #2943 [Verbose] >
00:00:34 #2944 [Verbose] > vec_derivative 0.01 v1 3 .x
00:00:34 #2945 [Verbose] > |> _assert_approx_eq None (derivative 0.01 (v1 >> fun v => v.x) 3)
00:00:34 #2946 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5914-1467-1688b150cd09\main.spi
00:00:35 #2947 [Verbose] >
00:00:35 #2948 [Verbose] > ╭─[ 233.93ms - stdout ]────────────────────────────────────────────────────────╮
00:00:35 #2949 [Verbose] > │ let rec method0 () : unit = │
00:00:35 #2950 [Verbose] > │ let v0 : string = $"__expect / actual: %A{11.999999999999744} / │
00:00:35 #2951 [Verbose] > │ expected: %A{11.999999999999744}" │
00:00:35 #2952 [Verbose] > │ () │
00:00:35 #2953 [Verbose] > │ method0() │
00:00:35 #2954 [Verbose] > │ │
00:00:35 #2955 [Verbose] > │ │
00:00:35 #2956 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 #2957 [Verbose] >
00:00:35 #2958 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:35 #2959 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:35 #2960 [Verbose] > │ ## states_ps │
00:00:35 #2961 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 #2962 [Verbose] >
00:00:35 #2963 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:35 #2964 [Verbose] > nominal particle_state =
00:00:35 #2965 [Verbose] > {
00:00:35 #2966 [Verbose] > mass : f64
00:00:35 #2967 [Verbose] > charge : f64
00:00:35 #2968 [Verbose] > time : f64
00:00:35 #2969 [Verbose] > pos_vec : vec
00:00:35 #2970 [Verbose] > velocity : vec
00:00:35 #2971 [Verbose] > }
00:00:35 #2972 [Verbose] >
00:00:35 #2973 [Verbose] > inl default_particle_state () : particle_state =
00:00:35 #2974 [Verbose] > particle_state {
00:00:35 #2975 [Verbose] > mass = 1
00:00:35 #2976 [Verbose] > charge = 0
00:00:35 #2977 [Verbose] > time = 0
00:00:35 #2978 [Verbose] > pos_vec = zero_vec ()
00:00:35 #2979 [Verbose] > velocity = zero_vec ()
00:00:35 #2980 [Verbose] > }
00:00:35 #2981 [Verbose] >
00:00:35 #2982 [Verbose] > type one_body_force = particle_state -> vec
00:00:35 #2983 [Verbose] >
00:00:35 #2984 [Verbose] > nominal d_particle_state =
00:00:35 #2985 [Verbose] > {
00:00:35 #2986 [Verbose] > dmdt : f64
00:00:35 #2987 [Verbose] > dqdt : f64
00:00:35 #2988 [Verbose] > dtdt : f64
00:00:35 #2989 [Verbose] > drdt : vec
00:00:35 #2990 [Verbose] > dvdt : vec
00:00:35 #2991 [Verbose] > }
00:00:35 #2992 [Verbose] >
00:00:35 #2993 [Verbose] > inl newton_second_ps (fs : list one_body_force) (st : particle_state) :
00:00:35 #2994 [Verbose] > d_particle_state =
00:00:35 #2995 [Verbose] > inl f_net = fs |> listm.map (fun f => f st) |> sum_vec
00:00:35 #2996 [Verbose] > d_particle_state {
00:00:35 #2997 [Verbose] > dmdt = 0
00:00:35 #2998 [Verbose] > dqdt = 0
00:00:35 #2999 [Verbose] > dtdt = 1
00:00:35 #3000 [Verbose] > drdt = st.velocity
00:00:35 #3001 [Verbose] > dvdt = f_net ^/ st.mass
00:00:35 #3002 [Verbose] > }
00:00:35 #3003 [Verbose] >
00:00:35 #3004 [Verbose] > inl earth_surface_gravity (st : particle_state) =
00:00:35 #3005 [Verbose] > inl g = 9.80665
00:00:35 #3006 [Verbose] > -st.mass * g *^ k_hat ()
00:00:35 #3007 [Verbose] >
00:00:35 #3008 [Verbose] > inl air_resistance drag rho area (st : particle_state) =
00:00:35 #3009 [Verbose] > -0.5 * drag * rho * area * magnitude st.velocity *^ st.velocity
00:00:35 #3010 [Verbose] >
00:00:35 #3011 [Verbose] > inl euler_cromer_ps dt (deriv : particle_state -> d_particle_state)
00:00:35 #3012 [Verbose] > (particle_state st) =
00:00:35 #3013 [Verbose] > inl dst : d_particle_state = deriv (particle_state st)
00:00:35 #3014 [Verbose] > inl v' = st.velocity ^+^ dst.dvdt ^* dt
00:00:35 #3015 [Verbose] > particle_state { st with
00:00:35 #3016 [Verbose] > time = st.time + dt
00:00:35 #3017 [Verbose] > pos_vec = st.pos_vec ^+^ v' ^* dt
00:00:35 #3018 [Verbose] > velocity = st.velocity ^+^ dst.dvdt ^* dt
00:00:35 #3019 [Verbose] > }
00:00:35 #3020 [Verbose] >
00:00:35 #3021 [Verbose] > instance (+++) d_particle_state = fun (dps : d_particle_state) (dps' :
00:00:35 #3022 [Verbose] > d_particle_state) =>
00:00:35 #3023 [Verbose] > d_particle_state {
00:00:35 #3024 [Verbose] > dmdt = dps.dmdt + dps'.dmdt
00:00:35 #3025 [Verbose] > dqdt = dps.dqdt + dps'.dqdt
00:00:35 #3026 [Verbose] > dtdt = dps.dtdt + dps'.dtdt
00:00:35 #3027 [Verbose] > drdt = dps.drdt ^+^ dps'.drdt
00:00:35 #3028 [Verbose] > dvdt = dps.dvdt ^+^ dps'.dvdt
00:00:35 #3029 [Verbose] > }
00:00:35 #3030 [Verbose] >
00:00:35 #3031 [Verbose] > instance scale d_particle_state = fun w (dps : d_particle_state) =>
00:00:35 #3032 [Verbose] > d_particle_state {
00:00:35 #3033 [Verbose] > dmdt = w * dps.dmdt
00:00:35 #3034 [Verbose] > dqdt = w * dps.dqdt
00:00:35 #3035 [Verbose] > dtdt = w * dps.dtdt
00:00:35 #3036 [Verbose] > drdt = w *^ dps.drdt
00:00:35 #3037 [Verbose] > dvdt = w *^ dps.dvdt
00:00:35 #3038 [Verbose] > }
00:00:35 #3039 [Verbose] >
00:00:35 #3040 [Verbose] > instance shift particle_state = fun dt dps (particle_state st) =>
00:00:35 #3041 [Verbose] > inl (d_particle_state dps) =
00:00:35 #3042 [Verbose] > real
00:00:35 #3043 [Verbose] > match dps with
00:00:35 #3044 [Verbose] > | d_particle_state _ => dps
00:00:35 #3045 [Verbose] > particle_state { st with
00:00:35 #3046 [Verbose] > time = st.time + dps.dtdt * dt
00:00:35 #3047 [Verbose] > pos_vec = st.pos_vec ^+^ dps.drdt ^* dt
00:00:35 #3048 [Verbose] > velocity = st.velocity ^+^ dps.dvdt ^* dt
00:00:35 #3049 [Verbose] > }
00:00:35 #3050 [Verbose] >
00:00:35 #3051 [Verbose] > inl states_ps (method : numerical_method particle_state d_particle_state) : _ ->
00:00:35 #3052 [Verbose] > _ -> i32 -> particle_state =
00:00:35 #3053 [Verbose] > newton_second_ps >> method >> seq.iterate_
00:00:35 #3054 [Verbose] >
00:00:35 #3055 [Verbose] > inl z_ge0 sts =
00:00:35 #3056 [Verbose] > sts
00:00:35 #3057 [Verbose] > |> seq.take_while_ (fun (particle_state st) _ => st.pos_vec.z >= 0)
00:00:35 #3058 [Verbose] >
00:00:35 #3059 [Verbose] > inl trajectory sts =
00:00:35 #3060 [Verbose] > sts |> listm.map (fun (particle_state st) => st.pos_vec.y, st.pos_vec.z)
00:00:35 #3061 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5938-3861-370285bdf895\main.spi
00:00:35 #3062 [Verbose] >
00:00:35 #3063 [Verbose] > ╭─[ 193.34ms - stdout ]────────────────────────────────────────────────────────╮
00:00:35 #3064 [Verbose] > │ () │
00:00:35 #3065 [Verbose] > │ │
00:00:35 #3066 [Verbose] > │ │
00:00:35 #3067 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 #3068 [Verbose] >
00:00:35 #3069 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:35 #3070 [Verbose] > // // test
00:00:35 #3071 [Verbose] >
00:00:35 #3072 [Verbose] > inl update_ps (method : numerical_method particle_state d_particle_state) =
00:00:35 #3073 [Verbose] > newton_second_ps >> method
00:00:35 #3074 [Verbose] >
00:00:35 #3075 [Verbose] > inl position_ps (method : numerical_method particle_state d_particle_state) fs
00:00:35 #3076 [Verbose] > st t =
00:00:35 #3077 [Verbose] > inl states : i32 -> particle_state = states_ps method fs st
00:00:35 #3078 [Verbose] > inl dt = (states 1).time - (states 0).time
00:00:35 #3079 [Verbose] > inl num_steps = t / dt |> math.round |> abs
00:00:35 #3080 [Verbose] > inl st1 = solver' method (newton_second_ps fs) st num_steps
00:00:35 #3081 [Verbose] > st1.pos_vec
00:00:35 #3082 [Verbose] >
00:00:35 #3083 [Verbose] > inl sun_gravity (st : particle_state) : vec =
00:00:35 #3084 [Verbose] > inl big_g = 0.0000000000667408
00:00:35 #3085 [Verbose] > inl sun_mass = 1988480000000000000000000000000
00:00:35 #3086 [Verbose] > -big_g * sun_mass * st.mass *^ st.pos_vec ^/ magnitude st.pos_vec ** 3
00:00:35 #3087 [Verbose] >
00:00:35 #3088 [Verbose] > inl wind_force v_wind drag rho area (st : particle_state) =
00:00:35 #3089 [Verbose] > inl v_rel = st.velocity ^-^ v_wind
00:00:35 #3090 [Verbose] > -0.5 * drag * rho * area * magnitude v_rel *^ v_rel
00:00:35 #3091 [Verbose] >
00:00:35 #3092 [Verbose] > inl rock_state () =
00:00:35 #3093 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:35 #3094 [Verbose] > particle_state { default_particle_state' with
00:00:35 #3095 [Verbose] > mass = 2
00:00:35 #3096 [Verbose] > velocity = vec 3 0 4
00:00:35 #3097 [Verbose] > }
00:00:35 #3098 [Verbose] >
00:00:35 #3099 [Verbose] > inl halley_update dt =
00:00:35 #3100 [Verbose] > update_ps (euler_cromer_ps dt) [[ sun_gravity ]]
00:00:35 #3101 [Verbose] >
00:00:35 #3102 [Verbose] > inl halley_initial () =
00:00:35 #3103 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:35 #3104 [Verbose] > particle_state { default_particle_state' with
00:00:35 #3105 [Verbose] > mass = 220000000000000
00:00:35 #3106 [Verbose] > pos_vec = 87660000000 *^ i_hat ()
00:00:35 #3107 [Verbose] > velocity = 54569 *^ j_hat ()
00:00:35 #3108 [Verbose] > }
00:00:35 #3109 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5958-5813-521c05d02e30\main.spi
00:00:35 #3110 [Verbose] >
00:00:35 #3111 [Verbose] > ╭─[ 201.32ms - stdout ]────────────────────────────────────────────────────────╮
00:00:35 #3112 [Verbose] > │ () │
00:00:35 #3113 [Verbose] > │ │
00:00:35 #3114 [Verbose] > │ │
00:00:35 #3115 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 #3116 [Verbose] >
00:00:35 #3117 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:35 #3118 [Verbose] > // // test
00:00:35 #3119 [Verbose] >
00:00:35 #3120 [Verbose] > inl baseball_forces () =
00:00:35 #3121 [Verbose] > inl area = pi * (0.074 / 2) ** 2
00:00:35 #3122 [Verbose] > [[
00:00:35 #3123 [Verbose] > earth_surface_gravity
00:00:35 #3124 [Verbose] > air_resistance 0.3 1.225 area
00:00:35 #3125 [Verbose] > ]]
00:00:35 #3126 [Verbose] >
00:00:35 #3127 [Verbose] > inl baseball_trajectory dt v0 theta_deg =
00:00:35 #3128 [Verbose] > inl theta_rad = theta_deg * pi / 180
00:00:35 #3129 [Verbose] > inl vy0 = v0 * cos theta_rad
00:00:35 #3130 [Verbose] > inl vz0 = v0 * sin theta_rad
00:00:35 #3131 [Verbose] > inl initial_state =
00:00:35 #3132 [Verbose] > particle_state {
00:00:35 #3133 [Verbose] > mass = 0.145
00:00:35 #3134 [Verbose] > charge = 0
00:00:35 #3135 [Verbose] > time = 0
00:00:35 #3136 [Verbose] > pos_vec = zero_vec ()
00:00:35 #3137 [Verbose] > velocity = vec 0 vy0 vz0
00:00:35 #3138 [Verbose] > }
00:00:35 #3139 [Verbose] > states_ps (euler_cromer_ps dt) (baseball_forces ()) initial_state
00:00:35 #3140 [Verbose] > >> Some
00:00:35 #3141 [Verbose] > |> z_ge0
00:00:35 #3142 [Verbose] > |> trajectory
00:00:35 #3143 [Verbose] >
00:00:35 #3144 [Verbose] > inl baseball_range dt v0 theta_deg =
00:00:35 #3145 [Verbose] > baseball_trajectory dt v0 theta_deg
00:00:35 #3146 [Verbose] > |> listm.fold (fun _ (y, _) => y) 0
00:00:35 #3147 [Verbose] >
00:00:35 #3148 [Verbose] > inl x : a _ f64 = am'.init_series 10 80 1
00:00:35 #3149 [Verbose] > inl y = x |> am.map (baseball_range 0.01 45)
00:00:35 #3150 [Verbose] > "range for a baseball hit at 45 m/s",
00:00:35 #3151 [Verbose] > "angle above horizontal (degrees)",
00:00:35 #3152 [Verbose] > "",
00:00:35 #3153 [Verbose] > ;[[ "horizontal range (m)", x, y ]]
00:00:35 #3154 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0043-5978-7864-7226a5cf5c04\main.spi
00:00:36 #3155 [Verbose] >
00:00:36 #3156 [Verbose] > ╭─[ 967.27ms - return value ]──────────────────────────────────────────────────╮
00:00:36 #3157 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:36 #3158 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:36 #3159 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:36 #3160 [Verbose] > │ stroke="none"/> │
00:00:36 #3161 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:36 #3162 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:36 #3163 [Verbose] > │ fill="#FFFFFF"> │
00:00:36 #3164 [Verbose] > │ range for a baseball hit at 45 m/s │
00:00:36 #3165 [Verbose] > │ </text> │
00:00:36 #3166 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="55" y1="424" x2="55" │
00:00:36 #3167 [Verbose] > │ y2="75"/> │
00:00:36 #3168 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │
00:00:36 #3169 [Verbose] > │ y2="75"/> │
00:00:36 #3170 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:36 #3171 [Verbose] > │ y2="75"/> │
00:00:36 #3172 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │
00:00:36 #3173 [Verbose] > │ y2="75"/> │
00:00:36 #3174 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="... │
00:00:36 #3175 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 #3176 [Verbose] >
00:00:36 #3177 [Verbose] > ╭─[ 979.28ms - stdout ]────────────────────────────────────────────────────────╮
00:00:36 #3178 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:00:36 #3179 [Verbose] > │ and UH0 = │
00:00:36 #3180 [Verbose] > │ | UH0_0 of float * float * float * float * float * float * float * float │
00:00:36 #3181 [Verbose] > │ * float * UH0 │
00:00:36 #3182 [Verbose] > │ | UH0_1 │
00:00:36 #3183 [Verbose] > │ and UH1 = │
00:00:36 #3184 [Verbose] > │ | UH1_0 of float * float * UH1 │
00:00:36 #3185 [Verbose] > │ | UH1_1 │
00:00:36 #3186 [Verbose] > │ let rec method1 (v0 : Mut0) : bool = │
00:00:36 #3187 [Verbose] > │ let v1 : int32 = v0.l0 │
00:00:36 #3188 [Verbose] > │ let v2 : bool = v1 < 71 │
00:00:36 #3189 [Verbose] > │ v2 │
00:00:36 #3190 [Verbose] > │ and method2 (v0 : int32, v1 : Mut0) : bool = │
00:00:36 #3191 [Verbose] > │ let v2 : int32 = v1.l0 │
00:00:36 #3192 [Verbose] > │ let v3 : bool = v2 < v0 │
00:00:36 #3193 [Verbose] > │ v3 │
00:00:36 #3194 [Verbose] > │ and method4 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, v5 │
00:00:36 #3195 [Verbose] > │ : float, v6 : float, v7 : float, v8 : float, v9 : int32) : struct (float * │
00:00:36 #3196 [Verbose] > │ float * float * float * float * float * float * float * float) = │
00:00:36 #3197 [Verbose] > │ let v10 : bool = v9 <= 0 │
00:00:36 #3198 [Verbose] > │ if v10 then │
00:00:36 #3199 [Verbose] > │ struct (v0, v1, v2, v3, v4, v5, v6, v7, v8) │
00:00:36 #3200 [Verbose] > │ else │
00:00:36 #3201 [Verbose] > │ let v11 : float = v6 * v6 │
00:00:36 #3202 [Verbose] > │ let v12 : float = v7 * v7 │
00:00:36 #3203 [Verbose] > │ let v13 : float = v11 + v12 │
00:00:36 #3204 [Verbose] > │ let v14 : float = v8 * v8 │
00:00:36 #3205 [Verbose] > │ let v15 : float = v13 + v14 │
00:00:36 #3206 [Verbose] > │ let v16 : float = sqrt v15 │
00:00:36 #3207 [Verbose] > │ let v17 : float = -0.0007902794129829633 * v16 │
00:00:36 #3208 [Verbose] > │ let v18 : float = v17 * v6 │
00:00:36 #3209 [Verbose] > │ let v19 : float = v17 * v7 │
00:00:36 #3210 [Verbose] > │ let v20 : float = v17 * v8 │
00:00:36 #3211 [Verbose] > │ let v21 : float = -v1 │
00:00:36 #3212 [Verbose] > │ let v22 : float = v21 * 9.80665 │
00:00:36 #3213 [Verbose] > │ let v23 : float = v22 * 0.0 │
00:00:36 #3214 [Verbose] > │ let v24 : float = v23 + v18 │
00:00:36 #3215 [Verbose] > │ let v25 : float = v23 + v19 │
00:00:36 #3216 [Verbose] > │ let v26 : float = v22 + v20 │
00:00:36 #3217 [Verbose] > │ let v27 : float = v24 / v1 │
00:00:36 #3218 [Verbose] > │ let v28 : float = v25 / v1 │
00:00:36 #3219 [Verbose] > │ let v29 : float = v26 / v1 │
00:00:36 #3220 [Verbose] > │ let v30 : float = 0.01 * v27 │
00:00:36 #3221 [Verbose] > │ let v31 : float = 0.01 * v28 │
00:00:36 #3222 [Verbose] > │ let v32 : float = 0.01 * v29 │
00:00:36 #3223 [Verbose] > │ let v33 : float = v6 + v30 │
00:00:36 #3224 [Verbose] > │ let v34 : float = v7 + v31 │
00:00:36 #3225 [Verbose] > │ let v35 : float = v8 + v32 │
00:00:36 #3226 [Verbose] > │ let v36 : float = v5 + 0.01 │
00:00:36 #3227 [Verbose] > │ let v37 : float = 0.01 * v33 │
00:00:36 #3228 [Verbose] > │ let v38 : float = 0.01 * v34 │
00:00:36 #3229 [Verbose] > │ let v39 : float = 0.01 * v35 │
00:00:36 #3230 [Verbose] > │ let v40 : float = v2 + v37 │
00:00:36 #3231 [Verbose] > │ let v41 : float = v3 + v38 │
00:00:36 #3232 [Verbose] > │ let v42 : float = v4 + v39 │
00:00:36 #3233 [Verbose] > │ let v43 : int32 = v9 - 1 │
00:00:36 #3234 [Verbose] > │ method4(v0, v1, v40, v41, v42, v36, v33, v34, v35, v43) │
00:00:36 #3235 [Verbose] > │ and method5 (v0 : UH0, v1 : UH0) : UH0 = │
00:00:36 #3236 [Verbose] > │ match v0 with │
00:00:36 #3237 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:36 #3238 [Verbose] > │ let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1) │
00:00:36 #3239 [Verbose] > │ method5(v11, v12) │
00:00:36 #3240 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:36 #3241 [Verbose] > │ v1 │
00:00:36 #3242 [Verbose] > │ and method3 (v0 : float, v1 : float, v2 : UH0, v3 : int32) : UH0 = │
00:00:36 #3243 [Verbose] > │ let v4 : float = 0.0 │
00:00:36 #3244 [Verbose] > │ let v5 : float = 0.145 │
00:00:36 #3245 [Verbose] > │ let v6 : float = 0.0 │
00:00:36 #3246 [Verbose] > │ let v7 : float = 0.0 │
00:00:36 #3247 [Verbose] > │ let v8 : float = 0.0 │
00:00:36 #3248 [Verbose] > │ let v9 : float = 0.0 │
00:00:36 #3249 [Verbose] > │ let v10 : float = 0.0 │
00:00:36 #3250 [Verbose] > │ let struct (v11 : float, v12 : float, v13 : float, v14 : float, v15 : │
00:00:36 #3251 [Verbose] > │ float, v16 : float, v17 : float, v18 : float, v19 : float) = method4(v4, v5, │
00:00:36 #3252 [Verbose] > │ v6, v7, v8, v9, v10, v0, v1, v3) │
00:00:36 #3253 [Verbose] > │ let v20 : bool = v15 >= 0.0 │
00:00:36 #3254 [Verbose] > │ if v20 then │
00:00:36 #3255 [Verbose] > │ let v21 : UH0 = UH0_0(v11, v12, v13, v14, v15, v16, v17, v18, v19, │
00:00:36 #3256 [Verbose] > │ v2) │
00:00:36 #3257 [Verbose] > │ let v22 : int32 = v3 + 1 │
00:00:36 #3258 [Verbose] > │ method3(v0, v1, v21, v22) │
00:00:36 #3259 [Verbose] > │ else │
00:00:36 #3260 [Verbose] > │ let v24 : UH0 = UH0_1 │
00:00:36 #3261 [Verbose] > │ method5(v2, v24) │
00:00:36 #3262 [Verbose] > │ and method6 (v0 : UH0, v1 : UH1) : UH1 = │
00:00:36 #3263 [Verbose] > │ match v0 with │
00:00:36 #3264 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:36 #3265 [Verbose] > │ let v12 : UH1 = method6(v11, v1) │
00:00:36 #3266 [Verbose] > │ UH1_0(v5, v6, v12) │
00:00:36 #3267 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:36 #3268 [Verbose] > │ v1 │
00:00:36 #3269 [Verbose] > │ and method7 (v0 : UH1, v1 : float) : float = │
00:00:36 #3270 [Verbose] > │ match v0 with │
00:00:36 #3271 [Verbose] > │ | UH1_0(v2, v3, v4) -> (* Cons *) │
00:00:36 #3272 [Verbose] > │ method7(v4, v2) │
00:00:36 #3273 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:36 #3274 [Verbose] > │ v1 │
00:00:36 #3275 [Verbose] > │ and method8 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:36 #3276 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:36 #3277 [Verbose] > │ v0 │
00:00:36 #3278 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:36 #3279 [Verbose] > │ []) * (float [])) [])) = │
00:00:36 #3280 [Verbose] > │ let v0 : (float []) = Array.zeroCreate<float> (71) │
00:00:36 #3281 [Verbose] > │ let v1 : Mut0 = {l0 = 0} : Mut0 │
00:00:36 #3282 [Verbose] > │ while method1(v1) do │
00:00:36 #3283 [Verbose] > │ let v3 : int32 = v1.l0 │
00:00:36 #3284 [Verbose] > │ let v4 : float = float v3 │
00:00:36 #3285 [Verbose] > │ let v5 : float = 10.0 + v4 │
00:00:36 #3286 [Verbose] > │ v0.[int v3] <- v5 │
00:00:36 #3287 [Verbose] > │ let v6 : int32 = v3 + 1 │
00:00:36 #3288 [Verbose] > │ v1.l0 <- v6 │
00:00:36 #3289 [Verbose] > │ () │
00:00:36 #3290 [Verbose] > │ let v7 : int32 = v0.Length │
00:00:36 #3291 [Verbose] > │ let v8 : (float []) = Array.zeroCreate<float> (v7) │
00:00:36 #3292 [Verbose] > │ let v9 : Mut0 = {l0 = 0} : Mut0 │
00:00:36 #3293 [Verbose] > │ while method2(v7, v9) do │
00:00:36 #3294 [Verbose] > │ let v11 : int32 = v9.l0 │
00:00:36 #3295 [Verbose] > │ let v12 : float = v0.[int v11] │
00:00:36 #3296 [Verbose] > │ let v13 : float = v12 * 3.141592653589793 │
00:00:36 #3297 [Verbose] > │ let v14 : float = v13 / 180.0 │
00:00:36 #3298 [Verbose] > │ let v15 : float = cos v14 │
00:00:36 #3299 [Verbose] > │ let v16 : float = 45.0 * v15 │
00:00:36 #3300 [Verbose] > │ let v17 : float = sin v14 │
00:00:36 #3301 [Verbose] > │ let v18 : float = 45.0 * v17 │
00:00:36 #3302 [Verbose] > │ let v19 : UH0 = UH0_1 │
00:00:36 #3303 [Verbose] > │ let v20 : int32 = 0 │
00:00:36 #3304 [Verbose] > │ let v21 : UH0 = method3(v16, v18, v19, v20) │
00:00:36 #3305 [Verbose] > │ let v22 : UH1 = UH1_1 │
00:00:36 #3306 [Verbose] > │ let v23 : UH1 = method6(v21, v22) │
00:00:36 #3307 [Verbose] > │ let v24 : float = 0.0 │
00:00:36 #3308 [Verbose] > │ let v25 : float = method7(v23, v24) │
00:00:36 #3309 [Verbose] > │ v8.[int v11] <- v25 │
00:00:36 #3310 [Verbose] > │ let v26 : int32 = v11 + 1 │
00:00:36 #3311 [Verbose] > │ v9.l0 <- v26 │
00:00:36 #3312 [Verbose] > │ () │
00:00:36 #3313 [Verbose] > │ let v27 : string = "horizontal range (m)" │
00:00:36 #3314 [Verbose] > │ let v28 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:36 #3315 [Verbose] > │ (v27, v0, v8)|] │
00:00:36 #3316 [Verbose] > │ let v29 : (struct (string * (float []) * (float [])) []) = method8(v28) │
00:00:36 #3317 [Verbose] > │ let v30 : string = "range for a baseball hit at 45 m/s" │
00:00:36 #3318 [Verbose] > │ let v31 : string = "angle above horizontal (degrees)" │
00:00:36 #3319 [Verbose] > │ let v32 : string = "" │
00:00:36 #3320 [Verbose] > │ struct (v30, v31, v32, v29) │
00:00:36 #3321 [Verbose] > │ method0() │
00:00:36 #3322 [Verbose] > │ │
00:00:36 #3323 [Verbose] > │ │
00:00:36 #3324 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:36 #3325 [Verbose] >
00:00:36 #3326 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:36 #3327 [Verbose] > // // test
00:00:36 #3328 [Verbose] >
00:00:36 #3329 [Verbose] > inl best_angle (min, max) =
00:00:36 #3330 [Verbose] > let rec loop theta_deg (best_range, best_theta_deg) =
00:00:36 #3331 [Verbose] > if theta_deg > max
00:00:36 #3332 [Verbose] > then best_range, best_theta_deg
00:00:36 #3333 [Verbose] > else
00:00:36 #3334 [Verbose] > inl range = baseball_range 0.01 45 theta_deg
00:00:36 #3335 [Verbose] > loop
00:00:36 #3336 [Verbose] > (theta_deg + 1)
00:00:36 #3337 [Verbose] > (if range > best_range
00:00:36 #3338 [Verbose] > then range, theta_deg
00:00:36 #3339 [Verbose] > else best_range, best_theta_deg)
00:00:36 #3340 [Verbose] > loop min (0f64, min)
00:00:36 #3341 [Verbose] >
00:00:36 #3342 [Verbose] > best_angle (30f64, 60f64)
00:00:36 #3343 [Verbose] > |> _assert_eq (116.77499158246208, 41)
00:00:36 #3344 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0044-0082-8268-865a57565262\main.spi
00:00:37 #3345 [Verbose] >
00:00:37 #3346 [Verbose] > ╭─[ 598.77ms - stdout ]────────────────────────────────────────────────────────╮
00:00:37 #3347 [Verbose] > │ type UH0 = │
00:00:37 #3348 [Verbose] > │ | UH0_0 of float * float * float * float * float * float * float * float │
00:00:37 #3349 [Verbose] > │ * float * UH0 │
00:00:37 #3350 [Verbose] > │ | UH0_1 │
00:00:37 #3351 [Verbose] > │ and UH1 = │
00:00:37 #3352 [Verbose] > │ | UH1_0 of float * float * UH1 │
00:00:37 #3353 [Verbose] > │ | UH1_1 │
00:00:37 #3354 [Verbose] > │ let rec method3 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, │
00:00:37 #3355 [Verbose] > │ v5 : float, v6 : float, v7 : float, v8 : float, v9 : int32) : struct (float │
00:00:37 #3356 [Verbose] > │ * float * float * float * float * float * float * float * float) = │
00:00:37 #3357 [Verbose] > │ let v10 : bool = v9 <= 0 │
00:00:37 #3358 [Verbose] > │ if v10 then │
00:00:37 #3359 [Verbose] > │ struct (v0, v1, v2, v3, v4, v5, v6, v7, v8) │
00:00:37 #3360 [Verbose] > │ else │
00:00:37 #3361 [Verbose] > │ let v11 : float = v6 * v6 │
00:00:37 #3362 [Verbose] > │ let v12 : float = v7 * v7 │
00:00:37 #3363 [Verbose] > │ let v13 : float = v11 + v12 │
00:00:37 #3364 [Verbose] > │ let v14 : float = v8 * v8 │
00:00:37 #3365 [Verbose] > │ let v15 : float = v13 + v14 │
00:00:37 #3366 [Verbose] > │ let v16 : float = sqrt v15 │
00:00:37 #3367 [Verbose] > │ let v17 : float = -0.0007902794129829633 * v16 │
00:00:37 #3368 [Verbose] > │ let v18 : float = v17 * v6 │
00:00:37 #3369 [Verbose] > │ let v19 : float = v17 * v7 │
00:00:37 #3370 [Verbose] > │ let v20 : float = v17 * v8 │
00:00:37 #3371 [Verbose] > │ let v21 : float = -v1 │
00:00:37 #3372 [Verbose] > │ let v22 : float = v21 * 9.80665 │
00:00:37 #3373 [Verbose] > │ let v23 : float = v22 * 0.0 │
00:00:37 #3374 [Verbose] > │ let v24 : float = v23 + v18 │
00:00:37 #3375 [Verbose] > │ let v25 : float = v23 + v19 │
00:00:37 #3376 [Verbose] > │ let v26 : float = v22 + v20 │
00:00:37 #3377 [Verbose] > │ let v27 : float = v24 / v1 │
00:00:37 #3378 [Verbose] > │ let v28 : float = v25 / v1 │
00:00:37 #3379 [Verbose] > │ let v29 : float = v26 / v1 │
00:00:37 #3380 [Verbose] > │ let v30 : float = 0.01 * v27 │
00:00:37 #3381 [Verbose] > │ let v31 : float = 0.01 * v28 │
00:00:37 #3382 [Verbose] > │ let v32 : float = 0.01 * v29 │
00:00:37 #3383 [Verbose] > │ let v33 : float = v6 + v30 │
00:00:37 #3384 [Verbose] > │ let v34 : float = v7 + v31 │
00:00:37 #3385 [Verbose] > │ let v35 : float = v8 + v32 │
00:00:37 #3386 [Verbose] > │ let v36 : float = v5 + 0.01 │
00:00:37 #3387 [Verbose] > │ let v37 : float = 0.01 * v33 │
00:00:37 #3388 [Verbose] > │ let v38 : float = 0.01 * v34 │
00:00:37 #3389 [Verbose] > │ let v39 : float = 0.01 * v35 │
00:00:37 #3390 [Verbose] > │ let v40 : float = v2 + v37 │
00:00:37 #3391 [Verbose] > │ let v41 : float = v3 + v38 │
00:00:37 #3392 [Verbose] > │ let v42 : float = v4 + v39 │
00:00:37 #3393 [Verbose] > │ let v43 : int32 = v9 - 1 │
00:00:37 #3394 [Verbose] > │ method3(v0, v1, v40, v41, v42, v36, v33, v34, v35, v43) │
00:00:37 #3395 [Verbose] > │ and method4 (v0 : UH0, v1 : UH0) : UH0 = │
00:00:37 #3396 [Verbose] > │ match v0 with │
00:00:37 #3397 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:37 #3398 [Verbose] > │ let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1) │
00:00:37 #3399 [Verbose] > │ method4(v11, v12) │
00:00:37 #3400 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:37 #3401 [Verbose] > │ v1 │
00:00:37 #3402 [Verbose] > │ and method2 (v0 : float, v1 : float, v2 : UH0, v3 : int32) : UH0 = │
00:00:37 #3403 [Verbose] > │ let v4 : float = 0.0 │
00:00:37 #3404 [Verbose] > │ let v5 : float = 0.145 │
00:00:37 #3405 [Verbose] > │ let v6 : float = 0.0 │
00:00:37 #3406 [Verbose] > │ let v7 : float = 0.0 │
00:00:37 #3407 [Verbose] > │ let v8 : float = 0.0 │
00:00:37 #3408 [Verbose] > │ let v9 : float = 0.0 │
00:00:37 #3409 [Verbose] > │ let v10 : float = 0.0 │
00:00:37 #3410 [Verbose] > │ let struct (v11 : float, v12 : float, v13 : float, v14 : float, v15 : │
00:00:37 #3411 [Verbose] > │ float, v16 : float, v17 : float, v18 : float, v19 : float) = method3(v4, v5, │
00:00:37 #3412 [Verbose] > │ v6, v7, v8, v9, v10, v0, v1, v3) │
00:00:37 #3413 [Verbose] > │ let v20 : bool = v15 >= 0.0 │
00:00:37 #3414 [Verbose] > │ if v20 then │
00:00:37 #3415 [Verbose] > │ let v21 : UH0 = UH0_0(v11, v12, v13, v14, v15, v16, v17, v18, v19, │
00:00:37 #3416 [Verbose] > │ v2) │
00:00:37 #3417 [Verbose] > │ let v22 : int32 = v3 + 1 │
00:00:37 #3418 [Verbose] > │ method2(v0, v1, v21, v22) │
00:00:37 #3419 [Verbose] > │ else │
00:00:37 #3420 [Verbose] > │ let v24 : UH0 = UH0_1 │
00:00:37 #3421 [Verbose] > │ method4(v2, v24) │
00:00:37 #3422 [Verbose] > │ and method5 (v0 : UH0, v1 : UH1) : UH1 = │
00:00:37 #3423 [Verbose] > │ match v0 with │
00:00:37 #3424 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:37 #3425 [Verbose] > │ let v12 : UH1 = method5(v11, v1) │
00:00:37 #3426 [Verbose] > │ UH1_0(v5, v6, v12) │
00:00:37 #3427 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:37 #3428 [Verbose] > │ v1 │
00:00:37 #3429 [Verbose] > │ and method6 (v0 : UH1, v1 : float) : float = │
00:00:37 #3430 [Verbose] > │ match v0 with │
00:00:37 #3431 [Verbose] > │ | UH1_0(v2, v3, v4) -> (* Cons *) │
00:00:37 #3432 [Verbose] > │ method6(v4, v2) │
00:00:37 #3433 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:37 #3434 [Verbose] > │ v1 │
00:00:37 #3435 [Verbose] > │ and method1 (v0 : float, v1 : float, v2 : float) : struct (float * float) = │
00:00:37 #3436 [Verbose] > │ let v3 : bool = v0 > 60.0 │
00:00:37 #3437 [Verbose] > │ if v3 then │
00:00:37 #3438 [Verbose] > │ struct (v2, v1) │
00:00:37 #3439 [Verbose] > │ else │
00:00:37 #3440 [Verbose] > │ let v4 : float = v0 * 3.141592653589793 │
00:00:37 #3441 [Verbose] > │ let v5 : float = v4 / 180.0 │
00:00:37 #3442 [Verbose] > │ let v6 : float = cos v5 │
00:00:37 #3443 [Verbose] > │ let v7 : float = 45.0 * v6 │
00:00:37 #3444 [Verbose] > │ let v8 : float = sin v5 │
00:00:37 #3445 [Verbose] > │ let v9 : float = 45.0 * v8 │
00:00:37 #3446 [Verbose] > │ let v10 : UH0 = UH0_1 │
00:00:37 #3447 [Verbose] > │ let v11 : int32 = 0 │
00:00:37 #3448 [Verbose] > │ let v12 : UH0 = method2(v7, v9, v10, v11) │
00:00:37 #3449 [Verbose] > │ let v13 : UH1 = UH1_1 │
00:00:37 #3450 [Verbose] > │ let v14 : UH1 = method5(v12, v13) │
00:00:37 #3451 [Verbose] > │ let v15 : float = 0.0 │
00:00:37 #3452 [Verbose] > │ let v16 : float = method6(v14, v15) │
00:00:37 #3453 [Verbose] > │ let v17 : float = v0 + 1.0 │
00:00:37 #3454 [Verbose] > │ let v18 : bool = v16 > v2 │
00:00:37 #3455 [Verbose] > │ let struct (v19 : float, v20 : float) = │
00:00:37 #3456 [Verbose] > │ if v18 then │
00:00:37 #3457 [Verbose] > │ struct (v16, v0) │
00:00:37 #3458 [Verbose] > │ else │
00:00:37 #3459 [Verbose] > │ struct (v2, v1) │
00:00:37 #3460 [Verbose] > │ method1(v17, v20, v19) │
00:00:37 #3461 [Verbose] > │ and method7 (v0 : bool) : bool = │
00:00:37 #3462 [Verbose] > │ v0 │
00:00:37 #3463 [Verbose] > │ and method0 () : unit = │
00:00:37 #3464 [Verbose] > │ let v0 : float = 30.0 │
00:00:37 #3465 [Verbose] > │ let v1 : float = 0.0 │
00:00:37 #3466 [Verbose] > │ let v2 : float = 30.0 │
00:00:37 #3467 [Verbose] > │ let struct (v3 : float, v4 : float) = method1(v0, v2, v1) │
00:00:37 #3468 [Verbose] > │ let v5 : bool = v3 = 116.77499158246208 │
00:00:37 #3469 [Verbose] > │ let v7 : bool = │
00:00:37 #3470 [Verbose] > │ if v5 then │
00:00:37 #3471 [Verbose] > │ let v6 : bool = v4 = 41.0 │
00:00:37 #3472 [Verbose] > │ v6 │
00:00:37 #3473 [Verbose] > │ else │
00:00:37 #3474 [Verbose] > │ false │
00:00:37 #3475 [Verbose] > │ let v9 : bool = │
00:00:37 #3476 [Verbose] > │ if v7 then │
00:00:37 #3477 [Verbose] > │ true │
00:00:37 #3478 [Verbose] > │ else │
00:00:37 #3479 [Verbose] > │ method7(v7) │
00:00:37 #3480 [Verbose] > │ let v10 : string = $"__expect / actual: %A{struct (v3, v4)} / expected: │
00:00:37 #3481 [Verbose] > │ %A{struct (116.77499158246208, 41.0)}" │
00:00:37 #3482 [Verbose] > │ let v11 : bool = v9 = false │
00:00:37 #3483 [Verbose] > │ if v11 then │
00:00:37 #3484 [Verbose] > │ failwith<unit> v10 │
00:00:37 #3485 [Verbose] > │ method0() │
00:00:37 #3486 [Verbose] > │ │
00:00:37 #3487 [Verbose] > │ │
00:00:37 #3488 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 #3489 [Verbose] >
00:00:37 #3490 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:37 #3491 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:37 #3492 [Verbose] > │ ## relativity_ps │
00:00:37 #3493 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 #3494 [Verbose] >
00:00:37 #3495 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:37 #3496 [Verbose] > inl relativity_ps fs (st : particle_state) =
00:00:37 #3497 [Verbose] > inl f_net = fs |> listm.map (fun f => f st) |> sum_vec
00:00:37 #3498 [Verbose] > inl c = 299792458
00:00:37 #3499 [Verbose] > inl u = st.velocity ^/ c
00:00:37 #3500 [Verbose] > inl acc = sqrt (1 - (u <.> u)) *^ (f_net ^-^ (f_net <.> u) *^ u) ^/ st.mass
00:00:37 #3501 [Verbose] > d_particle_state {
00:00:37 #3502 [Verbose] > dmdt = 0
00:00:37 #3503 [Verbose] > dqdt = 0
00:00:37 #3504 [Verbose] > dtdt = 1
00:00:37 #3505 [Verbose] > drdt = st.velocity
00:00:37 #3506 [Verbose] > dvdt = acc
00:00:37 #3507 [Verbose] > }
00:00:37 #3508 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0044-0147-4771-41c56b112654\main.spi
00:00:37 #3509 [Verbose] >
00:00:37 #3510 [Verbose] > ╭─[ 222.92ms - stdout ]────────────────────────────────────────────────────────╮
00:00:37 #3511 [Verbose] > │ () │
00:00:37 #3512 [Verbose] > │ │
00:00:37 #3513 [Verbose] > │ │
00:00:37 #3514 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 #3515 [Verbose] >
00:00:37 #3516 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:37 #3517 [Verbose] > // // test
00:00:37 #3518 [Verbose] >
00:00:37 #3519 [Verbose] > inl year = 365.25 * 24 * 60 * 60
00:00:37 #3520 [Verbose] > inl c = 299792458
00:00:37 #3521 [Verbose] > inl ~method = runge_kutta_4 100000
00:00:37 #3522 [Verbose] > inl forces = [[ fun _ => 10 *^ i_hat () ]]
00:00:37 #3523 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:37 #3524 [Verbose] > inl initial_state =
00:00:37 #3525 [Verbose] > particle_state { default_particle_state' with
00:00:37 #3526 [Verbose] > mass = 1
00:00:37 #3527 [Verbose] > }
00:00:37 #3528 [Verbose] >
00:00:37 #3529 [Verbose] > inl newton_states = solver_ method (newton_second_ps forces) initial_state
00:00:37 #3530 [Verbose] > inl relativity_states = solver_ method (relativity_ps forces) initial_state
00:00:37 #3531 [Verbose] >
00:00:37 #3532 [Verbose] > inl newton_x, newton_y =
00:00:37 #3533 [Verbose] > newton_states
00:00:37 #3534 [Verbose] > >> Some
00:00:37 #3535 [Verbose] > |> seq.take_while_ (fun (particle_state st) (_ : i32) => st.time <= year)
00:00:37 #3536 [Verbose] > |> listm.map (fun (particle_state st) => st.time / year, st.velocity.x / c)
00:00:37 #3537 [Verbose] > |> listm'.unzip
00:00:37 #3538 [Verbose] >
00:00:37 #3539 [Verbose] > inl _, relativity_y =
00:00:37 #3540 [Verbose] > relativity_states
00:00:37 #3541 [Verbose] > >> Some
00:00:37 #3542 [Verbose] > |> seq.take_while_ (fun (particle_state st) (_ : i32) => st.time <= year)
00:00:37 #3543 [Verbose] > |> listm.map (fun (particle_state st) => st.time / year, st.velocity.x / c)
00:00:37 #3544 [Verbose] > |> listm'.unzip
00:00:37 #3545 [Verbose] >
00:00:37 #3546 [Verbose] > inl newton_x : a i32 _ = newton_x |> listm.toArray
00:00:37 #3547 [Verbose] > inl newton_y : a i32 _ = newton_y |> listm.toArray
00:00:37 #3548 [Verbose] > inl relativity_y : a i32 _ = relativity_y |> listm.toArray
00:00:37 #3549 [Verbose] >
00:00:37 #3550 [Verbose] > "response to a constant force",
00:00:37 #3551 [Verbose] > "time (years)",
00:00:37 #3552 [Verbose] > "velocity (multiples of c)",
00:00:37 #3553 [Verbose] > ;[[
00:00:37 #3554 [Verbose] > "newtonian", newton_x, newton_y
00:00:37 #3555 [Verbose] > "relativistic", newton_x, relativity_y
00:00:37 #3556 [Verbose] > ]]
00:00:37 #3557 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0044-0170-7008-7b5bff157b0c\main.spi
00:00:37 #3558 [Verbose] >
00:00:37 #3559 [Verbose] > ╭─[ 558.90ms - return value ]──────────────────────────────────────────────────╮
00:00:37 #3560 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:37 #3561 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:37 #3562 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:37 #3563 [Verbose] > │ stroke="none"/> │
00:00:37 #3564 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:37 #3565 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:37 #3566 [Verbose] > │ fill="#FFFFFF"> │
00:00:37 #3567 [Verbose] > │ response to a constant force │
00:00:37 #3568 [Verbose] > │ </text> │
00:00:37 #3569 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:00:37 #3570 [Verbose] > │ y2="75"/> │
00:00:37 #3571 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:37 #3572 [Verbose] > │ y2="75"/> │
00:00:37 #3573 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:00:37 #3574 [Verbose] > │ y2="75"/> │
00:00:37 #3575 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:00:37 #3576 [Verbose] > │ y2="75"/> │
00:00:37 #3577 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1=... │
00:00:37 #3578 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:37 #3579 [Verbose] >
00:00:37 #3580 [Verbose] > ╭─[ 571.67ms - stdout ]────────────────────────────────────────────────────────╮
00:00:37 #3581 [Verbose] > │ type UH0 = │
00:00:37 #3582 [Verbose] > │ | UH0_0 of float * float * float * float * float * float * float * float │
00:00:37 #3583 [Verbose] > │ * float * UH0 │
00:00:37 #3584 [Verbose] > │ | UH0_1 │
00:00:37 #3585 [Verbose] > │ and UH1 = │
00:00:37 #3586 [Verbose] > │ | UH1_0 of float * float * UH1 │
00:00:37 #3587 [Verbose] > │ | UH1_1 │
00:00:37 #3588 [Verbose] > │ and UH2 = │
00:00:37 #3589 [Verbose] > │ | UH2_0 of float * UH2 │
00:00:37 #3590 [Verbose] > │ | UH2_1 │
00:00:37 #3591 [Verbose] > │ let rec closure1 (v0 : (struct (float * float * float * float * float * │
00:00:37 #3592 [Verbose] > │ float * float * float * float) -> struct (float * float * float * float * │
00:00:37 #3593 [Verbose] > │ float * float * float * float * float))) struct (v1 : float, v2 : float, v3 │
00:00:37 #3594 [Verbose] > │ : float, v4 : float, v5 : float, v6 : float, v7 : float, v8 : float, v9 : │
00:00:37 #3595 [Verbose] > │ float) : struct (float * float * float * float * float * float * float * │
00:00:37 #3596 [Verbose] > │ float * float) = │
00:00:37 #3597 [Verbose] > │ let struct (v10 : float, v11 : float, v12 : float, v13 : float, v14 : │
00:00:37 #3598 [Verbose] > │ float, v15 : float, v16 : float, v17 : float, v18 : float) = v0 struct (v1, │
00:00:37 #3599 [Verbose] > │ v2, v3, v4, v5, v6, v7, v8, v9) │
00:00:37 #3600 [Verbose] > │ let v19 : float = v15 * 50000.0 │
00:00:37 #3601 [Verbose] > │ let v20 : float = v6 + v19 │
00:00:37 #3602 [Verbose] > │ let v21 : float = 50000.0 * v12 │
00:00:37 #3603 [Verbose] > │ let v22 : float = 50000.0 * v13 │
00:00:37 #3604 [Verbose] > │ let v23 : float = 50000.0 * v14 │
00:00:37 #3605 [Verbose] > │ let v24 : float = v3 + v21 │
00:00:37 #3606 [Verbose] > │ let v25 : float = v4 + v22 │
00:00:37 #3607 [Verbose] > │ let v26 : float = v5 + v23 │
00:00:37 #3608 [Verbose] > │ let v27 : float = 50000.0 * v16 │
00:00:37 #3609 [Verbose] > │ let v28 : float = 50000.0 * v17 │
00:00:37 #3610 [Verbose] > │ let v29 : float = 50000.0 * v18 │
00:00:37 #3611 [Verbose] > │ let v30 : float = v7 + v27 │
00:00:37 #3612 [Verbose] > │ let v31 : float = v8 + v28 │
00:00:37 #3613 [Verbose] > │ let v32 : float = v9 + v29 │
00:00:37 #3614 [Verbose] > │ let struct (v33 : float, v34 : float, v35 : float, v36 : float, v37 : │
00:00:37 #3615 [Verbose] > │ float, v38 : float, v39 : float, v40 : float, v41 : float) = v0 struct (v1, │
00:00:37 #3616 [Verbose] > │ v2, v24, v25, v26, v20, v30, v31, v32) │
00:00:37 #3617 [Verbose] > │ let v42 : float = v38 * 50000.0 │
00:00:37 #3618 [Verbose] > │ let v43 : float = v6 + v42 │
00:00:37 #3619 [Verbose] > │ let v44 : float = 50000.0 * v35 │
00:00:37 #3620 [Verbose] > │ let v45 : float = 50000.0 * v36 │
00:00:37 #3621 [Verbose] > │ let v46 : float = 50000.0 * v37 │
00:00:37 #3622 [Verbose] > │ let v47 : float = v3 + v44 │
00:00:37 #3623 [Verbose] > │ let v48 : float = v4 + v45 │
00:00:37 #3624 [Verbose] > │ let v49 : float = v5 + v46 │
00:00:37 #3625 [Verbose] > │ let v50 : float = 50000.0 * v39 │
00:00:37 #3626 [Verbose] > │ let v51 : float = 50000.0 * v40 │
00:00:37 #3627 [Verbose] > │ let v52 : float = 50000.0 * v41 │
00:00:37 #3628 [Verbose] > │ let v53 : float = v7 + v50 │
00:00:37 #3629 [Verbose] > │ let v54 : float = v8 + v51 │
00:00:37 #3630 [Verbose] > │ let v55 : float = v9 + v52 │
00:00:37 #3631 [Verbose] > │ let struct (v56 : float, v57 : float, v58 : float, v59 : float, v60 : │
00:00:37 #3632 [Verbose] > │ float, v61 : float, v62 : float, v63 : float, v64 : float) = v0 struct (v1, │
00:00:37 #3633 [Verbose] > │ v2, v47, v48, v49, v43, v53, v54, v55) │
00:00:37 #3634 [Verbose] > │ let v65 : float = v61 * 100000.0 │
00:00:37 #3635 [Verbose] > │ let v66 : float = v6 + v65 │
00:00:37 #3636 [Verbose] > │ let v67 : float = 100000.0 * v58 │
00:00:37 #3637 [Verbose] > │ let v68 : float = 100000.0 * v59 │
00:00:37 #3638 [Verbose] > │ let v69 : float = 100000.0 * v60 │
00:00:37 #3639 [Verbose] > │ let v70 : float = v3 + v67 │
00:00:37 #3640 [Verbose] > │ let v71 : float = v4 + v68 │
00:00:37 #3641 [Verbose] > │ let v72 : float = v5 + v69 │
00:00:37 #3642 [Verbose] > │ let v73 : float = 100000.0 * v62 │
00:00:37 #3643 [Verbose] > │ let v74 : float = 100000.0 * v63 │
00:00:37 #3644 [Verbose] > │ let v75 : float = 100000.0 * v64 │
00:00:37 #3645 [Verbose] > │ let v76 : float = v7 + v73 │
00:00:37 #3646 [Verbose] > │ let v77 : float = v8 + v74 │
00:00:37 #3647 [Verbose] > │ let v78 : float = v9 + v75 │
00:00:37 #3648 [Verbose] > │ let struct (v79 : float, v80 : float, v81 : float, v82 : float, v83 : │
00:00:37 #3649 [Verbose] > │ float, v84 : float, v85 : float, v86 : float, v87 : float) = v0 struct (v1, │
00:00:37 #3650 [Verbose] > │ v2, v70, v71, v72, v66, v76, v77, v78) │
00:00:37 #3651 [Verbose] > │ let v88 : float = v10 + v33 │
00:00:37 #3652 [Verbose] > │ let v89 : float = v11 + v34 │
00:00:37 #3653 [Verbose] > │ let v90 : float = v15 + v38 │
00:00:37 #3654 [Verbose] > │ let v91 : float = v12 + v35 │
00:00:37 #3655 [Verbose] > │ let v92 : float = v13 + v36 │
00:00:37 #3656 [Verbose] > │ let v93 : float = v14 + v37 │
00:00:37 #3657 [Verbose] > │ let v94 : float = v16 + v39 │
00:00:37 #3658 [Verbose] > │ let v95 : float = v17 + v40 │
00:00:37 #3659 [Verbose] > │ let v96 : float = v18 + v41 │
00:00:37 #3660 [Verbose] > │ let v97 : float = v88 + v33 │
00:00:37 #3661 [Verbose] > │ let v98 : float = v89 + v34 │
00:00:37 #3662 [Verbose] > │ let v99 : float = v90 + v38 │
00:00:37 #3663 [Verbose] > │ let v100 : float = v91 + v35 │
00:00:37 #3664 [Verbose] > │ let v101 : float = v92 + v36 │
00:00:37 #3665 [Verbose] > │ let v102 : float = v93 + v37 │
00:00:37 #3666 [Verbose] > │ let v103 : float = v94 + v39 │
00:00:37 #3667 [Verbose] > │ let v104 : float = v95 + v40 │
00:00:37 #3668 [Verbose] > │ let v105 : float = v96 + v41 │
00:00:37 #3669 [Verbose] > │ let v106 : float = v97 + v56 │
00:00:37 #3670 [Verbose] > │ let v107 : float = v98 + v57 │
00:00:37 #3671 [Verbose] > │ let v108 : float = v99 + v61 │
00:00:37 #3672 [Verbose] > │ let v109 : float = v100 + v58 │
00:00:37 #3673 [Verbose] > │ let v110 : float = v101 + v59 │
00:00:37 #3674 [Verbose] > │ let v111 : float = v102 + v60 │
00:00:37 #3675 [Verbose] > │ let v112 : float = v103 + v62 │
00:00:37 #3676 [Verbose] > │ let v113 : float = v104 + v63 │
00:00:37 #3677 [Verbose] > │ let v114 : float = v105 + v64 │
00:00:37 #3678 [Verbose] > │ let v115 : float = v106 + v56 │
00:00:37 #3679 [Verbose] > │ let v116 : float = v107 + v57 │
00:00:37 #3680 [Verbose] > │ let v117 : float = v108 + v61 │
00:00:37 #3681 [Verbose] > │ let v118 : float = v109 + v58 │
00:00:37 #3682 [Verbose] > │ let v119 : float = v110 + v59 │
00:00:37 #3683 [Verbose] > │ let v120 : float = v111 + v60 │
00:00:37 #3684 [Verbose] > │ let v121 : float = v112 + v62 │
00:00:37 #3685 [Verbose] > │ let v122 : float = v113 + v63 │
00:00:37 #3686 [Verbose] > │ let v123 : float = v114 + v64 │
00:00:37 #3687 [Verbose] > │ let v124 : float = v115 + v79 │
00:00:37 #3688 [Verbose] > │ let v125 : float = v116 + v80 │
00:00:37 #3689 [Verbose] > │ let v126 : float = v117 + v84 │
00:00:37 #3690 [Verbose] > │ let v127 : float = v118 + v81 │
00:00:37 #3691 [Verbose] > │ let v128 : float = v119 + v82 │
00:00:37 #3692 [Verbose] > │ let v129 : float = v120 + v83 │
00:00:37 #3693 [Verbose] > │ let v130 : float = v121 + v85 │
00:00:37 #3694 [Verbose] > │ let v131 : float = v122 + v86 │
00:00:37 #3695 [Verbose] > │ let v132 : float = v123 + v87 │
00:00:37 #3696 [Verbose] > │ let v133 : float = v126 * 16666.666666666668 │
00:00:37 #3697 [Verbose] > │ let v134 : float = v6 + v133 │
00:00:37 #3698 [Verbose] > │ let v135 : float = 16666.666666666668 * v127 │
00:00:37 #3699 [Verbose] > │ let v136 : float = 16666.666666666668 * v128 │
00:00:37 #3700 [Verbose] > │ let v137 : float = 16666.666666666668 * v129 │
00:00:37 #3701 [Verbose] > │ let v138 : float = v3 + v135 │
00:00:37 #3702 [Verbose] > │ let v139 : float = v4 + v136 │
00:00:37 #3703 [Verbose] > │ let v140 : float = v5 + v137 │
00:00:37 #3704 [Verbose] > │ let v141 : float = 16666.666666666668 * v130 │
00:00:37 #3705 [Verbose] > │ let v142 : float = 16666.666666666668 * v131 │
00:00:37 #3706 [Verbose] > │ let v143 : float = 16666.666666666668 * v132 │
00:00:37 #3707 [Verbose] > │ let v144 : float = v7 + v141 │
00:00:37 #3708 [Verbose] > │ let v145 : float = v8 + v142 │
00:00:37 #3709 [Verbose] > │ let v146 : float = v9 + v143 │
00:00:37 #3710 [Verbose] > │ struct (v1, v2, v138, v139, v140, v134, v144, v145, v146) │
00:00:37 #3711 [Verbose] > │ and closure0 () (v0 : (struct (float * float * float * float * float * float │
00:00:37 #3712 [Verbose] > │ * float * float * float) -> struct (float * float * float * float * float * │
00:00:37 #3713 [Verbose] > │ float * float * float * float))) : (struct (float * float * float * float * │
00:00:37 #3714 [Verbose] > │ float * float * float * float * float) -> struct (float * float * float * │
00:00:37 #3715 [Verbose] > │ float * float * float * float * float * float)) = │
00:00:37 #3716 [Verbose] > │ closure1(v0) │
00:00:37 #3717 [Verbose] > │ and closure2 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │
00:00:37 #3718 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:37 #3719 [Verbose] > │ float * float * float * float * float * float * float * float) = │
00:00:37 #3720 [Verbose] > │ let v9 : float = 10.0 / v1 │
00:00:37 #3721 [Verbose] > │ let v10 : float = 0.0 / v1 │
00:00:37 #3722 [Verbose] > │ struct (0.0, 0.0, v6, v7, v8, 1.0, v9, v10, v10) │
00:00:37 #3723 [Verbose] > │ and closure3 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │
00:00:37 #3724 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:37 #3725 [Verbose] > │ float * float * float * float * float * float * float * float) = │
00:00:37 #3726 [Verbose] > │ let v9 : float = v6 / 299792458.0 │
00:00:37 #3727 [Verbose] > │ let v10 : float = v7 / 299792458.0 │
00:00:37 #3728 [Verbose] > │ let v11 : float = v8 / 299792458.0 │
00:00:37 #3729 [Verbose] > │ let v12 : float = v9 * v9 │
00:00:37 #3730 [Verbose] > │ let v13 : float = v10 * v10 │
00:00:37 #3731 [Verbose] > │ let v14 : float = v12 + v13 │
00:00:37 #3732 [Verbose] > │ let v15 : float = v11 * v11 │
00:00:37 #3733 [Verbose] > │ let v16 : float = v14 + v15 │
00:00:37 #3734 [Verbose] > │ let v17 : float = 1.0 - v16 │
00:00:37 #3735 [Verbose] > │ let v18 : float = sqrt v17 │
00:00:37 #3736 [Verbose] > │ let v19 : float = 10.0 * v9 │
00:00:37 #3737 [Verbose] > │ let v20 : float = 0.0 * v10 │
00:00:37 #3738 [Verbose] > │ let v21 : float = v19 + v20 │
00:00:37 #3739 [Verbose] > │ let v22 : float = 0.0 * v11 │
00:00:37 #3740 [Verbose] > │ let v23 : float = v21 + v22 │
00:00:37 #3741 [Verbose] > │ let v24 : float = v23 * v9 │
00:00:37 #3742 [Verbose] > │ let v25 : float = v23 * v10 │
00:00:37 #3743 [Verbose] > │ let v26 : float = v23 * v11 │
00:00:37 #3744 [Verbose] > │ let v27 : float = -1.0 * v24 │
00:00:37 #3745 [Verbose] > │ let v28 : float = -1.0 * v25 │
00:00:37 #3746 [Verbose] > │ let v29 : float = -1.0 * v26 │
00:00:37 #3747 [Verbose] > │ let v30 : float = 10.0 + v27 │
00:00:37 #3748 [Verbose] > │ let v31 : float = v18 * v30 │
00:00:37 #3749 [Verbose] > │ let v32 : float = v18 * v28 │
00:00:37 #3750 [Verbose] > │ let v33 : float = v18 * v29 │
00:00:37 #3751 [Verbose] > │ let v34 : float = v31 / v1 │
00:00:37 #3752 [Verbose] > │ let v35 : float = v32 / v1 │
00:00:37 #3753 [Verbose] > │ let v36 : float = v33 / v1 │
00:00:37 #3754 [Verbose] > │ struct (0.0, 0.0, v6, v7, v8, 1.0, v34, v35, v36) │
00:00:37 #3755 [Verbose] > │ and method2 (v0 : (struct (float * float * float * float * float * float * │
00:00:37 #3756 [Verbose] > │ float * float * float) -> struct (float * float * float * float * float * │
00:00:37 #3757 [Verbose] > │ float * float * float * float)), v1 : float, v2 : float, v3 : float, v4 : │
00:00:37 #3758 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float, v9 : float, v10 : │
00:00:37 #3759 [Verbose] > │ int32) : struct (float * float * float * float * float * float * float * │
00:00:37 #3760 [Verbose] > │ float * float) = │
00:00:37 #3761 [Verbose] > │ let v11 : bool = v10 <= 0 │
00:00:37 #3762 [Verbose] > │ if v11 then │
00:00:37 #3763 [Verbose] > │ struct (v1, v2, v3, v4, v5, v6, v7, v8, v9) │
00:00:37 #3764 [Verbose] > │ else │
00:00:37 #3765 [Verbose] > │ let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 │
00:00:37 #3766 [Verbose] > │ : float, v17 : float, v18 : float, v19 : float, v20 : float) = v0 struct │
00:00:37 #3767 [Verbose] > │ (v1, v2, v3, v4, v5, v6, v7, v8, v9) │
00:00:37 #3768 [Verbose] > │ let v21 : int32 = v10 - 1 │
00:00:37 #3769 [Verbose] > │ method2(v0, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21) │
00:00:37 #3770 [Verbose] > │ and method3 (v0 : UH0, v1 : UH0) : UH0 = │
00:00:37 #3771 [Verbose] > │ match v0 with │
00:00:37 #3772 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:37 #3773 [Verbose] > │ let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1) │
00:00:37 #3774 [Verbose] > │ method3(v11, v12) │
00:00:37 #3775 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:37 #3776 [Verbose] > │ v1 │
00:00:37 #3777 [Verbose] > │ and method1 (v0 : (struct (float * float * float * float * float * float * │
00:00:37 #3778 [Verbose] > │ float * float * float) -> struct (float * float * float * float * float * │
00:00:37 #3779 [Verbose] > │ float * float * float * float)), v1 : UH0, v2 : int32) : UH0 = │
00:00:37 #3780 [Verbose] > │ let v3 : float = 0.0 │
00:00:37 #3781 [Verbose] > │ let v4 : float = 1.0 │
00:00:37 #3782 [Verbose] > │ let v5 : float = 0.0 │
00:00:37 #3783 [Verbose] > │ let v6 : float = 0.0 │
00:00:37 #3784 [Verbose] > │ let v7 : float = 0.0 │
00:00:37 #3785 [Verbose] > │ let v8 : float = 0.0 │
00:00:37 #3786 [Verbose] > │ let v9 : float = 0.0 │
00:00:37 #3787 [Verbose] > │ let v10 : float = 0.0 │
00:00:37 #3788 [Verbose] > │ let v11 : float = 0.0 │
00:00:37 #3789 [Verbose] > │ let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 : │
00:00:37 #3790 [Verbose] > │ float, v17 : float, v18 : float, v19 : float, v20 : float) = method2(v0, v3, │
00:00:37 #3791 [Verbose] > │ v4, v5, v6, v7, v8, v9, v10, v11, v2) │
00:00:37 #3792 [Verbose] > │ let v21 : bool = v17 <= 31557600.0 │
00:00:37 #3793 [Verbose] > │ if v21 then │
00:00:37 #3794 [Verbose] > │ let v22 : UH0 = UH0_0(v12, v13, v14, v15, v16, v17, v18, v19, v20, │
00:00:37 #3795 [Verbose] > │ v1) │
00:00:37 #3796 [Verbose] > │ let v23 : int32 = v2 + 1 │
00:00:37 #3797 [Verbose] > │ method1(v0, v22, v23) │
00:00:37 #3798 [Verbose] > │ else │
00:00:37 #3799 [Verbose] > │ let v25 : UH0 = UH0_1 │
00:00:37 #3800 [Verbose] > │ method3(v1, v25) │
00:00:37 #3801 [Verbose] > │ and method4 (v0 : UH0, v1 : UH1) : UH1 = │
00:00:37 #3802 [Verbose] > │ match v0 with │
00:00:37 #3803 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:37 #3804 [Verbose] > │ let v12 : UH1 = method4(v11, v1) │
00:00:37 #3805 [Verbose] > │ let v13 : float = v7 / 31557600.0 │
00:00:37 #3806 [Verbose] > │ let v14 : float = v8 / 299792458.0 │
00:00:37 #3807 [Verbose] > │ UH1_0(v13, v14, v12) │
00:00:37 #3808 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:37 #3809 [Verbose] > │ v1 │
00:00:37 #3810 [Verbose] > │ and method5 (v0 : UH1, v1 : UH2, v2 : UH2) : struct (UH2 * UH2) = │
00:00:37 #3811 [Verbose] > │ match v0 with │
00:00:37 #3812 [Verbose] > │ | UH1_0(v3, v4, v5) -> (* Cons *) │
00:00:37 #3813 [Verbose] > │ let v6 : UH2 = UH2_0(v3, v1) │
00:00:37 #3814 [Verbose] > │ let v7 : UH2 = UH2_0(v4, v2) │
00:00:37 #3815 [Verbose] > │ method5(v5, v6, v7) │
00:00:37 #3816 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:37 #3817 [Verbose] > │ struct (v1, v2) │
00:00:37 #3818 [Verbose] > │ and method6 (v0 : UH2, v1 : UH2) : UH2 = │
00:00:37 #3819 [Verbose] > │ match v0 with │
00:00:37 #3820 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:00:37 #3821 [Verbose] > │ let v4 : UH2 = UH2_0(v2, v1) │
00:00:37 #3822 [Verbose] > │ method6(v3, v4) │
00:00:37 #3823 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:37 #3824 [Verbose] > │ v1 │
00:00:37 #3825 [Verbose] > │ and method7 (v0 : (struct (float * float * float * float * float * float * │
00:00:37 #3826 [Verbose] > │ float * float * float) -> struct (float * float * float * float * float * │
00:00:37 #3827 [Verbose] > │ float * float * float * float)), v1 : UH0, v2 : int32) : UH0 = │
00:00:37 #3828 [Verbose] > │ let v3 : float = 0.0 │
00:00:37 #3829 [Verbose] > │ let v4 : float = 1.0 │
00:00:37 #3830 [Verbose] > │ let v5 : float = 0.0 │
00:00:37 #3831 [Verbose] > │ let v6 : float = 0.0 │
00:00:37 #3832 [Verbose] > │ let v7 : float = 0.0 │
00:00:37 #3833 [Verbose] > │ let v8 : float = 0.0 │
00:00:37 #3834 [Verbose] > │ let v9 : float = 0.0 │
00:00:37 #3835 [Verbose] > │ let v10 : float = 0.0 │
00:00:37 #3836 [Verbose] > │ let v11 : float = 0.0 │
00:00:37 #3837 [Verbose] > │ let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 : │
00:00:37 #3838 [Verbose] > │ float, v17 : float, v18 : float, v19 : float, v20 : float) = method2(v0, v3, │
00:00:38 #3839 [Verbose] > │ v4, v5, v6, v7, v8, v9, v10, v11, v2) │
00:00:38 #3840 [Verbose] > │ let v21 : bool = v17 <= 31557600.0 │
00:00:38 #3841 [Verbose] > │ if v21 then │
00:00:38 #3842 [Verbose] > │ let v22 : UH0 = UH0_0(v12, v13, v14, v15, v16, v17, v18, v19, v20, │
00:00:38 #3843 [Verbose] > │ v1) │
00:00:38 #3844 [Verbose] > │ let v23 : int32 = v2 + 1 │
00:00:38 #3845 [Verbose] > │ method7(v0, v22, v23) │
00:00:38 #3846 [Verbose] > │ else │
00:00:38 #3847 [Verbose] > │ let v25 : UH0 = UH0_1 │
00:00:38 #3848 [Verbose] > │ method3(v1, v25) │
00:00:38 #3849 [Verbose] > │ and method8 (v0 : UH0, v1 : UH1) : UH1 = │
00:00:38 #3850 [Verbose] > │ match v0 with │
00:00:38 #3851 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:38 #3852 [Verbose] > │ let v12 : UH1 = method8(v11, v1) │
00:00:38 #3853 [Verbose] > │ let v13 : float = v7 / 31557600.0 │
00:00:38 #3854 [Verbose] > │ let v14 : float = v8 / 299792458.0 │
00:00:38 #3855 [Verbose] > │ UH1_0(v13, v14, v12) │
00:00:38 #3856 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:38 #3857 [Verbose] > │ v1 │
00:00:38 #3858 [Verbose] > │ and method10 (v0 : UH2, v1 : int32) : int32 = │
00:00:38 #3859 [Verbose] > │ match v0 with │
00:00:38 #3860 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:00:38 #3861 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:38 #3862 [Verbose] > │ method10(v3, v4) │
00:00:38 #3863 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:38 #3864 [Verbose] > │ v1 │
00:00:38 #3865 [Verbose] > │ and method11 (v0 : (float []), v1 : UH2, v2 : int32) : int32 = │
00:00:38 #3866 [Verbose] > │ match v1 with │
00:00:38 #3867 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:00:38 #3868 [Verbose] > │ v0.[int v2] <- v3 │
00:00:38 #3869 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:38 #3870 [Verbose] > │ method11(v0, v4, v5) │
00:00:38 #3871 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:38 #3872 [Verbose] > │ v2 │
00:00:38 #3873 [Verbose] > │ and method9 (v0 : UH2) : (float []) = │
00:00:38 #3874 [Verbose] > │ let v1 : int32 = 0 │
00:00:38 #3875 [Verbose] > │ let v2 : int32 = method10(v0, v1) │
00:00:38 #3876 [Verbose] > │ let v3 : (float []) = Array.zeroCreate<float> (v2) │
00:00:38 #3877 [Verbose] > │ let v4 : int32 = 0 │
00:00:38 #3878 [Verbose] > │ let v5 : int32 = method11(v3, v0, v4) │
00:00:38 #3879 [Verbose] > │ v3 │
00:00:38 #3880 [Verbose] > │ and method12 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:38 #3881 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:38 #3882 [Verbose] > │ v0 │
00:00:38 #3883 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:38 #3884 [Verbose] > │ []) * (float [])) [])) = │
00:00:38 #3885 [Verbose] > │ let v0 : ((struct (float * float * float * float * float * float * float │
00:00:38 #3886 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:38 #3887 [Verbose] > │ float * float * float)) -> (struct (float * float * float * float * float * │
00:00:38 #3888 [Verbose] > │ float * float * float * float) -> struct (float * float * float * float * │
00:00:38 #3889 [Verbose] > │ float * float * float * float * float))) = closure0() │
00:00:38 #3890 [Verbose] > │ let v1 : (struct (float * float * float * float * float * float * float │
00:00:38 #3891 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:38 #3892 [Verbose] > │ float * float * float)) = closure2() │
00:00:38 #3893 [Verbose] > │ let v2 : (struct (float * float * float * float * float * float * float │
00:00:38 #3894 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:38 #3895 [Verbose] > │ float * float * float)) = v0 v1 │
00:00:38 #3896 [Verbose] > │ let v3 : (struct (float * float * float * float * float * float * float │
00:00:38 #3897 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:38 #3898 [Verbose] > │ float * float * float)) = closure3() │
00:00:38 #3899 [Verbose] > │ let v4 : (struct (float * float * float * float * float * float * float │
00:00:38 #3900 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:38 #3901 [Verbose] > │ float * float * float)) = v0 v3 │
00:00:38 #3902 [Verbose] > │ let v5 : UH0 = UH0_1 │
00:00:38 #3903 [Verbose] > │ let v6 : int32 = 0 │
00:00:38 #3904 [Verbose] > │ let v7 : UH0 = method1(v2, v5, v6) │
00:00:38 #3905 [Verbose] > │ let v8 : UH1 = UH1_1 │
00:00:38 #3906 [Verbose] > │ let v9 : UH1 = method4(v7, v8) │
00:00:38 #3907 [Verbose] > │ let v10 : UH2 = UH2_1 │
00:00:38 #3908 [Verbose] > │ let v11 : UH2 = UH2_1 │
00:00:38 #3909 [Verbose] > │ let struct (v12 : UH2, v13 : UH2) = method5(v9, v10, v11) │
00:00:38 #3910 [Verbose] > │ let v14 : UH2 = UH2_1 │
00:00:38 #3911 [Verbose] > │ let v15 : UH2 = method6(v12, v14) │
00:00:38 #3912 [Verbose] > │ let v16 : UH2 = UH2_1 │
00:00:38 #3913 [Verbose] > │ let v17 : UH2 = method6(v13, v16) │
00:00:38 #3914 [Verbose] > │ let v18 : UH0 = UH0_1 │
00:00:38 #3915 [Verbose] > │ let v19 : int32 = 0 │
00:00:38 #3916 [Verbose] > │ let v20 : UH0 = method7(v4, v18, v19) │
00:00:38 #3917 [Verbose] > │ let v21 : UH1 = UH1_1 │
00:00:38 #3918 [Verbose] > │ let v22 : UH1 = method8(v20, v21) │
00:00:38 #3919 [Verbose] > │ let v23 : UH2 = UH2_1 │
00:00:38 #3920 [Verbose] > │ let v24 : UH2 = UH2_1 │
00:00:38 #3921 [Verbose] > │ let struct (v25 : UH2, v26 : UH2) = method5(v22, v23, v24) │
00:00:38 #3922 [Verbose] > │ let v27 : UH2 = UH2_1 │
00:00:38 #3923 [Verbose] > │ let v28 : UH2 = method6(v25, v27) │
00:00:38 #3924 [Verbose] > │ let v29 : UH2 = UH2_1 │
00:00:38 #3925 [Verbose] > │ let v30 : UH2 = method6(v26, v29) │
00:00:38 #3926 [Verbose] > │ let v31 : (float []) = method9(v15) │
00:00:38 #3927 [Verbose] > │ let v32 : (float []) = method9(v17) │
00:00:38 #3928 [Verbose] > │ let v33 : (float []) = method9(v30) │
00:00:38 #3929 [Verbose] > │ let v34 : string = "newtonian" │
00:00:38 #3930 [Verbose] > │ let v35 : string = "relativistic" │
00:00:38 #3931 [Verbose] > │ let v36 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:38 #3932 [Verbose] > │ (v34, v31, v32); struct (v35, v31, v33)|] │
00:00:38 #3933 [Verbose] > │ let v37 : (struct (string * (float []) * (float [])) []) = method12(v36) │
00:00:38 #3934 [Verbose] > │ let v38 : string = "response to a constant force" │
00:00:38 #3935 [Verbose] > │ let v39 : string = "time (years)" │
00:00:38 #3936 [Verbose] > │ let v40 : string = "velocity (multiples of c)" │
00:00:38 #3937 [Verbose] > │ struct (v38, v39, v40, v37) │
00:00:38 #3938 [Verbose] > │ method0() │
00:00:38 #3939 [Verbose] > │ │
00:00:38 #3940 [Verbose] > │ │
00:00:38 #3941 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 #3942 [Verbose] >
00:00:38 #3943 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:38 #3944 [Verbose] > inl uniform_lorentz_force v_e v_b (st : particle_state) =
00:00:38 #3945 [Verbose] > st.charge *^ (v_e ^+^ st.velocity >< v_b)
00:00:38 #3946 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0044-0240-4073-44d51bfbc0cb\main.spi
00:00:38 #3947 [Verbose] >
00:00:38 #3948 [Verbose] > ╭─[ 183.74ms - stdout ]────────────────────────────────────────────────────────╮
00:00:38 #3949 [Verbose] > │ () │
00:00:38 #3950 [Verbose] > │ │
00:00:38 #3951 [Verbose] > │ │
00:00:38 #3952 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 #3953 [Verbose] >
00:00:38 #3954 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:38 #3955 [Verbose] > // // test
00:00:38 #3956 [Verbose] >
00:00:38 #3957 [Verbose] > inl c : f64 = 299792458
00:00:38 #3958 [Verbose] > inl ~method = runge_kutta_4 0.000000001
00:00:38 #3959 [Verbose] > inl forces = [[ uniform_lorentz_force (zero_vec ()) (k_hat ()) ]]
00:00:38 #3960 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:38 #3961 [Verbose] > inl initial_state =
00:00:38 #3962 [Verbose] > particle_state { default_particle_state' with
00:00:38 #3963 [Verbose] > mass = 0.000000000000000000000000001672621898
00:00:38 #3964 [Verbose] > charge = 0.0000000000000000001602176621
00:00:38 #3965 [Verbose] > velocity = 0.8 *^ (c *^ j_hat ())
00:00:38 #3966 [Verbose] > }
00:00:38 #3967 [Verbose] >
00:00:38 #3968 [Verbose] > inl newton_states = solver_ method (newton_second_ps forces) initial_state
00:00:38 #3969 [Verbose] > inl relativity_states = solver_ method (relativity_ps forces) initial_state
00:00:38 #3970 [Verbose] >
00:00:38 #3971 [Verbose] > inl newton_x, newton_y =
00:00:38 #3972 [Verbose] > newton_states
00:00:38 #3973 [Verbose] > >> Some
00:00:38 #3974 [Verbose] > |> seq.take_while_ (fun (particle_state st) i => i < 100i32)
00:00:38 #3975 [Verbose] > |> listm.map (fun (particle_state st) => st.pos_vec.x, st.pos_vec.y)
00:00:38 #3976 [Verbose] > |> listm'.unzip
00:00:38 #3977 [Verbose] >
00:00:38 #3978 [Verbose] > inl relativity_x, relativity_y =
00:00:38 #3979 [Verbose] > relativity_states
00:00:38 #3980 [Verbose] > >> Some
00:00:38 #3981 [Verbose] > |> seq.take_while_ (fun (particle_state st) i => i < 165i32)
00:00:38 #3982 [Verbose] > |> listm.map (fun (particle_state st) => st.pos_vec.x, st.pos_vec.y)
00:00:38 #3983 [Verbose] > |> listm'.unzip
00:00:38 #3984 [Verbose] >
00:00:38 #3985 [Verbose] > inl newton_x : a i32 _ = newton_x |> listm.toArray
00:00:38 #3986 [Verbose] > inl newton_y : a i32 _ = newton_y |> listm.toArray
00:00:38 #3987 [Verbose] >
00:00:38 #3988 [Verbose] > inl relativity_x : a i32 _ = relativity_x |> listm.toArray
00:00:38 #3989 [Verbose] > inl relativity_y : a i32 _ = relativity_y |> listm.toArray
00:00:38 #3990 [Verbose] >
00:00:38 #3991 [Verbose] > "proton in a 1-t magnetic field",
00:00:38 #3992 [Verbose] > "x (m)",
00:00:38 #3993 [Verbose] > "y (m)",
00:00:38 #3994 [Verbose] > ;[[
00:00:38 #3995 [Verbose] > "newtonian", newton_x, newton_y
00:00:38 #3996 [Verbose] > "relativistic", relativity_x, relativity_y
00:00:38 #3997 [Verbose] > ]]
00:00:38 #3998 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0044-0259-5914-573cf675208d\main.spi
00:00:38 #3999 [Verbose] >
00:00:38 #4000 [Verbose] > ╭─[ 482.48ms - return value ]──────────────────────────────────────────────────╮
00:00:38 #4001 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:38 #4002 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:38 #4003 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:38 #4004 [Verbose] > │ stroke="none"/> │
00:00:38 #4005 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:38 #4006 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:38 #4007 [Verbose] > │ fill="#FFFFFF"> │
00:00:38 #4008 [Verbose] > │ proton in a 1-t magnetic field │
00:00:38 #4009 [Verbose] > │ </text> │
00:00:38 #4010 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="58" y1="424" x2="58" │
00:00:38 #4011 [Verbose] > │ y2="75"/> │
00:00:38 #4012 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:38 #4013 [Verbose] > │ y2="75"/> │
00:00:38 #4014 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="81" y1="424" x2="81" │
00:00:38 #4015 [Verbose] > │ y2="75"/> │
00:00:38 #4016 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="93" y1="424" x2="93" │
00:00:38 #4017 [Verbose] > │ y2="75"/> │
00:00:38 #4018 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x... │
00:00:38 #4019 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 #4020 [Verbose] >
00:00:38 #4021 [Verbose] > ╭─[ 496.78ms - stdout ]────────────────────────────────────────────────────────╮
00:00:38 #4022 [Verbose] > │ type UH0 = │
00:00:38 #4023 [Verbose] > │ | UH0_0 of float * float * float * float * float * float * float * float │
00:00:38 #4024 [Verbose] > │ * float * UH0 │
00:00:38 #4025 [Verbose] > │ | UH0_1 │
00:00:38 #4026 [Verbose] > │ and UH1 = │
00:00:38 #4027 [Verbose] > │ | UH1_0 of float * float * UH1 │
00:00:38 #4028 [Verbose] > │ | UH1_1 │
00:00:38 #4029 [Verbose] > │ and UH2 = │
00:00:38 #4030 [Verbose] > │ | UH2_0 of float * UH2 │
00:00:38 #4031 [Verbose] > │ | UH2_1 │
00:00:38 #4032 [Verbose] > │ let rec closure1 (v0 : (struct (float * float * float * float * float * │
00:00:38 #4033 [Verbose] > │ float * float * float * float) -> struct (float * float * float * float * │
00:00:38 #4034 [Verbose] > │ float * float * float * float * float))) struct (v1 : float, v2 : float, v3 │
00:00:38 #4035 [Verbose] > │ : float, v4 : float, v5 : float, v6 : float, v7 : float, v8 : float, v9 : │
00:00:38 #4036 [Verbose] > │ float) : struct (float * float * float * float * float * float * float * │
00:00:38 #4037 [Verbose] > │ float * float) = │
00:00:38 #4038 [Verbose] > │ let struct (v10 : float, v11 : float, v12 : float, v13 : float, v14 : │
00:00:38 #4039 [Verbose] > │ float, v15 : float, v16 : float, v17 : float, v18 : float) = v0 struct (v1, │
00:00:38 #4040 [Verbose] > │ v2, v3, v4, v5, v6, v7, v8, v9) │
00:00:38 #4041 [Verbose] > │ let v19 : float = v15 * 5E-10 │
00:00:38 #4042 [Verbose] > │ let v20 : float = v6 + v19 │
00:00:38 #4043 [Verbose] > │ let v21 : float = 5E-10 * v12 │
00:00:38 #4044 [Verbose] > │ let v22 : float = 5E-10 * v13 │
00:00:38 #4045 [Verbose] > │ let v23 : float = 5E-10 * v14 │
00:00:38 #4046 [Verbose] > │ let v24 : float = v3 + v21 │
00:00:38 #4047 [Verbose] > │ let v25 : float = v4 + v22 │
00:00:38 #4048 [Verbose] > │ let v26 : float = v5 + v23 │
00:00:38 #4049 [Verbose] > │ let v27 : float = 5E-10 * v16 │
00:00:38 #4050 [Verbose] > │ let v28 : float = 5E-10 * v17 │
00:00:38 #4051 [Verbose] > │ let v29 : float = 5E-10 * v18 │
00:00:38 #4052 [Verbose] > │ let v30 : float = v7 + v27 │
00:00:38 #4053 [Verbose] > │ let v31 : float = v8 + v28 │
00:00:38 #4054 [Verbose] > │ let v32 : float = v9 + v29 │
00:00:38 #4055 [Verbose] > │ let struct (v33 : float, v34 : float, v35 : float, v36 : float, v37 : │
00:00:38 #4056 [Verbose] > │ float, v38 : float, v39 : float, v40 : float, v41 : float) = v0 struct (v1, │
00:00:38 #4057 [Verbose] > │ v2, v24, v25, v26, v20, v30, v31, v32) │
00:00:38 #4058 [Verbose] > │ let v42 : float = v38 * 5E-10 │
00:00:38 #4059 [Verbose] > │ let v43 : float = v6 + v42 │
00:00:38 #4060 [Verbose] > │ let v44 : float = 5E-10 * v35 │
00:00:38 #4061 [Verbose] > │ let v45 : float = 5E-10 * v36 │
00:00:38 #4062 [Verbose] > │ let v46 : float = 5E-10 * v37 │
00:00:38 #4063 [Verbose] > │ let v47 : float = v3 + v44 │
00:00:38 #4064 [Verbose] > │ let v48 : float = v4 + v45 │
00:00:38 #4065 [Verbose] > │ let v49 : float = v5 + v46 │
00:00:38 #4066 [Verbose] > │ let v50 : float = 5E-10 * v39 │
00:00:38 #4067 [Verbose] > │ let v51 : float = 5E-10 * v40 │
00:00:38 #4068 [Verbose] > │ let v52 : float = 5E-10 * v41 │
00:00:38 #4069 [Verbose] > │ let v53 : float = v7 + v50 │
00:00:38 #4070 [Verbose] > │ let v54 : float = v8 + v51 │
00:00:38 #4071 [Verbose] > │ let v55 : float = v9 + v52 │
00:00:38 #4072 [Verbose] > │ let struct (v56 : float, v57 : float, v58 : float, v59 : float, v60 : │
00:00:38 #4073 [Verbose] > │ float, v61 : float, v62 : float, v63 : float, v64 : float) = v0 struct (v1, │
00:00:38 #4074 [Verbose] > │ v2, v47, v48, v49, v43, v53, v54, v55) │
00:00:38 #4075 [Verbose] > │ let v65 : float = v61 * 1E-09 │
00:00:38 #4076 [Verbose] > │ let v66 : float = v6 + v65 │
00:00:38 #4077 [Verbose] > │ let v67 : float = 1E-09 * v58 │
00:00:38 #4078 [Verbose] > │ let v68 : float = 1E-09 * v59 │
00:00:38 #4079 [Verbose] > │ let v69 : float = 1E-09 * v60 │
00:00:38 #4080 [Verbose] > │ let v70 : float = v3 + v67 │
00:00:38 #4081 [Verbose] > │ let v71 : float = v4 + v68 │
00:00:38 #4082 [Verbose] > │ let v72 : float = v5 + v69 │
00:00:38 #4083 [Verbose] > │ let v73 : float = 1E-09 * v62 │
00:00:38 #4084 [Verbose] > │ let v74 : float = 1E-09 * v63 │
00:00:38 #4085 [Verbose] > │ let v75 : float = 1E-09 * v64 │
00:00:38 #4086 [Verbose] > │ let v76 : float = v7 + v73 │
00:00:38 #4087 [Verbose] > │ let v77 : float = v8 + v74 │
00:00:38 #4088 [Verbose] > │ let v78 : float = v9 + v75 │
00:00:38 #4089 [Verbose] > │ let struct (v79 : float, v80 : float, v81 : float, v82 : float, v83 : │
00:00:38 #4090 [Verbose] > │ float, v84 : float, v85 : float, v86 : float, v87 : float) = v0 struct (v1, │
00:00:38 #4091 [Verbose] > │ v2, v70, v71, v72, v66, v76, v77, v78) │
00:00:38 #4092 [Verbose] > │ let v88 : float = v10 + v33 │
00:00:38 #4093 [Verbose] > │ let v89 : float = v11 + v34 │
00:00:38 #4094 [Verbose] > │ let v90 : float = v15 + v38 │
00:00:38 #4095 [Verbose] > │ let v91 : float = v12 + v35 │
00:00:38 #4096 [Verbose] > │ let v92 : float = v13 + v36 │
00:00:38 #4097 [Verbose] > │ let v93 : float = v14 + v37 │
00:00:38 #4098 [Verbose] > │ let v94 : float = v16 + v39 │
00:00:38 #4099 [Verbose] > │ let v95 : float = v17 + v40 │
00:00:38 #4100 [Verbose] > │ let v96 : float = v18 + v41 │
00:00:38 #4101 [Verbose] > │ let v97 : float = v88 + v33 │
00:00:38 #4102 [Verbose] > │ let v98 : float = v89 + v34 │
00:00:38 #4103 [Verbose] > │ let v99 : float = v90 + v38 │
00:00:38 #4104 [Verbose] > │ let v100 : float = v91 + v35 │
00:00:38 #4105 [Verbose] > │ let v101 : float = v92 + v36 │
00:00:38 #4106 [Verbose] > │ let v102 : float = v93 + v37 │
00:00:38 #4107 [Verbose] > │ let v103 : float = v94 + v39 │
00:00:38 #4108 [Verbose] > │ let v104 : float = v95 + v40 │
00:00:38 #4109 [Verbose] > │ let v105 : float = v96 + v41 │
00:00:38 #4110 [Verbose] > │ let v106 : float = v97 + v56 │
00:00:38 #4111 [Verbose] > │ let v107 : float = v98 + v57 │
00:00:38 #4112 [Verbose] > │ let v108 : float = v99 + v61 │
00:00:38 #4113 [Verbose] > │ let v109 : float = v100 + v58 │
00:00:38 #4114 [Verbose] > │ let v110 : float = v101 + v59 │
00:00:38 #4115 [Verbose] > │ let v111 : float = v102 + v60 │
00:00:38 #4116 [Verbose] > │ let v112 : float = v103 + v62 │
00:00:38 #4117 [Verbose] > │ let v113 : float = v104 + v63 │
00:00:38 #4118 [Verbose] > │ let v114 : float = v105 + v64 │
00:00:38 #4119 [Verbose] > │ let v115 : float = v106 + v56 │
00:00:38 #4120 [Verbose] > │ let v116 : float = v107 + v57 │
00:00:38 #4121 [Verbose] > │ let v117 : float = v108 + v61 │
00:00:38 #4122 [Verbose] > │ let v118 : float = v109 + v58 │
00:00:38 #4123 [Verbose] > │ let v119 : float = v110 + v59 │
00:00:38 #4124 [Verbose] > │ let v120 : float = v111 + v60 │
00:00:38 #4125 [Verbose] > │ let v121 : float = v112 + v62 │
00:00:38 #4126 [Verbose] > │ let v122 : float = v113 + v63 │
00:00:38 #4127 [Verbose] > │ let v123 : float = v114 + v64 │
00:00:38 #4128 [Verbose] > │ let v124 : float = v115 + v79 │
00:00:38 #4129 [Verbose] > │ let v125 : float = v116 + v80 │
00:00:38 #4130 [Verbose] > │ let v126 : float = v117 + v84 │
00:00:38 #4131 [Verbose] > │ let v127 : float = v118 + v81 │
00:00:38 #4132 [Verbose] > │ let v128 : float = v119 + v82 │
00:00:38 #4133 [Verbose] > │ let v129 : float = v120 + v83 │
00:00:38 #4134 [Verbose] > │ let v130 : float = v121 + v85 │
00:00:38 #4135 [Verbose] > │ let v131 : float = v122 + v86 │
00:00:38 #4136 [Verbose] > │ let v132 : float = v123 + v87 │
00:00:38 #4137 [Verbose] > │ let v133 : float = v126 * 1.6666666666666669E-10 │
00:00:38 #4138 [Verbose] > │ let v134 : float = v6 + v133 │
00:00:38 #4139 [Verbose] > │ let v135 : float = 1.6666666666666669E-10 * v127 │
00:00:38 #4140 [Verbose] > │ let v136 : float = 1.6666666666666669E-10 * v128 │
00:00:38 #4141 [Verbose] > │ let v137 : float = 1.6666666666666669E-10 * v129 │
00:00:38 #4142 [Verbose] > │ let v138 : float = v3 + v135 │
00:00:38 #4143 [Verbose] > │ let v139 : float = v4 + v136 │
00:00:38 #4144 [Verbose] > │ let v140 : float = v5 + v137 │
00:00:38 #4145 [Verbose] > │ let v141 : float = 1.6666666666666669E-10 * v130 │
00:00:38 #4146 [Verbose] > │ let v142 : float = 1.6666666666666669E-10 * v131 │
00:00:38 #4147 [Verbose] > │ let v143 : float = 1.6666666666666669E-10 * v132 │
00:00:38 #4148 [Verbose] > │ let v144 : float = v7 + v141 │
00:00:38 #4149 [Verbose] > │ let v145 : float = v8 + v142 │
00:00:38 #4150 [Verbose] > │ let v146 : float = v9 + v143 │
00:00:38 #4151 [Verbose] > │ struct (v1, v2, v138, v139, v140, v134, v144, v145, v146) │
00:00:38 #4152 [Verbose] > │ and closure0 () (v0 : (struct (float * float * float * float * float * float │
00:00:38 #4153 [Verbose] > │ * float * float * float) -> struct (float * float * float * float * float * │
00:00:38 #4154 [Verbose] > │ float * float * float * float))) : (struct (float * float * float * float * │
00:00:38 #4155 [Verbose] > │ float * float * float * float * float) -> struct (float * float * float * │
00:00:38 #4156 [Verbose] > │ float * float * float * float * float * float)) = │
00:00:38 #4157 [Verbose] > │ closure1(v0) │
00:00:38 #4158 [Verbose] > │ and closure2 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │
00:00:38 #4159 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:38 #4160 [Verbose] > │ float * float * float * float * float * float * float * float) = │
00:00:38 #4161 [Verbose] > │ let v9 : float = v8 * 0.0 │
00:00:38 #4162 [Verbose] > │ let v10 : float = v7 - v9 │
00:00:38 #4163 [Verbose] > │ let v11 : float = v9 - v6 │
00:00:38 #4164 [Verbose] > │ let v12 : float = v6 * 0.0 │
00:00:38 #4165 [Verbose] > │ let v13 : float = v7 * 0.0 │
00:00:38 #4166 [Verbose] > │ let v14 : float = v12 - v13 │
00:00:38 #4167 [Verbose] > │ let v15 : float = v0 * v10 │
00:00:38 #4168 [Verbose] > │ let v16 : float = v0 * v11 │
00:00:38 #4169 [Verbose] > │ let v17 : float = v0 * v14 │
00:00:38 #4170 [Verbose] > │ let v18 : float = v15 / v1 │
00:00:38 #4171 [Verbose] > │ let v19 : float = v16 / v1 │
00:00:38 #4172 [Verbose] > │ let v20 : float = v17 / v1 │
00:00:38 #4173 [Verbose] > │ struct (0.0, 0.0, v6, v7, v8, 1.0, v18, v19, v20) │
00:00:38 #4174 [Verbose] > │ and closure3 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │
00:00:38 #4175 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:38 #4176 [Verbose] > │ float * float * float * float * float * float * float * float) = │
00:00:38 #4177 [Verbose] > │ let v9 : float = v8 * 0.0 │
00:00:38 #4178 [Verbose] > │ let v10 : float = v7 - v9 │
00:00:38 #4179 [Verbose] > │ let v11 : float = v9 - v6 │
00:00:38 #4180 [Verbose] > │ let v12 : float = v6 * 0.0 │
00:00:38 #4181 [Verbose] > │ let v13 : float = v7 * 0.0 │
00:00:38 #4182 [Verbose] > │ let v14 : float = v12 - v13 │
00:00:38 #4183 [Verbose] > │ let v15 : float = v0 * v10 │
00:00:38 #4184 [Verbose] > │ let v16 : float = v0 * v11 │
00:00:38 #4185 [Verbose] > │ let v17 : float = v0 * v14 │
00:00:38 #4186 [Verbose] > │ let v18 : float = v6 / 299792458.0 │
00:00:38 #4187 [Verbose] > │ let v19 : float = v7 / 299792458.0 │
00:00:38 #4188 [Verbose] > │ let v20 : float = v8 / 299792458.0 │
00:00:38 #4189 [Verbose] > │ let v21 : float = v18 * v18 │
00:00:38 #4190 [Verbose] > │ let v22 : float = v19 * v19 │
00:00:38 #4191 [Verbose] > │ let v23 : float = v21 + v22 │
00:00:38 #4192 [Verbose] > │ let v24 : float = v20 * v20 │
00:00:38 #4193 [Verbose] > │ let v25 : float = v23 + v24 │
00:00:38 #4194 [Verbose] > │ let v26 : float = 1.0 - v25 │
00:00:38 #4195 [Verbose] > │ let v27 : float = sqrt v26 │
00:00:38 #4196 [Verbose] > │ let v28 : float = v15 * v18 │
00:00:38 #4197 [Verbose] > │ let v29 : float = v16 * v19 │
00:00:38 #4198 [Verbose] > │ let v30 : float = v28 + v29 │
00:00:38 #4199 [Verbose] > │ let v31 : float = v17 * v20 │
00:00:38 #4200 [Verbose] > │ let v32 : float = v30 + v31 │
00:00:38 #4201 [Verbose] > │ let v33 : float = v32 * v18 │
00:00:38 #4202 [Verbose] > │ let v34 : float = v32 * v19 │
00:00:38 #4203 [Verbose] > │ let v35 : float = v32 * v20 │
00:00:38 #4204 [Verbose] > │ let v36 : float = -1.0 * v33 │
00:00:38 #4205 [Verbose] > │ let v37 : float = -1.0 * v34 │
00:00:38 #4206 [Verbose] > │ let v38 : float = -1.0 * v35 │
00:00:38 #4207 [Verbose] > │ let v39 : float = v15 + v36 │
00:00:38 #4208 [Verbose] > │ let v40 : float = v16 + v37 │
00:00:38 #4209 [Verbose] > │ let v41 : float = v17 + v38 │
00:00:38 #4210 [Verbose] > │ let v42 : float = v27 * v39 │
00:00:38 #4211 [Verbose] > │ let v43 : float = v27 * v40 │
00:00:38 #4212 [Verbose] > │ let v44 : float = v27 * v41 │
00:00:38 #4213 [Verbose] > │ let v45 : float = v42 / v1 │
00:00:38 #4214 [Verbose] > │ let v46 : float = v43 / v1 │
00:00:38 #4215 [Verbose] > │ let v47 : float = v44 / v1 │
00:00:38 #4216 [Verbose] > │ struct (0.0, 0.0, v6, v7, v8, 1.0, v45, v46, v47) │
00:00:38 #4217 [Verbose] > │ and method2 (v0 : (struct (float * float * float * float * float * float * │
00:00:38 #4218 [Verbose] > │ float * float * float) -> struct (float * float * float * float * float * │
00:00:38 #4219 [Verbose] > │ float * float * float * float)), v1 : float, v2 : float, v3 : float, v4 : │
00:00:38 #4220 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float, v9 : float, v10 : │
00:00:38 #4221 [Verbose] > │ int32) : struct (float * float * float * float * float * float * float * │
00:00:38 #4222 [Verbose] > │ float * float) = │
00:00:38 #4223 [Verbose] > │ let v11 : bool = v10 <= 0 │
00:00:38 #4224 [Verbose] > │ if v11 then │
00:00:38 #4225 [Verbose] > │ struct (v1, v2, v3, v4, v5, v6, v7, v8, v9) │
00:00:38 #4226 [Verbose] > │ else │
00:00:38 #4227 [Verbose] > │ let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 │
00:00:38 #4228 [Verbose] > │ : float, v17 : float, v18 : float, v19 : float, v20 : float) = v0 struct │
00:00:38 #4229 [Verbose] > │ (v1, v2, v3, v4, v5, v6, v7, v8, v9) │
00:00:38 #4230 [Verbose] > │ let v21 : int32 = v10 - 1 │
00:00:38 #4231 [Verbose] > │ method2(v0, v12, v13, v14, v15, v16, v17, v18, v19, v20, v21) │
00:00:38 #4232 [Verbose] > │ and method3 (v0 : UH0, v1 : UH0) : UH0 = │
00:00:38 #4233 [Verbose] > │ match v0 with │
00:00:38 #4234 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:38 #4235 [Verbose] > │ let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1) │
00:00:38 #4236 [Verbose] > │ method3(v11, v12) │
00:00:38 #4237 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:38 #4238 [Verbose] > │ v1 │
00:00:38 #4239 [Verbose] > │ and method1 (v0 : (struct (float * float * float * float * float * float * │
00:00:38 #4240 [Verbose] > │ float * float * float) -> struct (float * float * float * float * float * │
00:00:38 #4241 [Verbose] > │ float * float * float * float)), v1 : UH0, v2 : int32) : UH0 = │
00:00:38 #4242 [Verbose] > │ let v3 : float = 1.602176621E-19 │
00:00:38 #4243 [Verbose] > │ let v4 : float = 1.672621898E-27 │
00:00:38 #4244 [Verbose] > │ let v5 : float = 0.0 │
00:00:38 #4245 [Verbose] > │ let v6 : float = 0.0 │
00:00:38 #4246 [Verbose] > │ let v7 : float = 0.0 │
00:00:38 #4247 [Verbose] > │ let v8 : float = 0.0 │
00:00:38 #4248 [Verbose] > │ let v9 : float = 0.0 │
00:00:38 #4249 [Verbose] > │ let v10 : float = 239833966.4 │
00:00:38 #4250 [Verbose] > │ let v11 : float = 0.0 │
00:00:38 #4251 [Verbose] > │ let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 : │
00:00:38 #4252 [Verbose] > │ float, v17 : float, v18 : float, v19 : float, v20 : float) = method2(v0, v3, │
00:00:38 #4253 [Verbose] > │ v4, v5, v6, v7, v8, v9, v10, v11, v2) │
00:00:38 #4254 [Verbose] > │ let v21 : bool = v2 < 100 │
00:00:38 #4255 [Verbose] > │ if v21 then │
00:00:38 #4256 [Verbose] > │ let v22 : UH0 = UH0_0(v12, v13, v14, v15, v16, v17, v18, v19, v20, │
00:00:38 #4257 [Verbose] > │ v1) │
00:00:38 #4258 [Verbose] > │ let v23 : int32 = v2 + 1 │
00:00:38 #4259 [Verbose] > │ method1(v0, v22, v23) │
00:00:38 #4260 [Verbose] > │ else │
00:00:38 #4261 [Verbose] > │ let v25 : UH0 = UH0_1 │
00:00:38 #4262 [Verbose] > │ method3(v1, v25) │
00:00:38 #4263 [Verbose] > │ and method4 (v0 : UH0, v1 : UH1) : UH1 = │
00:00:38 #4264 [Verbose] > │ match v0 with │
00:00:38 #4265 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:38 #4266 [Verbose] > │ let v12 : UH1 = method4(v11, v1) │
00:00:38 #4267 [Verbose] > │ UH1_0(v4, v5, v12) │
00:00:38 #4268 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:38 #4269 [Verbose] > │ v1 │
00:00:38 #4270 [Verbose] > │ and method5 (v0 : UH1, v1 : UH2, v2 : UH2) : struct (UH2 * UH2) = │
00:00:38 #4271 [Verbose] > │ match v0 with │
00:00:38 #4272 [Verbose] > │ | UH1_0(v3, v4, v5) -> (* Cons *) │
00:00:38 #4273 [Verbose] > │ let v6 : UH2 = UH2_0(v3, v1) │
00:00:38 #4274 [Verbose] > │ let v7 : UH2 = UH2_0(v4, v2) │
00:00:38 #4275 [Verbose] > │ method5(v5, v6, v7) │
00:00:38 #4276 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:38 #4277 [Verbose] > │ struct (v1, v2) │
00:00:38 #4278 [Verbose] > │ and method6 (v0 : UH2, v1 : UH2) : UH2 = │
00:00:38 #4279 [Verbose] > │ match v0 with │
00:00:38 #4280 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:00:38 #4281 [Verbose] > │ let v4 : UH2 = UH2_0(v2, v1) │
00:00:38 #4282 [Verbose] > │ method6(v3, v4) │
00:00:38 #4283 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:38 #4284 [Verbose] > │ v1 │
00:00:38 #4285 [Verbose] > │ and method7 (v0 : (struct (float * float * float * float * float * float * │
00:00:38 #4286 [Verbose] > │ float * float * float) -> struct (float * float * float * float * float * │
00:00:38 #4287 [Verbose] > │ float * float * float * float)), v1 : UH0, v2 : int32) : UH0 = │
00:00:38 #4288 [Verbose] > │ let v3 : float = 1.602176621E-19 │
00:00:38 #4289 [Verbose] > │ let v4 : float = 1.672621898E-27 │
00:00:38 #4290 [Verbose] > │ let v5 : float = 0.0 │
00:00:38 #4291 [Verbose] > │ let v6 : float = 0.0 │
00:00:38 #4292 [Verbose] > │ let v7 : float = 0.0 │
00:00:38 #4293 [Verbose] > │ let v8 : float = 0.0 │
00:00:38 #4294 [Verbose] > │ let v9 : float = 0.0 │
00:00:38 #4295 [Verbose] > │ let v10 : float = 239833966.4 │
00:00:38 #4296 [Verbose] > │ let v11 : float = 0.0 │
00:00:38 #4297 [Verbose] > │ let struct (v12 : float, v13 : float, v14 : float, v15 : float, v16 : │
00:00:38 #4298 [Verbose] > │ float, v17 : float, v18 : float, v19 : float, v20 : float) = method2(v0, v3, │
00:00:38 #4299 [Verbose] > │ v4, v5, v6, v7, v8, v9, v10, v11, v2) │
00:00:38 #4300 [Verbose] > │ let v21 : bool = v2 < 165 │
00:00:38 #4301 [Verbose] > │ if v21 then │
00:00:38 #4302 [Verbose] > │ let v22 : UH0 = UH0_0(v12, v13, v14, v15, v16, v17, v18, v19, v20, │
00:00:38 #4303 [Verbose] > │ v1) │
00:00:38 #4304 [Verbose] > │ let v23 : int32 = v2 + 1 │
00:00:38 #4305 [Verbose] > │ method7(v0, v22, v23) │
00:00:38 #4306 [Verbose] > │ else │
00:00:38 #4307 [Verbose] > │ let v25 : UH0 = UH0_1 │
00:00:38 #4308 [Verbose] > │ method3(v1, v25) │
00:00:38 #4309 [Verbose] > │ and method8 (v0 : UH0, v1 : UH1) : UH1 = │
00:00:38 #4310 [Verbose] > │ match v0 with │
00:00:38 #4311 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:38 #4312 [Verbose] > │ let v12 : UH1 = method8(v11, v1) │
00:00:38 #4313 [Verbose] > │ UH1_0(v4, v5, v12) │
00:00:38 #4314 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:38 #4315 [Verbose] > │ v1 │
00:00:38 #4316 [Verbose] > │ and method10 (v0 : UH2, v1 : int32) : int32 = │
00:00:38 #4317 [Verbose] > │ match v0 with │
00:00:38 #4318 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:00:38 #4319 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:38 #4320 [Verbose] > │ method10(v3, v4) │
00:00:38 #4321 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:38 #4322 [Verbose] > │ v1 │
00:00:38 #4323 [Verbose] > │ and method11 (v0 : (float []), v1 : UH2, v2 : int32) : int32 = │
00:00:38 #4324 [Verbose] > │ match v1 with │
00:00:38 #4325 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:00:38 #4326 [Verbose] > │ v0.[int v2] <- v3 │
00:00:38 #4327 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:38 #4328 [Verbose] > │ method11(v0, v4, v5) │
00:00:38 #4329 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:38 #4330 [Verbose] > │ v2 │
00:00:38 #4331 [Verbose] > │ and method9 (v0 : UH2) : (float []) = │
00:00:38 #4332 [Verbose] > │ let v1 : int32 = 0 │
00:00:38 #4333 [Verbose] > │ let v2 : int32 = method10(v0, v1) │
00:00:38 #4334 [Verbose] > │ let v3 : (float []) = Array.zeroCreate<float> (v2) │
00:00:38 #4335 [Verbose] > │ let v4 : int32 = 0 │
00:00:38 #4336 [Verbose] > │ let v5 : int32 = method11(v3, v0, v4) │
00:00:38 #4337 [Verbose] > │ v3 │
00:00:38 #4338 [Verbose] > │ and method12 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:38 #4339 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:38 #4340 [Verbose] > │ v0 │
00:00:38 #4341 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:38 #4342 [Verbose] > │ []) * (float [])) [])) = │
00:00:38 #4343 [Verbose] > │ let v0 : ((struct (float * float * float * float * float * float * float │
00:00:38 #4344 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:38 #4345 [Verbose] > │ float * float * float)) -> (struct (float * float * float * float * float * │
00:00:38 #4346 [Verbose] > │ float * float * float * float) -> struct (float * float * float * float * │
00:00:38 #4347 [Verbose] > │ float * float * float * float * float))) = closure0() │
00:00:38 #4348 [Verbose] > │ let v1 : (struct (float * float * float * float * float * float * float │
00:00:38 #4349 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:38 #4350 [Verbose] > │ float * float * float)) = closure2() │
00:00:38 #4351 [Verbose] > │ let v2 : (struct (float * float * float * float * float * float * float │
00:00:38 #4352 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:38 #4353 [Verbose] > │ float * float * float)) = v0 v1 │
00:00:38 #4354 [Verbose] > │ let v3 : (struct (float * float * float * float * float * float * float │
00:00:38 #4355 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:38 #4356 [Verbose] > │ float * float * float)) = closure3() │
00:00:38 #4357 [Verbose] > │ let v4 : (struct (float * float * float * float * float * float * float │
00:00:38 #4358 [Verbose] > │ * float * float) -> struct (float * float * float * float * float * float * │
00:00:38 #4359 [Verbose] > │ float * float * float)) = v0 v3 │
00:00:38 #4360 [Verbose] > │ let v5 : UH0 = UH0_1 │
00:00:38 #4361 [Verbose] > │ let v6 : int32 = 0 │
00:00:38 #4362 [Verbose] > │ let v7 : UH0 = method1(v2, v5, v6) │
00:00:38 #4363 [Verbose] > │ let v8 : UH1 = UH1_1 │
00:00:38 #4364 [Verbose] > │ let v9 : UH1 = method4(v7, v8) │
00:00:38 #4365 [Verbose] > │ let v10 : UH2 = UH2_1 │
00:00:38 #4366 [Verbose] > │ let v11 : UH2 = UH2_1 │
00:00:38 #4367 [Verbose] > │ let struct (v12 : UH2, v13 : UH2) = method5(v9, v10, v11) │
00:00:38 #4368 [Verbose] > │ let v14 : UH2 = UH2_1 │
00:00:38 #4369 [Verbose] > │ let v15 : UH2 = method6(v12, v14) │
00:00:38 #4370 [Verbose] > │ let v16 : UH2 = UH2_1 │
00:00:38 #4371 [Verbose] > │ let v17 : UH2 = method6(v13, v16) │
00:00:38 #4372 [Verbose] > │ let v18 : UH0 = UH0_1 │
00:00:38 #4373 [Verbose] > │ let v19 : int32 = 0 │
00:00:38 #4374 [Verbose] > │ let v20 : UH0 = method7(v4, v18, v19) │
00:00:38 #4375 [Verbose] > │ let v21 : UH1 = UH1_1 │
00:00:38 #4376 [Verbose] > │ let v22 : UH1 = method8(v20, v21) │
00:00:38 #4377 [Verbose] > │ let v23 : UH2 = UH2_1 │
00:00:38 #4378 [Verbose] > │ let v24 : UH2 = UH2_1 │
00:00:38 #4379 [Verbose] > │ let struct (v25 : UH2, v26 : UH2) = method5(v22, v23, v24) │
00:00:38 #4380 [Verbose] > │ let v27 : UH2 = UH2_1 │
00:00:38 #4381 [Verbose] > │ let v28 : UH2 = method6(v25, v27) │
00:00:38 #4382 [Verbose] > │ let v29 : UH2 = UH2_1 │
00:00:38 #4383 [Verbose] > │ let v30 : UH2 = method6(v26, v29) │
00:00:38 #4384 [Verbose] > │ let v31 : (float []) = method9(v15) │
00:00:38 #4385 [Verbose] > │ let v32 : (float []) = method9(v17) │
00:00:38 #4386 [Verbose] > │ let v33 : (float []) = method9(v28) │
00:00:38 #4387 [Verbose] > │ let v34 : (float []) = method9(v30) │
00:00:38 #4388 [Verbose] > │ let v35 : string = "newtonian" │
00:00:38 #4389 [Verbose] > │ let v36 : string = "relativistic" │
00:00:38 #4390 [Verbose] > │ let v37 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:38 #4391 [Verbose] > │ (v35, v31, v32); struct (v36, v33, v34)|] │
00:00:38 #4392 [Verbose] > │ let v38 : (struct (string * (float []) * (float [])) []) = method12(v37) │
00:00:38 #4393 [Verbose] > │ let v39 : string = "proton in a 1-t magnetic field" │
00:00:38 #4394 [Verbose] > │ let v40 : string = "x (m)" │
00:00:38 #4395 [Verbose] > │ let v41 : string = "y (m)" │
00:00:38 #4396 [Verbose] > │ struct (v39, v40, v41, v38) │
00:00:38 #4397 [Verbose] > │ method0() │
00:00:38 #4398 [Verbose] > │ │
00:00:38 #4399 [Verbose] > │ │
00:00:38 #4400 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 #4401 [Verbose] >
00:00:38 #4402 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:38 #4403 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:38 #4404 [Verbose] > │ ### system kinetic energy versus time 1 │
00:00:38 #4405 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:38 #4406 [Verbose] >
00:00:38 #4407 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:38 #4408 [Verbose] > // // test
00:00:38 #4409 [Verbose] >
00:00:38 #4410 [Verbose] > inl central_force f (particle_state st1) (particle_state st2) =
00:00:38 #4411 [Verbose] > inl r1 = st1.pos_vec
00:00:38 #4412 [Verbose] > inl r2 = st2.pos_vec
00:00:38 #4413 [Verbose] > inl r21 = r2 ^-^ r1
00:00:38 #4414 [Verbose] > inl r21mag = magnitude r21
00:00:38 #4415 [Verbose] > f r21mag *^ r21 ^/ r21mag
00:00:38 #4416 [Verbose] >
00:00:38 #4417 [Verbose] > inl billiard_force k re =
00:00:38 #4418 [Verbose] > inl f r =
00:00:38 #4419 [Verbose] > if r >= re
00:00:38 #4420 [Verbose] > then 0
00:00:38 #4421 [Verbose] > else -k * (r - re)
00:00:38 #4422 [Verbose] > central_force f
00:00:38 #4423 [Verbose] >
00:00:38 #4424 [Verbose] > type force_vector = vec
00:00:38 #4425 [Verbose] > type two_body_force = particle_state -> particle_state -> force_vector
00:00:38 #4426 [Verbose] >
00:00:38 #4427 [Verbose] > union force =
00:00:38 #4428 [Verbose] > | ExternalForce : i32 * one_body_force
00:00:38 #4429 [Verbose] > | InternalForce : i32 * i32 * two_body_force
00:00:38 #4430 [Verbose] >
00:00:38 #4431 [Verbose] > nominal multi_particle_state = list particle_state
00:00:38 #4432 [Verbose] >
00:00:38 #4433 [Verbose] > nominal d_multi_particle_state = list d_particle_state
00:00:38 #4434 [Verbose] >
00:00:38 #4435 [Verbose] > inl force_on n sts force =
00:00:38 #4436 [Verbose] > match force with
00:00:38 #4437 [Verbose] > | ExternalForce (n0, f_one_body) =>
00:00:38 #4438 [Verbose] > if n = n0
00:00:38 #4439 [Verbose] > then f_one_body
00:00:38 #4440 [Verbose] > else fun _ => zero_vec ()
00:00:38 #4441 [Verbose] > | InternalForce (n0, n1, f_two_body) =>
00:00:38 #4442 [Verbose] > if n = n0
00:00:38 #4443 [Verbose] > then f_two_body (sts |> listm'.item n1)
00:00:38 #4444 [Verbose] > elif n = n1
00:00:38 #4445 [Verbose] > then f_two_body (sts |> listm'.item n0)
00:00:38 #4446 [Verbose] > else fun _ => zero_vec ()
00:00:38 #4447 [Verbose] >
00:00:38 #4448 [Verbose] > inl forces_on n (multi_particle_state sts) fs =
00:00:38 #4449 [Verbose] > fs |> listm.map (force_on n sts)
00:00:38 #4450 [Verbose] >
00:00:38 #4451 [Verbose] > inl newton_second_mps fs (multi_particle_state sts) : d_multi_particle_state =
00:00:38 #4452 [Verbose] > inl deriv (n, st) =
00:00:38 #4453 [Verbose] > newton_second_ps (forces_on n (multi_particle_state sts) fs) st
00:00:38 #4454 [Verbose] > sts |> listm'.indexed |> listm.map deriv |> d_multi_particle_state
00:00:38 #4455 [Verbose] >
00:00:38 #4456 [Verbose] > instance (+++) d_multi_particle_state = fun (d_multi_particle_state dsts1)
00:00:38 #4457 [Verbose] > (d_multi_particle_state dsts2) =>
00:00:38 #4458 [Verbose] > d_multi_particle_state (listm'.zip_with_ (+++) dsts1 dsts2)
00:00:38 #4459 [Verbose] >
00:00:38 #4460 [Verbose] > instance scale d_multi_particle_state = fun w (d_multi_particle_state dsts) =>
00:00:38 #4461 [Verbose] > d_multi_particle_state (dsts |> listm.map (scale w))
00:00:38 #4462 [Verbose] >
00:00:38 #4463 [Verbose] > instance shift multi_particle_state = fun dt dsts (multi_particle_state sts) =>
00:00:38 #4464 [Verbose] > inl (d_multi_particle_state dsts) =
00:00:38 #4465 [Verbose] > real
00:00:38 #4466 [Verbose] > match dsts with
00:00:38 #4467 [Verbose] > | d_multi_particle_state _ => dsts
00:00:38 #4468 [Verbose] > listm'.zip_with_ (shift dt) dsts sts |> multi_particle_state
00:00:38 #4469 [Verbose] >
00:00:38 #4470 [Verbose] > inl euler_cromer_mps dt : numerical_method multi_particle_state
00:00:38 #4471 [Verbose] > d_multi_particle_state =
00:00:38 #4472 [Verbose] > fun deriv mpst0 =>
00:00:38 #4473 [Verbose] > inl mpst1 = euler dt deriv mpst0
00:00:38 #4474 [Verbose] > inl (multi_particle_state sts0) = mpst0
00:00:38 #4475 [Verbose] > inl (multi_particle_state sts1) = mpst1
00:00:38 #4476 [Verbose] > sts1
00:00:38 #4477 [Verbose] > |> listm'.zip_ sts0
00:00:38 #4478 [Verbose] > |> listm.map (fun ((particle_state st0), (particle_state st1)) =>
00:00:38 #4479 [Verbose] > particle_state {
00:00:38 #4480 [Verbose] > st1 with
00:00:38 #4481 [Verbose] > pos_vec = st0.pos_vec ^+^ st1.velocity ^* dt
00:00:38 #4482 [Verbose] > }
00:00:38 #4483 [Verbose] > )
00:00:38 #4484 [Verbose] > |> multi_particle_state
00:00:38 #4485 [Verbose] >
00:00:38 #4486 [Verbose] > inl update_mps (method : numerical_method multi_particle_state
00:00:38 #4487 [Verbose] > d_multi_particle_state) =
00:00:38 #4488 [Verbose] > newton_second_mps >> method
00:00:38 #4489 [Verbose] >
00:00:38 #4490 [Verbose] > inl states_mps (method : numerical_method multi_particle_state
00:00:38 #4491 [Verbose] > d_multi_particle_state) =
00:00:38 #4492 [Verbose] > newton_second_mps >> method >> seq.iterate_
00:00:38 #4493 [Verbose] >
00:00:38 #4494 [Verbose] >
00:00:38 #4495 [Verbose] > inl kinetic_energy (particle_state st) =
00:00:38 #4496 [Verbose] > inl m = st.mass
00:00:38 #4497 [Verbose] > inl v = magnitude st.velocity
00:00:38 #4498 [Verbose] > 0.5 * m * v ** 2
00:00:38 #4499 [Verbose] >
00:00:38 #4500 [Verbose] > inl system_ke (multi_particle_state sts) =
00:00:38 #4501 [Verbose] > sts |> listm.map kinetic_energy |> listm'.sum
00:00:38 #4502 [Verbose] >
00:00:38 #4503 [Verbose] > inl linear_spring_pe k re (particle_state st1) (particle_state st2) =
00:00:38 #4504 [Verbose] > inl r1 = st1.pos_vec
00:00:38 #4505 [Verbose] > inl r2 = st2.pos_vec
00:00:38 #4506 [Verbose] > inl r21 = r2 ^-^ r1
00:00:38 #4507 [Verbose] > inl r21mag = magnitude r21
00:00:38 #4508 [Verbose] > k * (r21mag - re) ** 2 / 2
00:00:38 #4509 [Verbose] >
00:00:38 #4510 [Verbose] > inl earth_surface_gravity_pe (particle_state st) =
00:00:38 #4511 [Verbose] > inl g = 9.80665
00:00:38 #4512 [Verbose] > inl m = st.mass
00:00:38 #4513 [Verbose] > inl z = st.pos_vec.z
00:00:38 #4514 [Verbose] > m * g * z
00:00:38 #4515 [Verbose] >
00:00:38 #4516 [Verbose] > inl two_springs_pe (multi_particle_state sts) =
00:00:38 #4517 [Verbose] > inl st0 = sts |> listm'.item 0i32
00:00:38 #4518 [Verbose] > inl st1 = sts |> listm'.item 1i32
00:00:38 #4519 [Verbose] > linear_spring_pe 100 0.5 (default_particle_state ()) st0
00:00:38 #4520 [Verbose] > + linear_spring_pe 100 0.5 st0 st1
00:00:38 #4521 [Verbose] > + earth_surface_gravity_pe st0
00:00:38 #4522 [Verbose] > + earth_surface_gravity_pe st1
00:00:38 #4523 [Verbose] >
00:00:38 #4524 [Verbose] > inl two_springs_me mpst =
00:00:38 #4525 [Verbose] > system_ke mpst + two_springs_pe mpst
00:00:38 #4526 [Verbose] >
00:00:38 #4527 [Verbose] > inl ball_radius () = 0.03
00:00:38 #4528 [Verbose] >
00:00:38 #4529 [Verbose] > inl billiard_forces k =
00:00:38 #4530 [Verbose] > [[ InternalForce (0, 1, billiard_force k (2 * ball_radius ())) ]]
00:00:38 #4531 [Verbose] >
00:00:38 #4532 [Verbose] > inl billiard_update n_method k dt =
00:00:38 #4533 [Verbose] > update_mps (n_method dt) (billiard_forces k)
00:00:38 #4534 [Verbose] >
00:00:38 #4535 [Verbose] > inl billiard_initial () =
00:00:38 #4536 [Verbose] > inl ball_mass = 0.160
00:00:38 #4537 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:38 #4538 [Verbose] > multi_particle_state [[
00:00:38 #4539 [Verbose] > particle_state {
00:00:38 #4540 [Verbose] > default_particle_state' with
00:00:38 #4541 [Verbose] > mass = ball_mass
00:00:38 #4542 [Verbose] > pos_vec = zero_vec ()
00:00:38 #4543 [Verbose] > velocity = 0.2 *^ i_hat ()
00:00:38 #4544 [Verbose] > }
00:00:38 #4545 [Verbose] > particle_state {
00:00:38 #4546 [Verbose] > default_particle_state' with
00:00:38 #4547 [Verbose] > mass = ball_mass
00:00:38 #4548 [Verbose] > pos_vec = i_hat () ^+^ 0.02 *^ j_hat ()
00:00:38 #4549 [Verbose] > velocity = zero_vec ()
00:00:38 #4550 [Verbose] > }
00:00:38 #4551 [Verbose] > ]]
00:00:38 #4552 [Verbose] >
00:00:38 #4553 [Verbose] > inl billiard_states ~n_method k dt =
00:00:38 #4554 [Verbose] > states_mps (n_method dt) (billiard_forces k) (billiard_initial ())
00:00:38 #4555 [Verbose] >
00:00:38 #4556 [Verbose] > inl billiard_states_finite n_method k dt =
00:00:38 #4557 [Verbose] > billiard_states n_method k dt
00:00:38 #4558 [Verbose] > >> Some
00:00:38 #4559 [Verbose] > |> seq.take_while_ (fun (multi_particle_state mpst) (_ : i32) =>
00:00:38 #4560 [Verbose] > (mpst |> listm'.item 0i32).time <= 10
00:00:38 #4561 [Verbose] > )
00:00:38 #4562 [Verbose] >
00:00:38 #4563 [Verbose] > inl momentum (particle_state st) =
00:00:38 #4564 [Verbose] > inl m = st.mass
00:00:38 #4565 [Verbose] > inl v = st.velocity
00:00:38 #4566 [Verbose] > m *^ v
00:00:38 #4567 [Verbose] >
00:00:38 #4568 [Verbose] > inl system_p (multi_particle_state sts) =
00:00:38 #4569 [Verbose] > sts |> listm.map momentum |> sum_vec
00:00:38 #4570 [Verbose] >
00:00:38 #4571 [Verbose] >
00:00:38 #4572 [Verbose] > inl time_ke_ec_x, time_ke_ec_y =
00:00:38 #4573 [Verbose] > billiard_states_finite euler_cromer_mps 30 0.03
00:00:38 #4574 [Verbose] > |> listm.map (fun (multi_particle_state mpst) =>
00:00:38 #4575 [Verbose] > (mpst |> listm'.item 0i32).time, system_ke (multi_particle_state mpst)
00:00:38 #4576 [Verbose] > )
00:00:38 #4577 [Verbose] > |> listm'.unzip
00:00:38 #4578 [Verbose] >
00:00:38 #4579 [Verbose] > inl time_ke_rk4_x, time_ke_rk4_y =
00:00:38 #4580 [Verbose] > billiard_states_finite runge_kutta_4 30 0.03
00:00:38 #4581 [Verbose] > |> listm.map (fun (multi_particle_state mpst) =>
00:00:38 #4582 [Verbose] > (mpst |> listm'.item 0i32).time, system_ke (multi_particle_state mpst)
00:00:38 #4583 [Verbose] > )
00:00:38 #4584 [Verbose] > |> listm'.unzip
00:00:38 #4585 [Verbose] >
00:00:38 #4586 [Verbose] > inl time_ke_ec_x : a i32 _ = time_ke_ec_x |> listm.toArray
00:00:38 #4587 [Verbose] > inl time_ke_ec_y : a i32 _ = time_ke_ec_y |> listm.toArray
00:00:38 #4588 [Verbose] >
00:00:38 #4589 [Verbose] > inl time_ke_rk4_x : a i32 _ = time_ke_rk4_x |> listm.toArray
00:00:38 #4590 [Verbose] > inl time_ke_rk4_y : a i32 _ = time_ke_rk4_y |> listm.toArray
00:00:38 #4591 [Verbose] >
00:00:38 #4592 [Verbose] > "system kinetic energy versus time",
00:00:38 #4593 [Verbose] > "time (s)",
00:00:38 #4594 [Verbose] > "system kinetic energy (j)",
00:00:38 #4595 [Verbose] > ;[[
00:00:38 #4596 [Verbose] > "euler-cromer", time_ke_ec_x, time_ke_ec_y
00:00:38 #4597 [Verbose] > "runge-kutta 4", time_ke_rk4_x, time_ke_rk4_y
00:00:38 #4598 [Verbose] > ]]
00:00:39 #4599 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0044-0325-2594-22a61c7a91ba\main.spi
00:00:40 #4600 [Verbose] >
00:00:40 #4601 [Verbose] > ╭─[ 1.55s - return value ]─────────────────────────────────────────────────────╮
00:00:40 #4602 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:40 #4603 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:40 #4604 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:40 #4605 [Verbose] > │ stroke="none"/> │
00:00:40 #4606 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:40 #4607 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:40 #4608 [Verbose] > │ fill="#FFFFFF"> │
00:00:40 #4609 [Verbose] > │ system kinetic energy versus time │
00:00:40 #4610 [Verbose] > │ </text> │
00:00:40 #4611 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:00:40 #4612 [Verbose] > │ y2="75"/> │
00:00:40 #4613 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:40 #4614 [Verbose] > │ y2="75"/> │
00:00:40 #4615 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:00:40 #4616 [Verbose] > │ y2="75"/> │
00:00:40 #4617 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:00:40 #4618 [Verbose] > │ y2="75"/> │
00:00:40 #4619 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1... │
00:00:40 #4620 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 #4621 [Verbose] >
00:00:40 #4622 [Verbose] > ╭─[ 1.56s - stdout ]───────────────────────────────────────────────────────────╮
00:00:40 #4623 [Verbose] > │ type UH0 = │
00:00:40 #4624 [Verbose] > │ | UH0_0 of float * float * float * float * float * float * float * float │
00:00:40 #4625 [Verbose] > │ * float * UH0 │
00:00:40 #4626 [Verbose] > │ | UH0_1 │
00:00:40 #4627 [Verbose] > │ and UH1 = │
00:00:40 #4628 [Verbose] > │ | UH1_0 of float * float * float * float * float * float * float * float │
00:00:40 #4629 [Verbose] > │ * float * UH1 │
00:00:40 #4630 [Verbose] > │ | UH1_1 │
00:00:40 #4631 [Verbose] > │ and UH2 = │
00:00:40 #4632 [Verbose] > │ | UH2_0 of float * float * float * float * float * float * float * float │
00:00:40 #4633 [Verbose] > │ * float * float * float * float * float * float * float * float * float * │
00:00:40 #4634 [Verbose] > │ float * UH2 │
00:00:40 #4635 [Verbose] > │ | UH2_1 │
00:00:40 #4636 [Verbose] > │ and UH3 = │
00:00:40 #4637 [Verbose] > │ | UH3_0 of int32 * float * float * float * float * float * float * float │
00:00:40 #4638 [Verbose] > │ * float * float * UH3 │
00:00:40 #4639 [Verbose] > │ | UH3_1 │
00:00:40 #4640 [Verbose] > │ and [<Struct>] US0 = │
00:00:40 #4641 [Verbose] > │ | US0_0 │
00:00:40 #4642 [Verbose] > │ | US0_1 of f1_0 : float * f1_1 : float * f1_2 : float * f1_3 : float * │
00:00:40 #4643 [Verbose] > │ f1_4 : float * f1_5 : float * f1_6 : float * f1_7 : float * f1_8 : float │
00:00:40 #4644 [Verbose] > │ and UH4 = │
00:00:40 #4645 [Verbose] > │ | UH4_0 of UH0 * UH4 │
00:00:40 #4646 [Verbose] > │ | UH4_1 │
00:00:40 #4647 [Verbose] > │ and UH5 = │
00:00:40 #4648 [Verbose] > │ | UH5_0 of float * float * UH5 │
00:00:40 #4649 [Verbose] > │ | UH5_1 │
00:00:40 #4650 [Verbose] > │ and UH6 = │
00:00:40 #4651 [Verbose] > │ | UH6_0 of float * UH6 │
00:00:40 #4652 [Verbose] > │ | UH6_1 │
00:00:40 #4653 [Verbose] > │ let rec method2 (v0 : UH0, v1 : UH0) : UH0 = │
00:00:40 #4654 [Verbose] > │ match v0 with │
00:00:40 #4655 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:40 #4656 [Verbose] > │ let v12 : UH0 = UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1) │
00:00:40 #4657 [Verbose] > │ method2(v11, v12) │
00:00:40 #4658 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:40 #4659 [Verbose] > │ v1 │
00:00:40 #4660 [Verbose] > │ and method1 (v0 : float, v1 : UH0, v2 : UH1, v3 : UH0) : UH0 = │
00:00:40 #4661 [Verbose] > │ match v2 with │
00:00:40 #4662 [Verbose] > │ | UH1_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* Cons *) │
00:00:40 #4663 [Verbose] > │ match v3 with │
00:00:40 #4664 [Verbose] > │ | UH0_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* Cons │
00:00:40 #4665 [Verbose] > │ *) │
00:00:40 #4666 [Verbose] > │ let v24 : float = v9 * v0 │
00:00:40 #4667 [Verbose] > │ let v25 : float = v19 + v24 │
00:00:40 #4668 [Verbose] > │ let v26 : float = v0 * v6 │
00:00:40 #4669 [Verbose] > │ let v27 : float = v0 * v7 │
00:00:40 #4670 [Verbose] > │ let v28 : float = v0 * v8 │
00:00:40 #4671 [Verbose] > │ let v29 : float = v16 + v26 │
00:00:40 #4672 [Verbose] > │ let v30 : float = v17 + v27 │
00:00:40 #4673 [Verbose] > │ let v31 : float = v18 + v28 │
00:00:40 #4674 [Verbose] > │ let v32 : float = v0 * v10 │
00:00:40 #4675 [Verbose] > │ let v33 : float = v0 * v11 │
00:00:40 #4676 [Verbose] > │ let v34 : float = v0 * v12 │
00:00:40 #4677 [Verbose] > │ let v35 : float = v20 + v32 │
00:00:40 #4678 [Verbose] > │ let v36 : float = v21 + v33 │
00:00:40 #4679 [Verbose] > │ let v37 : float = v22 + v34 │
00:00:40 #4680 [Verbose] > │ let v38 : UH0 = UH0_0(v14, v15, v29, v30, v31, v25, v35, v36, │
00:00:40 #4681 [Verbose] > │ v37, v1) │
00:00:40 #4682 [Verbose] > │ method1(v0, v38, v13, v23) │
00:00:40 #4683 [Verbose] > │ | _ -> │
00:00:40 #4684 [Verbose] > │ let v40 : UH0 = UH0_1 │
00:00:40 #4685 [Verbose] > │ method2(v1, v40) │
00:00:40 #4686 [Verbose] > │ | _ -> │
00:00:40 #4687 [Verbose] > │ let v43 : UH0 = UH0_1 │
00:00:40 #4688 [Verbose] > │ method2(v1, v43) │
00:00:40 #4689 [Verbose] > │ and method4 (v0 : UH2, v1 : UH2) : UH2 = │
00:00:40 #4690 [Verbose] > │ match v0 with │
00:00:40 #4691 [Verbose] > │ | UH2_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, │
00:00:40 #4692 [Verbose] > │ v16, v17, v18, v19, v20) -> (* Cons *) │
00:00:40 #4693 [Verbose] > │ let v21 : UH2 = UH2_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, │
00:00:40 #4694 [Verbose] > │ v13, v14, v15, v16, v17, v18, v19, v1) │
00:00:40 #4695 [Verbose] > │ method4(v20, v21) │
00:00:40 #4696 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:40 #4697 [Verbose] > │ v1 │
00:00:40 #4698 [Verbose] > │ and method3 (v0 : UH2, v1 : UH0, v2 : UH0) : UH2 = │
00:00:40 #4699 [Verbose] > │ match v1 with │
00:00:40 #4700 [Verbose] > │ | UH0_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* Cons *) │
00:00:40 #4701 [Verbose] > │ match v2 with │
00:00:40 #4702 [Verbose] > │ | UH0_0(v13, v14, v15, v16, v17, v18, v19, v20, v21, v22) -> (* Cons │
00:00:40 #4703 [Verbose] > │ *) │
00:00:40 #4704 [Verbose] > │ let v23 : UH2 = UH2_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v13, │
00:00:40 #4705 [Verbose] > │ v14, v15, v16, v17, v18, v19, v20, v21, v0) │
00:00:40 #4706 [Verbose] > │ method3(v23, v12, v22) │
00:00:40 #4707 [Verbose] > │ | _ -> │
00:00:40 #4708 [Verbose] > │ let v25 : UH2 = UH2_1 │
00:00:40 #4709 [Verbose] > │ method4(v0, v25) │
00:00:40 #4710 [Verbose] > │ | _ -> │
00:00:40 #4711 [Verbose] > │ let v28 : UH2 = UH2_1 │
00:00:40 #4712 [Verbose] > │ method4(v0, v28) │
00:00:40 #4713 [Verbose] > │ and method5 (v0 : float, v1 : UH2, v2 : UH0) : UH0 = │
00:00:40 #4714 [Verbose] > │ match v1 with │
00:00:40 #4715 [Verbose] > │ | UH2_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, │
00:00:40 #4716 [Verbose] > │ v17, v18, v19, v20, v21) -> (* Cons *) │
00:00:40 #4717 [Verbose] > │ let v22 : UH0 = method5(v0, v21, v2) │
00:00:40 #4718 [Verbose] > │ let v23 : float = v0 * v18 │
00:00:40 #4719 [Verbose] > │ let v24 : float = v0 * v19 │
00:00:40 #4720 [Verbose] > │ let v25 : float = v0 * v20 │
00:00:40 #4721 [Verbose] > │ let v26 : float = v5 + v23 │
00:00:40 #4722 [Verbose] > │ let v27 : float = v6 + v24 │
00:00:40 #4723 [Verbose] > │ let v28 : float = v7 + v25 │
00:00:40 #4724 [Verbose] > │ UH0_0(v12, v13, v26, v27, v28, v17, v18, v19, v20, v22) │
00:00:40 #4725 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:00:40 #4726 [Verbose] > │ v2 │
00:00:40 #4727 [Verbose] > │ and closure2 (v0 : float, v1 : (UH0 -> UH1)) (v2 : UH0) : UH0 = │
00:00:40 #4728 [Verbose] > │ let v3 : UH1 = v1 v2 │
00:00:40 #4729 [Verbose] > │ let v4 : UH0 = UH0_1 │
00:00:40 #4730 [Verbose] > │ let v5 : UH0 = method1(v0, v4, v3, v2) │
00:00:40 #4731 [Verbose] > │ let v6 : UH2 = UH2_1 │
00:00:40 #4732 [Verbose] > │ let v7 : UH2 = method3(v6, v2, v5) │
00:00:40 #4733 [Verbose] > │ let v8 : UH0 = UH0_1 │
00:00:40 #4734 [Verbose] > │ let v9 : UH0 = method5(v0, v7, v8) │
00:00:40 #4735 [Verbose] > │ v9 │
00:00:40 #4736 [Verbose] > │ and closure1 (v0 : float) (v1 : (UH0 -> UH1)) : (UH0 -> UH0) = │
00:00:40 #4737 [Verbose] > │ closure2(v0, v1) │
00:00:40 #4738 [Verbose] > │ and closure0 () (v0 : float) : ((UH0 -> UH1) -> (UH0 -> UH0)) = │
00:00:40 #4739 [Verbose] > │ closure1(v0) │
00:00:40 #4740 [Verbose] > │ and method6 (v0 : UH0, v1 : UH3, v2 : int32) : struct (UH3 * int32) = │
00:00:40 #4741 [Verbose] > │ match v0 with │
00:00:40 #4742 [Verbose] > │ | UH0_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* Cons *) │
00:00:40 #4743 [Verbose] > │ let v13 : int32 = v2 + 1 │
00:00:40 #4744 [Verbose] > │ let v14 : UH3 = UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v1) │
00:00:40 #4745 [Verbose] > │ method6(v12, v14, v13) │
00:00:40 #4746 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:40 #4747 [Verbose] > │ struct (v1, v2) │
00:00:40 #4748 [Verbose] > │ and method7 (v0 : UH3, v1 : UH3) : UH3 = │
00:00:40 #4749 [Verbose] > │ match v0 with │
00:00:40 #4750 [Verbose] > │ | UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* Cons *) │
00:00:40 #4751 [Verbose] > │ let v13 : UH3 = UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v1) │
00:00:40 #4752 [Verbose] > │ method7(v12, v13) │
00:00:40 #4753 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:00:40 #4754 [Verbose] > │ v1 │
00:00:40 #4755 [Verbose] > │ and closure4 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, v5 │
00:00:40 #4756 [Verbose] > │ : float, v6 : float, v7 : float, v8 : float) struct (v9 : float, v10 : │
00:00:40 #4757 [Verbose] > │ float, v11 : float, v12 : float, v13 : float, v14 : float, v15 : float, v16 │
00:00:40 #4758 [Verbose] > │ : float, v17 : float) : struct (float * float * float) = │
00:00:40 #4759 [Verbose] > │ let v18 : float = -1.0 * v2 │
00:00:40 #4760 [Verbose] > │ let v19 : float = -1.0 * v3 │
00:00:40 #4761 [Verbose] > │ let v20 : float = -1.0 * v4 │
00:00:40 #4762 [Verbose] > │ let v21 : float = v11 + v18 │
00:00:40 #4763 [Verbose] > │ let v22 : float = v12 + v19 │
00:00:40 #4764 [Verbose] > │ let v23 : float = v13 + v20 │
00:00:40 #4765 [Verbose] > │ let v24 : float = v21 * v21 │
00:00:40 #4766 [Verbose] > │ let v25 : float = v22 * v22 │
00:00:40 #4767 [Verbose] > │ let v26 : float = v24 + v25 │
00:00:40 #4768 [Verbose] > │ let v27 : float = v23 * v23 │
00:00:40 #4769 [Verbose] > │ let v28 : float = v26 + v27 │
00:00:40 #4770 [Verbose] > │ let v29 : float = sqrt v28 │
00:00:40 #4771 [Verbose] > │ let v30 : bool = v29 >= 0.06 │
00:00:40 #4772 [Verbose] > │ let v33 : float = │
00:00:40 #4773 [Verbose] > │ if v30 then │
00:00:40 #4774 [Verbose] > │ 0.0 │
00:00:40 #4775 [Verbose] > │ else │
00:00:40 #4776 [Verbose] > │ let v31 : float = v29 - 0.06 │
00:00:40 #4777 [Verbose] > │ let v32 : float = -30.0 * v31 │
00:00:40 #4778 [Verbose] > │ v32 │
00:00:40 #4779 [Verbose] > │ let v34 : float = v33 * v21 │
00:00:40 #4780 [Verbose] > │ let v35 : float = v33 * v22 │
00:00:40 #4781 [Verbose] > │ let v36 : float = v33 * v23 │
00:00:40 #4782 [Verbose] > │ let v37 : float = v34 / v29 │
00:00:40 #4783 [Verbose] > │ let v38 : float = v35 / v29 │
00:00:40 #4784 [Verbose] > │ let v39 : float = v36 / v29 │
00:00:40 #4785 [Verbose] > │ struct (v37, v38, v39) │
00:00:40 #4786 [Verbose] > │ and closure5 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 : │
00:00:40 #4787 [Verbose] > │ float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:40 #4788 [Verbose] > │ float * float) = │
00:00:40 #4789 [Verbose] > │ struct (0.0, 0.0, 0.0) │
00:00:40 #4790 [Verbose] > │ and method8 (v0 : UH0, v1 : UH3, v2 : UH1) : UH1 = │
00:00:40 #4791 [Verbose] > │ match v1 with │
00:00:40 #4792 [Verbose] > │ | UH3_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* Cons *) │
00:00:40 #4793 [Verbose] > │ let v14 : UH1 = method8(v0, v13, v2) │
00:00:40 #4794 [Verbose] > │ let v15 : bool = v3 = 0 │
00:00:40 #4795 [Verbose] > │ let v134 : (struct (float * float * float * float * float * float * │
00:00:40 #4796 [Verbose] > │ float * float * float) -> struct (float * float * float)) = │
00:00:40 #4797 [Verbose] > │ if v15 then │
00:00:40 #4798 [Verbose] > │ let v42 : US0 = │
00:00:40 #4799 [Verbose] > │ match v0 with │
00:00:40 #4800 [Verbose] > │ | UH0_0(v16, v17, v18, v19, v20, v21, v22, v23, v24, │
00:00:40 #4801 [Verbose] > │ v25) -> (* Cons *) │
00:00:40 #4802 [Verbose] > │ match v25 with │
00:00:40 #4803 [Verbose] > │ | UH0_0(v26, v27, v28, v29, v30, v31, v32, v33, v34, │
00:00:40 #4804 [Verbose] > │ v35) -> (* Cons *) │
00:00:40 #4805 [Verbose] > │ US0_1(v26, v27, v28, v29, v30, v31, v32, v33, │
00:00:40 #4806 [Verbose] > │ v34) │
00:00:40 #4807 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:40 #4808 [Verbose] > │ US0_0 │
00:00:40 #4809 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:40 #4810 [Verbose] > │ US0_0 │
00:00:40 #4811 [Verbose] > │ let struct (v70 : float, v71 : float, v72 : float, v73 : │
00:00:40 #4812 [Verbose] > │ float, v74 : float, v75 : float, v76 : float, v77 : float, v78 : float) = │
00:00:40 #4813 [Verbose] > │ match v42 with │
00:00:40 #4814 [Verbose] > │ | US0_0 -> (* None *) │
00:00:40 #4815 [Verbose] > │ failwith<struct (float * float * float * float * │
00:00:40 #4816 [Verbose] > │ float * float * float * float * float)> "Option does not have a value." │
00:00:40 #4817 [Verbose] > │ | US0_1(v43, v44, v45, v46, v47, v48, v49, v50, v51) -> │
00:00:40 #4818 [Verbose] > │ (* Some *) │
00:00:40 #4819 [Verbose] > │ struct (v43, v44, v45, v46, v47, v48, v49, v50, v51) │
00:00:40 #4820 [Verbose] > │ closure4(v70, v71, v72, v73, v74, v75, v76, v77, v78) │
00:00:40 #4821 [Verbose] > │ else │
00:00:40 #4822 [Verbose] > │ let v80 : bool = v3 = 1 │
00:00:40 #4823 [Verbose] > │ if v80 then │
00:00:40 #4824 [Verbose] > │ let v94 : US0 = │
00:00:40 #4825 [Verbose] > │ match v0 with │
00:00:40 #4826 [Verbose] > │ | UH0_0(v81, v82, v83, v84, v85, v86, v87, v88, v89, │
00:00:40 #4827 [Verbose] > │ v90) -> (* Cons *) │
00:00:40 #4828 [Verbose] > │ US0_1(v81, v82, v83, v84, v85, v86, v87, v88, │
00:00:40 #4829 [Verbose] > │ v89) │
00:00:40 #4830 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:40 #4831 [Verbose] > │ US0_0 │
00:00:40 #4832 [Verbose] > │ let struct (v122 : float, v123 : float, v124 : float, │
00:00:40 #4833 [Verbose] > │ v125 : float, v126 : float, v127 : float, v128 : float, v129 : float, v130 : │
00:00:40 #4834 [Verbose] > │ float) = │
00:00:40 #4835 [Verbose] > │ match v94 with │
00:00:40 #4836 [Verbose] > │ | US0_0 -> (* None *) │
00:00:40 #4837 [Verbose] > │ failwith<struct (float * float * float * float * │
00:00:40 #4838 [Verbose] > │ float * float * float * float * float)> "Option does not have a value." │
00:00:40 #4839 [Verbose] > │ | US0_1(v95, v96, v97, v98, v99, v100, v101, v102, │
00:00:40 #4840 [Verbose] > │ v103) -> (* Some *) │
00:00:40 #4841 [Verbose] > │ struct (v95, v96, v97, v98, v99, v100, v101, │
00:00:40 #4842 [Verbose] > │ v102, v103) │
00:00:40 #4843 [Verbose] > │ closure4(v122, v123, v124, v125, v126, v127, v128, v129, │
00:00:40 #4844 [Verbose] > │ v130) │
00:00:40 #4845 [Verbose] > │ else │
00:00:40 #4846 [Verbose] > │ closure5() │
00:00:40 #4847 [Verbose] > │ let struct (v135 : float, v136 : float, v137 : float) = v134 struct │
00:00:40 #4848 [Verbose] > │ (v4, v5, v6, v7, v8, v9, v10, v11, v12) │
00:00:40 #4849 [Verbose] > │ let v138 : float = v135 / v5 │
00:00:40 #4850 [Verbose] > │ let v139 : float = v136 / v5 │
00:00:40 #4851 [Verbose] > │ let v140 : float = v137 / v5 │
00:00:40 #4852 [Verbose] > │ UH1_0(0.0, 0.0, v10, v11, v12, 1.0, v138, v139, v140, v14) │
00:00:40 #4853 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:00:40 #4854 [Verbose] > │ v2 │
00:00:40 #4855 [Verbose] > │ and closure3 () (v0 : UH0) : UH1 = │
00:00:40 #4856 [Verbose] > │ let v1 : UH3 = UH3_1 │
00:00:40 #4857 [Verbose] > │ let v2 : int32 = 0 │
00:00:40 #4858 [Verbose] > │ let struct (v3 : UH3, v4 : int32) = method6(v0, v1, v2) │
00:00:40 #4859 [Verbose] > │ let v5 : UH3 = UH3_1 │
00:00:40 #4860 [Verbose] > │ let v6 : UH3 = method7(v3, v5) │
00:00:40 #4861 [Verbose] > │ let v7 : UH1 = UH1_1 │
00:00:40 #4862 [Verbose] > │ let v8 : UH1 = method8(v0, v6, v7) │
00:00:40 #4863 [Verbose] > │ v8 │
00:00:40 #4864 [Verbose] > │ and method10 (v0 : (UH0 -> UH0), v1 : UH0, v2 : int32) : UH0 = │
00:00:40 #4865 [Verbose] > │ let v3 : bool = v2 <= 0 │
00:00:40 #4866 [Verbose] > │ if v3 then │
00:00:40 #4867 [Verbose] > │ v1 │
00:00:40 #4868 [Verbose] > │ else │
00:00:40 #4869 [Verbose] > │ let v4 : UH0 = v0 v1 │
00:00:40 #4870 [Verbose] > │ let v5 : int32 = v2 - 1 │
00:00:40 #4871 [Verbose] > │ method10(v0, v4, v5) │
00:00:40 #4872 [Verbose] > │ and method11 (v0 : UH4, v1 : UH4) : UH4 = │
00:00:40 #4873 [Verbose] > │ match v0 with │
00:00:40 #4874 [Verbose] > │ | UH4_0(v2, v3) -> (* Cons *) │
00:00:40 #4875 [Verbose] > │ let v4 : UH4 = UH4_0(v2, v1) │
00:00:40 #4876 [Verbose] > │ method11(v3, v4) │
00:00:40 #4877 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:40 #4878 [Verbose] > │ v1 │
00:00:40 #4879 [Verbose] > │ and method9 (v0 : (UH0 -> UH0), v1 : UH4, v2 : int32) : UH4 = │
00:00:40 #4880 [Verbose] > │ let v3 : float = 0.0 │
00:00:40 #4881 [Verbose] > │ let v4 : float = 0.16 │
00:00:40 #4882 [Verbose] > │ let v5 : float = 0.0 │
00:00:40 #4883 [Verbose] > │ let v6 : float = 0.0 │
00:00:40 #4884 [Verbose] > │ let v7 : float = 0.0 │
00:00:40 #4885 [Verbose] > │ let v8 : float = 0.0 │
00:00:40 #4886 [Verbose] > │ let v9 : float = 0.2 │
00:00:40 #4887 [Verbose] > │ let v10 : float = 0.0 │
00:00:40 #4888 [Verbose] > │ let v11 : float = 0.0 │
00:00:40 #4889 [Verbose] > │ let v12 : float = 1.0 │
00:00:40 #4890 [Verbose] > │ let v13 : float = 0.02 │
00:00:40 #4891 [Verbose] > │ let v14 : float = 0.0 │
00:00:40 #4892 [Verbose] > │ let v15 : float = 0.0 │
00:00:40 #4893 [Verbose] > │ let v16 : float = 0.0 │
00:00:40 #4894 [Verbose] > │ let v17 : float = 0.0 │
00:00:40 #4895 [Verbose] > │ let v18 : UH0 = UH0_1 │
00:00:40 #4896 [Verbose] > │ let v19 : UH0 = UH0_0(v3, v4, v12, v13, v14, v8, v15, v16, v17, v18) │
00:00:40 #4897 [Verbose] > │ let v20 : UH0 = UH0_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v19) │
00:00:40 #4898 [Verbose] > │ let v21 : UH0 = method10(v0, v20, v2) │
00:00:40 #4899 [Verbose] > │ let v35 : US0 = │
00:00:40 #4900 [Verbose] > │ match v21 with │
00:00:40 #4901 [Verbose] > │ | UH0_0(v22, v23, v24, v25, v26, v27, v28, v29, v30, v31) -> (* Cons │
00:00:40 #4902 [Verbose] > │ *) │
00:00:40 #4903 [Verbose] > │ US0_1(v22, v23, v24, v25, v26, v27, v28, v29, v30) │
00:00:40 #4904 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:40 #4905 [Verbose] > │ US0_0 │
00:00:40 #4906 [Verbose] > │ let struct (v63 : float, v64 : float, v65 : float, v66 : float, v67 : │
00:00:40 #4907 [Verbose] > │ float, v68 : float, v69 : float, v70 : float, v71 : float) = │
00:00:40 #4908 [Verbose] > │ match v35 with │
00:00:40 #4909 [Verbose] > │ | US0_0 -> (* None *) │
00:00:40 #4910 [Verbose] > │ failwith<struct (float * float * float * float * float * float * │
00:00:40 #4911 [Verbose] > │ float * float * float)> "Option does not have a value." │
00:00:40 #4912 [Verbose] > │ | US0_1(v36, v37, v38, v39, v40, v41, v42, v43, v44) -> (* Some *) │
00:00:40 #4913 [Verbose] > │ struct (v36, v37, v38, v39, v40, v41, v42, v43, v44) │
00:00:40 #4914 [Verbose] > │ let v72 : bool = v68 <= 10.0 │
00:00:40 #4915 [Verbose] > │ if v72 then │
00:00:40 #4916 [Verbose] > │ let v73 : UH4 = UH4_0(v21, v1) │
00:00:40 #4917 [Verbose] > │ let v74 : int32 = v2 + 1 │
00:00:40 #4918 [Verbose] > │ method9(v0, v73, v74) │
00:00:40 #4919 [Verbose] > │ else │
00:00:40 #4920 [Verbose] > │ let v76 : UH4 = UH4_1 │
00:00:40 #4921 [Verbose] > │ method11(v1, v76) │
00:00:40 #4922 [Verbose] > │ and method13 (v0 : UH0, v1 : UH6) : UH6 = │
00:00:40 #4923 [Verbose] > │ match v0 with │
00:00:40 #4924 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:40 #4925 [Verbose] > │ let v12 : UH6 = method13(v11, v1) │
00:00:40 #4926 [Verbose] > │ let v13 : float = v8 * v8 │
00:00:40 #4927 [Verbose] > │ let v14 : float = v9 * v9 │
00:00:40 #4928 [Verbose] > │ let v15 : float = v13 + v14 │
00:00:40 #4929 [Verbose] > │ let v16 : float = v10 * v10 │
00:00:40 #4930 [Verbose] > │ let v17 : float = v15 + v16 │
00:00:40 #4931 [Verbose] > │ let v18 : float = sqrt v17 │
00:00:40 #4932 [Verbose] > │ let v19 : float = 0.5 * v3 │
00:00:40 #4933 [Verbose] > │ let v20 : float = v18 ** 2.0 │
00:00:40 #4934 [Verbose] > │ let v21 : float = v19 * v20 │
00:00:40 #4935 [Verbose] > │ UH6_0(v21, v12) │
00:00:40 #4936 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:40 #4937 [Verbose] > │ v1 │
00:00:40 #4938 [Verbose] > │ and method14 (v0 : UH6, v1 : float) : float = │
00:00:40 #4939 [Verbose] > │ match v0 with │
00:00:40 #4940 [Verbose] > │ | UH6_0(v2, v3) -> (* Cons *) │
00:00:40 #4941 [Verbose] > │ let v4 : float = v1 + v2 │
00:00:40 #4942 [Verbose] > │ method14(v3, v4) │
00:00:40 #4943 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:40 #4944 [Verbose] > │ v1 │
00:00:40 #4945 [Verbose] > │ and method12 (v0 : UH4, v1 : UH5) : UH5 = │
00:00:40 #4946 [Verbose] > │ match v0 with │
00:00:40 #4947 [Verbose] > │ | UH4_0(v2, v3) -> (* Cons *) │
00:00:40 #4948 [Verbose] > │ let v4 : UH5 = method12(v3, v1) │
00:00:40 #4949 [Verbose] > │ let v18 : US0 = │
00:00:40 #4950 [Verbose] > │ match v2 with │
00:00:40 #4951 [Verbose] > │ | UH0_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (* Cons │
00:00:40 #4952 [Verbose] > │ *) │
00:00:40 #4953 [Verbose] > │ US0_1(v5, v6, v7, v8, v9, v10, v11, v12, v13) │
00:00:40 #4954 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:40 #4955 [Verbose] > │ US0_0 │
00:00:40 #4956 [Verbose] > │ let struct (v46 : float, v47 : float, v48 : float, v49 : float, v50 │
00:00:40 #4957 [Verbose] > │ : float, v51 : float, v52 : float, v53 : float, v54 : float) = │
00:00:40 #4958 [Verbose] > │ match v18 with │
00:00:40 #4959 [Verbose] > │ | US0_0 -> (* None *) │
00:00:40 #4960 [Verbose] > │ failwith<struct (float * float * float * float * float * │
00:00:40 #4961 [Verbose] > │ float * float * float * float)> "Option does not have a value." │
00:00:40 #4962 [Verbose] > │ | US0_1(v19, v20, v21, v22, v23, v24, v25, v26, v27) -> (* Some │
00:00:40 #4963 [Verbose] > │ *) │
00:00:40 #4964 [Verbose] > │ struct (v19, v20, v21, v22, v23, v24, v25, v26, v27) │
00:00:40 #4965 [Verbose] > │ let v55 : UH6 = UH6_1 │
00:00:40 #4966 [Verbose] > │ let v56 : UH6 = method13(v2, v55) │
00:00:40 #4967 [Verbose] > │ let v57 : float = 0.0 │
00:00:40 #4968 [Verbose] > │ let v58 : float = method14(v56, v57) │
00:00:40 #4969 [Verbose] > │ UH5_0(v51, v58, v4) │
00:00:40 #4970 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:40 #4971 [Verbose] > │ v1 │
00:00:40 #4972 [Verbose] > │ and method15 (v0 : UH5, v1 : UH6, v2 : UH6) : struct (UH6 * UH6) = │
00:00:40 #4973 [Verbose] > │ match v0 with │
00:00:40 #4974 [Verbose] > │ | UH5_0(v3, v4, v5) -> (* Cons *) │
00:00:40 #4975 [Verbose] > │ let v6 : UH6 = UH6_0(v3, v1) │
00:00:40 #4976 [Verbose] > │ let v7 : UH6 = UH6_0(v4, v2) │
00:00:40 #4977 [Verbose] > │ method15(v5, v6, v7) │
00:00:40 #4978 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:40 #4979 [Verbose] > │ struct (v1, v2) │
00:00:40 #4980 [Verbose] > │ and method16 (v0 : UH6, v1 : UH6) : UH6 = │
00:00:40 #4981 [Verbose] > │ match v0 with │
00:00:40 #4982 [Verbose] > │ | UH6_0(v2, v3) -> (* Cons *) │
00:00:40 #4983 [Verbose] > │ let v4 : UH6 = UH6_0(v2, v1) │
00:00:40 #4984 [Verbose] > │ method16(v3, v4) │
00:00:40 #4985 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:40 #4986 [Verbose] > │ v1 │
00:00:40 #4987 [Verbose] > │ and method18 (v0 : UH1, v1 : UH1) : UH1 = │
00:00:40 #4988 [Verbose] > │ match v0 with │
00:00:40 #4989 [Verbose] > │ | UH1_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* Cons *) │
00:00:40 #4990 [Verbose] > │ let v12 : UH1 = UH1_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v1) │
00:00:40 #4991 [Verbose] > │ method18(v11, v12) │
00:00:40 #4992 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:40 #4993 [Verbose] > │ v1 │
00:00:40 #4994 [Verbose] > │ and method17 (v0 : UH1, v1 : UH1, v2 : UH1) : UH1 = │
00:00:40 #4995 [Verbose] > │ match v1 with │
00:00:40 #4996 [Verbose] > │ | UH1_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* Cons *) │
00:00:40 #4997 [Verbose] > │ match v2 with │
00:00:40 #4998 [Verbose] > │ | UH1_0(v13, v14, v15, v16, v17, v18, v19, v20, v21, v22) -> (* Cons │
00:00:40 #4999 [Verbose] > │ *) │
00:00:40 #5000 [Verbose] > │ let v23 : float = v3 + v13 │
00:00:40 #5001 [Verbose] > │ let v24 : float = v4 + v14 │
00:00:40 #5002 [Verbose] > │ let v25 : float = v8 + v18 │
00:00:40 #5003 [Verbose] > │ let v26 : float = v5 + v15 │
00:00:40 #5004 [Verbose] > │ let v27 : float = v6 + v16 │
00:00:40 #5005 [Verbose] > │ let v28 : float = v7 + v17 │
00:00:40 #5006 [Verbose] > │ let v29 : float = v9 + v19 │
00:00:40 #5007 [Verbose] > │ let v30 : float = v10 + v20 │
00:00:40 #5008 [Verbose] > │ let v31 : float = v11 + v21 │
00:00:40 #5009 [Verbose] > │ let v32 : UH1 = UH1_0(v23, v24, v26, v27, v28, v25, v29, v30, │
00:00:40 #5010 [Verbose] > │ v31, v0) │
00:00:40 #5011 [Verbose] > │ method17(v32, v12, v22) │
00:00:40 #5012 [Verbose] > │ | _ -> │
00:00:40 #5013 [Verbose] > │ let v34 : UH1 = UH1_1 │
00:00:40 #5014 [Verbose] > │ method18(v0, v34) │
00:00:40 #5015 [Verbose] > │ | _ -> │
00:00:40 #5016 [Verbose] > │ let v37 : UH1 = UH1_1 │
00:00:40 #5017 [Verbose] > │ method18(v0, v37) │
00:00:40 #5018 [Verbose] > │ and closure8 (v0 : float, v1 : (UH0 -> UH1)) (v2 : UH0) : UH0 = │
00:00:40 #5019 [Verbose] > │ let v3 : UH1 = v1 v2 │
00:00:40 #5020 [Verbose] > │ let v4 : float = v0 / 2.0 │
00:00:40 #5021 [Verbose] > │ let v5 : UH0 = UH0_1 │
00:00:40 #5022 [Verbose] > │ let v6 : UH0 = method1(v4, v5, v3, v2) │
00:00:40 #5023 [Verbose] > │ let v7 : UH1 = v1 v6 │
00:00:40 #5024 [Verbose] > │ let v8 : UH0 = UH0_1 │
00:00:40 #5025 [Verbose] > │ let v9 : UH0 = method1(v4, v8, v7, v2) │
00:00:40 #5026 [Verbose] > │ let v10 : UH1 = v1 v9 │
00:00:40 #5027 [Verbose] > │ let v11 : UH0 = UH0_1 │
00:00:40 #5028 [Verbose] > │ let v12 : UH0 = method1(v0, v11, v10, v2) │
00:00:40 #5029 [Verbose] > │ let v13 : UH1 = v1 v12 │
00:00:40 #5030 [Verbose] > │ let v14 : float = v0 / 6.0 │
00:00:40 #5031 [Verbose] > │ let v15 : UH1 = UH1_1 │
00:00:40 #5032 [Verbose] > │ let v16 : UH1 = method17(v15, v3, v7) │
00:00:40 #5033 [Verbose] > │ let v17 : UH1 = UH1_1 │
00:00:40 #5034 [Verbose] > │ let v18 : UH1 = method17(v17, v16, v7) │
00:00:40 #5035 [Verbose] > │ let v19 : UH1 = UH1_1 │
00:00:40 #5036 [Verbose] > │ let v20 : UH1 = method17(v19, v18, v10) │
00:00:40 #5037 [Verbose] > │ let v21 : UH1 = UH1_1 │
00:00:40 #5038 [Verbose] > │ let v22 : UH1 = method17(v21, v20, v10) │
00:00:40 #5039 [Verbose] > │ let v23 : UH1 = UH1_1 │
00:00:40 #5040 [Verbose] > │ let v24 : UH1 = method17(v23, v22, v13) │
00:00:40 #5041 [Verbose] > │ let v25 : UH0 = UH0_1 │
00:00:40 #5042 [Verbose] > │ let v26 : UH0 = method1(v14, v25, v24, v2) │
00:00:40 #5043 [Verbose] > │ v26 │
00:00:40 #5044 [Verbose] > │ and closure7 (v0 : float) (v1 : (UH0 -> UH1)) : (UH0 -> UH0) = │
00:00:40 #5045 [Verbose] > │ closure8(v0, v1) │
00:00:40 #5046 [Verbose] > │ and closure6 () (v0 : float) : ((UH0 -> UH1) -> (UH0 -> UH0)) = │
00:00:40 #5047 [Verbose] > │ closure7(v0) │
00:00:40 #5048 [Verbose] > │ and method19 (v0 : UH4, v1 : UH5) : UH5 = │
00:00:40 #5049 [Verbose] > │ match v0 with │
00:00:40 #5050 [Verbose] > │ | UH4_0(v2, v3) -> (* Cons *) │
00:00:40 #5051 [Verbose] > │ let v4 : UH5 = method19(v3, v1) │
00:00:40 #5052 [Verbose] > │ let v18 : US0 = │
00:00:40 #5053 [Verbose] > │ match v2 with │
00:00:40 #5054 [Verbose] > │ | UH0_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (* Cons │
00:00:40 #5055 [Verbose] > │ *) │
00:00:40 #5056 [Verbose] > │ US0_1(v5, v6, v7, v8, v9, v10, v11, v12, v13) │
00:00:40 #5057 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:40 #5058 [Verbose] > │ US0_0 │
00:00:40 #5059 [Verbose] > │ let struct (v46 : float, v47 : float, v48 : float, v49 : float, v50 │
00:00:40 #5060 [Verbose] > │ : float, v51 : float, v52 : float, v53 : float, v54 : float) = │
00:00:40 #5061 [Verbose] > │ match v18 with │
00:00:40 #5062 [Verbose] > │ | US0_0 -> (* None *) │
00:00:40 #5063 [Verbose] > │ failwith<struct (float * float * float * float * float * │
00:00:40 #5064 [Verbose] > │ float * float * float * float)> "Option does not have a value." │
00:00:40 #5065 [Verbose] > │ | US0_1(v19, v20, v21, v22, v23, v24, v25, v26, v27) -> (* Some │
00:00:40 #5066 [Verbose] > │ *) │
00:00:40 #5067 [Verbose] > │ struct (v19, v20, v21, v22, v23, v24, v25, v26, v27) │
00:00:40 #5068 [Verbose] > │ let v55 : UH6 = UH6_1 │
00:00:40 #5069 [Verbose] > │ let v56 : UH6 = method13(v2, v55) │
00:00:40 #5070 [Verbose] > │ let v57 : float = 0.0 │
00:00:40 #5071 [Verbose] > │ let v58 : float = method14(v56, v57) │
00:00:40 #5072 [Verbose] > │ UH5_0(v51, v58, v4) │
00:00:40 #5073 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:40 #5074 [Verbose] > │ v1 │
00:00:40 #5075 [Verbose] > │ and method21 (v0 : UH6, v1 : int32) : int32 = │
00:00:40 #5076 [Verbose] > │ match v0 with │
00:00:40 #5077 [Verbose] > │ | UH6_0(v2, v3) -> (* Cons *) │
00:00:40 #5078 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:40 #5079 [Verbose] > │ method21(v3, v4) │
00:00:40 #5080 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:40 #5081 [Verbose] > │ v1 │
00:00:40 #5082 [Verbose] > │ and method22 (v0 : (float []), v1 : UH6, v2 : int32) : int32 = │
00:00:40 #5083 [Verbose] > │ match v1 with │
00:00:40 #5084 [Verbose] > │ | UH6_0(v3, v4) -> (* Cons *) │
00:00:40 #5085 [Verbose] > │ v0.[int v2] <- v3 │
00:00:40 #5086 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:40 #5087 [Verbose] > │ method22(v0, v4, v5) │
00:00:40 #5088 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:40 #5089 [Verbose] > │ v2 │
00:00:40 #5090 [Verbose] > │ and method20 (v0 : UH6) : (float []) = │
00:00:40 #5091 [Verbose] > │ let v1 : int32 = 0 │
00:00:40 #5092 [Verbose] > │ let v2 : int32 = method21(v0, v1) │
00:00:40 #5093 [Verbose] > │ let v3 : (float []) = Array.zeroCreate<float> (v2) │
00:00:40 #5094 [Verbose] > │ let v4 : int32 = 0 │
00:00:40 #5095 [Verbose] > │ let v5 : int32 = method22(v3, v0, v4) │
00:00:40 #5096 [Verbose] > │ v3 │
00:00:40 #5097 [Verbose] > │ and method23 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:40 #5098 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:40 #5099 [Verbose] > │ v0 │
00:00:40 #5100 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:40 #5101 [Verbose] > │ []) * (float [])) [])) = │
00:00:40 #5102 [Verbose] > │ let v0 : (float -> ((UH0 -> UH1) -> (UH0 -> UH0))) = closure0() │
00:00:40 #5103 [Verbose] > │ let v1 : ((UH0 -> UH1) -> (UH0 -> UH0)) = v0 0.03 │
00:00:40 #5104 [Verbose] > │ let v2 : (UH0 -> UH1) = closure3() │
00:00:40 #5105 [Verbose] > │ let v3 : (UH0 -> UH0) = v1 v2 │
00:00:40 #5106 [Verbose] > │ let v4 : UH4 = UH4_1 │
00:00:40 #5107 [Verbose] > │ let v5 : int32 = 0 │
00:00:40 #5108 [Verbose] > │ let v6 : UH4 = method9(v3, v4, v5) │
00:00:40 #5109 [Verbose] > │ let v7 : UH5 = UH5_1 │
00:00:40 #5110 [Verbose] > │ let v8 : UH5 = method12(v6, v7) │
00:00:40 #5111 [Verbose] > │ let v9 : UH6 = UH6_1 │
00:00:40 #5112 [Verbose] > │ let v10 : UH6 = UH6_1 │
00:00:40 #5113 [Verbose] > │ let struct (v11 : UH6, v12 : UH6) = method15(v8, v9, v10) │
00:00:40 #5114 [Verbose] > │ let v13 : UH6 = UH6_1 │
00:00:40 #5115 [Verbose] > │ let v14 : UH6 = method16(v11, v13) │
00:00:40 #5116 [Verbose] > │ let v15 : UH6 = UH6_1 │
00:00:40 #5117 [Verbose] > │ let v16 : UH6 = method16(v12, v15) │
00:00:40 #5118 [Verbose] > │ let v17 : (float -> ((UH0 -> UH1) -> (UH0 -> UH0))) = closure6() │
00:00:40 #5119 [Verbose] > │ let v18 : ((UH0 -> UH1) -> (UH0 -> UH0)) = v17 0.03 │
00:00:40 #5120 [Verbose] > │ let v19 : (UH0 -> UH0) = v18 v2 │
00:00:40 #5121 [Verbose] > │ let v20 : UH4 = UH4_1 │
00:00:40 #5122 [Verbose] > │ let v21 : int32 = 0 │
00:00:40 #5123 [Verbose] > │ let v22 : UH4 = method9(v19, v20, v21) │
00:00:40 #5124 [Verbose] > │ let v23 : UH5 = UH5_1 │
00:00:40 #5125 [Verbose] > │ let v24 : UH5 = method19(v22, v23) │
00:00:40 #5126 [Verbose] > │ let v25 : UH6 = UH6_1 │
00:00:40 #5127 [Verbose] > │ let v26 : UH6 = UH6_1 │
00:00:40 #5128 [Verbose] > │ let struct (v27 : UH6, v28 : UH6) = method15(v24, v25, v26) │
00:00:40 #5129 [Verbose] > │ let v29 : UH6 = UH6_1 │
00:00:40 #5130 [Verbose] > │ let v30 : UH6 = method16(v27, v29) │
00:00:40 #5131 [Verbose] > │ let v31 : UH6 = UH6_1 │
00:00:40 #5132 [Verbose] > │ let v32 : UH6 = method16(v28, v31) │
00:00:40 #5133 [Verbose] > │ let v33 : (float []) = method20(v14) │
00:00:40 #5134 [Verbose] > │ let v34 : (float []) = method20(v16) │
00:00:40 #5135 [Verbose] > │ let v35 : (float []) = method20(v30) │
00:00:40 #5136 [Verbose] > │ let v36 : (float []) = method20(v32) │
00:00:40 #5137 [Verbose] > │ let v37 : string = "euler-cromer" │
00:00:40 #5138 [Verbose] > │ let v38 : string = "runge-kutta 4" │
00:00:40 #5139 [Verbose] > │ let v39 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:40 #5140 [Verbose] > │ (v37, v33, v34); struct (v38, v35, v36)|] │
00:00:40 #5141 [Verbose] > │ let v40 : (struct (string * (float []) * (float [])) []) = method23(v39) │
00:00:40 #5142 [Verbose] > │ let v41 : string = "system kinetic energy versus time" │
00:00:40 #5143 [Verbose] > │ let v42 : string = "time (s)" │
00:00:40 #5144 [Verbose] > │ let v43 : string = "system kinetic energy (j)" │
00:00:40 #5145 [Verbose] > │ struct (v41, v42, v43, v40) │
00:00:40 #5146 [Verbose] > │ method0() │
00:00:40 #5147 [Verbose] > │ │
00:00:40 #5148 [Verbose] > │ │
00:00:40 #5149 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 #5150 [Verbose] >
00:00:40 #5151 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:40 #5152 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:40 #5153 [Verbose] > │ ### wave 1 │
00:00:40 #5154 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:40 #5155 [Verbose] >
00:00:40 #5156 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:40 #5157 [Verbose] > // // test
00:00:40 #5158 [Verbose] >
00:00:40 #5159 [Verbose] > inl linear_spring k re (particle_state st1) (particle_state st2) =
00:00:40 #5160 [Verbose] > inl r1 = st1.pos_vec
00:00:40 #5161 [Verbose] > inl r2 = st2.pos_vec
00:00:40 #5162 [Verbose] > inl r21 = r2 ^-^ r1
00:00:40 #5163 [Verbose] > inl r21mag = magnitude r21
00:00:40 #5164 [Verbose] > -k * (r21mag - re) *^ r21 ^/ r21mag
00:00:40 #5165 [Verbose] >
00:00:40 #5166 [Verbose] > inl fixed_linear_spring k re r1 =
00:00:40 #5167 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:40 #5168 [Verbose] > linear_spring k re (particle_state { default_particle_state' with pos_vec =
00:00:40 #5169 [Verbose] > r1 })
00:00:40 #5170 [Verbose] >
00:00:40 #5171 [Verbose] > inl forces_string () =
00:00:40 #5172 [Verbose] > [[
00:00:40 #5173 [Verbose] > ExternalForce (0, fixed_linear_spring 5384 0 (zero_vec ()))
00:00:40 #5174 [Verbose] > ExternalForce (63, fixed_linear_spring 5384 0 (0.65 *^ i_hat ()))
00:00:40 #5175 [Verbose] > ]] /@ (
00:00:40 #5176 [Verbose] > listm'.init_series 0 59 1
00:00:40 #5177 [Verbose] > |> listm.map (fun n => InternalForce (n, n + 1, linear_spring 5384 0))
00:00:40 #5178 [Verbose] > )
00:00:40 #5179 [Verbose] >
00:00:40 #5180 [Verbose] > inl string_update dt =
00:00:40 #5181 [Verbose] > update_mps (runge_kutta_4 dt) (forces_string ())
00:00:40 #5182 [Verbose] >
00:00:40 #5183 [Verbose] > inl string_initial_overtone n =
00:00:40 #5184 [Verbose] > inl ball_mass = 0.0008293 * 0.65 / 64
00:00:40 #5185 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:40 #5186 [Verbose] > listm'.init_series 0.01 0.64 0.01
00:00:40 #5187 [Verbose] > |> listm.map (fun x =>
00:00:40 #5188 [Verbose] > inl y = 0.005 * sin (conv n * pi * x / 0.65)
00:00:40 #5189 [Verbose] > particle_state {
00:00:40 #5190 [Verbose] > default_particle_state' with
00:00:40 #5191 [Verbose] > mass = ball_mass
00:00:40 #5192 [Verbose] > pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()
00:00:40 #5193 [Verbose] > velocity = zero_vec ()
00:00:40 #5194 [Verbose] > }
00:00:40 #5195 [Verbose] > )
00:00:40 #5196 [Verbose] > |> multi_particle_state
00:00:40 #5197 [Verbose] >
00:00:40 #5198 [Verbose] > inl string_initial_pluck () =
00:00:40 #5199 [Verbose] > inl ball_mass = 0.0008293 * 0.65 / 64
00:00:40 #5200 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:40 #5201 [Verbose] > listm'.init_series 0.01 0.64 0.01
00:00:40 #5202 [Verbose] > |> listm.map (fun x =>
00:00:40 #5203 [Verbose] > inl y =
00:00:40 #5204 [Verbose] > inl n = if x <= 0.51 then 0 else 0.65
00:00:40 #5205 [Verbose] > 0.005 / (0.51 - n) * (x - n)
00:00:40 #5206 [Verbose] > particle_state {
00:00:40 #5207 [Verbose] > default_particle_state' with
00:00:40 #5208 [Verbose] > mass = ball_mass
00:00:40 #5209 [Verbose] > pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()
00:00:40 #5210 [Verbose] > velocity = zero_vec ()
00:00:40 #5211 [Verbose] > }
00:00:40 #5212 [Verbose] > )
00:00:40 #5213 [Verbose] > |> multi_particle_state
00:00:40 #5214 [Verbose] >
00:00:40 #5215 [Verbose] > let main () =
00:00:40 #5216 [Verbose] > inl ~frames = listm'.init_series 0 9 1f64
00:00:40 #5217 [Verbose] > inl initial_state = string_initial_overtone 3i32
00:00:40 #5218 [Verbose] > inl frames =
00:00:40 #5219 [Verbose] > frames
00:00:40 #5220 [Verbose] > |> listm.map (fun n =>
00:00:40 #5221 [Verbose] > inl (multi_particle_state sts) =
00:00:40 #5222 [Verbose] > seq.iterate' (string_update 0.000025) initial_state |> fun f =>
00:00:40 #5223 [Verbose] > f 0f64
00:00:40 #5224 [Verbose] > inl rs =
00:00:40 #5225 [Verbose] > [[ zero_vec () ]]
00:00:40 #5226 [Verbose] > /@ (sts |> listm.map (fun (particle_state st) => st.pos_vec))
00:00:40 #5227 [Verbose] > /@ [[ 0.65 *^ i_hat () ]]
00:00:40 #5228 [Verbose] > inl x, y =
00:00:40 #5229 [Verbose] > rs
00:00:40 #5230 [Verbose] > |> listm.map (fun r => r.x, r.y)
00:00:40 #5231 [Verbose] > |> listm'.unzip
00:00:40 #5232 [Verbose] > inl x : a i32 _ = x |> listm.toArray
00:00:40 #5233 [Verbose] > inl y : a i32 _ = y |> listm.toArray
00:00:40 #5234 [Verbose] > x, y
00:00:40 #5235 [Verbose] > )
00:00:40 #5236 [Verbose] > |> listm.toArray : a i32 _
00:00:40 #5237 [Verbose] >
00:00:40 #5238 [Verbose] > inl n = 0i32
00:00:40 #5239 [Verbose] >
00:00:40 #5240 [Verbose] > inl x, y = index frames n
00:00:40 #5241 [Verbose] >
00:00:40 #5242 [Verbose] > "wave",
00:00:40 #5243 [Verbose] > "position (m)",
00:00:40 #5244 [Verbose] > "displacement (m)",
00:00:40 #5245 [Verbose] > ;[[
00:00:40 #5246 [Verbose] > ($"$\"{!n}\"" : string), x, y
00:00:40 #5247 [Verbose] > ]]
00:00:40 #5248 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0044-0502-0206-05b216ac46d2\main.spi
00:00:41 #5249 [Verbose] >
00:00:41 #5250 [Verbose] > ╭─[ 548.89ms - return value ]──────────────────────────────────────────────────╮
00:00:41 #5251 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:41 #5252 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:41 #5253 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:41 #5254 [Verbose] > │ stroke="none"/> │
00:00:41 #5255 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:41 #5256 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:41 #5257 [Verbose] > │ fill="#FFFFFF"> │
00:00:41 #5258 [Verbose] > │ wave │
00:00:41 #5259 [Verbose] > │ </text> │
00:00:41 #5260 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │
00:00:41 #5261 [Verbose] > │ y2="75"/> │
00:00:41 #5262 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:41 #5263 [Verbose] > │ y2="75"/> │
00:00:41 #5264 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │
00:00:41 #5265 [Verbose] > │ y2="75"/> │
00:00:41 #5266 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="85" y1="424" x2="85" │
00:00:41 #5267 [Verbose] > │ y2="75"/> │
00:00:41 #5268 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="93" y1="424" x2="93" │
00:00:41 #5269 [Verbose] > │ y2... │
00:00:41 #5270 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:41 #5271 [Verbose] >
00:00:41 #5272 [Verbose] > ╭─[ 562.21ms - stdout ]────────────────────────────────────────────────────────╮
00:00:41 #5273 [Verbose] > │ type UH0 = │
00:00:41 #5274 [Verbose] > │ | UH0_0 of float * UH0 │
00:00:41 #5275 [Verbose] > │ | UH0_1 │
00:00:41 #5276 [Verbose] > │ and UH1 = │
00:00:41 #5277 [Verbose] > │ | UH1_0 of (float []) * (float []) * UH1 │
00:00:41 #5278 [Verbose] > │ | UH1_1 │
00:00:41 #5279 [Verbose] > │ let rec method3 (v0 : UH0, v1 : int32) : int32 = │
00:00:41 #5280 [Verbose] > │ match v0 with │
00:00:41 #5281 [Verbose] > │ | UH0_0(v2, v3) -> (* Cons *) │
00:00:41 #5282 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:41 #5283 [Verbose] > │ method3(v3, v4) │
00:00:41 #5284 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:41 #5285 [Verbose] > │ v1 │
00:00:41 #5286 [Verbose] > │ and method4 (v0 : (float []), v1 : UH0, v2 : int32) : int32 = │
00:00:41 #5287 [Verbose] > │ match v1 with │
00:00:41 #5288 [Verbose] > │ | UH0_0(v3, v4) -> (* Cons *) │
00:00:41 #5289 [Verbose] > │ v0.[int v2] <- v3 │
00:00:41 #5290 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:41 #5291 [Verbose] > │ method4(v0, v4, v5) │
00:00:41 #5292 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:41 #5293 [Verbose] > │ v2 │
00:00:41 #5294 [Verbose] > │ and method2 (v0 : UH0) : (float []) = │
00:00:41 #5295 [Verbose] > │ let v1 : int32 = 0 │
00:00:41 #5296 [Verbose] > │ let v2 : int32 = method3(v0, v1) │
00:00:41 #5297 [Verbose] > │ let v3 : (float []) = Array.zeroCreate<float> (v2) │
00:00:41 #5298 [Verbose] > │ let v4 : int32 = 0 │
00:00:41 #5299 [Verbose] > │ let v5 : int32 = method4(v3, v0, v4) │
00:00:41 #5300 [Verbose] > │ v3 │
00:00:41 #5301 [Verbose] > │ and method1 (v0 : UH0, v1 : UH1) : UH1 = │
00:00:41 #5302 [Verbose] > │ match v0 with │
00:00:41 #5303 [Verbose] > │ | UH0_0(v2, v3) -> (* Cons *) │
00:00:41 #5304 [Verbose] > │ let v4 : UH1 = method1(v3, v1) │
00:00:41 #5305 [Verbose] > │ let v5 : float = 0.0 │
00:00:41 #5306 [Verbose] > │ let v6 : float = 0.01 │
00:00:41 #5307 [Verbose] > │ let v7 : float = 0.02 │
00:00:41 #5308 [Verbose] > │ let v8 : float = 0.03 │
00:00:41 #5309 [Verbose] > │ let v9 : float = 0.04 │
00:00:41 #5310 [Verbose] > │ let v10 : float = 0.05 │
00:00:41 #5311 [Verbose] > │ let v11 : float = 0.060000000000000005 │
00:00:41 #5312 [Verbose] > │ let v12 : float = 0.06999999999999999 │
00:00:41 #5313 [Verbose] > │ let v13 : float = 0.08 │
00:00:41 #5314 [Verbose] > │ let v14 : float = 0.09 │
00:00:41 #5315 [Verbose] > │ let v15 : float = 0.09999999999999999 │
00:00:41 #5316 [Verbose] > │ let v16 : float = 0.11 │
00:00:41 #5317 [Verbose] > │ let v17 : float = 0.12 │
00:00:41 #5318 [Verbose] > │ let v18 : float = 0.13 │
00:00:41 #5319 [Verbose] > │ let v19 : float = 0.14 │
00:00:41 #5320 [Verbose] > │ let v20 : float = 0.15000000000000002 │
00:00:41 #5321 [Verbose] > │ let v21 : float = 0.16 │
00:00:41 #5322 [Verbose] > │ let v22 : float = 0.17 │
00:00:41 #5323 [Verbose] > │ let v23 : float = 0.18000000000000002 │
00:00:41 #5324 [Verbose] > │ let v24 : float = 0.19 │
00:00:41 #5325 [Verbose] > │ let v25 : float = 0.2 │
00:00:41 #5326 [Verbose] > │ let v26 : float = 0.21000000000000002 │
00:00:41 #5327 [Verbose] > │ let v27 : float = 0.22 │
00:00:41 #5328 [Verbose] > │ let v28 : float = 0.23 │
00:00:41 #5329 [Verbose] > │ let v29 : float = 0.24000000000000002 │
00:00:41 #5330 [Verbose] > │ let v30 : float = 0.25 │
00:00:41 #5331 [Verbose] > │ let v31 : float = 0.26 │
00:00:41 #5332 [Verbose] > │ let v32 : float = 0.27 │
00:00:41 #5333 [Verbose] > │ let v33 : float = 0.28 │
00:00:41 #5334 [Verbose] > │ let v34 : float = 0.29000000000000004 │
00:00:41 #5335 [Verbose] > │ let v35 : float = 0.3 │
00:00:41 #5336 [Verbose] > │ let v36 : float = 0.31 │
00:00:41 #5337 [Verbose] > │ let v37 : float = 0.32 │
00:00:41 #5338 [Verbose] > │ let v38 : float = 0.33 │
00:00:41 #5339 [Verbose] > │ let v39 : float = 0.34 │
00:00:41 #5340 [Verbose] > │ let v40 : float = 0.35000000000000003 │
00:00:41 #5341 [Verbose] > │ let v41 : float = 0.36000000000000004 │
00:00:41 #5342 [Verbose] > │ let v42 : float = 0.37 │
00:00:41 #5343 [Verbose] > │ let v43 : float = 0.38 │
00:00:41 #5344 [Verbose] > │ let v44 : float = 0.39 │
00:00:41 #5345 [Verbose] > │ let v45 : float = 0.4 │
00:00:41 #5346 [Verbose] > │ let v46 : float = 0.41000000000000003 │
00:00:41 #5347 [Verbose] > │ let v47 : float = 0.42000000000000004 │
00:00:41 #5348 [Verbose] > │ let v48 : float = 0.43 │
00:00:41 #5349 [Verbose] > │ let v49 : float = 0.44 │
00:00:41 #5350 [Verbose] > │ let v50 : float = 0.45 │
00:00:41 #5351 [Verbose] > │ let v51 : float = 0.46 │
00:00:41 #5352 [Verbose] > │ let v52 : float = 0.47000000000000003 │
00:00:41 #5353 [Verbose] > │ let v53 : float = 0.48000000000000004 │
00:00:41 #5354 [Verbose] > │ let v54 : float = 0.49 │
00:00:41 #5355 [Verbose] > │ let v55 : float = 0.5 │
00:00:41 #5356 [Verbose] > │ let v56 : float = 0.51 │
00:00:41 #5357 [Verbose] > │ let v57 : float = 0.52 │
00:00:41 #5358 [Verbose] > │ let v58 : float = 0.53 │
00:00:41 #5359 [Verbose] > │ let v59 : float = 0.54 │
00:00:41 #5360 [Verbose] > │ let v60 : float = 0.55 │
00:00:41 #5361 [Verbose] > │ let v61 : float = 0.56 │
00:00:41 #5362 [Verbose] > │ let v62 : float = 0.5700000000000001 │
00:00:41 #5363 [Verbose] > │ let v63 : float = 0.5800000000000001 │
00:00:41 #5364 [Verbose] > │ let v64 : float = 0.59 │
00:00:41 #5365 [Verbose] > │ let v65 : float = 0.6 │
00:00:41 #5366 [Verbose] > │ let v66 : float = 0.61 │
00:00:41 #5367 [Verbose] > │ let v67 : float = 0.62 │
00:00:41 #5368 [Verbose] > │ let v68 : float = 0.63 │
00:00:41 #5369 [Verbose] > │ let v69 : float = 0.64 │
00:00:41 #5370 [Verbose] > │ let v70 : float = 0.65 │
00:00:41 #5371 [Verbose] > │ let v71 : UH0 = UH0_1 │
00:00:41 #5372 [Verbose] > │ let v72 : UH0 = UH0_0(v70, v71) │
00:00:41 #5373 [Verbose] > │ let v73 : UH0 = UH0_0(v69, v72) │
00:00:41 #5374 [Verbose] > │ let v74 : UH0 = UH0_0(v68, v73) │
00:00:41 #5375 [Verbose] > │ let v75 : UH0 = UH0_0(v67, v74) │
00:00:41 #5376 [Verbose] > │ let v76 : UH0 = UH0_0(v66, v75) │
00:00:41 #5377 [Verbose] > │ let v77 : UH0 = UH0_0(v65, v76) │
00:00:41 #5378 [Verbose] > │ let v78 : UH0 = UH0_0(v64, v77) │
00:00:41 #5379 [Verbose] > │ let v79 : UH0 = UH0_0(v63, v78) │
00:00:41 #5380 [Verbose] > │ let v80 : UH0 = UH0_0(v62, v79) │
00:00:41 #5381 [Verbose] > │ let v81 : UH0 = UH0_0(v61, v80) │
00:00:41 #5382 [Verbose] > │ let v82 : UH0 = UH0_0(v60, v81) │
00:00:41 #5383 [Verbose] > │ let v83 : UH0 = UH0_0(v59, v82) │
00:00:41 #5384 [Verbose] > │ let v84 : UH0 = UH0_0(v58, v83) │
00:00:41 #5385 [Verbose] > │ let v85 : UH0 = UH0_0(v57, v84) │
00:00:41 #5386 [Verbose] > │ let v86 : UH0 = UH0_0(v56, v85) │
00:00:41 #5387 [Verbose] > │ let v87 : UH0 = UH0_0(v55, v86) │
00:00:41 #5388 [Verbose] > │ let v88 : UH0 = UH0_0(v54, v87) │
00:00:41 #5389 [Verbose] > │ let v89 : UH0 = UH0_0(v53, v88) │
00:00:41 #5390 [Verbose] > │ let v90 : UH0 = UH0_0(v52, v89) │
00:00:41 #5391 [Verbose] > │ let v91 : UH0 = UH0_0(v51, v90) │
00:00:41 #5392 [Verbose] > │ let v92 : UH0 = UH0_0(v50, v91) │
00:00:41 #5393 [Verbose] > │ let v93 : UH0 = UH0_0(v49, v92) │
00:00:41 #5394 [Verbose] > │ let v94 : UH0 = UH0_0(v48, v93) │
00:00:41 #5395 [Verbose] > │ let v95 : UH0 = UH0_0(v47, v94) │
00:00:41 #5396 [Verbose] > │ let v96 : UH0 = UH0_0(v46, v95) │
00:00:41 #5397 [Verbose] > │ let v97 : UH0 = UH0_0(v45, v96) │
00:00:41 #5398 [Verbose] > │ let v98 : UH0 = UH0_0(v44, v97) │
00:00:41 #5399 [Verbose] > │ let v99 : UH0 = UH0_0(v43, v98) │
00:00:41 #5400 [Verbose] > │ let v100 : UH0 = UH0_0(v42, v99) │
00:00:41 #5401 [Verbose] > │ let v101 : UH0 = UH0_0(v41, v100) │
00:00:41 #5402 [Verbose] > │ let v102 : UH0 = UH0_0(v40, v101) │
00:00:41 #5403 [Verbose] > │ let v103 : UH0 = UH0_0(v39, v102) │
00:00:41 #5404 [Verbose] > │ let v104 : UH0 = UH0_0(v38, v103) │
00:00:41 #5405 [Verbose] > │ let v105 : UH0 = UH0_0(v37, v104) │
00:00:41 #5406 [Verbose] > │ let v106 : UH0 = UH0_0(v36, v105) │
00:00:41 #5407 [Verbose] > │ let v107 : UH0 = UH0_0(v35, v106) │
00:00:41 #5408 [Verbose] > │ let v108 : UH0 = UH0_0(v34, v107) │
00:00:41 #5409 [Verbose] > │ let v109 : UH0 = UH0_0(v33, v108) │
00:00:41 #5410 [Verbose] > │ let v110 : UH0 = UH0_0(v32, v109) │
00:00:41 #5411 [Verbose] > │ let v111 : UH0 = UH0_0(v31, v110) │
00:00:41 #5412 [Verbose] > │ let v112 : UH0 = UH0_0(v30, v111) │
00:00:41 #5413 [Verbose] > │ let v113 : UH0 = UH0_0(v29, v112) │
00:00:41 #5414 [Verbose] > │ let v114 : UH0 = UH0_0(v28, v113) │
00:00:41 #5415 [Verbose] > │ let v115 : UH0 = UH0_0(v27, v114) │
00:00:41 #5416 [Verbose] > │ let v116 : UH0 = UH0_0(v26, v115) │
00:00:41 #5417 [Verbose] > │ let v117 : UH0 = UH0_0(v25, v116) │
00:00:41 #5418 [Verbose] > │ let v118 : UH0 = UH0_0(v24, v117) │
00:00:41 #5419 [Verbose] > │ let v119 : UH0 = UH0_0(v23, v118) │
00:00:41 #5420 [Verbose] > │ let v120 : UH0 = UH0_0(v22, v119) │
00:00:41 #5421 [Verbose] > │ let v121 : UH0 = UH0_0(v21, v120) │
00:00:41 #5422 [Verbose] > │ let v122 : UH0 = UH0_0(v20, v121) │
00:00:41 #5423 [Verbose] > │ let v123 : UH0 = UH0_0(v19, v122) │
00:00:41 #5424 [Verbose] > │ let v124 : UH0 = UH0_0(v18, v123) │
00:00:41 #5425 [Verbose] > │ let v125 : UH0 = UH0_0(v17, v124) │
00:00:41 #5426 [Verbose] > │ let v126 : UH0 = UH0_0(v16, v125) │
00:00:41 #5427 [Verbose] > │ let v127 : UH0 = UH0_0(v15, v126) │
00:00:41 #5428 [Verbose] > │ let v128 : UH0 = UH0_0(v14, v127) │
00:00:41 #5429 [Verbose] > │ let v129 : UH0 = UH0_0(v13, v128) │
00:00:41 #5430 [Verbose] > │ let v130 : UH0 = UH0_0(v12, v129) │
00:00:41 #5431 [Verbose] > │ let v131 : UH0 = UH0_0(v11, v130) │
00:00:41 #5432 [Verbose] > │ let v132 : UH0 = UH0_0(v10, v131) │
00:00:41 #5433 [Verbose] > │ let v133 : UH0 = UH0_0(v9, v132) │
00:00:41 #5434 [Verbose] > │ let v134 : UH0 = UH0_0(v8, v133) │
00:00:41 #5435 [Verbose] > │ let v135 : UH0 = UH0_0(v7, v134) │
00:00:41 #5436 [Verbose] > │ let v136 : UH0 = UH0_0(v6, v135) │
00:00:41 #5437 [Verbose] > │ let v137 : UH0 = UH0_0(v5, v136) │
00:00:41 #5438 [Verbose] > │ let v138 : (float []) = method2(v137) │
00:00:41 #5439 [Verbose] > │ let v139 : float = 0.0 │
00:00:41 #5440 [Verbose] > │ let v140 : float = 0.0007224452478461068 │
00:00:41 #5441 [Verbose] > │ let v141 : float = 0.0014297283919934465 │
00:00:41 #5442 [Verbose] > │ let v142 : float = 0.0021070055388626454 │
00:00:41 #5443 [Verbose] > │ let v143 : float = 0.00274006253677335 │
00:00:41 #5444 [Verbose] > │ let v144 : float = 0.0033156132912039757 │
00:00:41 #5445 [Verbose] > │ let v145 : float = 0.0038215786027292415 │
00:00:41 #5446 [Verbose] > │ let v146 : float = 0.004247339675607605 │
00:00:41 #5447 [Verbose] > │ let v147 : float = 0.004583960976582912 │
00:00:41 #5448 [Verbose] > │ let v148 : float = 0.004824377766717757 │
00:00:41 #5449 [Verbose] > │ let v149 : float = 0.00496354437049027 │
00:00:41 #5450 [Verbose] > │ let v150 : float = 0.004998540070400965 │
00:00:41 #5451 [Verbose] > │ let v151 : float = 0.004928630404658255 │
00:00:41 #5452 [Verbose] > │ let v152 : float = 0.004755282581475768 │
00:00:41 #5453 [Verbose] > │ let v153 : float = 0.004482134686478519 │
00:00:41 #5454 [Verbose] > │ let v154 : float = 0.0041149193294682815 │
00:00:41 #5455 [Verbose] > │ let v155 : float = 0.0036613433329888666 │
00:00:41 #5456 [Verbose] > │ let v156 : float = 0.0031309259876915697 │
00:00:41 #5457 [Verbose] > │ let v157 : float = 0.002534799269067951 │
00:00:41 #5458 [Verbose] > │ let v158 : float = 0.0018854742084416015 │
00:00:41 #5459 [Verbose] > │ let v159 : float = 0.0011965783214377905 │
00:00:41 #5460 [Verbose] > │ let v160 : float = 0.00048256960457257535 │
00:00:41 #5461 [Verbose] > │ let v161 : float = -0.00024156689762753317 │
00:00:41 #5462 [Verbose] > │ let v162 : float = -0.0009606335867685418 │
00:00:41 #5463 [Verbose] > │ let v163 : float = -0.001659539265642642 │
00:00:41 #5464 [Verbose] > │ let v164 : float = -0.002323615860218842 │
00:00:41 #5465 [Verbose] > │ let v165 : float = -0.0029389262614623636 │
00:00:41 #5466 [Verbose] > │ let v166 : float = -0.003492556826244686 │
00:00:41 #5467 [Verbose] > │ let v167 : float = -0.003972888398568771 │
00:00:41 #5468 [Verbose] > │ let v168 : float = -0.00436984016313259 │
00:00:41 #5469 [Verbose] > │ let v169 : float = -0.004675081213427074 │
00:00:41 #5470 [Verbose] > │ let v170 : float = -0.004882205394146359 │
00:00:41 #5471 [Verbose] > │ let v171 : float = -0.004986865748457456 │
00:00:41 #5472 [Verbose] > │ let v172 : float = -0.004986865748457456 │
00:00:41 #5473 [Verbose] > │ let v173 : float = -0.004882205394146361 │
00:00:41 #5474 [Verbose] > │ let v174 : float = -0.004675081213427074 │
00:00:41 #5475 [Verbose] > │ let v175 : float = -0.004369840163132589 │
00:00:41 #5476 [Verbose] > │ let v176 : float = -0.003972888398568774 │
00:00:41 #5477 [Verbose] > │ let v177 : float = -0.0034925568262446837 │
00:00:41 #5478 [Verbose] > │ let v178 : float = -0.002938926261462367 │
00:00:41 #5479 [Verbose] > │ let v179 : float = -0.002323615860218846 │
00:00:41 #5480 [Verbose] > │ let v180 : float = -0.0016595392656426435 │
00:00:41 #5481 [Verbose] > │ let v181 : float = -0.0009606335867685414 │
00:00:41 #5482 [Verbose] > │ let v182 : float = -0.00024156689762753724 │
00:00:41 #5483 [Verbose] > │ let v183 : float = 0.0004825696045725713 │
00:00:41 #5484 [Verbose] > │ let v184 : float = 0.0011965783214377866 │
00:00:41 #5485 [Verbose] > │ let v185 : float = 0.0018854742084416021 │
00:00:41 #5486 [Verbose] > │ let v186 : float = 0.002534799269067953 │
00:00:41 #5487 [Verbose] > │ let v187 : float = 0.003130925987691568 │
00:00:41 #5488 [Verbose] > │ let v188 : float = 0.0036613433329888622 │
00:00:41 #5489 [Verbose] > │ let v189 : float = 0.0041149193294682815 │
00:00:41 #5490 [Verbose] > │ let v190 : float = 0.0044821346864785195 │
00:00:41 #5491 [Verbose] > │ let v191 : float = 0.004755282581475766 │
00:00:41 #5492 [Verbose] > │ let v192 : float = 0.004928630404658255 │
00:00:41 #5493 [Verbose] > │ let v193 : float = 0.004998540070400965 │
00:00:41 #5494 [Verbose] > │ let v194 : float = 0.004963544370490271 │
00:00:41 #5495 [Verbose] > │ let v195 : float = 0.004824377766717758 │
00:00:41 #5496 [Verbose] > │ let v196 : float = 0.004583960976582912 │
00:00:41 #5497 [Verbose] > │ let v197 : float = 0.004247339675607605 │
00:00:41 #5498 [Verbose] > │ let v198 : float = 0.003821578602729245 │
00:00:41 #5499 [Verbose] > │ let v199 : float = 0.0033156132912039783 │
00:00:41 #5500 [Verbose] > │ let v200 : float = 0.0027400625367733585 │
00:00:41 #5501 [Verbose] > │ let v201 : float = 0.0021070055388626528 │
00:00:41 #5502 [Verbose] > │ let v202 : float = 0.001429728391993452 │
00:00:41 #5503 [Verbose] > │ let v203 : float = 0.0007224452478461016 │
00:00:41 #5504 [Verbose] > │ let v204 : float = 0.0 │
00:00:41 #5505 [Verbose] > │ let v205 : UH0 = UH0_1 │
00:00:41 #5506 [Verbose] > │ let v206 : UH0 = UH0_0(v204, v205) │
00:00:41 #5507 [Verbose] > │ let v207 : UH0 = UH0_0(v203, v206) │
00:00:41 #5508 [Verbose] > │ let v208 : UH0 = UH0_0(v202, v207) │
00:00:41 #5509 [Verbose] > │ let v209 : UH0 = UH0_0(v201, v208) │
00:00:41 #5510 [Verbose] > │ let v210 : UH0 = UH0_0(v200, v209) │
00:00:41 #5511 [Verbose] > │ let v211 : UH0 = UH0_0(v199, v210) │
00:00:41 #5512 [Verbose] > │ let v212 : UH0 = UH0_0(v198, v211) │
00:00:41 #5513 [Verbose] > │ let v213 : UH0 = UH0_0(v197, v212) │
00:00:41 #5514 [Verbose] > │ let v214 : UH0 = UH0_0(v196, v213) │
00:00:41 #5515 [Verbose] > │ let v215 : UH0 = UH0_0(v195, v214) │
00:00:41 #5516 [Verbose] > │ let v216 : UH0 = UH0_0(v194, v215) │
00:00:41 #5517 [Verbose] > │ let v217 : UH0 = UH0_0(v193, v216) │
00:00:41 #5518 [Verbose] > │ let v218 : UH0 = UH0_0(v192, v217) │
00:00:41 #5519 [Verbose] > │ let v219 : UH0 = UH0_0(v191, v218) │
00:00:41 #5520 [Verbose] > │ let v220 : UH0 = UH0_0(v190, v219) │
00:00:41 #5521 [Verbose] > │ let v221 : UH0 = UH0_0(v189, v220) │
00:00:41 #5522 [Verbose] > │ let v222 : UH0 = UH0_0(v188, v221) │
00:00:41 #5523 [Verbose] > │ let v223 : UH0 = UH0_0(v187, v222) │
00:00:41 #5524 [Verbose] > │ let v224 : UH0 = UH0_0(v186, v223) │
00:00:41 #5525 [Verbose] > │ let v225 : UH0 = UH0_0(v185, v224) │
00:00:41 #5526 [Verbose] > │ let v226 : UH0 = UH0_0(v184, v225) │
00:00:41 #5527 [Verbose] > │ let v227 : UH0 = UH0_0(v183, v226) │
00:00:41 #5528 [Verbose] > │ let v228 : UH0 = UH0_0(v182, v227) │
00:00:41 #5529 [Verbose] > │ let v229 : UH0 = UH0_0(v181, v228) │
00:00:41 #5530 [Verbose] > │ let v230 : UH0 = UH0_0(v180, v229) │
00:00:41 #5531 [Verbose] > │ let v231 : UH0 = UH0_0(v179, v230) │
00:00:41 #5532 [Verbose] > │ let v232 : UH0 = UH0_0(v178, v231) │
00:00:41 #5533 [Verbose] > │ let v233 : UH0 = UH0_0(v177, v232) │
00:00:41 #5534 [Verbose] > │ let v234 : UH0 = UH0_0(v176, v233) │
00:00:41 #5535 [Verbose] > │ let v235 : UH0 = UH0_0(v175, v234) │
00:00:41 #5536 [Verbose] > │ let v236 : UH0 = UH0_0(v174, v235) │
00:00:41 #5537 [Verbose] > │ let v237 : UH0 = UH0_0(v173, v236) │
00:00:41 #5538 [Verbose] > │ let v238 : UH0 = UH0_0(v172, v237) │
00:00:41 #5539 [Verbose] > │ let v239 : UH0 = UH0_0(v171, v238) │
00:00:41 #5540 [Verbose] > │ let v240 : UH0 = UH0_0(v170, v239) │
00:00:41 #5541 [Verbose] > │ let v241 : UH0 = UH0_0(v169, v240) │
00:00:41 #5542 [Verbose] > │ let v242 : UH0 = UH0_0(v168, v241) │
00:00:41 #5543 [Verbose] > │ let v243 : UH0 = UH0_0(v167, v242) │
00:00:41 #5544 [Verbose] > │ let v244 : UH0 = UH0_0(v166, v243) │
00:00:41 #5545 [Verbose] > │ let v245 : UH0 = UH0_0(v165, v244) │
00:00:41 #5546 [Verbose] > │ let v246 : UH0 = UH0_0(v164, v245) │
00:00:41 #5547 [Verbose] > │ let v247 : UH0 = UH0_0(v163, v246) │
00:00:41 #5548 [Verbose] > │ let v248 : UH0 = UH0_0(v162, v247) │
00:00:41 #5549 [Verbose] > │ let v249 : UH0 = UH0_0(v161, v248) │
00:00:41 #5550 [Verbose] > │ let v250 : UH0 = UH0_0(v160, v249) │
00:00:41 #5551 [Verbose] > │ let v251 : UH0 = UH0_0(v159, v250) │
00:00:41 #5552 [Verbose] > │ let v252 : UH0 = UH0_0(v158, v251) │
00:00:41 #5553 [Verbose] > │ let v253 : UH0 = UH0_0(v157, v252) │
00:00:41 #5554 [Verbose] > │ let v254 : UH0 = UH0_0(v156, v253) │
00:00:41 #5555 [Verbose] > │ let v255 : UH0 = UH0_0(v155, v254) │
00:00:41 #5556 [Verbose] > │ let v256 : UH0 = UH0_0(v154, v255) │
00:00:41 #5557 [Verbose] > │ let v257 : UH0 = UH0_0(v153, v256) │
00:00:41 #5558 [Verbose] > │ let v258 : UH0 = UH0_0(v152, v257) │
00:00:41 #5559 [Verbose] > │ let v259 : UH0 = UH0_0(v151, v258) │
00:00:41 #5560 [Verbose] > │ let v260 : UH0 = UH0_0(v150, v259) │
00:00:41 #5561 [Verbose] > │ let v261 : UH0 = UH0_0(v149, v260) │
00:00:41 #5562 [Verbose] > │ let v262 : UH0 = UH0_0(v148, v261) │
00:00:41 #5563 [Verbose] > │ let v263 : UH0 = UH0_0(v147, v262) │
00:00:41 #5564 [Verbose] > │ let v264 : UH0 = UH0_0(v146, v263) │
00:00:41 #5565 [Verbose] > │ let v265 : UH0 = UH0_0(v145, v264) │
00:00:41 #5566 [Verbose] > │ let v266 : UH0 = UH0_0(v144, v265) │
00:00:41 #5567 [Verbose] > │ let v267 : UH0 = UH0_0(v143, v266) │
00:00:41 #5568 [Verbose] > │ let v268 : UH0 = UH0_0(v142, v267) │
00:00:41 #5569 [Verbose] > │ let v269 : UH0 = UH0_0(v141, v268) │
00:00:41 #5570 [Verbose] > │ let v270 : UH0 = UH0_0(v140, v269) │
00:00:41 #5571 [Verbose] > │ let v271 : UH0 = UH0_0(v139, v270) │
00:00:41 #5572 [Verbose] > │ let v272 : (float []) = method2(v271) │
00:00:41 #5573 [Verbose] > │ UH1_0(v138, v272, v4) │
00:00:41 #5574 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:00:41 #5575 [Verbose] > │ v1 │
00:00:41 #5576 [Verbose] > │ and method6 (v0 : UH1, v1 : int32) : int32 = │
00:00:41 #5577 [Verbose] > │ match v0 with │
00:00:41 #5578 [Verbose] > │ | UH1_0(v2, v3, v4) -> (* Cons *) │
00:00:41 #5579 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:00:41 #5580 [Verbose] > │ method6(v4, v5) │
00:00:41 #5581 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:41 #5582 [Verbose] > │ v1 │
00:00:41 #5583 [Verbose] > │ and method7 (v0 : (struct ((float []) * (float [])) []), v1 : UH1, v2 : │
00:00:41 #5584 [Verbose] > │ int32) : int32 = │
00:00:41 #5585 [Verbose] > │ match v1 with │
00:00:41 #5586 [Verbose] > │ | UH1_0(v3, v4, v5) -> (* Cons *) │
00:00:41 #5587 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:00:41 #5588 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:00:41 #5589 [Verbose] > │ method7(v0, v5, v6) │
00:00:41 #5590 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:00:41 #5591 [Verbose] > │ v2 │
00:00:41 #5592 [Verbose] > │ and method5 (v0 : UH1) : (struct ((float []) * (float [])) []) = │
00:00:41 #5593 [Verbose] > │ let v1 : int32 = 0 │
00:00:41 #5594 [Verbose] > │ let v2 : int32 = method6(v0, v1) │
00:00:41 #5595 [Verbose] > │ let v3 : (struct ((float []) * (float [])) []) = Array.zeroCreate<struct │
00:00:41 #5596 [Verbose] > │ ((float []) * (float []))> (v2) │
00:00:41 #5597 [Verbose] > │ let v4 : int32 = 0 │
00:00:41 #5598 [Verbose] > │ let v5 : int32 = method7(v3, v0, v4) │
00:00:41 #5599 [Verbose] > │ v3 │
00:00:41 #5600 [Verbose] > │ and method8 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:41 #5601 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:41 #5602 [Verbose] > │ v0 │
00:00:41 #5603 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:41 #5604 [Verbose] > │ []) * (float [])) [])) = │
00:00:41 #5605 [Verbose] > │ let v0 : float = 0.0 │
00:00:41 #5606 [Verbose] > │ let v1 : float = 1.0 │
00:00:41 #5607 [Verbose] > │ let v2 : float = 2.0 │
00:00:41 #5608 [Verbose] > │ let v3 : float = 3.0 │
00:00:41 #5609 [Verbose] > │ let v4 : float = 4.0 │
00:00:41 #5610 [Verbose] > │ let v5 : float = 5.0 │
00:00:41 #5611 [Verbose] > │ let v6 : float = 6.0 │
00:00:41 #5612 [Verbose] > │ let v7 : float = 7.0 │
00:00:41 #5613 [Verbose] > │ let v8 : float = 8.0 │
00:00:41 #5614 [Verbose] > │ let v9 : float = 9.0 │
00:00:41 #5615 [Verbose] > │ let v10 : UH0 = UH0_1 │
00:00:41 #5616 [Verbose] > │ let v11 : UH0 = UH0_0(v9, v10) │
00:00:41 #5617 [Verbose] > │ let v12 : UH0 = UH0_0(v8, v11) │
00:00:41 #5618 [Verbose] > │ let v13 : UH0 = UH0_0(v7, v12) │
00:00:41 #5619 [Verbose] > │ let v14 : UH0 = UH0_0(v6, v13) │
00:00:41 #5620 [Verbose] > │ let v15 : UH0 = UH0_0(v5, v14) │
00:00:41 #5621 [Verbose] > │ let v16 : UH0 = UH0_0(v4, v15) │
00:00:41 #5622 [Verbose] > │ let v17 : UH0 = UH0_0(v3, v16) │
00:00:41 #5623 [Verbose] > │ let v18 : UH0 = UH0_0(v2, v17) │
00:00:41 #5624 [Verbose] > │ let v19 : UH0 = UH0_0(v1, v18) │
00:00:41 #5625 [Verbose] > │ let v20 : UH0 = UH0_0(v0, v19) │
00:00:41 #5626 [Verbose] > │ let v21 : UH1 = UH1_1 │
00:00:41 #5627 [Verbose] > │ let v22 : UH1 = method1(v20, v21) │
00:00:41 #5628 [Verbose] > │ let v23 : (struct ((float []) * (float [])) []) = method5(v22) │
00:00:41 #5629 [Verbose] > │ let struct (v24 : (float []), v25 : (float [])) = v23.[int 0] │
00:00:41 #5630 [Verbose] > │ let v26 : string = $"{0}" │
00:00:41 #5631 [Verbose] > │ let v27 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:41 #5632 [Verbose] > │ (v26, v24, v25)|] │
00:00:41 #5633 [Verbose] > │ let v28 : (struct (string * (float []) * (float [])) []) = method8(v27) │
00:00:41 #5634 [Verbose] > │ let v29 : string = "wave" │
00:00:41 #5635 [Verbose] > │ let v30 : string = "position (m)" │
00:00:41 #5636 [Verbose] > │ let v31 : string = "displacement (m)" │
00:00:41 #5637 [Verbose] > │ struct (v29, v30, v31, v28) │
00:00:41 #5638 [Verbose] > │ method0() │
00:00:41 #5639 [Verbose] > │ │
00:00:41 #5640 [Verbose] > │ │
00:00:41 #5641 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:41 #5642 [Verbose] >
00:00:41 #5643 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:41 #5644 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:41 #5645 [Verbose] > │ ### system kinetic energy versus time 2 │
00:00:41 #5646 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:41 #5647 [Verbose] >
00:00:41 #5648 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:41 #5649 [Verbose] > // // test
00:00:41 #5650 [Verbose] >
00:00:41 #5651 [Verbose] > inl central_force f (particle_state st1) (particle_state st2) =
00:00:41 #5652 [Verbose] > inl r1 = st1.pos_vec
00:00:41 #5653 [Verbose] > inl r2 = st2.pos_vec
00:00:41 #5654 [Verbose] > inl r21 = r2 ^-^ r1
00:00:41 #5655 [Verbose] > inl r21mag = magnitude r21
00:00:41 #5656 [Verbose] > f r21mag *^ r21 ^/ r21mag
00:00:41 #5657 [Verbose] >
00:00:41 #5658 [Verbose] > inl billiard_force k re =
00:00:41 #5659 [Verbose] > inl f r =
00:00:41 #5660 [Verbose] > if r >= re
00:00:41 #5661 [Verbose] > then 0
00:00:41 #5662 [Verbose] > else -k * (r - re)
00:00:41 #5663 [Verbose] > central_force f
00:00:41 #5664 [Verbose] >
00:00:41 #5665 [Verbose] > type force_vector = vec
00:00:41 #5666 [Verbose] > type two_body_force = particle_state -> particle_state -> force_vector
00:00:41 #5667 [Verbose] >
00:00:41 #5668 [Verbose] > union force t =
00:00:41 #5669 [Verbose] > | ExternalForce : t * one_body_force
00:00:41 #5670 [Verbose] > | InternalForce : t * t * two_body_force
00:00:41 #5671 [Verbose] >
00:00:41 #5672 [Verbose] > nominal multi_particle_state = stream.stream particle_state
00:00:41 #5673 [Verbose] >
00:00:41 #5674 [Verbose] > nominal d_multi_particle_state = stream.stream d_particle_state
00:00:41 #5675 [Verbose] >
00:00:41 #5676 [Verbose] > inl force_on n s force =
00:00:41 #5677 [Verbose] > match force with
00:00:41 #5678 [Verbose] > | ExternalForce (n0, f_one_body) =>
00:00:41 #5679 [Verbose] > if n = n0
00:00:41 #5680 [Verbose] > then f_one_body
00:00:41 #5681 [Verbose] > else fun _ => zero_vec ()
00:00:41 #5682 [Verbose] > | InternalForce (n0, n1, f_two_body) =>
00:00:41 #5683 [Verbose] > if n = n0
00:00:41 #5684 [Verbose] > then s |> stream.try_item n1 |> optionm.map f_two_body
00:00:41 #5685 [Verbose] > elif n = n1
00:00:41 #5686 [Verbose] > then s |> stream.try_item n0 |> optionm.map f_two_body
00:00:41 #5687 [Verbose] > else None
00:00:41 #5688 [Verbose] > |> optionm'.default_value (fun _ => zero_vec ())
00:00:41 #5689 [Verbose] >
00:00:41 #5690 [Verbose] > inl forces_on n (multi_particle_state sts) fs =
00:00:41 #5691 [Verbose] > fs
00:00:41 #5692 [Verbose] > |> listm.map (force_on n sts)
00:00:41 #5693 [Verbose] >
00:00:41 #5694 [Verbose] > inl newton_second_mps fs ((multi_particle_state sts) as mpst) =
00:00:41 #5695 [Verbose] > inl deriv (n, st) =
00:00:41 #5696 [Verbose] > newton_second_ps (forces_on n mpst fs) st
00:00:41 #5697 [Verbose] > sts |> stream.indexed |> stream.map deriv |> d_multi_particle_state
00:00:41 #5698 [Verbose] >
00:00:41 #5699 [Verbose] > instance (+++) d_multi_particle_state =
00:00:41 #5700 [Verbose] > fun (d_multi_particle_state dsts1) (d_multi_particle_state dsts2) =>
00:00:41 #5701 [Verbose] > (dsts1, dsts2)
00:00:41 #5702 [Verbose] > ||> stream.zip_with (+++)
00:00:41 #5703 [Verbose] > |> d_multi_particle_state
00:00:41 #5704 [Verbose] >
00:00:41 #5705 [Verbose] > instance scale d_multi_particle_state = fun w (d_multi_particle_state dsts) =>
00:00:41 #5706 [Verbose] > dsts
00:00:41 #5707 [Verbose] > |> stream.map (scale w)
00:00:41 #5708 [Verbose] > |> d_multi_particle_state
00:00:41 #5709 [Verbose] >
00:00:41 #5710 [Verbose] > instance shift multi_particle_state = fun dt dsts (multi_particle_state sts) =>
00:00:41 #5711 [Verbose] > inl (d_multi_particle_state dsts) =
00:00:41 #5712 [Verbose] > real
00:00:41 #5713 [Verbose] > match dsts with
00:00:41 #5714 [Verbose] > | d_multi_particle_state _ => dsts
00:00:41 #5715 [Verbose] > (dsts, sts)
00:00:41 #5716 [Verbose] > ||> stream.zip_with (shift dt)
00:00:41 #5717 [Verbose] > |> stream.memoize
00:00:41 #5718 [Verbose] > |> fun x => x ()
00:00:41 #5719 [Verbose] > |> multi_particle_state
00:00:41 #5720 [Verbose] >
00:00:41 #5721 [Verbose] > inl euler_cromer_mps dt : numerical_method multi_particle_state
00:00:41 #5722 [Verbose] > d_multi_particle_state =
00:00:41 #5723 [Verbose] > fun deriv ((multi_particle_state sts0) as mpst0) =>
00:00:41 #5724 [Verbose] > inl (multi_particle_state sts1) = euler dt deriv mpst0
00:00:41 #5725 [Verbose] > (sts0, sts1)
00:00:41 #5726 [Verbose] > ||> stream.zip
00:00:41 #5727 [Verbose] > |> stream.map (fun ((particle_state st0), (particle_state st1)) =>
00:00:41 #5728 [Verbose] > particle_state {
00:00:41 #5729 [Verbose] > st1 with
00:00:41 #5730 [Verbose] > pos_vec = st0.pos_vec ^+^ st1.velocity ^* dt
00:00:41 #5731 [Verbose] > }
00:00:41 #5732 [Verbose] > )
00:00:41 #5733 [Verbose] > |> multi_particle_state
00:00:41 #5734 [Verbose] >
00:00:41 #5735 [Verbose] > inl update_mps (method : numerical_method multi_particle_state
00:00:41 #5736 [Verbose] > d_multi_particle_state) =
00:00:41 #5737 [Verbose] > newton_second_mps >> method
00:00:41 #5738 [Verbose] >
00:00:41 #5739 [Verbose] > inl states_mps (method : numerical_method multi_particle_state
00:00:41 #5740 [Verbose] > d_multi_particle_state) =
00:00:41 #5741 [Verbose] > newton_second_mps
00:00:41 #5742 [Verbose] > >> method
00:00:41 #5743 [Verbose] > >> (fun x (multi_particle_state y) =>
00:00:41 #5744 [Verbose] > y
00:00:41 #5745 [Verbose] > |> stream.memoize
00:00:41 #5746 [Verbose] > |> (fun x => x ())
00:00:41 #5747 [Verbose] > |> multi_particle_state |> x
00:00:41 #5748 [Verbose] > )
00:00:41 #5749 [Verbose] > // >> stream.iterate
00:00:41 #5750 [Verbose] > >> seq.iterate'
00:00:41 #5751 [Verbose] >
00:00:41 #5752 [Verbose] > inl kinetic_energy (particle_state st) =
00:00:41 #5753 [Verbose] > inl m = st.mass
00:00:41 #5754 [Verbose] > inl v = magnitude st.velocity
00:00:41 #5755 [Verbose] > 0.5 * m * v ** 2
00:00:41 #5756 [Verbose] >
00:00:41 #5757 [Verbose] > inl system_ke (multi_particle_state sts) =
00:00:41 #5758 [Verbose] > sts
00:00:41 #5759 [Verbose] > |> stream.map kinetic_energy
00:00:41 #5760 [Verbose] > |> stream.sum
00:00:41 #5761 [Verbose] >
00:00:41 #5762 [Verbose] > inl linear_spring_pe k re (particle_state st1) (particle_state st2) =
00:00:41 #5763 [Verbose] > inl r1 = st1.pos_vec
00:00:41 #5764 [Verbose] > inl r2 = st2.pos_vec
00:00:41 #5765 [Verbose] > inl r21 = r2 ^-^ r1
00:00:41 #5766 [Verbose] > inl r21mag = magnitude r21
00:00:41 #5767 [Verbose] > k * (r21mag - re) ** 2 / 2
00:00:41 #5768 [Verbose] >
00:00:41 #5769 [Verbose] > inl earth_surface_gravity_pe (particle_state st) =
00:00:41 #5770 [Verbose] > inl g = 9.80665
00:00:41 #5771 [Verbose] > inl m = st.mass
00:00:41 #5772 [Verbose] > inl z = st.pos_vec.z
00:00:41 #5773 [Verbose] > m * g * z
00:00:41 #5774 [Verbose] >
00:00:41 #5775 [Verbose] > inl ball_radius () = 0.03
00:00:41 #5776 [Verbose] >
00:00:41 #5777 [Verbose] > inl billiard_forces k =
00:00:41 #5778 [Verbose] > [[ InternalForce (0i32, 1, billiard_force k (2 * ball_radius ())) ]]
00:00:41 #5779 [Verbose] >
00:00:41 #5780 [Verbose] > inl billiard_initial () =
00:00:41 #5781 [Verbose] > inl ball_mass = 0.160
00:00:41 #5782 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:41 #5783 [Verbose] > [[
00:00:41 #5784 [Verbose] > particle_state {
00:00:41 #5785 [Verbose] > default_particle_state' with
00:00:41 #5786 [Verbose] > mass = ball_mass
00:00:41 #5787 [Verbose] > pos_vec = zero_vec ()
00:00:41 #5788 [Verbose] > velocity = 0.2 *^ i_hat ()
00:00:41 #5789 [Verbose] > }
00:00:41 #5790 [Verbose] > particle_state {
00:00:41 #5791 [Verbose] > default_particle_state' with
00:00:41 #5792 [Verbose] > mass = ball_mass
00:00:41 #5793 [Verbose] > pos_vec = i_hat () ^+^ 0.02 *^ j_hat ()
00:00:41 #5794 [Verbose] > velocity = zero_vec ()
00:00:41 #5795 [Verbose] > }
00:00:41 #5796 [Verbose] > ]]
00:00:41 #5797 [Verbose] > |> stream.from_list
00:00:41 #5798 [Verbose] > |> multi_particle_state
00:00:41 #5799 [Verbose] >
00:00:41 #5800 [Verbose] > inl billiard_states ~n_method k dt =
00:00:41 #5801 [Verbose] > states_mps (n_method dt) (billiard_forces k) (billiard_initial ())
00:00:41 #5802 [Verbose] >
00:00:41 #5803 [Verbose] > inl billiard_states_finite n_method k dt =
00:00:41 #5804 [Verbose] > billiard_states n_method k dt
00:00:41 #5805 [Verbose] > >> Some
00:00:41 #5806 [Verbose] > |> seq.take_while_ (fun (multi_particle_state mpst) (_ : i32) =>
00:00:41 #5807 [Verbose] > match mpst |> stream.try_item 0i32 with
00:00:41 #5808 [Verbose] > | Some st =>
00:00:41 #5809 [Verbose] > st.time <= 10
00:00:41 #5810 [Verbose] > | None => false
00:00:41 #5811 [Verbose] > )
00:00:41 #5812 [Verbose] >
00:00:41 #5813 [Verbose] > inl momentum (particle_state st) =
00:00:41 #5814 [Verbose] > inl m = st.mass
00:00:41 #5815 [Verbose] > inl v = st.velocity
00:00:41 #5816 [Verbose] > m *^ v
00:00:41 #5817 [Verbose] >
00:00:41 #5818 [Verbose] > inl system_p (multi_particle_state sts) =
00:00:41 #5819 [Verbose] > sts
00:00:41 #5820 [Verbose] > |> stream.map momentum
00:00:41 #5821 [Verbose] > |> stream.fold (^+^) (zero_vec ())
00:00:41 #5822 [Verbose] >
00:00:41 #5823 [Verbose] > inl time_ke_ec_x, time_ke_ec_y =
00:00:41 #5824 [Verbose] > billiard_states_finite euler_cromer_mps 30 0.03
00:00:41 #5825 [Verbose] > |> listm.map (fun (multi_particle_state mpst) =>
00:00:41 #5826 [Verbose] > mpst |> stream.try_item 0i32
00:00:41 #5827 [Verbose] > |> optionm.map (fun st =>
00:00:41 #5828 [Verbose] > st.time, system_ke (multi_particle_state mpst)
00:00:41 #5829 [Verbose] > )
00:00:41 #5830 [Verbose] > )
00:00:41 #5831 [Verbose] > // |> stream.to_list
00:00:41 #5832 [Verbose] > |> listm'.choose id
00:00:41 #5833 [Verbose] > |> listm'.unzip
00:00:41 #5834 [Verbose] >
00:00:41 #5835 [Verbose] > inl time_ke_rk4_x, time_ke_rk4_y =
00:00:41 #5836 [Verbose] > billiard_states_finite runge_kutta_4 30 0.03
00:00:41 #5837 [Verbose] > |> listm.map (fun (multi_particle_state mpst) =>
00:00:41 #5838 [Verbose] > mpst |> stream.try_item 0i32
00:00:41 #5839 [Verbose] > |> optionm.map (fun st =>
00:00:41 #5840 [Verbose] > st.time, system_ke (multi_particle_state mpst)
00:00:41 #5841 [Verbose] > )
00:00:41 #5842 [Verbose] > )
00:00:41 #5843 [Verbose] > // |> stream.to_list
00:00:41 #5844 [Verbose] > |> listm'.choose id
00:00:41 #5845 [Verbose] > |> listm'.unzip
00:00:41 #5846 [Verbose] >
00:00:41 #5847 [Verbose] > inl time_ke_ec_x : a i32 _ = time_ke_ec_x |> listm.toArray
00:00:41 #5848 [Verbose] > inl time_ke_ec_y : a i32 _ = time_ke_ec_y |> listm.toArray
00:00:41 #5849 [Verbose] >
00:00:41 #5850 [Verbose] > inl time_ke_rk4_x : a i32 _ = time_ke_rk4_x |> listm.toArray
00:00:41 #5851 [Verbose] > inl time_ke_rk4_y : a i32 _ = time_ke_rk4_y |> listm.toArray
00:00:41 #5852 [Verbose] >
00:00:41 #5853 [Verbose] > "system kinetic energy versus time",
00:00:41 #5854 [Verbose] > "time (s)",
00:00:41 #5855 [Verbose] > "system kinetic energy (j)",
00:00:41 #5856 [Verbose] > ;[[
00:00:41 #5857 [Verbose] > "euler-cromer", time_ke_ec_x, time_ke_ec_y
00:00:41 #5858 [Verbose] > "runge-kutta 4", time_ke_rk4_x, time_ke_rk4_y
00:00:41 #5859 [Verbose] > ]]
00:00:41 #5860 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0044-0572-7283-777930a07271\main.spi
00:00:43 #5861 [Verbose] >
00:00:43 #5862 [Verbose] > ╭─[ 2.26s - return value ]─────────────────────────────────────────────────────╮
00:00:43 #5863 [Verbose] > │ <svg width="640" height="480" viewBox="0 0 640 480" │
00:00:43 #5864 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:43 #5865 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:43 #5866 [Verbose] > │ stroke="none"/> │
00:00:43 #5867 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:43 #5868 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:43 #5869 [Verbose] > │ fill="#FFFFFF"> │
00:00:43 #5870 [Verbose] > │ system kinetic energy versus time │
00:00:43 #5871 [Verbose] > │ </text> │
00:00:43 #5872 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="59" y1="424" x2="59" │
00:00:43 #5873 [Verbose] > │ y2="75"/> │
00:00:43 #5874 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:43 #5875 [Verbose] > │ y2="75"/> │
00:00:43 #5876 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="79" y1="424" x2="79" │
00:00:43 #5877 [Verbose] > │ y2="75"/> │
00:00:43 #5878 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="89" y1="424" x2="89" │
00:00:43 #5879 [Verbose] > │ y2="75"/> │
00:00:43 #5880 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1... │
00:00:43 #5881 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:43 #5882 [Verbose] >
00:00:43 #5883 [Verbose] > ╭─[ 2.28s - stdout ]───────────────────────────────────────────────────────────╮
00:00:43 #5884 [Verbose] > │ type UH0 = │
00:00:43 #5885 [Verbose] > │ | UH0_0 of float * float * float * float * float * float * float * float │
00:00:43 #5886 [Verbose] > │ * float * (unit -> UH0) │
00:00:43 #5887 [Verbose] > │ | UH0_1 │
00:00:43 #5888 [Verbose] > │ and UH1 = │
00:00:43 #5889 [Verbose] > │ | UH1_0 of float * float * float * float * float * float * float * float │
00:00:43 #5890 [Verbose] > │ * float * (unit -> UH1) │
00:00:43 #5891 [Verbose] > │ | UH1_1 │
00:00:43 #5892 [Verbose] > │ and [<Struct>] US0 = │
00:00:43 #5893 [Verbose] > │ | US0_0 of f0_0 : UH0 │
00:00:43 #5894 [Verbose] > │ | US0_1 of f1_0 : (unit -> UH0) │
00:00:43 #5895 [Verbose] > │ and Mut0 = {mutable l0 : US0} │
00:00:43 #5896 [Verbose] > │ and UH2 = │
00:00:43 #5897 [Verbose] > │ | UH2_0 of float * float * float * float * float * float * float * float │
00:00:43 #5898 [Verbose] > │ * float * float * float * float * float * float * float * float * float * │
00:00:43 #5899 [Verbose] > │ float * (unit -> UH2) │
00:00:43 #5900 [Verbose] > │ | UH2_1 │
00:00:43 #5901 [Verbose] > │ and UH3 = │
00:00:43 #5902 [Verbose] > │ | UH3_0 of int32 * float * float * float * float * float * float * float │
00:00:43 #5903 [Verbose] > │ * float * float * (unit -> UH3) │
00:00:43 #5904 [Verbose] > │ | UH3_1 │
00:00:43 #5905 [Verbose] > │ and [<Struct>] US1 = │
00:00:43 #5906 [Verbose] > │ | US1_0 │
00:00:43 #5907 [Verbose] > │ | US1_1 of f1_0 : (struct (float * float * float * float * float * float │
00:00:43 #5908 [Verbose] > │ * float * float * float) -> struct (float * float * float)) │
00:00:43 #5909 [Verbose] > │ and [<Struct>] US2 = │
00:00:43 #5910 [Verbose] > │ | US2_0 │
00:00:43 #5911 [Verbose] > │ | US2_1 of f1_0 : float * f1_1 : float * f1_2 : float * f1_3 : float * │
00:00:43 #5912 [Verbose] > │ f1_4 : float * f1_5 : float * f1_6 : float * f1_7 : float * f1_8 : float │
00:00:43 #5913 [Verbose] > │ and UH4 = │
00:00:43 #5914 [Verbose] > │ | UH4_0 of UH0 * UH4 │
00:00:43 #5915 [Verbose] > │ | UH4_1 │
00:00:43 #5916 [Verbose] > │ and UH5 = │
00:00:43 #5917 [Verbose] > │ | UH5_0 of int32 * UH5 │
00:00:43 #5918 [Verbose] > │ | UH5_1 │
00:00:43 #5919 [Verbose] > │ and [<Struct>] US3 = │
00:00:43 #5920 [Verbose] > │ | US3_0 │
00:00:43 #5921 [Verbose] > │ | US3_1 of f1_0 : float * f1_1 : float │
00:00:43 #5922 [Verbose] > │ and UH6 = │
00:00:43 #5923 [Verbose] > │ | UH6_0 of US3 * UH6 │
00:00:43 #5924 [Verbose] > │ | UH6_1 │
00:00:43 #5925 [Verbose] > │ and UH7 = │
00:00:43 #5926 [Verbose] > │ | UH7_0 of float * (unit -> UH7) │
00:00:43 #5927 [Verbose] > │ | UH7_1 │
00:00:43 #5928 [Verbose] > │ and UH8 = │
00:00:43 #5929 [Verbose] > │ | UH8_0 of float * float * UH8 │
00:00:43 #5930 [Verbose] > │ | UH8_1 │
00:00:43 #5931 [Verbose] > │ and UH9 = │
00:00:43 #5932 [Verbose] > │ | UH9_0 of float * UH9 │
00:00:43 #5933 [Verbose] > │ | UH9_1 │
00:00:43 #5934 [Verbose] > │ let rec closure3 (v0 : float, v1 : (unit -> UH0), v2 : (unit -> UH1)) () : │
00:00:43 #5935 [Verbose] > │ UH0 = │
00:00:43 #5936 [Verbose] > │ let v3 : UH1 = v2 () │
00:00:43 #5937 [Verbose] > │ let v4 : UH0 = v1 () │
00:00:43 #5938 [Verbose] > │ match v3 with │
00:00:43 #5939 [Verbose] > │ | UH1_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (* StreamCons *) │
00:00:43 #5940 [Verbose] > │ match v4 with │
00:00:43 #5941 [Verbose] > │ | UH0_0(v15, v16, v17, v18, v19, v20, v21, v22, v23, v24) -> (* │
00:00:43 #5942 [Verbose] > │ StreamCons *) │
00:00:43 #5943 [Verbose] > │ let v25 : float = v10 * v0 │
00:00:43 #5944 [Verbose] > │ let v26 : float = v20 + v25 │
00:00:43 #5945 [Verbose] > │ let v27 : float = v0 * v7 │
00:00:43 #5946 [Verbose] > │ let v28 : float = v0 * v8 │
00:00:43 #5947 [Verbose] > │ let v29 : float = v0 * v9 │
00:00:43 #5948 [Verbose] > │ let v30 : float = v17 + v27 │
00:00:43 #5949 [Verbose] > │ let v31 : float = v18 + v28 │
00:00:43 #5950 [Verbose] > │ let v32 : float = v19 + v29 │
00:00:43 #5951 [Verbose] > │ let v33 : float = v0 * v11 │
00:00:43 #5952 [Verbose] > │ let v34 : float = v0 * v12 │
00:00:43 #5953 [Verbose] > │ let v35 : float = v0 * v13 │
00:00:43 #5954 [Verbose] > │ let v36 : float = v21 + v33 │
00:00:43 #5955 [Verbose] > │ let v37 : float = v22 + v34 │
00:00:43 #5956 [Verbose] > │ let v38 : float = v23 + v35 │
00:00:43 #5957 [Verbose] > │ let v39 : (unit -> UH0) = closure3(v0, v24, v14) │
00:00:43 #5958 [Verbose] > │ UH0_0(v15, v16, v30, v31, v32, v26, v36, v37, v38, v39) │
00:00:43 #5959 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:43 #5960 [Verbose] > │ UH0_1 │
00:00:43 #5961 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:43 #5962 [Verbose] > │ UH0_1 │
00:00:43 #5963 [Verbose] > │ and closure4 (v0 : UH0) () : UH0 = │
00:00:43 #5964 [Verbose] > │ v0 │
00:00:43 #5965 [Verbose] > │ and closure5 (v0 : UH0, v1 : Mut0) () : UH0 = │
00:00:43 #5966 [Verbose] > │ let v2 : US0 = v1.l0 │
00:00:43 #5967 [Verbose] > │ match v2 with │
00:00:43 #5968 [Verbose] > │ | US0_0(v3) -> (* Computed *) │
00:00:43 #5969 [Verbose] > │ v3 │
00:00:43 #5970 [Verbose] > │ | US0_1(v4) -> (* NotComputed *) │
00:00:43 #5971 [Verbose] > │ let v5 : UH0 = v4 () │
00:00:43 #5972 [Verbose] > │ let v20 : UH0 = │
00:00:43 #5973 [Verbose] > │ match v5 with │
00:00:43 #5974 [Verbose] > │ | UH0_0(v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) -> (* │
00:00:43 #5975 [Verbose] > │ StreamCons *) │
00:00:43 #5976 [Verbose] > │ let v17 : (unit -> UH0) = method1(v0, v16) │
00:00:43 #5977 [Verbose] > │ UH0_0(v7, v8, v9, v10, v11, v12, v13, v14, v15, v17) │
00:00:43 #5978 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:43 #5979 [Verbose] > │ UH0_1 │
00:00:43 #5980 [Verbose] > │ let v21 : US0 = US0_0(v20) │
00:00:43 #5981 [Verbose] > │ v1.l0 <- v21 │
00:00:43 #5982 [Verbose] > │ v20 │
00:00:43 #5983 [Verbose] > │ and method1 (v0 : UH0, v1 : (unit -> UH0)) : (unit -> UH0) = │
00:00:43 #5984 [Verbose] > │ let v2 : US0 = US0_1(v1) │
00:00:43 #5985 [Verbose] > │ let v3 : Mut0 = {l0 = v2} : Mut0 │
00:00:43 #5986 [Verbose] > │ closure5(v0, v3) │
00:00:43 #5987 [Verbose] > │ and closure6 (v0 : (unit -> UH0), v1 : (unit -> UH0)) () : UH2 = │
00:00:43 #5988 [Verbose] > │ let v2 : UH0 = v1 () │
00:00:43 #5989 [Verbose] > │ let v3 : UH0 = v0 () │
00:00:43 #5990 [Verbose] > │ match v2 with │
00:00:43 #5991 [Verbose] > │ | UH0_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *) │
00:00:43 #5992 [Verbose] > │ match v3 with │
00:00:43 #5993 [Verbose] > │ | UH0_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* │
00:00:43 #5994 [Verbose] > │ StreamCons *) │
00:00:43 #5995 [Verbose] > │ let v24 : (unit -> UH2) = closure6(v23, v13) │
00:00:43 #5996 [Verbose] > │ UH2_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v14, v15, v16, v17, │
00:00:43 #5997 [Verbose] > │ v18, v19, v20, v21, v22, v24) │
00:00:43 #5998 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:43 #5999 [Verbose] > │ UH2_1 │
00:00:43 #6000 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:43 #6001 [Verbose] > │ UH2_1 │
00:00:43 #6002 [Verbose] > │ and closure7 (v0 : UH0) () : UH0 = │
00:00:43 #6003 [Verbose] > │ v0 │
00:00:43 #6004 [Verbose] > │ and method2 (v0 : float, v1 : UH2, v2 : UH0) : UH0 = │
00:00:43 #6005 [Verbose] > │ match v1 with │
00:00:43 #6006 [Verbose] > │ | UH2_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15, v16, │
00:00:43 #6007 [Verbose] > │ v17, v18, v19, v20, v21) -> (* StreamCons *) │
00:00:43 #6008 [Verbose] > │ let v22 : UH2 = v21 () │
00:00:43 #6009 [Verbose] > │ let v23 : UH0 = method2(v0, v22, v2) │
00:00:43 #6010 [Verbose] > │ let v24 : float = v0 * v18 │
00:00:43 #6011 [Verbose] > │ let v25 : float = v0 * v19 │
00:00:43 #6012 [Verbose] > │ let v26 : float = v0 * v20 │
00:00:43 #6013 [Verbose] > │ let v27 : float = v5 + v24 │
00:00:43 #6014 [Verbose] > │ let v28 : float = v6 + v25 │
00:00:43 #6015 [Verbose] > │ let v29 : float = v7 + v26 │
00:00:43 #6016 [Verbose] > │ let v30 : (unit -> UH0) = closure7(v23) │
00:00:43 #6017 [Verbose] > │ UH0_0(v12, v13, v27, v28, v29, v17, v18, v19, v20, v30) │
00:00:43 #6018 [Verbose] > │ | UH2_1 -> (* StreamNil *) │
00:00:43 #6019 [Verbose] > │ v2 │
00:00:43 #6020 [Verbose] > │ and closure2 (v0 : float, v1 : (UH0 -> UH1)) (v2 : UH0) : UH0 = │
00:00:43 #6021 [Verbose] > │ let v3 : UH1 = v1 v2 │
00:00:43 #6022 [Verbose] > │ let v45 : UH0 = │
00:00:43 #6023 [Verbose] > │ match v3 with │
00:00:43 #6024 [Verbose] > │ | UH1_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons │
00:00:43 #6025 [Verbose] > │ *) │
00:00:43 #6026 [Verbose] > │ match v2 with │
00:00:43 #6027 [Verbose] > │ | UH0_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* │
00:00:43 #6028 [Verbose] > │ StreamCons *) │
00:00:43 #6029 [Verbose] > │ let v24 : float = v9 * v0 │
00:00:43 #6030 [Verbose] > │ let v25 : float = v19 + v24 │
00:00:43 #6031 [Verbose] > │ let v26 : float = v0 * v6 │
00:00:43 #6032 [Verbose] > │ let v27 : float = v0 * v7 │
00:00:43 #6033 [Verbose] > │ let v28 : float = v0 * v8 │
00:00:43 #6034 [Verbose] > │ let v29 : float = v16 + v26 │
00:00:43 #6035 [Verbose] > │ let v30 : float = v17 + v27 │
00:00:43 #6036 [Verbose] > │ let v31 : float = v18 + v28 │
00:00:43 #6037 [Verbose] > │ let v32 : float = v0 * v10 │
00:00:43 #6038 [Verbose] > │ let v33 : float = v0 * v11 │
00:00:43 #6039 [Verbose] > │ let v34 : float = v0 * v12 │
00:00:43 #6040 [Verbose] > │ let v35 : float = v20 + v32 │
00:00:43 #6041 [Verbose] > │ let v36 : float = v21 + v33 │
00:00:43 #6042 [Verbose] > │ let v37 : float = v22 + v34 │
00:00:43 #6043 [Verbose] > │ let v38 : (unit -> UH0) = closure3(v0, v23, v13) │
00:00:43 #6044 [Verbose] > │ UH0_0(v14, v15, v29, v30, v31, v25, v35, v36, v37, v38) │
00:00:43 #6045 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:43 #6046 [Verbose] > │ UH0_1 │
00:00:43 #6047 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:43 #6048 [Verbose] > │ UH0_1 │
00:00:43 #6049 [Verbose] > │ let v46 : (unit -> UH0) = closure4(v45) │
00:00:43 #6050 [Verbose] > │ let v47 : (unit -> UH0) = method1(v45, v46) │
00:00:43 #6051 [Verbose] > │ let v48 : UH0 = v47 () │
00:00:43 #6052 [Verbose] > │ let v76 : UH2 = │
00:00:43 #6053 [Verbose] > │ match v2 with │
00:00:43 #6054 [Verbose] > │ | UH0_0(v49, v50, v51, v52, v53, v54, v55, v56, v57, v58) -> (* │
00:00:43 #6055 [Verbose] > │ StreamCons *) │
00:00:43 #6056 [Verbose] > │ match v48 with │
00:00:43 #6057 [Verbose] > │ | UH0_0(v59, v60, v61, v62, v63, v64, v65, v66, v67, v68) -> (* │
00:00:43 #6058 [Verbose] > │ StreamCons *) │
00:00:43 #6059 [Verbose] > │ let v69 : (unit -> UH2) = closure6(v68, v58) │
00:00:43 #6060 [Verbose] > │ UH2_0(v49, v50, v51, v52, v53, v54, v55, v56, v57, v59, v60, │
00:00:43 #6061 [Verbose] > │ v61, v62, v63, v64, v65, v66, v67, v69) │
00:00:43 #6062 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:43 #6063 [Verbose] > │ UH2_1 │
00:00:43 #6064 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:43 #6065 [Verbose] > │ UH2_1 │
00:00:43 #6066 [Verbose] > │ let v77 : UH0 = UH0_1 │
00:00:43 #6067 [Verbose] > │ let v78 : UH0 = method2(v0, v76, v77) │
00:00:43 #6068 [Verbose] > │ v78 │
00:00:43 #6069 [Verbose] > │ and closure1 (v0 : float) (v1 : (UH0 -> UH1)) : (UH0 -> UH0) = │
00:00:43 #6070 [Verbose] > │ closure2(v0, v1) │
00:00:43 #6071 [Verbose] > │ and closure0 () (v0 : float) : ((UH0 -> UH1) -> (UH0 -> UH0)) = │
00:00:43 #6072 [Verbose] > │ closure1(v0) │
00:00:43 #6073 [Verbose] > │ and closure9 (v0 : UH3) () : UH3 = │
00:00:43 #6074 [Verbose] > │ v0 │
00:00:43 #6075 [Verbose] > │ and method3 (v0 : UH0, v1 : UH3, v2 : int32) : struct (UH3 * int32) = │
00:00:43 #6076 [Verbose] > │ match v0 with │
00:00:43 #6077 [Verbose] > │ | UH0_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons *) │
00:00:43 #6078 [Verbose] > │ let v13 : int32 = v2 + 1 │
00:00:43 #6079 [Verbose] > │ let v14 : UH0 = v12 () │
00:00:43 #6080 [Verbose] > │ let v15 : (unit -> UH3) = closure9(v1) │
00:00:43 #6081 [Verbose] > │ let v16 : UH3 = UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v15) │
00:00:43 #6082 [Verbose] > │ method3(v14, v16, v13) │
00:00:43 #6083 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:43 #6084 [Verbose] > │ struct (v1, v2) │
00:00:43 #6085 [Verbose] > │ and closure10 (v0 : UH3) () : UH3 = │
00:00:43 #6086 [Verbose] > │ v0 │
00:00:43 #6087 [Verbose] > │ and method4 (v0 : UH3, v1 : UH3) : UH3 = │
00:00:43 #6088 [Verbose] > │ match v0 with │
00:00:43 #6089 [Verbose] > │ | UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons │
00:00:43 #6090 [Verbose] > │ *) │
00:00:43 #6091 [Verbose] > │ let v13 : UH3 = v12 () │
00:00:43 #6092 [Verbose] > │ let v14 : (unit -> UH3) = closure10(v1) │
00:00:43 #6093 [Verbose] > │ let v15 : UH3 = UH3_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v14) │
00:00:43 #6094 [Verbose] > │ method4(v13, v15) │
00:00:43 #6095 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:43 #6096 [Verbose] > │ v1 │
00:00:43 #6097 [Verbose] > │ and method6 (v0 : int32, v1 : UH0) : US2 = │
00:00:43 #6098 [Verbose] > │ match v1 with │
00:00:43 #6099 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* StreamCons *) │
00:00:43 #6100 [Verbose] > │ let v12 : bool = v0 <= 0 │
00:00:43 #6101 [Verbose] > │ if v12 then │
00:00:43 #6102 [Verbose] > │ US2_1(v2, v3, v4, v5, v6, v7, v8, v9, v10) │
00:00:43 #6103 [Verbose] > │ else │
00:00:43 #6104 [Verbose] > │ let v14 : int32 = v0 - 1 │
00:00:43 #6105 [Verbose] > │ let v15 : UH0 = v11 () │
00:00:43 #6106 [Verbose] > │ method6(v14, v15) │
00:00:43 #6107 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:43 #6108 [Verbose] > │ US2_0 │
00:00:43 #6109 [Verbose] > │ and closure11 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, │
00:00:43 #6110 [Verbose] > │ v5 : float, v6 : float, v7 : float, v8 : float) struct (v9 : float, v10 : │
00:00:43 #6111 [Verbose] > │ float, v11 : float, v12 : float, v13 : float, v14 : float, v15 : float, v16 │
00:00:43 #6112 [Verbose] > │ : float, v17 : float) : struct (float * float * float) = │
00:00:43 #6113 [Verbose] > │ let v18 : float = -1.0 * v2 │
00:00:43 #6114 [Verbose] > │ let v19 : float = -1.0 * v3 │
00:00:43 #6115 [Verbose] > │ let v20 : float = -1.0 * v4 │
00:00:43 #6116 [Verbose] > │ let v21 : float = v11 + v18 │
00:00:43 #6117 [Verbose] > │ let v22 : float = v12 + v19 │
00:00:43 #6118 [Verbose] > │ let v23 : float = v13 + v20 │
00:00:43 #6119 [Verbose] > │ let v24 : float = v21 * v21 │
00:00:43 #6120 [Verbose] > │ let v25 : float = v22 * v22 │
00:00:43 #6121 [Verbose] > │ let v26 : float = v24 + v25 │
00:00:43 #6122 [Verbose] > │ let v27 : float = v23 * v23 │
00:00:43 #6123 [Verbose] > │ let v28 : float = v26 + v27 │
00:00:43 #6124 [Verbose] > │ let v29 : float = sqrt v28 │
00:00:43 #6125 [Verbose] > │ let v30 : bool = v29 >= 0.06 │
00:00:43 #6126 [Verbose] > │ let v33 : float = │
00:00:43 #6127 [Verbose] > │ if v30 then │
00:00:43 #6128 [Verbose] > │ 0.0 │
00:00:43 #6129 [Verbose] > │ else │
00:00:43 #6130 [Verbose] > │ let v31 : float = v29 - 0.06 │
00:00:43 #6131 [Verbose] > │ let v32 : float = -30.0 * v31 │
00:00:43 #6132 [Verbose] > │ v32 │
00:00:43 #6133 [Verbose] > │ let v34 : float = v33 * v21 │
00:00:43 #6134 [Verbose] > │ let v35 : float = v33 * v22 │
00:00:43 #6135 [Verbose] > │ let v36 : float = v33 * v23 │
00:00:43 #6136 [Verbose] > │ let v37 : float = v34 / v29 │
00:00:43 #6137 [Verbose] > │ let v38 : float = v35 / v29 │
00:00:43 #6138 [Verbose] > │ let v39 : float = v36 / v29 │
00:00:43 #6139 [Verbose] > │ struct (v37, v38, v39) │
00:00:43 #6140 [Verbose] > │ and closure12 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │
00:00:43 #6141 [Verbose] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:43 #6142 [Verbose] > │ float * float) = │
00:00:43 #6143 [Verbose] > │ struct (0.0, 0.0, 0.0) │
00:00:43 #6144 [Verbose] > │ and closure13 (v0 : UH1) () : UH1 = │
00:00:43 #6145 [Verbose] > │ v0 │
00:00:43 #6146 [Verbose] > │ and method5 (v0 : UH0, v1 : UH3, v2 : UH1) : UH1 = │
00:00:43 #6147 [Verbose] > │ match v1 with │
00:00:43 #6148 [Verbose] > │ | UH3_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons │
00:00:43 #6149 [Verbose] > │ *) │
00:00:43 #6150 [Verbose] > │ let v14 : UH3 = v13 () │
00:00:43 #6151 [Verbose] > │ let v15 : UH1 = method5(v0, v14, v2) │
00:00:43 #6152 [Verbose] > │ let v16 : bool = v3 = 0 │
00:00:43 #6153 [Verbose] > │ let v52 : US1 = │
00:00:43 #6154 [Verbose] > │ if v16 then │
00:00:43 #6155 [Verbose] > │ let v17 : int32 = 1 │
00:00:43 #6156 [Verbose] > │ let v18 : US2 = method6(v17, v0) │
00:00:43 #6157 [Verbose] > │ match v18 with │
00:00:43 #6158 [Verbose] > │ | US2_0 -> (* None *) │
00:00:43 #6159 [Verbose] > │ US1_0 │
00:00:43 #6160 [Verbose] > │ | US2_1(v19, v20, v21, v22, v23, v24, v25, v26, v27) -> (* │
00:00:43 #6161 [Verbose] > │ Some *) │
00:00:43 #6162 [Verbose] > │ let v28 : (struct (float * float * float * float * float │
00:00:43 #6163 [Verbose] > │ * float * float * float * float) -> struct (float * float * float)) = │
00:00:43 #6164 [Verbose] > │ closure11(v19, v20, v21, v22, v23, v24, v25, v26, v27) │
00:00:43 #6165 [Verbose] > │ US1_1(v28) │
00:00:43 #6166 [Verbose] > │ else │
00:00:43 #6167 [Verbose] > │ let v33 : bool = v3 = 1 │
00:00:43 #6168 [Verbose] > │ if v33 then │
00:00:43 #6169 [Verbose] > │ let v34 : int32 = 0 │
00:00:43 #6170 [Verbose] > │ let v35 : US2 = method6(v34, v0) │
00:00:43 #6171 [Verbose] > │ match v35 with │
00:00:43 #6172 [Verbose] > │ | US2_0 -> (* None *) │
00:00:43 #6173 [Verbose] > │ US1_0 │
00:00:43 #6174 [Verbose] > │ | US2_1(v36, v37, v38, v39, v40, v41, v42, v43, v44) -> │
00:00:43 #6175 [Verbose] > │ (* Some *) │
00:00:43 #6176 [Verbose] > │ let v45 : (struct (float * float * float * float * │
00:00:43 #6177 [Verbose] > │ float * float * float * float * float) -> struct (float * float * float)) = │
00:00:43 #6178 [Verbose] > │ closure11(v36, v37, v38, v39, v40, v41, v42, v43, v44) │
00:00:43 #6179 [Verbose] > │ US1_1(v45) │
00:00:43 #6180 [Verbose] > │ else │
00:00:43 #6181 [Verbose] > │ US1_0 │
00:00:43 #6182 [Verbose] > │ let v56 : (struct (float * float * float * float * float * float * │
00:00:43 #6183 [Verbose] > │ float * float * float) -> struct (float * float * float)) = │
00:00:43 #6184 [Verbose] > │ match v52 with │
00:00:43 #6185 [Verbose] > │ | US1_0 -> (* None *) │
00:00:43 #6186 [Verbose] > │ closure12() │
00:00:43 #6187 [Verbose] > │ | US1_1(v53) -> (* Some *) │
00:00:43 #6188 [Verbose] > │ v53 │
00:00:43 #6189 [Verbose] > │ let struct (v57 : float, v58 : float, v59 : float) = v56 struct (v4, │
00:00:43 #6190 [Verbose] > │ v5, v6, v7, v8, v9, v10, v11, v12) │
00:00:43 #6191 [Verbose] > │ let v60 : float = v57 / v5 │
00:00:43 #6192 [Verbose] > │ let v61 : float = v58 / v5 │
00:00:43 #6193 [Verbose] > │ let v62 : float = v59 / v5 │
00:00:43 #6194 [Verbose] > │ let v63 : (unit -> UH1) = closure13(v15) │
00:00:43 #6195 [Verbose] > │ UH1_0(0.0, 0.0, v10, v11, v12, 1.0, v60, v61, v62, v63) │
00:00:43 #6196 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:43 #6197 [Verbose] > │ v2 │
00:00:43 #6198 [Verbose] > │ and closure8 () (v0 : UH0) : UH1 = │
00:00:43 #6199 [Verbose] > │ let v1 : UH3 = UH3_1 │
00:00:43 #6200 [Verbose] > │ let v2 : int32 = 0 │
00:00:43 #6201 [Verbose] > │ let struct (v3 : UH3, v4 : int32) = method3(v0, v1, v2) │
00:00:43 #6202 [Verbose] > │ let v5 : UH3 = UH3_1 │
00:00:43 #6203 [Verbose] > │ let v6 : UH3 = method4(v3, v5) │
00:00:43 #6204 [Verbose] > │ let v7 : UH1 = UH1_1 │
00:00:43 #6205 [Verbose] > │ let v8 : UH1 = method5(v0, v6, v7) │
00:00:43 #6206 [Verbose] > │ v8 │
00:00:43 #6207 [Verbose] > │ and method8 (v0 : int32, v1 : int32) : UH5 = │
00:00:43 #6208 [Verbose] > │ let v2 : bool = v1 < v0 │
00:00:43 #6209 [Verbose] > │ if v2 then │
00:00:43 #6210 [Verbose] > │ let v3 : int32 = v1 + 1 │
00:00:43 #6211 [Verbose] > │ let v4 : UH5 = method8(v0, v3) │
00:00:43 #6212 [Verbose] > │ UH5_0(v1, v4) │
00:00:43 #6213 [Verbose] > │ else │
00:00:43 #6214 [Verbose] > │ UH5_1 │
00:00:43 #6215 [Verbose] > │ and closure15 () () : UH0 = │
00:00:43 #6216 [Verbose] > │ UH0_1 │
00:00:43 #6217 [Verbose] > │ and closure14 () () : UH0 = │
00:00:43 #6218 [Verbose] > │ let v0 : (unit -> UH0) = closure15() │
00:00:43 #6219 [Verbose] > │ UH0_0(0.0, 0.16, 1.0, 0.02, 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:43 #6220 [Verbose] > │ and method9 (v0 : (UH0 -> UH0), v1 : UH5, v2 : UH0) : UH0 = │
00:00:43 #6221 [Verbose] > │ match v1 with │
00:00:43 #6222 [Verbose] > │ | UH5_0(v3, v4) -> (* Cons *) │
00:00:43 #6223 [Verbose] > │ let v5 : (unit -> UH0) = closure4(v2) │
00:00:43 #6224 [Verbose] > │ let v6 : (unit -> UH0) = method1(v2, v5) │
00:00:43 #6225 [Verbose] > │ let v7 : UH0 = v6 () │
00:00:43 #6226 [Verbose] > │ let v8 : UH0 = v0 v7 │
00:00:43 #6227 [Verbose] > │ method9(v0, v4, v8) │
00:00:43 #6228 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:00:43 #6229 [Verbose] > │ v2 │
00:00:43 #6230 [Verbose] > │ and method10 (v0 : UH4, v1 : UH4) : UH4 = │
00:00:43 #6231 [Verbose] > │ match v0 with │
00:00:43 #6232 [Verbose] > │ | UH4_0(v2, v3) -> (* Cons *) │
00:00:43 #6233 [Verbose] > │ let v4 : UH4 = UH4_0(v2, v1) │
00:00:43 #6234 [Verbose] > │ method10(v3, v4) │
00:00:43 #6235 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:43 #6236 [Verbose] > │ v1 │
00:00:43 #6237 [Verbose] > │ and method7 (v0 : (UH0 -> UH0), v1 : UH4, v2 : int32) : UH4 = │
00:00:43 #6238 [Verbose] > │ let v3 : int32 = 0 │
00:00:43 #6239 [Verbose] > │ let v4 : UH5 = method8(v2, v3) │
00:00:43 #6240 [Verbose] > │ let v5 : float = 0.0 │
00:00:43 #6241 [Verbose] > │ let v6 : float = 0.16 │
00:00:43 #6242 [Verbose] > │ let v7 : float = 0.0 │
00:00:43 #6243 [Verbose] > │ let v8 : float = 0.0 │
00:00:43 #6244 [Verbose] > │ let v9 : float = 0.0 │
00:00:43 #6245 [Verbose] > │ let v10 : float = 0.0 │
00:00:43 #6246 [Verbose] > │ let v11 : float = 0.2 │
00:00:43 #6247 [Verbose] > │ let v12 : float = 0.0 │
00:00:43 #6248 [Verbose] > │ let v13 : float = 0.0 │
00:00:43 #6249 [Verbose] > │ let v14 : (unit -> UH0) = closure14() │
00:00:43 #6250 [Verbose] > │ let v15 : UH0 = UH0_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) │
00:00:43 #6251 [Verbose] > │ let v16 : UH0 = method9(v0, v4, v15) │
00:00:43 #6252 [Verbose] > │ let v17 : int32 = 0 │
00:00:43 #6253 [Verbose] > │ let v18 : US2 = method6(v17, v16) │
00:00:43 #6254 [Verbose] > │ let v30 : bool = │
00:00:43 #6255 [Verbose] > │ match v18 with │
00:00:43 #6256 [Verbose] > │ | US2_0 -> (* None *) │
00:00:43 #6257 [Verbose] > │ false │
00:00:43 #6258 [Verbose] > │ | US2_1(v19, v20, v21, v22, v23, v24, v25, v26, v27) -> (* Some *) │
00:00:43 #6259 [Verbose] > │ let v28 : bool = v24 <= 10.0 │
00:00:43 #6260 [Verbose] > │ v28 │
00:00:43 #6261 [Verbose] > │ if v30 then │
00:00:43 #6262 [Verbose] > │ let v31 : UH4 = UH4_0(v16, v1) │
00:00:43 #6263 [Verbose] > │ let v32 : int32 = v2 + 1 │
00:00:43 #6264 [Verbose] > │ method7(v0, v31, v32) │
00:00:43 #6265 [Verbose] > │ else │
00:00:43 #6266 [Verbose] > │ let v34 : UH4 = UH4_1 │
00:00:43 #6267 [Verbose] > │ method10(v1, v34) │
00:00:43 #6268 [Verbose] > │ and closure16 (v0 : UH7) () : UH7 = │
00:00:43 #6269 [Verbose] > │ v0 │
00:00:43 #6270 [Verbose] > │ and method12 (v0 : UH0, v1 : UH7) : UH7 = │
00:00:43 #6271 [Verbose] > │ match v0 with │
00:00:43 #6272 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* StreamCons *) │
00:00:43 #6273 [Verbose] > │ let v12 : UH0 = v11 () │
00:00:43 #6274 [Verbose] > │ let v13 : UH7 = method12(v12, v1) │
00:00:43 #6275 [Verbose] > │ let v14 : float = v8 * v8 │
00:00:43 #6276 [Verbose] > │ let v15 : float = v9 * v9 │
00:00:43 #6277 [Verbose] > │ let v16 : float = v14 + v15 │
00:00:43 #6278 [Verbose] > │ let v17 : float = v10 * v10 │
00:00:43 #6279 [Verbose] > │ let v18 : float = v16 + v17 │
00:00:43 #6280 [Verbose] > │ let v19 : float = sqrt v18 │
00:00:43 #6281 [Verbose] > │ let v20 : float = 0.5 * v3 │
00:00:43 #6282 [Verbose] > │ let v21 : float = v19 ** 2.0 │
00:00:43 #6283 [Verbose] > │ let v22 : float = v20 * v21 │
00:00:43 #6284 [Verbose] > │ let v23 : (unit -> UH7) = closure16(v13) │
00:00:43 #6285 [Verbose] > │ UH7_0(v22, v23) │
00:00:43 #6286 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:43 #6287 [Verbose] > │ v1 │
00:00:43 #6288 [Verbose] > │ and method13 (v0 : UH7, v1 : float) : float = │
00:00:43 #6289 [Verbose] > │ match v0 with │
00:00:43 #6290 [Verbose] > │ | UH7_0(v2, v3) -> (* StreamCons *) │
00:00:43 #6291 [Verbose] > │ let v4 : float = v1 + v2 │
00:00:43 #6292 [Verbose] > │ let v5 : UH7 = v3 () │
00:00:43 #6293 [Verbose] > │ method13(v5, v4) │
00:00:43 #6294 [Verbose] > │ | UH7_1 -> (* StreamNil *) │
00:00:43 #6295 [Verbose] > │ v1 │
00:00:43 #6296 [Verbose] > │ and method11 (v0 : UH4, v1 : UH6) : UH6 = │
00:00:43 #6297 [Verbose] > │ match v0 with │
00:00:43 #6298 [Verbose] > │ | UH4_0(v2, v3) -> (* Cons *) │
00:00:43 #6299 [Verbose] > │ let v4 : UH6 = method11(v3, v1) │
00:00:43 #6300 [Verbose] > │ let v5 : int32 = 0 │
00:00:43 #6301 [Verbose] > │ let v6 : US2 = method6(v5, v2) │
00:00:43 #6302 [Verbose] > │ let v23 : US3 = │
00:00:43 #6303 [Verbose] > │ match v6 with │
00:00:43 #6304 [Verbose] > │ | US2_0 -> (* None *) │
00:00:43 #6305 [Verbose] > │ US3_0 │
00:00:43 #6306 [Verbose] > │ | US2_1(v7, v8, v9, v10, v11, v12, v13, v14, v15) -> (* Some *) │
00:00:43 #6307 [Verbose] > │ let v16 : UH7 = UH7_1 │
00:00:43 #6308 [Verbose] > │ let v17 : UH7 = method12(v2, v16) │
00:00:43 #6309 [Verbose] > │ let v18 : float = 0.0 │
00:00:43 #6310 [Verbose] > │ let v19 : float = method13(v17, v18) │
00:00:43 #6311 [Verbose] > │ US3_1(v12, v19) │
00:00:43 #6312 [Verbose] > │ UH6_0(v23, v4) │
00:00:43 #6313 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:43 #6314 [Verbose] > │ v1 │
00:00:43 #6315 [Verbose] > │ and method14 (v0 : UH6, v1 : UH8) : UH8 = │
00:00:43 #6316 [Verbose] > │ match v0 with │
00:00:43 #6317 [Verbose] > │ | UH6_0(v2, v3) -> (* Cons *) │
00:00:43 #6318 [Verbose] > │ let v4 : UH8 = method14(v3, v1) │
00:00:43 #6319 [Verbose] > │ match v2 with │
00:00:43 #6320 [Verbose] > │ | US3_0 -> (* None *) │
00:00:43 #6321 [Verbose] > │ v4 │
00:00:43 #6322 [Verbose] > │ | US3_1(v5, v6) -> (* Some *) │
00:00:43 #6323 [Verbose] > │ UH8_0(v5, v6, v4) │
00:00:43 #6324 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:43 #6325 [Verbose] > │ v1 │
00:00:43 #6326 [Verbose] > │ and method15 (v0 : UH8, v1 : UH9, v2 : UH9) : struct (UH9 * UH9) = │
00:00:43 #6327 [Verbose] > │ match v0 with │
00:00:43 #6328 [Verbose] > │ | UH8_0(v3, v4, v5) -> (* Cons *) │
00:00:43 #6329 [Verbose] > │ let v6 : UH9 = UH9_0(v3, v1) │
00:00:43 #6330 [Verbose] > │ let v7 : UH9 = UH9_0(v4, v2) │
00:00:43 #6331 [Verbose] > │ method15(v5, v6, v7) │
00:00:43 #6332 [Verbose] > │ | UH8_1 -> (* Nil *) │
00:00:43 #6333 [Verbose] > │ struct (v1, v2) │
00:00:43 #6334 [Verbose] > │ and method16 (v0 : UH9, v1 : UH9) : UH9 = │
00:00:43 #6335 [Verbose] > │ match v0 with │
00:00:43 #6336 [Verbose] > │ | UH9_0(v2, v3) -> (* Cons *) │
00:00:43 #6337 [Verbose] > │ let v4 : UH9 = UH9_0(v2, v1) │
00:00:43 #6338 [Verbose] > │ method16(v3, v4) │
00:00:43 #6339 [Verbose] > │ | UH9_1 -> (* Nil *) │
00:00:43 #6340 [Verbose] > │ v1 │
00:00:43 #6341 [Verbose] > │ and closure20 (v0 : (unit -> UH1), v1 : (unit -> UH1)) () : UH1 = │
00:00:43 #6342 [Verbose] > │ let v2 : UH1 = v1 () │
00:00:43 #6343 [Verbose] > │ let v3 : UH1 = v0 () │
00:00:43 #6344 [Verbose] > │ match v2 with │
00:00:43 #6345 [Verbose] > │ | UH1_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *) │
00:00:43 #6346 [Verbose] > │ match v3 with │
00:00:43 #6347 [Verbose] > │ | UH1_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* │
00:00:43 #6348 [Verbose] > │ StreamCons *) │
00:00:43 #6349 [Verbose] > │ let v24 : float = v4 + v14 │
00:00:43 #6350 [Verbose] > │ let v25 : float = v5 + v15 │
00:00:43 #6351 [Verbose] > │ let v26 : float = v9 + v19 │
00:00:43 #6352 [Verbose] > │ let v27 : float = v6 + v16 │
00:00:43 #6353 [Verbose] > │ let v28 : float = v7 + v17 │
00:00:43 #6354 [Verbose] > │ let v29 : float = v8 + v18 │
00:00:43 #6355 [Verbose] > │ let v30 : float = v10 + v20 │
00:00:43 #6356 [Verbose] > │ let v31 : float = v11 + v21 │
00:00:43 #6357 [Verbose] > │ let v32 : float = v12 + v22 │
00:00:43 #6358 [Verbose] > │ let v33 : (unit -> UH1) = closure20(v23, v13) │
00:00:43 #6359 [Verbose] > │ UH1_0(v24, v25, v27, v28, v29, v26, v30, v31, v32, v33) │
00:00:43 #6360 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:43 #6361 [Verbose] > │ UH1_1 │
00:00:43 #6362 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:43 #6363 [Verbose] > │ UH1_1 │
00:00:43 #6364 [Verbose] > │ and closure19 (v0 : float, v1 : (UH0 -> UH1)) (v2 : UH0) : UH0 = │
00:00:43 #6365 [Verbose] > │ let v3 : UH1 = v1 v2 │
00:00:43 #6366 [Verbose] > │ let v4 : float = v0 / 2.0 │
00:00:43 #6367 [Verbose] > │ let v46 : UH0 = │
00:00:43 #6368 [Verbose] > │ match v3 with │
00:00:43 #6369 [Verbose] > │ | UH1_0(v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (* │
00:00:43 #6370 [Verbose] > │ StreamCons *) │
00:00:43 #6371 [Verbose] > │ match v2 with │
00:00:43 #6372 [Verbose] > │ | UH0_0(v15, v16, v17, v18, v19, v20, v21, v22, v23, v24) -> (* │
00:00:43 #6373 [Verbose] > │ StreamCons *) │
00:00:43 #6374 [Verbose] > │ let v25 : float = v10 * v4 │
00:00:43 #6375 [Verbose] > │ let v26 : float = v20 + v25 │
00:00:43 #6376 [Verbose] > │ let v27 : float = v4 * v7 │
00:00:43 #6377 [Verbose] > │ let v28 : float = v4 * v8 │
00:00:43 #6378 [Verbose] > │ let v29 : float = v4 * v9 │
00:00:43 #6379 [Verbose] > │ let v30 : float = v17 + v27 │
00:00:43 #6380 [Verbose] > │ let v31 : float = v18 + v28 │
00:00:43 #6381 [Verbose] > │ let v32 : float = v19 + v29 │
00:00:43 #6382 [Verbose] > │ let v33 : float = v4 * v11 │
00:00:43 #6383 [Verbose] > │ let v34 : float = v4 * v12 │
00:00:43 #6384 [Verbose] > │ let v35 : float = v4 * v13 │
00:00:43 #6385 [Verbose] > │ let v36 : float = v21 + v33 │
00:00:43 #6386 [Verbose] > │ let v37 : float = v22 + v34 │
00:00:43 #6387 [Verbose] > │ let v38 : float = v23 + v35 │
00:00:43 #6388 [Verbose] > │ let v39 : (unit -> UH0) = closure3(v4, v24, v14) │
00:00:43 #6389 [Verbose] > │ UH0_0(v15, v16, v30, v31, v32, v26, v36, v37, v38, v39) │
00:00:43 #6390 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:43 #6391 [Verbose] > │ UH0_1 │
00:00:43 #6392 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:43 #6393 [Verbose] > │ UH0_1 │
00:00:43 #6394 [Verbose] > │ let v47 : (unit -> UH0) = closure4(v46) │
00:00:43 #6395 [Verbose] > │ let v48 : (unit -> UH0) = method1(v46, v47) │
00:00:43 #6396 [Verbose] > │ let v49 : UH0 = v48 () │
00:00:43 #6397 [Verbose] > │ let v50 : UH1 = v1 v49 │
00:00:43 #6398 [Verbose] > │ let v92 : UH0 = │
00:00:43 #6399 [Verbose] > │ match v50 with │
00:00:43 #6400 [Verbose] > │ | UH1_0(v51, v52, v53, v54, v55, v56, v57, v58, v59, v60) -> (* │
00:00:43 #6401 [Verbose] > │ StreamCons *) │
00:00:43 #6402 [Verbose] > │ match v2 with │
00:00:43 #6403 [Verbose] > │ | UH0_0(v61, v62, v63, v64, v65, v66, v67, v68, v69, v70) -> (* │
00:00:43 #6404 [Verbose] > │ StreamCons *) │
00:00:43 #6405 [Verbose] > │ let v71 : float = v56 * v4 │
00:00:43 #6406 [Verbose] > │ let v72 : float = v66 + v71 │
00:00:43 #6407 [Verbose] > │ let v73 : float = v4 * v53 │
00:00:43 #6408 [Verbose] > │ let v74 : float = v4 * v54 │
00:00:43 #6409 [Verbose] > │ let v75 : float = v4 * v55 │
00:00:43 #6410 [Verbose] > │ let v76 : float = v63 + v73 │
00:00:43 #6411 [Verbose] > │ let v77 : float = v64 + v74 │
00:00:43 #6412 [Verbose] > │ let v78 : float = v65 + v75 │
00:00:43 #6413 [Verbose] > │ let v79 : float = v4 * v57 │
00:00:43 #6414 [Verbose] > │ let v80 : float = v4 * v58 │
00:00:43 #6415 [Verbose] > │ let v81 : float = v4 * v59 │
00:00:43 #6416 [Verbose] > │ let v82 : float = v67 + v79 │
00:00:43 #6417 [Verbose] > │ let v83 : float = v68 + v80 │
00:00:43 #6418 [Verbose] > │ let v84 : float = v69 + v81 │
00:00:43 #6419 [Verbose] > │ let v85 : (unit -> UH0) = closure3(v4, v70, v60) │
00:00:43 #6420 [Verbose] > │ UH0_0(v61, v62, v76, v77, v78, v72, v82, v83, v84, v85) │
00:00:43 #6421 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:43 #6422 [Verbose] > │ UH0_1 │
00:00:43 #6423 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:43 #6424 [Verbose] > │ UH0_1 │
00:00:43 #6425 [Verbose] > │ let v93 : (unit -> UH0) = closure4(v92) │
00:00:43 #6426 [Verbose] > │ let v94 : (unit -> UH0) = method1(v92, v93) │
00:00:43 #6427 [Verbose] > │ let v95 : UH0 = v94 () │
00:00:43 #6428 [Verbose] > │ let v96 : UH1 = v1 v95 │
00:00:43 #6429 [Verbose] > │ let v138 : UH0 = │
00:00:43 #6430 [Verbose] > │ match v96 with │
00:00:43 #6431 [Verbose] > │ | UH1_0(v97, v98, v99, v100, v101, v102, v103, v104, v105, v106) -> │
00:00:43 #6432 [Verbose] > │ (* StreamCons *) │
00:00:43 #6433 [Verbose] > │ match v2 with │
00:00:43 #6434 [Verbose] > │ | UH0_0(v107, v108, v109, v110, v111, v112, v113, v114, v115, │
00:00:43 #6435 [Verbose] > │ v116) -> (* StreamCons *) │
00:00:43 #6436 [Verbose] > │ let v117 : float = v102 * v0 │
00:00:43 #6437 [Verbose] > │ let v118 : float = v112 + v117 │
00:00:43 #6438 [Verbose] > │ let v119 : float = v0 * v99 │
00:00:43 #6439 [Verbose] > │ let v120 : float = v0 * v100 │
00:00:43 #6440 [Verbose] > │ let v121 : float = v0 * v101 │
00:00:43 #6441 [Verbose] > │ let v122 : float = v109 + v119 │
00:00:43 #6442 [Verbose] > │ let v123 : float = v110 + v120 │
00:00:43 #6443 [Verbose] > │ let v124 : float = v111 + v121 │
00:00:43 #6444 [Verbose] > │ let v125 : float = v0 * v103 │
00:00:43 #6445 [Verbose] > │ let v126 : float = v0 * v104 │
00:00:43 #6446 [Verbose] > │ let v127 : float = v0 * v105 │
00:00:43 #6447 [Verbose] > │ let v128 : float = v113 + v125 │
00:00:43 #6448 [Verbose] > │ let v129 : float = v114 + v126 │
00:00:43 #6449 [Verbose] > │ let v130 : float = v115 + v127 │
00:00:43 #6450 [Verbose] > │ let v131 : (unit -> UH0) = closure3(v0, v116, v106) │
00:00:43 #6451 [Verbose] > │ UH0_0(v107, v108, v122, v123, v124, v118, v128, v129, v130, │
00:00:43 #6452 [Verbose] > │ v131) │
00:00:43 #6453 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:43 #6454 [Verbose] > │ UH0_1 │
00:00:43 #6455 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:43 #6456 [Verbose] > │ UH0_1 │
00:00:43 #6457 [Verbose] > │ let v139 : (unit -> UH0) = closure4(v138) │
00:00:43 #6458 [Verbose] > │ let v140 : (unit -> UH0) = method1(v138, v139) │
00:00:43 #6459 [Verbose] > │ let v141 : UH0 = v140 () │
00:00:43 #6460 [Verbose] > │ let v142 : UH1 = v1 v141 │
00:00:43 #6461 [Verbose] > │ let v143 : float = v0 / 6.0 │
00:00:43 #6462 [Verbose] > │ let v180 : UH1 = │
00:00:43 #6463 [Verbose] > │ match v3 with │
00:00:43 #6464 [Verbose] > │ | UH1_0(v144, v145, v146, v147, v148, v149, v150, v151, v152, v153) │
00:00:43 #6465 [Verbose] > │ -> (* StreamCons *) │
00:00:43 #6466 [Verbose] > │ match v50 with │
00:00:43 #6467 [Verbose] > │ | UH1_0(v154, v155, v156, v157, v158, v159, v160, v161, v162, │
00:00:43 #6468 [Verbose] > │ v163) -> (* StreamCons *) │
00:00:43 #6469 [Verbose] > │ let v164 : float = v144 + v154 │
00:00:43 #6470 [Verbose] > │ let v165 : float = v145 + v155 │
00:00:43 #6471 [Verbose] > │ let v166 : float = v149 + v159 │
00:00:43 #6472 [Verbose] > │ let v167 : float = v146 + v156 │
00:00:43 #6473 [Verbose] > │ let v168 : float = v147 + v157 │
00:00:43 #6474 [Verbose] > │ let v169 : float = v148 + v158 │
00:00:43 #6475 [Verbose] > │ let v170 : float = v150 + v160 │
00:00:43 #6476 [Verbose] > │ let v171 : float = v151 + v161 │
00:00:43 #6477 [Verbose] > │ let v172 : float = v152 + v162 │
00:00:43 #6478 [Verbose] > │ let v173 : (unit -> UH1) = closure20(v163, v153) │
00:00:43 #6479 [Verbose] > │ UH1_0(v164, v165, v167, v168, v169, v166, v170, v171, v172, │
00:00:43 #6480 [Verbose] > │ v173) │
00:00:43 #6481 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:43 #6482 [Verbose] > │ UH1_1 │
00:00:43 #6483 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:43 #6484 [Verbose] > │ UH1_1 │
00:00:43 #6485 [Verbose] > │ let v217 : UH1 = │
00:00:43 #6486 [Verbose] > │ match v180 with │
00:00:43 #6487 [Verbose] > │ | UH1_0(v181, v182, v183, v184, v185, v186, v187, v188, v189, v190) │
00:00:43 #6488 [Verbose] > │ -> (* StreamCons *) │
00:00:43 #6489 [Verbose] > │ match v50 with │
00:00:43 #6490 [Verbose] > │ | UH1_0(v191, v192, v193, v194, v195, v196, v197, v198, v199, │
00:00:43 #6491 [Verbose] > │ v200) -> (* StreamCons *) │
00:00:43 #6492 [Verbose] > │ let v201 : float = v181 + v191 │
00:00:43 #6493 [Verbose] > │ let v202 : float = v182 + v192 │
00:00:43 #6494 [Verbose] > │ let v203 : float = v186 + v196 │
00:00:43 #6495 [Verbose] > │ let v204 : float = v183 + v193 │
00:00:43 #6496 [Verbose] > │ let v205 : float = v184 + v194 │
00:00:43 #6497 [Verbose] > │ let v206 : float = v185 + v195 │
00:00:43 #6498 [Verbose] > │ let v207 : float = v187 + v197 │
00:00:43 #6499 [Verbose] > │ let v208 : float = v188 + v198 │
00:00:43 #6500 [Verbose] > │ let v209 : float = v189 + v199 │
00:00:43 #6501 [Verbose] > │ let v210 : (unit -> UH1) = closure20(v200, v190) │
00:00:43 #6502 [Verbose] > │ UH1_0(v201, v202, v204, v205, v206, v203, v207, v208, v209, │
00:00:43 #6503 [Verbose] > │ v210) │
00:00:43 #6504 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:43 #6505 [Verbose] > │ UH1_1 │
00:00:43 #6506 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:43 #6507 [Verbose] > │ UH1_1 │
00:00:43 #6508 [Verbose] > │ let v254 : UH1 = │
00:00:43 #6509 [Verbose] > │ match v217 with │
00:00:43 #6510 [Verbose] > │ | UH1_0(v218, v219, v220, v221, v222, v223, v224, v225, v226, v227) │
00:00:43 #6511 [Verbose] > │ -> (* StreamCons *) │
00:00:43 #6512 [Verbose] > │ match v96 with │
00:00:43 #6513 [Verbose] > │ | UH1_0(v228, v229, v230, v231, v232, v233, v234, v235, v236, │
00:00:43 #6514 [Verbose] > │ v237) -> (* StreamCons *) │
00:00:43 #6515 [Verbose] > │ let v238 : float = v218 + v228 │
00:00:43 #6516 [Verbose] > │ let v239 : float = v219 + v229 │
00:00:43 #6517 [Verbose] > │ let v240 : float = v223 + v233 │
00:00:43 #6518 [Verbose] > │ let v241 : float = v220 + v230 │
00:00:43 #6519 [Verbose] > │ let v242 : float = v221 + v231 │
00:00:43 #6520 [Verbose] > │ let v243 : float = v222 + v232 │
00:00:43 #6521 [Verbose] > │ let v244 : float = v224 + v234 │
00:00:43 #6522 [Verbose] > │ let v245 : float = v225 + v235 │
00:00:43 #6523 [Verbose] > │ let v246 : float = v226 + v236 │
00:00:43 #6524 [Verbose] > │ let v247 : (unit -> UH1) = closure20(v237, v227) │
00:00:43 #6525 [Verbose] > │ UH1_0(v238, v239, v241, v242, v243, v240, v244, v245, v246, │
00:00:43 #6526 [Verbose] > │ v247) │
00:00:43 #6527 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:43 #6528 [Verbose] > │ UH1_1 │
00:00:43 #6529 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:43 #6530 [Verbose] > │ UH1_1 │
00:00:43 #6531 [Verbose] > │ let v291 : UH1 = │
00:00:43 #6532 [Verbose] > │ match v254 with │
00:00:43 #6533 [Verbose] > │ | UH1_0(v255, v256, v257, v258, v259, v260, v261, v262, v263, v264) │
00:00:43 #6534 [Verbose] > │ -> (* StreamCons *) │
00:00:43 #6535 [Verbose] > │ match v96 with │
00:00:43 #6536 [Verbose] > │ | UH1_0(v265, v266, v267, v268, v269, v270, v271, v272, v273, │
00:00:43 #6537 [Verbose] > │ v274) -> (* StreamCons *) │
00:00:43 #6538 [Verbose] > │ let v275 : float = v255 + v265 │
00:00:43 #6539 [Verbose] > │ let v276 : float = v256 + v266 │
00:00:43 #6540 [Verbose] > │ let v277 : float = v260 + v270 │
00:00:43 #6541 [Verbose] > │ let v278 : float = v257 + v267 │
00:00:43 #6542 [Verbose] > │ let v279 : float = v258 + v268 │
00:00:43 #6543 [Verbose] > │ let v280 : float = v259 + v269 │
00:00:43 #6544 [Verbose] > │ let v281 : float = v261 + v271 │
00:00:43 #6545 [Verbose] > │ let v282 : float = v262 + v272 │
00:00:43 #6546 [Verbose] > │ let v283 : float = v263 + v273 │
00:00:43 #6547 [Verbose] > │ let v284 : (unit -> UH1) = closure20(v274, v264) │
00:00:43 #6548 [Verbose] > │ UH1_0(v275, v276, v278, v279, v280, v277, v281, v282, v283, │
00:00:43 #6549 [Verbose] > │ v284) │
00:00:43 #6550 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:43 #6551 [Verbose] > │ UH1_1 │
00:00:43 #6552 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:43 #6553 [Verbose] > │ UH1_1 │
00:00:43 #6554 [Verbose] > │ let v328 : UH1 = │
00:00:43 #6555 [Verbose] > │ match v291 with │
00:00:43 #6556 [Verbose] > │ | UH1_0(v292, v293, v294, v295, v296, v297, v298, v299, v300, v301) │
00:00:43 #6557 [Verbose] > │ -> (* StreamCons *) │
00:00:43 #6558 [Verbose] > │ match v142 with │
00:00:43 #6559 [Verbose] > │ | UH1_0(v302, v303, v304, v305, v306, v307, v308, v309, v310, │
00:00:43 #6560 [Verbose] > │ v311) -> (* StreamCons *) │
00:00:43 #6561 [Verbose] > │ let v312 : float = v292 + v302 │
00:00:43 #6562 [Verbose] > │ let v313 : float = v293 + v303 │
00:00:43 #6563 [Verbose] > │ let v314 : float = v297 + v307 │
00:00:43 #6564 [Verbose] > │ let v315 : float = v294 + v304 │
00:00:43 #6565 [Verbose] > │ let v316 : float = v295 + v305 │
00:00:43 #6566 [Verbose] > │ let v317 : float = v296 + v306 │
00:00:43 #6567 [Verbose] > │ let v318 : float = v298 + v308 │
00:00:43 #6568 [Verbose] > │ let v319 : float = v299 + v309 │
00:00:43 #6569 [Verbose] > │ let v320 : float = v300 + v310 │
00:00:43 #6570 [Verbose] > │ let v321 : (unit -> UH1) = closure20(v311, v301) │
00:00:43 #6571 [Verbose] > │ UH1_0(v312, v313, v315, v316, v317, v314, v318, v319, v320, │
00:00:43 #6572 [Verbose] > │ v321) │
00:00:43 #6573 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:43 #6574 [Verbose] > │ UH1_1 │
00:00:43 #6575 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:43 #6576 [Verbose] > │ UH1_1 │
00:00:43 #6577 [Verbose] > │ let v370 : UH0 = │
00:00:43 #6578 [Verbose] > │ match v328 with │
00:00:43 #6579 [Verbose] > │ | UH1_0(v329, v330, v331, v332, v333, v334, v335, v336, v337, v338) │
00:00:43 #6580 [Verbose] > │ -> (* StreamCons *) │
00:00:43 #6581 [Verbose] > │ match v2 with │
00:00:43 #6582 [Verbose] > │ | UH0_0(v339, v340, v341, v342, v343, v344, v345, v346, v347, │
00:00:43 #6583 [Verbose] > │ v348) -> (* StreamCons *) │
00:00:43 #6584 [Verbose] > │ let v349 : float = v334 * v143 │
00:00:43 #6585 [Verbose] > │ let v350 : float = v344 + v349 │
00:00:43 #6586 [Verbose] > │ let v351 : float = v143 * v331 │
00:00:43 #6587 [Verbose] > │ let v352 : float = v143 * v332 │
00:00:43 #6588 [Verbose] > │ let v353 : float = v143 * v333 │
00:00:43 #6589 [Verbose] > │ let v354 : float = v341 + v351 │
00:00:43 #6590 [Verbose] > │ let v355 : float = v342 + v352 │
00:00:43 #6591 [Verbose] > │ let v356 : float = v343 + v353 │
00:00:43 #6592 [Verbose] > │ let v357 : float = v143 * v335 │
00:00:43 #6593 [Verbose] > │ let v358 : float = v143 * v336 │
00:00:43 #6594 [Verbose] > │ let v359 : float = v143 * v337 │
00:00:43 #6595 [Verbose] > │ let v360 : float = v345 + v357 │
00:00:43 #6596 [Verbose] > │ let v361 : float = v346 + v358 │
00:00:43 #6597 [Verbose] > │ let v362 : float = v347 + v359 │
00:00:43 #6598 [Verbose] > │ let v363 : (unit -> UH0) = closure3(v143, v348, v338) │
00:00:43 #6599 [Verbose] > │ UH0_0(v339, v340, v354, v355, v356, v350, v360, v361, v362, │
00:00:43 #6600 [Verbose] > │ v363) │
00:00:43 #6601 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:43 #6602 [Verbose] > │ UH0_1 │
00:00:43 #6603 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:43 #6604 [Verbose] > │ UH0_1 │
00:00:43 #6605 [Verbose] > │ let v371 : (unit -> UH0) = closure4(v370) │
00:00:43 #6606 [Verbose] > │ let v372 : (unit -> UH0) = method1(v370, v371) │
00:00:43 #6607 [Verbose] > │ let v373 : UH0 = v372 () │
00:00:43 #6608 [Verbose] > │ v373 │
00:00:43 #6609 [Verbose] > │ and closure18 (v0 : float) (v1 : (UH0 -> UH1)) : (UH0 -> UH0) = │
00:00:43 #6610 [Verbose] > │ closure19(v0, v1) │
00:00:43 #6611 [Verbose] > │ and closure17 () (v0 : float) : ((UH0 -> UH1) -> (UH0 -> UH0)) = │
00:00:43 #6612 [Verbose] > │ closure18(v0) │
00:00:43 #6613 [Verbose] > │ and method17 (v0 : UH4, v1 : UH6) : UH6 = │
00:00:43 #6614 [Verbose] > │ match v0 with │
00:00:43 #6615 [Verbose] > │ | UH4_0(v2, v3) -> (* Cons *) │
00:00:43 #6616 [Verbose] > │ let v4 : UH6 = method17(v3, v1) │
00:00:43 #6617 [Verbose] > │ let v5 : int32 = 0 │
00:00:43 #6618 [Verbose] > │ let v6 : US2 = method6(v5, v2) │
00:00:43 #6619 [Verbose] > │ let v23 : US3 = │
00:00:43 #6620 [Verbose] > │ match v6 with │
00:00:43 #6621 [Verbose] > │ | US2_0 -> (* None *) │
00:00:43 #6622 [Verbose] > │ US3_0 │
00:00:43 #6623 [Verbose] > │ | US2_1(v7, v8, v9, v10, v11, v12, v13, v14, v15) -> (* Some *) │
00:00:43 #6624 [Verbose] > │ let v16 : UH7 = UH7_1 │
00:00:43 #6625 [Verbose] > │ let v17 : UH7 = method12(v2, v16) │
00:00:43 #6626 [Verbose] > │ let v18 : float = 0.0 │
00:00:43 #6627 [Verbose] > │ let v19 : float = method13(v17, v18) │
00:00:43 #6628 [Verbose] > │ US3_1(v12, v19) │
00:00:43 #6629 [Verbose] > │ UH6_0(v23, v4) │
00:00:43 #6630 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:43 #6631 [Verbose] > │ v1 │
00:00:43 #6632 [Verbose] > │ and method19 (v0 : UH9, v1 : int32) : int32 = │
00:00:43 #6633 [Verbose] > │ match v0 with │
00:00:43 #6634 [Verbose] > │ | UH9_0(v2, v3) -> (* Cons *) │
00:00:43 #6635 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:43 #6636 [Verbose] > │ method19(v3, v4) │
00:00:43 #6637 [Verbose] > │ | UH9_1 -> (* Nil *) │
00:00:43 #6638 [Verbose] > │ v1 │
00:00:43 #6639 [Verbose] > │ and method20 (v0 : (float []), v1 : UH9, v2 : int32) : int32 = │
00:00:43 #6640 [Verbose] > │ match v1 with │
00:00:43 #6641 [Verbose] > │ | UH9_0(v3, v4) -> (* Cons *) │
00:00:43 #6642 [Verbose] > │ v0.[int v2] <- v3 │
00:00:43 #6643 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:43 #6644 [Verbose] > │ method20(v0, v4, v5) │
00:00:43 #6645 [Verbose] > │ | UH9_1 -> (* Nil *) │
00:00:43 #6646 [Verbose] > │ v2 │
00:00:43 #6647 [Verbose] > │ and method18 (v0 : UH9) : (float []) = │
00:00:43 #6648 [Verbose] > │ let v1 : int32 = 0 │
00:00:43 #6649 [Verbose] > │ let v2 : int32 = method19(v0, v1) │
00:00:43 #6650 [Verbose] > │ let v3 : (float []) = Array.zeroCreate<float> (v2) │
00:00:43 #6651 [Verbose] > │ let v4 : int32 = 0 │
00:00:43 #6652 [Verbose] > │ let v5 : int32 = method20(v3, v0, v4) │
00:00:43 #6653 [Verbose] > │ v3 │
00:00:43 #6654 [Verbose] > │ and method21 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:43 #6655 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:43 #6656 [Verbose] > │ v0 │
00:00:43 #6657 [Verbose] > │ and method0 () : struct (string * string * string * (struct (string * (float │
00:00:43 #6658 [Verbose] > │ []) * (float [])) [])) = │
00:00:43 #6659 [Verbose] > │ let v0 : (float -> ((UH0 -> UH1) -> (UH0 -> UH0))) = closure0() │
00:00:43 #6660 [Verbose] > │ let v1 : ((UH0 -> UH1) -> (UH0 -> UH0)) = v0 0.03 │
00:00:43 #6661 [Verbose] > │ let v2 : (UH0 -> UH1) = closure8() │
00:00:43 #6662 [Verbose] > │ let v3 : (UH0 -> UH0) = v1 v2 │
00:00:43 #6663 [Verbose] > │ let v4 : UH4 = UH4_1 │
00:00:43 #6664 [Verbose] > │ let v5 : int32 = 0 │
00:00:43 #6665 [Verbose] > │ let v6 : UH4 = method7(v3, v4, v5) │
00:00:43 #6666 [Verbose] > │ let v7 : UH6 = UH6_1 │
00:00:43 #6667 [Verbose] > │ let v8 : UH6 = method11(v6, v7) │
00:00:43 #6668 [Verbose] > │ let v9 : UH8 = UH8_1 │
00:00:43 #6669 [Verbose] > │ let v10 : UH8 = method14(v8, v9) │
00:00:43 #6670 [Verbose] > │ let v11 : UH9 = UH9_1 │
00:00:43 #6671 [Verbose] > │ let v12 : UH9 = UH9_1 │
00:00:43 #6672 [Verbose] > │ let struct (v13 : UH9, v14 : UH9) = method15(v10, v11, v12) │
00:00:43 #6673 [Verbose] > │ let v15 : UH9 = UH9_1 │
00:00:43 #6674 [Verbose] > │ let v16 : UH9 = method16(v13, v15) │
00:00:43 #6675 [Verbose] > │ let v17 : UH9 = UH9_1 │
00:00:43 #6676 [Verbose] > │ let v18 : UH9 = method16(v14, v17) │
00:00:43 #6677 [Verbose] > │ let v19 : (float -> ((UH0 -> UH1) -> (UH0 -> UH0))) = closure17() │
00:00:43 #6678 [Verbose] > │ let v20 : ((UH0 -> UH1) -> (UH0 -> UH0)) = v19 0.03 │
00:00:43 #6679 [Verbose] > │ let v21 : (UH0 -> UH0) = v20 v2 │
00:00:43 #6680 [Verbose] > │ let v22 : UH4 = UH4_1 │
00:00:43 #6681 [Verbose] > │ let v23 : int32 = 0 │
00:00:43 #6682 [Verbose] > │ let v24 : UH4 = method7(v21, v22, v23) │
00:00:43 #6683 [Verbose] > │ let v25 : UH6 = UH6_1 │
00:00:43 #6684 [Verbose] > │ let v26 : UH6 = method17(v24, v25) │
00:00:43 #6685 [Verbose] > │ let v27 : UH8 = UH8_1 │
00:00:43 #6686 [Verbose] > │ let v28 : UH8 = method14(v26, v27) │
00:00:43 #6687 [Verbose] > │ let v29 : UH9 = UH9_1 │
00:00:43 #6688 [Verbose] > │ let v30 : UH9 = UH9_1 │
00:00:43 #6689 [Verbose] > │ let struct (v31 : UH9, v32 : UH9) = method15(v28, v29, v30) │
00:00:43 #6690 [Verbose] > │ let v33 : UH9 = UH9_1 │
00:00:43 #6691 [Verbose] > │ let v34 : UH9 = method16(v31, v33) │
00:00:43 #6692 [Verbose] > │ let v35 : UH9 = UH9_1 │
00:00:43 #6693 [Verbose] > │ let v36 : UH9 = method16(v32, v35) │
00:00:43 #6694 [Verbose] > │ let v37 : (float []) = method18(v16) │
00:00:43 #6695 [Verbose] > │ let v38 : (float []) = method18(v18) │
00:00:43 #6696 [Verbose] > │ let v39 : (float []) = method18(v34) │
00:00:43 #6697 [Verbose] > │ let v40 : (float []) = method18(v36) │
00:00:43 #6698 [Verbose] > │ let v41 : string = "euler-cromer" │
00:00:43 #6699 [Verbose] > │ let v42 : string = "runge-kutta 4" │
00:00:43 #6700 [Verbose] > │ let v43 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:43 #6701 [Verbose] > │ (v41, v37, v38); struct (v42, v39, v40)|] │
00:00:43 #6702 [Verbose] > │ let v44 : (struct (string * (float []) * (float [])) []) = method21(v43) │
00:00:43 #6703 [Verbose] > │ let v45 : string = "system kinetic energy versus time" │
00:00:43 #6704 [Verbose] > │ let v46 : string = "time (s)" │
00:00:43 #6705 [Verbose] > │ let v47 : string = "system kinetic energy (j)" │
00:00:43 #6706 [Verbose] > │ struct (v45, v46, v47, v44) │
00:00:43 #6707 [Verbose] > │ method0() │
00:00:43 #6708 [Verbose] > │ │
00:00:43 #6709 [Verbose] > │ │
00:00:43 #6710 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:43 #6711 [Verbose] >
00:00:43 #6712 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:43 #6713 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:43 #6714 [Verbose] > │ ### wave 2 │
00:00:43 #6715 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:43 #6716 [Verbose] >
00:00:43 #6717 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:43 #6718 [Verbose] > // // test
00:00:43 #6719 [Verbose] >
00:00:43 #6720 [Verbose] > inl linear_spring k re (particle_state st1) (particle_state st2) =
00:00:43 #6721 [Verbose] > inl r1 = st1.pos_vec
00:00:43 #6722 [Verbose] > inl r2 = st2.pos_vec
00:00:43 #6723 [Verbose] > inl r21 = r2 ^-^ r1
00:00:43 #6724 [Verbose] > inl r21mag = magnitude r21
00:00:43 #6725 [Verbose] > -k * (r21mag - re) *^ r21 ^/ r21mag
00:00:43 #6726 [Verbose] >
00:00:43 #6727 [Verbose] > inl fixed_linear_spring k re r1 =
00:00:43 #6728 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:43 #6729 [Verbose] > linear_spring k re (particle_state { default_particle_state' with pos_vec =
00:00:43 #6730 [Verbose] > r1 })
00:00:43 #6731 [Verbose] >
00:00:43 #6732 [Verbose] > inl forces_string () =
00:00:43 #6733 [Verbose] > [[
00:00:43 #6734 [Verbose] > ExternalForce (0i32, fixed_linear_spring 5384 0 (zero_vec ()))
00:00:43 #6735 [Verbose] > ExternalForce (63, fixed_linear_spring 5384 0 (0.65 *^ i_hat ()))
00:00:43 #6736 [Verbose] > ]] /@ (
00:00:43 #6737 [Verbose] > listm'.init_series 0 59 1
00:00:43 #6738 [Verbose] > |> listm.map (fun n => InternalForce (n, n + 1, linear_spring 5384 0))
00:00:43 #6739 [Verbose] > )
00:00:43 #6740 [Verbose] >
00:00:43 #6741 [Verbose] > inl string_update dt =
00:00:43 #6742 [Verbose] > update_mps (join runge_kutta_4 dt) (join forces_string ())
00:00:43 #6743 [Verbose] >
00:00:43 #6744 [Verbose] > inl string_initial_overtone n =
00:00:43 #6745 [Verbose] > inl ball_mass = 0.0008293 * 0.65 / 64
00:00:43 #6746 [Verbose] > inl (particle_state default_particle_state') = default_particle_state ()
00:00:43 #6747 [Verbose] > listm'.init_series 0.01 0.64 0.01
00:00:43 #6748 [Verbose] > |> listm.map (fun x =>
00:00:43 #6749 [Verbose] > inl y = 0.005 * sin (conv n * pi * x / 0.65)
00:00:43 #6750 [Verbose] > particle_state {
00:00:43 #6751 [Verbose] > default_particle_state' with
00:00:43 #6752 [Verbose] > mass = ball_mass
00:00:43 #6753 [Verbose] > pos_vec = x *^ i_hat () ^+^ y *^ j_hat ()
00:00:43 #6754 [Verbose] > velocity = zero_vec ()
00:00:43 #6755 [Verbose] > }
00:00:43 #6756 [Verbose] > )
00:00:43 #6757 [Verbose] > |> stream.from_list
00:00:43 #6758 [Verbose] > |> multi_particle_state
00:00:43 #6759 [Verbose] >
00:00:43 #6760 [Verbose] > let main () =
00:00:43 #6761 [Verbose] > inl ~frames = listm'.init_series 0 65 1f64 |> stream.from_list
00:00:43 #6762 [Verbose] > inl ~initial_state = string_initial_overtone 3i32
00:00:43 #6763 [Verbose] > inl frames =
00:00:43 #6764 [Verbose] > frames
00:00:43 #6765 [Verbose] > |> stream.map (fun n =>
00:00:43 #6766 [Verbose] > inl (multi_particle_state sts) =
00:00:43 #6767 [Verbose] > stream.iterate (string_update 0.000025) initial_state |>
00:00:43 #6768 [Verbose] > stream.item n
00:00:43 #6769 [Verbose] > inl x, y =
00:00:43 #6770 [Verbose] > [[ zero_vec () ]]
00:00:43 #6771 [Verbose] > /@ (sts |> stream.map (fun (particle_state st) => st.pos_vec) |>
00:00:43 #6772 [Verbose] > stream.to_list)
00:00:43 #6773 [Verbose] > /@ [[ 0.65 *^ i_hat () ]]
00:00:43 #6774 [Verbose] > |> listm.map (fun r => r.x, r.y)
00:00:43 #6775 [Verbose] > |> stream.from_list
00:00:43 #6776 [Verbose] > |> stream.unzip
00:00:43 #6777 [Verbose] > inl x : a i32 _ = x |> stream.to_list |> listm.toArray
00:00:43 #6778 [Verbose] > inl y : a i32 _ = y |> stream.to_list |> listm.toArray
00:00:43 #6779 [Verbose] > x, y
00:00:43 #6780 [Verbose] > )
00:00:43 #6781 [Verbose] >
00:00:43 #6782 [Verbose] > inl plots =
00:00:43 #6783 [Verbose] > frames
00:00:43 #6784 [Verbose] > |> stream.indexed
00:00:43 #6785 [Verbose] > |> stream.map (fun ((n : i32), (x, y)) =>
00:00:43 #6786 [Verbose] > "wave",
00:00:43 #6787 [Verbose] > "position (m)",
00:00:43 #6788 [Verbose] > "displacement (m)",
00:00:43 #6789 [Verbose] > ;[[
00:00:43 #6790 [Verbose] > ($"$\"{!n}\"" : string), x, y
00:00:43 #6791 [Verbose] > ]]
00:00:43 #6792 [Verbose] > )
00:00:43 #6793 [Verbose] >
00:00:43 #6794 [Verbose] > plots |> stream.to_list |> listm.toArray : a i32 _
00:00:44 #6795 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0044-0832-3276-3073fa22582d\main.spi
00:00:50 #6796 [Verbose] >
00:00:50 #6797 [Verbose] > ╭─[ 6.75s - return value ]─────────────────────────────────────────────────────╮
00:00:50 #6798 [Verbose] > │ <table><thead><tr><th><i>index</i></th><th>value</th></tr></thead><tbody><tr │
00:00:50 #6799 [Verbose] > │ ><td>0</td><td><svg width="640" height="480" viewBox="0 0 640 480" │
00:00:50 #6800 [Verbose] > │ xmlns="http://www.w3.org/2000/svg"> │
00:00:50 #6801 [Verbose] > │ <rect x="0" y="0" width="640" height="480" opacity="1" fill="#141414" │
00:00:50 #6802 [Verbose] > │ stroke="none"/> │
00:00:50 #6803 [Verbose] > │ <text x="320" y="10" dy="0.76em" text-anchor="middle" │
00:00:50 #6804 [Verbose] > │ font-family="sans-serif" font-size="9.67741935483871" opacity="1" │
00:00:50 #6805 [Verbose] > │ fill="#FFFFFF"> │
00:00:50 #6806 [Verbose] > │ wave │
00:00:50 #6807 [Verbose] > │ </text> │
00:00:50 #6808 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="62" y1="424" x2="62" │
00:00:50 #6809 [Verbose] > │ y2="75"/> │
00:00:50 #6810 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="69" y1="424" x2="69" │
00:00:50 #6811 [Verbose] > │ y2="75"/> │
00:00:50 #6812 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="77" y1="424" x2="77" │
00:00:50 #6813 [Verbose] > │ y2="75"/> │
00:00:50 #6814 [Verbose] > │ <line opacity="1" stroke="#323232" stroke-width="1" x1="85" y1="424" │
00:00:50 #6815 [Verbose] > │ x2="85... │
00:00:50 #6816 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:50 #6817 [Verbose] >
00:00:50 #6818 [Verbose] > ╭─[ 6.78s - stdout ]───────────────────────────────────────────────────────────╮
00:00:50 #6819 [Verbose] > │ type UH0 = │
00:00:50 #6820 [Verbose] > │ | UH0_0 of float * (unit -> UH0) │
00:00:50 #6821 [Verbose] > │ | UH0_1 │
00:00:50 #6822 [Verbose] > │ and UH1 = │
00:00:50 #6823 [Verbose] > │ | UH1_0 of float * float * float * float * float * float * float * float │
00:00:50 #6824 [Verbose] > │ * float * (unit -> UH1) │
00:00:50 #6825 [Verbose] > │ | UH1_1 │
00:00:50 #6826 [Verbose] > │ and UH2 = │
00:00:50 #6827 [Verbose] > │ | UH2_0 of (float []) * (float []) * (unit -> UH2) │
00:00:50 #6828 [Verbose] > │ | UH2_1 │
00:00:50 #6829 [Verbose] > │ and UH3 = │
00:00:50 #6830 [Verbose] > │ | UH3_0 of float * float * float * float * float * float * float * float │
00:00:50 #6831 [Verbose] > │ * float * (unit -> UH3) │
00:00:50 #6832 [Verbose] > │ | UH3_1 │
00:00:50 #6833 [Verbose] > │ and [<Struct>] US0 = │
00:00:50 #6834 [Verbose] > │ | US0_0 of f0_0 : UH1 │
00:00:50 #6835 [Verbose] > │ | US0_1 of f1_0 : (unit -> UH1) │
00:00:50 #6836 [Verbose] > │ and Mut0 = {mutable l0 : US0} │
00:00:50 #6837 [Verbose] > │ and [<Struct>] US1 = │
00:00:50 #6838 [Verbose] > │ | US1_0 of f0_0 : int32 * f0_1 : (struct (float * float * float * float │
00:00:50 #6839 [Verbose] > │ * float * float * float * float * float) -> struct (float * float * float)) │
00:00:50 #6840 [Verbose] > │ | US1_1 of f1_0 : int32 * f1_1 : int32 * f1_2 : (struct (float * float * │
00:00:50 #6841 [Verbose] > │ float * float * float * float * float * float * float) -> (struct (float * │
00:00:50 #6842 [Verbose] > │ float * float * float * float * float * float * float * float) -> struct │
00:00:50 #6843 [Verbose] > │ (float * float * float))) │
00:00:50 #6844 [Verbose] > │ and UH4 = │
00:00:50 #6845 [Verbose] > │ | UH4_0 of US1 * UH4 │
00:00:50 #6846 [Verbose] > │ | UH4_1 │
00:00:50 #6847 [Verbose] > │ and UH5 = │
00:00:50 #6848 [Verbose] > │ | UH5_0 of int32 * float * float * float * float * float * float * float │
00:00:50 #6849 [Verbose] > │ * float * float * (unit -> UH5) │
00:00:50 #6850 [Verbose] > │ | UH5_1 │
00:00:50 #6851 [Verbose] > │ and UH6 = │
00:00:50 #6852 [Verbose] > │ | UH6_0 of (struct (float * float * float * float * float * float * │
00:00:50 #6853 [Verbose] > │ float * float * float) -> struct (float * float * float)) * UH6 │
00:00:50 #6854 [Verbose] > │ | UH6_1 │
00:00:50 #6855 [Verbose] > │ and [<Struct>] US2 = │
00:00:50 #6856 [Verbose] > │ | US2_0 │
00:00:50 #6857 [Verbose] > │ | US2_1 of f1_0 : (struct (float * float * float * float * float * float │
00:00:50 #6858 [Verbose] > │ * float * float * float) -> struct (float * float * float)) │
00:00:50 #6859 [Verbose] > │ and [<Struct>] US3 = │
00:00:50 #6860 [Verbose] > │ | US3_0 │
00:00:50 #6861 [Verbose] > │ | US3_1 of f1_0 : float * f1_1 : float * f1_2 : float * f1_3 : float * │
00:00:50 #6862 [Verbose] > │ f1_4 : float * f1_5 : float * f1_6 : float * f1_7 : float * f1_8 : float │
00:00:50 #6863 [Verbose] > │ and UH7 = │
00:00:50 #6864 [Verbose] > │ | UH7_0 of float * float * float * UH7 │
00:00:50 #6865 [Verbose] > │ | UH7_1 │
00:00:50 #6866 [Verbose] > │ and UH8 = │
00:00:50 #6867 [Verbose] > │ | UH8_0 of UH1 * (unit -> UH8) │
00:00:50 #6868 [Verbose] > │ | UH8_1 │
00:00:50 #6869 [Verbose] > │ and [<Struct>] US4 = │
00:00:50 #6870 [Verbose] > │ | US4_0 │
00:00:50 #6871 [Verbose] > │ | US4_1 of f1_0 : UH1 │
00:00:50 #6872 [Verbose] > │ and UH9 = │
00:00:50 #6873 [Verbose] > │ | UH9_0 of float * float * float * (unit -> UH9) │
00:00:50 #6874 [Verbose] > │ | UH9_1 │
00:00:50 #6875 [Verbose] > │ and UH10 = │
00:00:50 #6876 [Verbose] > │ | UH10_0 of float * float * UH10 │
00:00:50 #6877 [Verbose] > │ | UH10_1 │
00:00:50 #6878 [Verbose] > │ and UH11 = │
00:00:50 #6879 [Verbose] > │ | UH11_0 of float * float * (unit -> UH11) │
00:00:50 #6880 [Verbose] > │ | UH11_1 │
00:00:50 #6881 [Verbose] > │ and UH12 = │
00:00:50 #6882 [Verbose] > │ | UH12_0 of float * UH12 │
00:00:50 #6883 [Verbose] > │ | UH12_1 │
00:00:50 #6884 [Verbose] > │ and UH13 = │
00:00:50 #6885 [Verbose] > │ | UH13_0 of int32 * (float []) * (float []) * (unit -> UH13) │
00:00:50 #6886 [Verbose] > │ | UH13_1 │
00:00:50 #6887 [Verbose] > │ and UH14 = │
00:00:50 #6888 [Verbose] > │ | UH14_0 of string * string * string * (struct (string * (float []) * │
00:00:50 #6889 [Verbose] > │ (float [])) []) * (unit -> UH14) │
00:00:50 #6890 [Verbose] > │ | UH14_1 │
00:00:50 #6891 [Verbose] > │ and UH15 = │
00:00:50 #6892 [Verbose] > │ | UH15_0 of string * string * string * (struct (string * (float []) * │
00:00:50 #6893 [Verbose] > │ (float [])) []) * UH15 │
00:00:50 #6894 [Verbose] > │ | UH15_1 │
00:00:50 #6895 [Verbose] > │ let rec closure65 () () : UH0 = │
00:00:50 #6896 [Verbose] > │ UH0_1 │
00:00:50 #6897 [Verbose] > │ and closure64 () () : UH0 = │
00:00:50 #6898 [Verbose] > │ let v0 : (unit -> UH0) = closure65() │
00:00:50 #6899 [Verbose] > │ UH0_0(65.0, v0) │
00:00:50 #6900 [Verbose] > │ and closure63 () () : UH0 = │
00:00:50 #6901 [Verbose] > │ let v0 : (unit -> UH0) = closure64() │
00:00:50 #6902 [Verbose] > │ UH0_0(64.0, v0) │
00:00:50 #6903 [Verbose] > │ and closure62 () () : UH0 = │
00:00:50 #6904 [Verbose] > │ let v0 : (unit -> UH0) = closure63() │
00:00:50 #6905 [Verbose] > │ UH0_0(63.0, v0) │
00:00:50 #6906 [Verbose] > │ and closure61 () () : UH0 = │
00:00:50 #6907 [Verbose] > │ let v0 : (unit -> UH0) = closure62() │
00:00:50 #6908 [Verbose] > │ UH0_0(62.0, v0) │
00:00:50 #6909 [Verbose] > │ and closure60 () () : UH0 = │
00:00:50 #6910 [Verbose] > │ let v0 : (unit -> UH0) = closure61() │
00:00:50 #6911 [Verbose] > │ UH0_0(61.0, v0) │
00:00:50 #6912 [Verbose] > │ and closure59 () () : UH0 = │
00:00:50 #6913 [Verbose] > │ let v0 : (unit -> UH0) = closure60() │
00:00:50 #6914 [Verbose] > │ UH0_0(60.0, v0) │
00:00:50 #6915 [Verbose] > │ and closure58 () () : UH0 = │
00:00:50 #6916 [Verbose] > │ let v0 : (unit -> UH0) = closure59() │
00:00:50 #6917 [Verbose] > │ UH0_0(59.0, v0) │
00:00:50 #6918 [Verbose] > │ and closure57 () () : UH0 = │
00:00:50 #6919 [Verbose] > │ let v0 : (unit -> UH0) = closure58() │
00:00:50 #6920 [Verbose] > │ UH0_0(58.0, v0) │
00:00:50 #6921 [Verbose] > │ and closure56 () () : UH0 = │
00:00:50 #6922 [Verbose] > │ let v0 : (unit -> UH0) = closure57() │
00:00:50 #6923 [Verbose] > │ UH0_0(57.0, v0) │
00:00:50 #6924 [Verbose] > │ and closure55 () () : UH0 = │
00:00:50 #6925 [Verbose] > │ let v0 : (unit -> UH0) = closure56() │
00:00:50 #6926 [Verbose] > │ UH0_0(56.0, v0) │
00:00:50 #6927 [Verbose] > │ and closure54 () () : UH0 = │
00:00:50 #6928 [Verbose] > │ let v0 : (unit -> UH0) = closure55() │
00:00:50 #6929 [Verbose] > │ UH0_0(55.0, v0) │
00:00:50 #6930 [Verbose] > │ and closure53 () () : UH0 = │
00:00:50 #6931 [Verbose] > │ let v0 : (unit -> UH0) = closure54() │
00:00:50 #6932 [Verbose] > │ UH0_0(54.0, v0) │
00:00:50 #6933 [Verbose] > │ and closure52 () () : UH0 = │
00:00:50 #6934 [Verbose] > │ let v0 : (unit -> UH0) = closure53() │
00:00:50 #6935 [Verbose] > │ UH0_0(53.0, v0) │
00:00:50 #6936 [Verbose] > │ and closure51 () () : UH0 = │
00:00:50 #6937 [Verbose] > │ let v0 : (unit -> UH0) = closure52() │
00:00:50 #6938 [Verbose] > │ UH0_0(52.0, v0) │
00:00:50 #6939 [Verbose] > │ and closure50 () () : UH0 = │
00:00:50 #6940 [Verbose] > │ let v0 : (unit -> UH0) = closure51() │
00:00:50 #6941 [Verbose] > │ UH0_0(51.0, v0) │
00:00:50 #6942 [Verbose] > │ and closure49 () () : UH0 = │
00:00:50 #6943 [Verbose] > │ let v0 : (unit -> UH0) = closure50() │
00:00:50 #6944 [Verbose] > │ UH0_0(50.0, v0) │
00:00:50 #6945 [Verbose] > │ and closure48 () () : UH0 = │
00:00:50 #6946 [Verbose] > │ let v0 : (unit -> UH0) = closure49() │
00:00:50 #6947 [Verbose] > │ UH0_0(49.0, v0) │
00:00:50 #6948 [Verbose] > │ and closure47 () () : UH0 = │
00:00:50 #6949 [Verbose] > │ let v0 : (unit -> UH0) = closure48() │
00:00:50 #6950 [Verbose] > │ UH0_0(48.0, v0) │
00:00:50 #6951 [Verbose] > │ and closure46 () () : UH0 = │
00:00:50 #6952 [Verbose] > │ let v0 : (unit -> UH0) = closure47() │
00:00:50 #6953 [Verbose] > │ UH0_0(47.0, v0) │
00:00:50 #6954 [Verbose] > │ and closure45 () () : UH0 = │
00:00:50 #6955 [Verbose] > │ let v0 : (unit -> UH0) = closure46() │
00:00:50 #6956 [Verbose] > │ UH0_0(46.0, v0) │
00:00:50 #6957 [Verbose] > │ and closure44 () () : UH0 = │
00:00:50 #6958 [Verbose] > │ let v0 : (unit -> UH0) = closure45() │
00:00:50 #6959 [Verbose] > │ UH0_0(45.0, v0) │
00:00:50 #6960 [Verbose] > │ and closure43 () () : UH0 = │
00:00:50 #6961 [Verbose] > │ let v0 : (unit -> UH0) = closure44() │
00:00:50 #6962 [Verbose] > │ UH0_0(44.0, v0) │
00:00:50 #6963 [Verbose] > │ and closure42 () () : UH0 = │
00:00:50 #6964 [Verbose] > │ let v0 : (unit -> UH0) = closure43() │
00:00:50 #6965 [Verbose] > │ UH0_0(43.0, v0) │
00:00:50 #6966 [Verbose] > │ and closure41 () () : UH0 = │
00:00:50 #6967 [Verbose] > │ let v0 : (unit -> UH0) = closure42() │
00:00:50 #6968 [Verbose] > │ UH0_0(42.0, v0) │
00:00:50 #6969 [Verbose] > │ and closure40 () () : UH0 = │
00:00:50 #6970 [Verbose] > │ let v0 : (unit -> UH0) = closure41() │
00:00:50 #6971 [Verbose] > │ UH0_0(41.0, v0) │
00:00:50 #6972 [Verbose] > │ and closure39 () () : UH0 = │
00:00:50 #6973 [Verbose] > │ let v0 : (unit -> UH0) = closure40() │
00:00:50 #6974 [Verbose] > │ UH0_0(40.0, v0) │
00:00:50 #6975 [Verbose] > │ and closure38 () () : UH0 = │
00:00:50 #6976 [Verbose] > │ let v0 : (unit -> UH0) = closure39() │
00:00:50 #6977 [Verbose] > │ UH0_0(39.0, v0) │
00:00:50 #6978 [Verbose] > │ and closure37 () () : UH0 = │
00:00:50 #6979 [Verbose] > │ let v0 : (unit -> UH0) = closure38() │
00:00:50 #6980 [Verbose] > │ UH0_0(38.0, v0) │
00:00:50 #6981 [Verbose] > │ and closure36 () () : UH0 = │
00:00:50 #6982 [Verbose] > │ let v0 : (unit -> UH0) = closure37() │
00:00:50 #6983 [Verbose] > │ UH0_0(37.0, v0) │
00:00:50 #6984 [Verbose] > │ and closure35 () () : UH0 = │
00:00:50 #6985 [Verbose] > │ let v0 : (unit -> UH0) = closure36() │
00:00:50 #6986 [Verbose] > │ UH0_0(36.0, v0) │
00:00:50 #6987 [Verbose] > │ and closure34 () () : UH0 = │
00:00:50 #6988 [Verbose] > │ let v0 : (unit -> UH0) = closure35() │
00:00:50 #6989 [Verbose] > │ UH0_0(35.0, v0) │
00:00:50 #6990 [Verbose] > │ and closure33 () () : UH0 = │
00:00:50 #6991 [Verbose] > │ let v0 : (unit -> UH0) = closure34() │
00:00:50 #6992 [Verbose] > │ UH0_0(34.0, v0) │
00:00:50 #6993 [Verbose] > │ and closure32 () () : UH0 = │
00:00:50 #6994 [Verbose] > │ let v0 : (unit -> UH0) = closure33() │
00:00:50 #6995 [Verbose] > │ UH0_0(33.0, v0) │
00:00:50 #6996 [Verbose] > │ and closure31 () () : UH0 = │
00:00:50 #6997 [Verbose] > │ let v0 : (unit -> UH0) = closure32() │
00:00:50 #6998 [Verbose] > │ UH0_0(32.0, v0) │
00:00:50 #6999 [Verbose] > │ and closure30 () () : UH0 = │
00:00:50 #7000 [Verbose] > │ let v0 : (unit -> UH0) = closure31() │
00:00:50 #7001 [Verbose] > │ UH0_0(31.0, v0) │
00:00:50 #7002 [Verbose] > │ and closure29 () () : UH0 = │
00:00:50 #7003 [Verbose] > │ let v0 : (unit -> UH0) = closure30() │
00:00:50 #7004 [Verbose] > │ UH0_0(30.0, v0) │
00:00:50 #7005 [Verbose] > │ and closure28 () () : UH0 = │
00:00:50 #7006 [Verbose] > │ let v0 : (unit -> UH0) = closure29() │
00:00:50 #7007 [Verbose] > │ UH0_0(29.0, v0) │
00:00:50 #7008 [Verbose] > │ and closure27 () () : UH0 = │
00:00:50 #7009 [Verbose] > │ let v0 : (unit -> UH0) = closure28() │
00:00:50 #7010 [Verbose] > │ UH0_0(28.0, v0) │
00:00:50 #7011 [Verbose] > │ and closure26 () () : UH0 = │
00:00:50 #7012 [Verbose] > │ let v0 : (unit -> UH0) = closure27() │
00:00:50 #7013 [Verbose] > │ UH0_0(27.0, v0) │
00:00:50 #7014 [Verbose] > │ and closure25 () () : UH0 = │
00:00:50 #7015 [Verbose] > │ let v0 : (unit -> UH0) = closure26() │
00:00:50 #7016 [Verbose] > │ UH0_0(26.0, v0) │
00:00:50 #7017 [Verbose] > │ and closure24 () () : UH0 = │
00:00:50 #7018 [Verbose] > │ let v0 : (unit -> UH0) = closure25() │
00:00:50 #7019 [Verbose] > │ UH0_0(25.0, v0) │
00:00:50 #7020 [Verbose] > │ and closure23 () () : UH0 = │
00:00:50 #7021 [Verbose] > │ let v0 : (unit -> UH0) = closure24() │
00:00:50 #7022 [Verbose] > │ UH0_0(24.0, v0) │
00:00:50 #7023 [Verbose] > │ and closure22 () () : UH0 = │
00:00:50 #7024 [Verbose] > │ let v0 : (unit -> UH0) = closure23() │
00:00:50 #7025 [Verbose] > │ UH0_0(23.0, v0) │
00:00:50 #7026 [Verbose] > │ and closure21 () () : UH0 = │
00:00:50 #7027 [Verbose] > │ let v0 : (unit -> UH0) = closure22() │
00:00:50 #7028 [Verbose] > │ UH0_0(22.0, v0) │
00:00:50 #7029 [Verbose] > │ and closure20 () () : UH0 = │
00:00:50 #7030 [Verbose] > │ let v0 : (unit -> UH0) = closure21() │
00:00:50 #7031 [Verbose] > │ UH0_0(21.0, v0) │
00:00:50 #7032 [Verbose] > │ and closure19 () () : UH0 = │
00:00:50 #7033 [Verbose] > │ let v0 : (unit -> UH0) = closure20() │
00:00:50 #7034 [Verbose] > │ UH0_0(20.0, v0) │
00:00:50 #7035 [Verbose] > │ and closure18 () () : UH0 = │
00:00:50 #7036 [Verbose] > │ let v0 : (unit -> UH0) = closure19() │
00:00:50 #7037 [Verbose] > │ UH0_0(19.0, v0) │
00:00:50 #7038 [Verbose] > │ and closure17 () () : UH0 = │
00:00:50 #7039 [Verbose] > │ let v0 : (unit -> UH0) = closure18() │
00:00:50 #7040 [Verbose] > │ UH0_0(18.0, v0) │
00:00:50 #7041 [Verbose] > │ and closure16 () () : UH0 = │
00:00:50 #7042 [Verbose] > │ let v0 : (unit -> UH0) = closure17() │
00:00:50 #7043 [Verbose] > │ UH0_0(17.0, v0) │
00:00:50 #7044 [Verbose] > │ and closure15 () () : UH0 = │
00:00:50 #7045 [Verbose] > │ let v0 : (unit -> UH0) = closure16() │
00:00:50 #7046 [Verbose] > │ UH0_0(16.0, v0) │
00:00:50 #7047 [Verbose] > │ and closure14 () () : UH0 = │
00:00:50 #7048 [Verbose] > │ let v0 : (unit -> UH0) = closure15() │
00:00:50 #7049 [Verbose] > │ UH0_0(15.0, v0) │
00:00:50 #7050 [Verbose] > │ and closure13 () () : UH0 = │
00:00:50 #7051 [Verbose] > │ let v0 : (unit -> UH0) = closure14() │
00:00:50 #7052 [Verbose] > │ UH0_0(14.0, v0) │
00:00:50 #7053 [Verbose] > │ and closure12 () () : UH0 = │
00:00:50 #7054 [Verbose] > │ let v0 : (unit -> UH0) = closure13() │
00:00:50 #7055 [Verbose] > │ UH0_0(13.0, v0) │
00:00:50 #7056 [Verbose] > │ and closure11 () () : UH0 = │
00:00:50 #7057 [Verbose] > │ let v0 : (unit -> UH0) = closure12() │
00:00:50 #7058 [Verbose] > │ UH0_0(12.0, v0) │
00:00:50 #7059 [Verbose] > │ and closure10 () () : UH0 = │
00:00:50 #7060 [Verbose] > │ let v0 : (unit -> UH0) = closure11() │
00:00:50 #7061 [Verbose] > │ UH0_0(11.0, v0) │
00:00:50 #7062 [Verbose] > │ and closure9 () () : UH0 = │
00:00:50 #7063 [Verbose] > │ let v0 : (unit -> UH0) = closure10() │
00:00:50 #7064 [Verbose] > │ UH0_0(10.0, v0) │
00:00:50 #7065 [Verbose] > │ and closure8 () () : UH0 = │
00:00:50 #7066 [Verbose] > │ let v0 : (unit -> UH0) = closure9() │
00:00:50 #7067 [Verbose] > │ UH0_0(9.0, v0) │
00:00:50 #7068 [Verbose] > │ and closure7 () () : UH0 = │
00:00:50 #7069 [Verbose] > │ let v0 : (unit -> UH0) = closure8() │
00:00:50 #7070 [Verbose] > │ UH0_0(8.0, v0) │
00:00:50 #7071 [Verbose] > │ and closure6 () () : UH0 = │
00:00:50 #7072 [Verbose] > │ let v0 : (unit -> UH0) = closure7() │
00:00:50 #7073 [Verbose] > │ UH0_0(7.0, v0) │
00:00:50 #7074 [Verbose] > │ and closure5 () () : UH0 = │
00:00:50 #7075 [Verbose] > │ let v0 : (unit -> UH0) = closure6() │
00:00:50 #7076 [Verbose] > │ UH0_0(6.0, v0) │
00:00:50 #7077 [Verbose] > │ and closure4 () () : UH0 = │
00:00:50 #7078 [Verbose] > │ let v0 : (unit -> UH0) = closure5() │
00:00:50 #7079 [Verbose] > │ UH0_0(5.0, v0) │
00:00:50 #7080 [Verbose] > │ and closure3 () () : UH0 = │
00:00:50 #7081 [Verbose] > │ let v0 : (unit -> UH0) = closure4() │
00:00:50 #7082 [Verbose] > │ UH0_0(4.0, v0) │
00:00:50 #7083 [Verbose] > │ and closure2 () () : UH0 = │
00:00:50 #7084 [Verbose] > │ let v0 : (unit -> UH0) = closure3() │
00:00:50 #7085 [Verbose] > │ UH0_0(3.0, v0) │
00:00:50 #7086 [Verbose] > │ and closure1 () () : UH0 = │
00:00:50 #7087 [Verbose] > │ let v0 : (unit -> UH0) = closure2() │
00:00:50 #7088 [Verbose] > │ UH0_0(2.0, v0) │
00:00:50 #7089 [Verbose] > │ and closure0 () () : UH0 = │
00:00:50 #7090 [Verbose] > │ let v0 : (unit -> UH0) = closure1() │
00:00:50 #7091 [Verbose] > │ UH0_0(1.0, v0) │
00:00:50 #7092 [Verbose] > │ and closure129 () () : UH1 = │
00:00:50 #7093 [Verbose] > │ UH1_1 │
00:00:50 #7094 [Verbose] > │ and closure128 () () : UH1 = │
00:00:50 #7095 [Verbose] > │ let v0 : (unit -> UH1) = closure129() │
00:00:50 #7096 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.64, 0.0007224452478461016, 0.0, 0.0, 0.0, │
00:00:50 #7097 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7098 [Verbose] > │ and closure127 () () : UH1 = │
00:00:50 #7099 [Verbose] > │ let v0 : (unit -> UH1) = closure128() │
00:00:50 #7100 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.63, 0.001429728391993452, 0.0, 0.0, 0.0, │
00:00:50 #7101 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7102 [Verbose] > │ and closure126 () () : UH1 = │
00:00:50 #7103 [Verbose] > │ let v0 : (unit -> UH1) = closure127() │
00:00:50 #7104 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.62, 0.0021070055388626528, 0.0, 0.0, 0.0, │
00:00:50 #7105 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7106 [Verbose] > │ and closure125 () () : UH1 = │
00:00:50 #7107 [Verbose] > │ let v0 : (unit -> UH1) = closure126() │
00:00:50 #7108 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.61, 0.0027400625367733585, 0.0, 0.0, 0.0, │
00:00:50 #7109 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7110 [Verbose] > │ and closure124 () () : UH1 = │
00:00:50 #7111 [Verbose] > │ let v0 : (unit -> UH1) = closure125() │
00:00:50 #7112 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.6, 0.0033156132912039783, 0.0, 0.0, 0.0, │
00:00:50 #7113 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7114 [Verbose] > │ and closure123 () () : UH1 = │
00:00:50 #7115 [Verbose] > │ let v0 : (unit -> UH1) = closure124() │
00:00:50 #7116 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.59, 0.003821578602729245, 0.0, 0.0, 0.0, │
00:00:50 #7117 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7118 [Verbose] > │ and closure122 () () : UH1 = │
00:00:50 #7119 [Verbose] > │ let v0 : (unit -> UH1) = closure123() │
00:00:50 #7120 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.5800000000000001, 0.004247339675607605, │
00:00:50 #7121 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:50 #7122 [Verbose] > │ and closure121 () () : UH1 = │
00:00:50 #7123 [Verbose] > │ let v0 : (unit -> UH1) = closure122() │
00:00:50 #7124 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.5700000000000001, 0.004583960976582912, │
00:00:50 #7125 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:50 #7126 [Verbose] > │ and closure120 () () : UH1 = │
00:00:50 #7127 [Verbose] > │ let v0 : (unit -> UH1) = closure121() │
00:00:50 #7128 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.56, 0.004824377766717758, 0.0, 0.0, 0.0, │
00:00:50 #7129 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7130 [Verbose] > │ and closure119 () () : UH1 = │
00:00:50 #7131 [Verbose] > │ let v0 : (unit -> UH1) = closure120() │
00:00:50 #7132 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.55, 0.004963544370490271, 0.0, 0.0, 0.0, │
00:00:50 #7133 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7134 [Verbose] > │ and closure118 () () : UH1 = │
00:00:50 #7135 [Verbose] > │ let v0 : (unit -> UH1) = closure119() │
00:00:50 #7136 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.54, 0.004998540070400965, 0.0, 0.0, 0.0, │
00:00:50 #7137 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7138 [Verbose] > │ and closure117 () () : UH1 = │
00:00:50 #7139 [Verbose] > │ let v0 : (unit -> UH1) = closure118() │
00:00:50 #7140 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.53, 0.004928630404658255, 0.0, 0.0, 0.0, │
00:00:50 #7141 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7142 [Verbose] > │ and closure116 () () : UH1 = │
00:00:50 #7143 [Verbose] > │ let v0 : (unit -> UH1) = closure117() │
00:00:50 #7144 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.52, 0.004755282581475766, 0.0, 0.0, 0.0, │
00:00:50 #7145 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7146 [Verbose] > │ and closure115 () () : UH1 = │
00:00:50 #7147 [Verbose] > │ let v0 : (unit -> UH1) = closure116() │
00:00:50 #7148 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.51, 0.0044821346864785195, 0.0, 0.0, 0.0, │
00:00:50 #7149 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7150 [Verbose] > │ and closure114 () () : UH1 = │
00:00:50 #7151 [Verbose] > │ let v0 : (unit -> UH1) = closure115() │
00:00:50 #7152 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.5, 0.0041149193294682815, 0.0, 0.0, 0.0, │
00:00:50 #7153 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7154 [Verbose] > │ and closure113 () () : UH1 = │
00:00:50 #7155 [Verbose] > │ let v0 : (unit -> UH1) = closure114() │
00:00:50 #7156 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.49, 0.0036613433329888622, 0.0, 0.0, 0.0, │
00:00:50 #7157 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7158 [Verbose] > │ and closure112 () () : UH1 = │
00:00:50 #7159 [Verbose] > │ let v0 : (unit -> UH1) = closure113() │
00:00:50 #7160 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.48000000000000004, 0.003130925987691568, │
00:00:50 #7161 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:50 #7162 [Verbose] > │ and closure111 () () : UH1 = │
00:00:50 #7163 [Verbose] > │ let v0 : (unit -> UH1) = closure112() │
00:00:50 #7164 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.47000000000000003, 0.002534799269067953, │
00:00:50 #7165 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:50 #7166 [Verbose] > │ and closure110 () () : UH1 = │
00:00:50 #7167 [Verbose] > │ let v0 : (unit -> UH1) = closure111() │
00:00:50 #7168 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.46, 0.0018854742084416021, 0.0, 0.0, 0.0, │
00:00:50 #7169 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7170 [Verbose] > │ and closure109 () () : UH1 = │
00:00:50 #7171 [Verbose] > │ let v0 : (unit -> UH1) = closure110() │
00:00:50 #7172 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.45, 0.0011965783214377866, 0.0, 0.0, 0.0, │
00:00:50 #7173 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7174 [Verbose] > │ and closure108 () () : UH1 = │
00:00:50 #7175 [Verbose] > │ let v0 : (unit -> UH1) = closure109() │
00:00:50 #7176 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.44, 0.0004825696045725713, 0.0, 0.0, 0.0, │
00:00:50 #7177 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7178 [Verbose] > │ and closure107 () () : UH1 = │
00:00:50 #7179 [Verbose] > │ let v0 : (unit -> UH1) = closure108() │
00:00:50 #7180 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.43, -0.00024156689762753724, 0.0, 0.0, │
00:00:50 #7181 [Verbose] > │ 0.0, 0.0, 0.0, v0) │
00:00:50 #7182 [Verbose] > │ and closure106 () () : UH1 = │
00:00:50 #7183 [Verbose] > │ let v0 : (unit -> UH1) = closure107() │
00:00:50 #7184 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.42000000000000004, -0.0009606335867685414, │
00:00:50 #7185 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:50 #7186 [Verbose] > │ and closure105 () () : UH1 = │
00:00:50 #7187 [Verbose] > │ let v0 : (unit -> UH1) = closure106() │
00:00:50 #7188 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.41000000000000003, -0.0016595392656426435, │
00:00:50 #7189 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:50 #7190 [Verbose] > │ and closure104 () () : UH1 = │
00:00:50 #7191 [Verbose] > │ let v0 : (unit -> UH1) = closure105() │
00:00:50 #7192 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.4, -0.002323615860218846, 0.0, 0.0, 0.0, │
00:00:50 #7193 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7194 [Verbose] > │ and closure103 () () : UH1 = │
00:00:50 #7195 [Verbose] > │ let v0 : (unit -> UH1) = closure104() │
00:00:50 #7196 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.39, -0.002938926261462367, 0.0, 0.0, 0.0, │
00:00:50 #7197 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7198 [Verbose] > │ and closure102 () () : UH1 = │
00:00:50 #7199 [Verbose] > │ let v0 : (unit -> UH1) = closure103() │
00:00:50 #7200 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.38, -0.0034925568262446837, 0.0, 0.0, 0.0, │
00:00:50 #7201 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7202 [Verbose] > │ and closure101 () () : UH1 = │
00:00:50 #7203 [Verbose] > │ let v0 : (unit -> UH1) = closure102() │
00:00:50 #7204 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.37, -0.003972888398568774, 0.0, 0.0, 0.0, │
00:00:50 #7205 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7206 [Verbose] > │ and closure100 () () : UH1 = │
00:00:50 #7207 [Verbose] > │ let v0 : (unit -> UH1) = closure101() │
00:00:50 #7208 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.36000000000000004, -0.004369840163132589, │
00:00:50 #7209 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:50 #7210 [Verbose] > │ and closure99 () () : UH1 = │
00:00:50 #7211 [Verbose] > │ let v0 : (unit -> UH1) = closure100() │
00:00:50 #7212 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.35000000000000003, -0.004675081213427074, │
00:00:50 #7213 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:50 #7214 [Verbose] > │ and closure98 () () : UH1 = │
00:00:50 #7215 [Verbose] > │ let v0 : (unit -> UH1) = closure99() │
00:00:50 #7216 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.34, -0.004882205394146361, 0.0, 0.0, 0.0, │
00:00:50 #7217 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7218 [Verbose] > │ and closure97 () () : UH1 = │
00:00:50 #7219 [Verbose] > │ let v0 : (unit -> UH1) = closure98() │
00:00:50 #7220 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.33, -0.004986865748457456, 0.0, 0.0, 0.0, │
00:00:50 #7221 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7222 [Verbose] > │ and closure96 () () : UH1 = │
00:00:50 #7223 [Verbose] > │ let v0 : (unit -> UH1) = closure97() │
00:00:50 #7224 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.32, -0.004986865748457456, 0.0, 0.0, 0.0, │
00:00:50 #7225 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7226 [Verbose] > │ and closure95 () () : UH1 = │
00:00:50 #7227 [Verbose] > │ let v0 : (unit -> UH1) = closure96() │
00:00:50 #7228 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.31, -0.004882205394146359, 0.0, 0.0, 0.0, │
00:00:50 #7229 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7230 [Verbose] > │ and closure94 () () : UH1 = │
00:00:50 #7231 [Verbose] > │ let v0 : (unit -> UH1) = closure95() │
00:00:50 #7232 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.3, -0.004675081213427074, 0.0, 0.0, 0.0, │
00:00:50 #7233 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7234 [Verbose] > │ and closure93 () () : UH1 = │
00:00:50 #7235 [Verbose] > │ let v0 : (unit -> UH1) = closure94() │
00:00:50 #7236 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.29000000000000004, -0.00436984016313259, │
00:00:50 #7237 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:50 #7238 [Verbose] > │ and closure92 () () : UH1 = │
00:00:50 #7239 [Verbose] > │ let v0 : (unit -> UH1) = closure93() │
00:00:50 #7240 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.28, -0.003972888398568771, 0.0, 0.0, 0.0, │
00:00:50 #7241 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7242 [Verbose] > │ and closure91 () () : UH1 = │
00:00:50 #7243 [Verbose] > │ let v0 : (unit -> UH1) = closure92() │
00:00:50 #7244 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.27, -0.003492556826244686, 0.0, 0.0, 0.0, │
00:00:50 #7245 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7246 [Verbose] > │ and closure90 () () : UH1 = │
00:00:50 #7247 [Verbose] > │ let v0 : (unit -> UH1) = closure91() │
00:00:50 #7248 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.26, -0.0029389262614623636, 0.0, 0.0, 0.0, │
00:00:50 #7249 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7250 [Verbose] > │ and closure89 () () : UH1 = │
00:00:50 #7251 [Verbose] > │ let v0 : (unit -> UH1) = closure90() │
00:00:50 #7252 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.25, -0.002323615860218842, 0.0, 0.0, 0.0, │
00:00:50 #7253 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7254 [Verbose] > │ and closure88 () () : UH1 = │
00:00:50 #7255 [Verbose] > │ let v0 : (unit -> UH1) = closure89() │
00:00:50 #7256 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.24000000000000002, -0.001659539265642642, │
00:00:50 #7257 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:50 #7258 [Verbose] > │ and closure87 () () : UH1 = │
00:00:50 #7259 [Verbose] > │ let v0 : (unit -> UH1) = closure88() │
00:00:50 #7260 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.23, -0.0009606335867685418, 0.0, 0.0, 0.0, │
00:00:50 #7261 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7262 [Verbose] > │ and closure86 () () : UH1 = │
00:00:50 #7263 [Verbose] > │ let v0 : (unit -> UH1) = closure87() │
00:00:50 #7264 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.22, -0.00024156689762753317, 0.0, 0.0, │
00:00:50 #7265 [Verbose] > │ 0.0, 0.0, 0.0, v0) │
00:00:50 #7266 [Verbose] > │ and closure85 () () : UH1 = │
00:00:50 #7267 [Verbose] > │ let v0 : (unit -> UH1) = closure86() │
00:00:50 #7268 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.21000000000000002, 0.00048256960457257535, │
00:00:50 #7269 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:50 #7270 [Verbose] > │ and closure84 () () : UH1 = │
00:00:50 #7271 [Verbose] > │ let v0 : (unit -> UH1) = closure85() │
00:00:50 #7272 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.2, 0.0011965783214377905, 0.0, 0.0, 0.0, │
00:00:50 #7273 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7274 [Verbose] > │ and closure83 () () : UH1 = │
00:00:50 #7275 [Verbose] > │ let v0 : (unit -> UH1) = closure84() │
00:00:50 #7276 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.19, 0.0018854742084416015, 0.0, 0.0, 0.0, │
00:00:50 #7277 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7278 [Verbose] > │ and closure82 () () : UH1 = │
00:00:50 #7279 [Verbose] > │ let v0 : (unit -> UH1) = closure83() │
00:00:50 #7280 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.18000000000000002, 0.002534799269067951, │
00:00:50 #7281 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:50 #7282 [Verbose] > │ and closure81 () () : UH1 = │
00:00:50 #7283 [Verbose] > │ let v0 : (unit -> UH1) = closure82() │
00:00:50 #7284 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.17, 0.0031309259876915697, 0.0, 0.0, 0.0, │
00:00:50 #7285 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7286 [Verbose] > │ and closure80 () () : UH1 = │
00:00:50 #7287 [Verbose] > │ let v0 : (unit -> UH1) = closure81() │
00:00:50 #7288 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.16, 0.0036613433329888666, 0.0, 0.0, 0.0, │
00:00:50 #7289 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7290 [Verbose] > │ and closure79 () () : UH1 = │
00:00:50 #7291 [Verbose] > │ let v0 : (unit -> UH1) = closure80() │
00:00:50 #7292 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.15000000000000002, 0.0041149193294682815, │
00:00:50 #7293 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:50 #7294 [Verbose] > │ and closure78 () () : UH1 = │
00:00:50 #7295 [Verbose] > │ let v0 : (unit -> UH1) = closure79() │
00:00:50 #7296 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.14, 0.004482134686478519, 0.0, 0.0, 0.0, │
00:00:50 #7297 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7298 [Verbose] > │ and closure77 () () : UH1 = │
00:00:50 #7299 [Verbose] > │ let v0 : (unit -> UH1) = closure78() │
00:00:50 #7300 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.13, 0.004755282581475768, 0.0, 0.0, 0.0, │
00:00:50 #7301 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7302 [Verbose] > │ and closure76 () () : UH1 = │
00:00:50 #7303 [Verbose] > │ let v0 : (unit -> UH1) = closure77() │
00:00:50 #7304 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.12, 0.004928630404658255, 0.0, 0.0, 0.0, │
00:00:50 #7305 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7306 [Verbose] > │ and closure75 () () : UH1 = │
00:00:50 #7307 [Verbose] > │ let v0 : (unit -> UH1) = closure76() │
00:00:50 #7308 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.11, 0.004998540070400965, 0.0, 0.0, 0.0, │
00:00:50 #7309 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7310 [Verbose] > │ and closure74 () () : UH1 = │
00:00:50 #7311 [Verbose] > │ let v0 : (unit -> UH1) = closure75() │
00:00:50 #7312 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.09999999999999999, 0.00496354437049027, │
00:00:50 #7313 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:50 #7314 [Verbose] > │ and closure73 () () : UH1 = │
00:00:50 #7315 [Verbose] > │ let v0 : (unit -> UH1) = closure74() │
00:00:50 #7316 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.09, 0.004824377766717757, 0.0, 0.0, 0.0, │
00:00:50 #7317 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7318 [Verbose] > │ and closure72 () () : UH1 = │
00:00:50 #7319 [Verbose] > │ let v0 : (unit -> UH1) = closure73() │
00:00:50 #7320 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.08, 0.004583960976582912, 0.0, 0.0, 0.0, │
00:00:50 #7321 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7322 [Verbose] > │ and closure71 () () : UH1 = │
00:00:50 #7323 [Verbose] > │ let v0 : (unit -> UH1) = closure72() │
00:00:50 #7324 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.06999999999999999, 0.004247339675607605, │
00:00:50 #7325 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:50 #7326 [Verbose] > │ and closure70 () () : UH1 = │
00:00:50 #7327 [Verbose] > │ let v0 : (unit -> UH1) = closure71() │
00:00:50 #7328 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.060000000000000005, 0.0038215786027292415, │
00:00:50 #7329 [Verbose] > │ 0.0, 0.0, 0.0, 0.0, 0.0, v0) │
00:00:50 #7330 [Verbose] > │ and closure69 () () : UH1 = │
00:00:50 #7331 [Verbose] > │ let v0 : (unit -> UH1) = closure70() │
00:00:50 #7332 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.05, 0.0033156132912039757, 0.0, 0.0, 0.0, │
00:00:50 #7333 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7334 [Verbose] > │ and closure68 () () : UH1 = │
00:00:50 #7335 [Verbose] > │ let v0 : (unit -> UH1) = closure69() │
00:00:50 #7336 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.04, 0.00274006253677335, 0.0, 0.0, 0.0, │
00:00:50 #7337 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7338 [Verbose] > │ and closure67 () () : UH1 = │
00:00:50 #7339 [Verbose] > │ let v0 : (unit -> UH1) = closure68() │
00:00:50 #7340 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.03, 0.0021070055388626454, 0.0, 0.0, 0.0, │
00:00:50 #7341 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7342 [Verbose] > │ and closure66 () () : UH1 = │
00:00:50 #7343 [Verbose] > │ let v0 : (unit -> UH1) = closure67() │
00:00:50 #7344 [Verbose] > │ UH1_0(0.0, 8.422578125E-06, 0.02, 0.0014297283919934465, 0.0, 0.0, 0.0, │
00:00:50 #7345 [Verbose] > │ 0.0, 0.0, v0) │
00:00:50 #7346 [Verbose] > │ and closure132 (v0 : (unit -> UH1), v1 : (unit -> UH3)) () : UH1 = │
00:00:50 #7347 [Verbose] > │ let v2 : UH3 = v1 () │
00:00:50 #7348 [Verbose] > │ let v3 : UH1 = v0 () │
00:00:50 #7349 [Verbose] > │ match v2 with │
00:00:51 #7350 [Verbose] > │ | UH3_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *) │
00:00:51 #7351 [Verbose] > │ match v3 with │
00:00:51 #7352 [Verbose] > │ | UH1_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* │
00:00:51 #7353 [Verbose] > │ StreamCons *) │
00:00:51 #7354 [Verbose] > │ let v24 : float = v9 * 1.25E-05 │
00:00:51 #7355 [Verbose] > │ let v25 : float = v19 + v24 │
00:00:51 #7356 [Verbose] > │ let v26 : float = 1.25E-05 * v6 │
00:00:51 #7357 [Verbose] > │ let v27 : float = 1.25E-05 * v7 │
00:00:51 #7358 [Verbose] > │ let v28 : float = 1.25E-05 * v8 │
00:00:51 #7359 [Verbose] > │ let v29 : float = v16 + v26 │
00:00:51 #7360 [Verbose] > │ let v30 : float = v17 + v27 │
00:00:51 #7361 [Verbose] > │ let v31 : float = v18 + v28 │
00:00:51 #7362 [Verbose] > │ let v32 : float = 1.25E-05 * v10 │
00:00:51 #7363 [Verbose] > │ let v33 : float = 1.25E-05 * v11 │
00:00:51 #7364 [Verbose] > │ let v34 : float = 1.25E-05 * v12 │
00:00:51 #7365 [Verbose] > │ let v35 : float = v20 + v32 │
00:00:51 #7366 [Verbose] > │ let v36 : float = v21 + v33 │
00:00:51 #7367 [Verbose] > │ let v37 : float = v22 + v34 │
00:00:51 #7368 [Verbose] > │ let v38 : (unit -> UH1) = closure132(v23, v13) │
00:00:51 #7369 [Verbose] > │ UH1_0(v14, v15, v29, v30, v31, v25, v35, v36, v37, v38) │
00:00:51 #7370 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:51 #7371 [Verbose] > │ UH1_1 │
00:00:51 #7372 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:51 #7373 [Verbose] > │ UH1_1 │
00:00:51 #7374 [Verbose] > │ and closure133 (v0 : UH1) () : UH1 = │
00:00:51 #7375 [Verbose] > │ v0 │
00:00:51 #7376 [Verbose] > │ and closure134 (v0 : UH1, v1 : Mut0) () : UH1 = │
00:00:51 #7377 [Verbose] > │ let v2 : US0 = v1.l0 │
00:00:51 #7378 [Verbose] > │ match v2 with │
00:00:51 #7379 [Verbose] > │ | US0_0(v3) -> (* Computed *) │
00:00:51 #7380 [Verbose] > │ v3 │
00:00:51 #7381 [Verbose] > │ | US0_1(v4) -> (* NotComputed *) │
00:00:51 #7382 [Verbose] > │ let v5 : UH1 = v4 () │
00:00:51 #7383 [Verbose] > │ let v20 : UH1 = │
00:00:51 #7384 [Verbose] > │ match v5 with │
00:00:51 #7385 [Verbose] > │ | UH1_0(v7, v8, v9, v10, v11, v12, v13, v14, v15, v16) -> (* │
00:00:51 #7386 [Verbose] > │ StreamCons *) │
00:00:51 #7387 [Verbose] > │ let v17 : (unit -> UH1) = method3(v0, v16) │
00:00:51 #7388 [Verbose] > │ UH1_0(v7, v8, v9, v10, v11, v12, v13, v14, v15, v17) │
00:00:51 #7389 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:51 #7390 [Verbose] > │ UH1_1 │
00:00:51 #7391 [Verbose] > │ let v21 : US0 = US0_0(v20) │
00:00:51 #7392 [Verbose] > │ v1.l0 <- v21 │
00:00:51 #7393 [Verbose] > │ v20 │
00:00:51 #7394 [Verbose] > │ and method3 (v0 : UH1, v1 : (unit -> UH1)) : (unit -> UH1) = │
00:00:51 #7395 [Verbose] > │ let v2 : US0 = US0_1(v1) │
00:00:51 #7396 [Verbose] > │ let v3 : Mut0 = {l0 = v2} : Mut0 │
00:00:51 #7397 [Verbose] > │ closure134(v0, v3) │
00:00:51 #7398 [Verbose] > │ and closure135 (v0 : (unit -> UH1), v1 : (unit -> UH3)) () : UH1 = │
00:00:51 #7399 [Verbose] > │ let v2 : UH3 = v1 () │
00:00:51 #7400 [Verbose] > │ let v3 : UH1 = v0 () │
00:00:51 #7401 [Verbose] > │ match v2 with │
00:00:51 #7402 [Verbose] > │ | UH3_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *) │
00:00:51 #7403 [Verbose] > │ match v3 with │
00:00:51 #7404 [Verbose] > │ | UH1_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* │
00:00:51 #7405 [Verbose] > │ StreamCons *) │
00:00:51 #7406 [Verbose] > │ let v24 : float = v9 * 2.5E-05 │
00:00:51 #7407 [Verbose] > │ let v25 : float = v19 + v24 │
00:00:51 #7408 [Verbose] > │ let v26 : float = 2.5E-05 * v6 │
00:00:51 #7409 [Verbose] > │ let v27 : float = 2.5E-05 * v7 │
00:00:51 #7410 [Verbose] > │ let v28 : float = 2.5E-05 * v8 │
00:00:51 #7411 [Verbose] > │ let v29 : float = v16 + v26 │
00:00:51 #7412 [Verbose] > │ let v30 : float = v17 + v27 │
00:00:51 #7413 [Verbose] > │ let v31 : float = v18 + v28 │
00:00:51 #7414 [Verbose] > │ let v32 : float = 2.5E-05 * v10 │
00:00:51 #7415 [Verbose] > │ let v33 : float = 2.5E-05 * v11 │
00:00:51 #7416 [Verbose] > │ let v34 : float = 2.5E-05 * v12 │
00:00:51 #7417 [Verbose] > │ let v35 : float = v20 + v32 │
00:00:51 #7418 [Verbose] > │ let v36 : float = v21 + v33 │
00:00:51 #7419 [Verbose] > │ let v37 : float = v22 + v34 │
00:00:51 #7420 [Verbose] > │ let v38 : (unit -> UH1) = closure135(v23, v13) │
00:00:51 #7421 [Verbose] > │ UH1_0(v14, v15, v29, v30, v31, v25, v35, v36, v37, v38) │
00:00:51 #7422 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:51 #7423 [Verbose] > │ UH1_1 │
00:00:51 #7424 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:51 #7425 [Verbose] > │ UH1_1 │
00:00:51 #7426 [Verbose] > │ and closure136 (v0 : (unit -> UH3), v1 : (unit -> UH3)) () : UH3 = │
00:00:51 #7427 [Verbose] > │ let v2 : UH3 = v1 () │
00:00:51 #7428 [Verbose] > │ let v3 : UH3 = v0 () │
00:00:51 #7429 [Verbose] > │ match v2 with │
00:00:51 #7430 [Verbose] > │ | UH3_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *) │
00:00:51 #7431 [Verbose] > │ match v3 with │
00:00:51 #7432 [Verbose] > │ | UH3_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* │
00:00:51 #7433 [Verbose] > │ StreamCons *) │
00:00:51 #7434 [Verbose] > │ let v24 : float = v4 + v14 │
00:00:51 #7435 [Verbose] > │ let v25 : float = v5 + v15 │
00:00:51 #7436 [Verbose] > │ let v26 : float = v9 + v19 │
00:00:51 #7437 [Verbose] > │ let v27 : float = v6 + v16 │
00:00:51 #7438 [Verbose] > │ let v28 : float = v7 + v17 │
00:00:51 #7439 [Verbose] > │ let v29 : float = v8 + v18 │
00:00:51 #7440 [Verbose] > │ let v30 : float = v10 + v20 │
00:00:51 #7441 [Verbose] > │ let v31 : float = v11 + v21 │
00:00:51 #7442 [Verbose] > │ let v32 : float = v12 + v22 │
00:00:51 #7443 [Verbose] > │ let v33 : (unit -> UH3) = closure136(v23, v13) │
00:00:51 #7444 [Verbose] > │ UH3_0(v24, v25, v27, v28, v29, v26, v30, v31, v32, v33) │
00:00:51 #7445 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:51 #7446 [Verbose] > │ UH3_1 │
00:00:51 #7447 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:51 #7448 [Verbose] > │ UH3_1 │
00:00:51 #7449 [Verbose] > │ and closure137 (v0 : (unit -> UH1), v1 : (unit -> UH3)) () : UH1 = │
00:00:51 #7450 [Verbose] > │ let v2 : UH3 = v1 () │
00:00:51 #7451 [Verbose] > │ let v3 : UH1 = v0 () │
00:00:51 #7452 [Verbose] > │ match v2 with │
00:00:51 #7453 [Verbose] > │ | UH3_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13) -> (* StreamCons *) │
00:00:51 #7454 [Verbose] > │ match v3 with │
00:00:51 #7455 [Verbose] > │ | UH1_0(v14, v15, v16, v17, v18, v19, v20, v21, v22, v23) -> (* │
00:00:51 #7456 [Verbose] > │ StreamCons *) │
00:00:51 #7457 [Verbose] > │ let v24 : float = v9 * 4.166666666666667E-06 │
00:00:51 #7458 [Verbose] > │ let v25 : float = v19 + v24 │
00:00:51 #7459 [Verbose] > │ let v26 : float = 4.166666666666667E-06 * v6 │
00:00:51 #7460 [Verbose] > │ let v27 : float = 4.166666666666667E-06 * v7 │
00:00:51 #7461 [Verbose] > │ let v28 : float = 4.166666666666667E-06 * v8 │
00:00:51 #7462 [Verbose] > │ let v29 : float = v16 + v26 │
00:00:51 #7463 [Verbose] > │ let v30 : float = v17 + v27 │
00:00:51 #7464 [Verbose] > │ let v31 : float = v18 + v28 │
00:00:51 #7465 [Verbose] > │ let v32 : float = 4.166666666666667E-06 * v10 │
00:00:51 #7466 [Verbose] > │ let v33 : float = 4.166666666666667E-06 * v11 │
00:00:51 #7467 [Verbose] > │ let v34 : float = 4.166666666666667E-06 * v12 │
00:00:51 #7468 [Verbose] > │ let v35 : float = v20 + v32 │
00:00:51 #7469 [Verbose] > │ let v36 : float = v21 + v33 │
00:00:51 #7470 [Verbose] > │ let v37 : float = v22 + v34 │
00:00:51 #7471 [Verbose] > │ let v38 : (unit -> UH1) = closure137(v23, v13) │
00:00:51 #7472 [Verbose] > │ UH1_0(v14, v15, v29, v30, v31, v25, v35, v36, v37, v38) │
00:00:51 #7473 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:51 #7474 [Verbose] > │ UH1_1 │
00:00:51 #7475 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:51 #7476 [Verbose] > │ UH1_1 │
00:00:51 #7477 [Verbose] > │ and closure131 (v0 : (UH1 -> UH3)) (v1 : UH1) : UH1 = │
00:00:51 #7478 [Verbose] > │ let v2 : UH3 = v0 v1 │
00:00:51 #7479 [Verbose] > │ let v44 : UH1 = │
00:00:51 #7480 [Verbose] > │ match v2 with │
00:00:51 #7481 [Verbose] > │ | UH3_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons │
00:00:51 #7482 [Verbose] > │ *) │
00:00:51 #7483 [Verbose] > │ match v1 with │
00:00:51 #7484 [Verbose] > │ | UH1_0(v13, v14, v15, v16, v17, v18, v19, v20, v21, v22) -> (* │
00:00:51 #7485 [Verbose] > │ StreamCons *) │
00:00:51 #7486 [Verbose] > │ let v23 : float = v8 * 1.25E-05 │
00:00:51 #7487 [Verbose] > │ let v24 : float = v18 + v23 │
00:00:51 #7488 [Verbose] > │ let v25 : float = 1.25E-05 * v5 │
00:00:51 #7489 [Verbose] > │ let v26 : float = 1.25E-05 * v6 │
00:00:51 #7490 [Verbose] > │ let v27 : float = 1.25E-05 * v7 │
00:00:51 #7491 [Verbose] > │ let v28 : float = v15 + v25 │
00:00:51 #7492 [Verbose] > │ let v29 : float = v16 + v26 │
00:00:51 #7493 [Verbose] > │ let v30 : float = v17 + v27 │
00:00:51 #7494 [Verbose] > │ let v31 : float = 1.25E-05 * v9 │
00:00:51 #7495 [Verbose] > │ let v32 : float = 1.25E-05 * v10 │
00:00:51 #7496 [Verbose] > │ let v33 : float = 1.25E-05 * v11 │
00:00:51 #7497 [Verbose] > │ let v34 : float = v19 + v31 │
00:00:51 #7498 [Verbose] > │ let v35 : float = v20 + v32 │
00:00:51 #7499 [Verbose] > │ let v36 : float = v21 + v33 │
00:00:51 #7500 [Verbose] > │ let v37 : (unit -> UH1) = closure132(v22, v12) │
00:00:51 #7501 [Verbose] > │ UH1_0(v13, v14, v28, v29, v30, v24, v34, v35, v36, v37) │
00:00:51 #7502 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:51 #7503 [Verbose] > │ UH1_1 │
00:00:51 #7504 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:51 #7505 [Verbose] > │ UH1_1 │
00:00:51 #7506 [Verbose] > │ let v45 : (unit -> UH1) = closure133(v44) │
00:00:51 #7507 [Verbose] > │ let v46 : (unit -> UH1) = method3(v44, v45) │
00:00:51 #7508 [Verbose] > │ let v47 : UH1 = v46 () │
00:00:51 #7509 [Verbose] > │ let v48 : UH3 = v0 v47 │
00:00:51 #7510 [Verbose] > │ let v90 : UH1 = │
00:00:51 #7511 [Verbose] > │ match v48 with │
00:00:51 #7512 [Verbose] > │ | UH3_0(v49, v50, v51, v52, v53, v54, v55, v56, v57, v58) -> (* │
00:00:51 #7513 [Verbose] > │ StreamCons *) │
00:00:51 #7514 [Verbose] > │ match v1 with │
00:00:51 #7515 [Verbose] > │ | UH1_0(v59, v60, v61, v62, v63, v64, v65, v66, v67, v68) -> (* │
00:00:51 #7516 [Verbose] > │ StreamCons *) │
00:00:51 #7517 [Verbose] > │ let v69 : float = v54 * 1.25E-05 │
00:00:51 #7518 [Verbose] > │ let v70 : float = v64 + v69 │
00:00:51 #7519 [Verbose] > │ let v71 : float = 1.25E-05 * v51 │
00:00:51 #7520 [Verbose] > │ let v72 : float = 1.25E-05 * v52 │
00:00:51 #7521 [Verbose] > │ let v73 : float = 1.25E-05 * v53 │
00:00:51 #7522 [Verbose] > │ let v74 : float = v61 + v71 │
00:00:51 #7523 [Verbose] > │ let v75 : float = v62 + v72 │
00:00:51 #7524 [Verbose] > │ let v76 : float = v63 + v73 │
00:00:51 #7525 [Verbose] > │ let v77 : float = 1.25E-05 * v55 │
00:00:51 #7526 [Verbose] > │ let v78 : float = 1.25E-05 * v56 │
00:00:51 #7527 [Verbose] > │ let v79 : float = 1.25E-05 * v57 │
00:00:51 #7528 [Verbose] > │ let v80 : float = v65 + v77 │
00:00:51 #7529 [Verbose] > │ let v81 : float = v66 + v78 │
00:00:51 #7530 [Verbose] > │ let v82 : float = v67 + v79 │
00:00:51 #7531 [Verbose] > │ let v83 : (unit -> UH1) = closure132(v68, v58) │
00:00:51 #7532 [Verbose] > │ UH1_0(v59, v60, v74, v75, v76, v70, v80, v81, v82, v83) │
00:00:51 #7533 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:51 #7534 [Verbose] > │ UH1_1 │
00:00:51 #7535 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:51 #7536 [Verbose] > │ UH1_1 │
00:00:51 #7537 [Verbose] > │ let v91 : (unit -> UH1) = closure133(v90) │
00:00:51 #7538 [Verbose] > │ let v92 : (unit -> UH1) = method3(v90, v91) │
00:00:51 #7539 [Verbose] > │ let v93 : UH1 = v92 () │
00:00:51 #7540 [Verbose] > │ let v94 : UH3 = v0 v93 │
00:00:51 #7541 [Verbose] > │ let v136 : UH1 = │
00:00:51 #7542 [Verbose] > │ match v94 with │
00:00:51 #7543 [Verbose] > │ | UH3_0(v95, v96, v97, v98, v99, v100, v101, v102, v103, v104) -> (* │
00:00:51 #7544 [Verbose] > │ StreamCons *) │
00:00:51 #7545 [Verbose] > │ match v1 with │
00:00:51 #7546 [Verbose] > │ | UH1_0(v105, v106, v107, v108, v109, v110, v111, v112, v113, │
00:00:51 #7547 [Verbose] > │ v114) -> (* StreamCons *) │
00:00:51 #7548 [Verbose] > │ let v115 : float = v100 * 2.5E-05 │
00:00:51 #7549 [Verbose] > │ let v116 : float = v110 + v115 │
00:00:51 #7550 [Verbose] > │ let v117 : float = 2.5E-05 * v97 │
00:00:51 #7551 [Verbose] > │ let v118 : float = 2.5E-05 * v98 │
00:00:51 #7552 [Verbose] > │ let v119 : float = 2.5E-05 * v99 │
00:00:51 #7553 [Verbose] > │ let v120 : float = v107 + v117 │
00:00:51 #7554 [Verbose] > │ let v121 : float = v108 + v118 │
00:00:51 #7555 [Verbose] > │ let v122 : float = v109 + v119 │
00:00:51 #7556 [Verbose] > │ let v123 : float = 2.5E-05 * v101 │
00:00:51 #7557 [Verbose] > │ let v124 : float = 2.5E-05 * v102 │
00:00:51 #7558 [Verbose] > │ let v125 : float = 2.5E-05 * v103 │
00:00:51 #7559 [Verbose] > │ let v126 : float = v111 + v123 │
00:00:51 #7560 [Verbose] > │ let v127 : float = v112 + v124 │
00:00:51 #7561 [Verbose] > │ let v128 : float = v113 + v125 │
00:00:51 #7562 [Verbose] > │ let v129 : (unit -> UH1) = closure135(v114, v104) │
00:00:51 #7563 [Verbose] > │ UH1_0(v105, v106, v120, v121, v122, v116, v126, v127, v128, │
00:00:51 #7564 [Verbose] > │ v129) │
00:00:51 #7565 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:51 #7566 [Verbose] > │ UH1_1 │
00:00:51 #7567 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:51 #7568 [Verbose] > │ UH1_1 │
00:00:51 #7569 [Verbose] > │ let v137 : (unit -> UH1) = closure133(v136) │
00:00:51 #7570 [Verbose] > │ let v138 : (unit -> UH1) = method3(v136, v137) │
00:00:51 #7571 [Verbose] > │ let v139 : UH1 = v138 () │
00:00:51 #7572 [Verbose] > │ let v140 : UH3 = v0 v139 │
00:00:51 #7573 [Verbose] > │ let v177 : UH3 = │
00:00:51 #7574 [Verbose] > │ match v2 with │
00:00:51 #7575 [Verbose] > │ | UH3_0(v141, v142, v143, v144, v145, v146, v147, v148, v149, v150) │
00:00:51 #7576 [Verbose] > │ -> (* StreamCons *) │
00:00:51 #7577 [Verbose] > │ match v48 with │
00:00:51 #7578 [Verbose] > │ | UH3_0(v151, v152, v153, v154, v155, v156, v157, v158, v159, │
00:00:51 #7579 [Verbose] > │ v160) -> (* StreamCons *) │
00:00:51 #7580 [Verbose] > │ let v161 : float = v141 + v151 │
00:00:51 #7581 [Verbose] > │ let v162 : float = v142 + v152 │
00:00:51 #7582 [Verbose] > │ let v163 : float = v146 + v156 │
00:00:51 #7583 [Verbose] > │ let v164 : float = v143 + v153 │
00:00:51 #7584 [Verbose] > │ let v165 : float = v144 + v154 │
00:00:51 #7585 [Verbose] > │ let v166 : float = v145 + v155 │
00:00:51 #7586 [Verbose] > │ let v167 : float = v147 + v157 │
00:00:51 #7587 [Verbose] > │ let v168 : float = v148 + v158 │
00:00:51 #7588 [Verbose] > │ let v169 : float = v149 + v159 │
00:00:51 #7589 [Verbose] > │ let v170 : (unit -> UH3) = closure136(v160, v150) │
00:00:51 #7590 [Verbose] > │ UH3_0(v161, v162, v164, v165, v166, v163, v167, v168, v169, │
00:00:51 #7591 [Verbose] > │ v170) │
00:00:51 #7592 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:51 #7593 [Verbose] > │ UH3_1 │
00:00:51 #7594 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:51 #7595 [Verbose] > │ UH3_1 │
00:00:51 #7596 [Verbose] > │ let v214 : UH3 = │
00:00:51 #7597 [Verbose] > │ match v177 with │
00:00:51 #7598 [Verbose] > │ | UH3_0(v178, v179, v180, v181, v182, v183, v184, v185, v186, v187) │
00:00:51 #7599 [Verbose] > │ -> (* StreamCons *) │
00:00:51 #7600 [Verbose] > │ match v48 with │
00:00:51 #7601 [Verbose] > │ | UH3_0(v188, v189, v190, v191, v192, v193, v194, v195, v196, │
00:00:51 #7602 [Verbose] > │ v197) -> (* StreamCons *) │
00:00:51 #7603 [Verbose] > │ let v198 : float = v178 + v188 │
00:00:51 #7604 [Verbose] > │ let v199 : float = v179 + v189 │
00:00:51 #7605 [Verbose] > │ let v200 : float = v183 + v193 │
00:00:51 #7606 [Verbose] > │ let v201 : float = v180 + v190 │
00:00:51 #7607 [Verbose] > │ let v202 : float = v181 + v191 │
00:00:51 #7608 [Verbose] > │ let v203 : float = v182 + v192 │
00:00:51 #7609 [Verbose] > │ let v204 : float = v184 + v194 │
00:00:51 #7610 [Verbose] > │ let v205 : float = v185 + v195 │
00:00:51 #7611 [Verbose] > │ let v206 : float = v186 + v196 │
00:00:51 #7612 [Verbose] > │ let v207 : (unit -> UH3) = closure136(v197, v187) │
00:00:51 #7613 [Verbose] > │ UH3_0(v198, v199, v201, v202, v203, v200, v204, v205, v206, │
00:00:51 #7614 [Verbose] > │ v207) │
00:00:51 #7615 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:51 #7616 [Verbose] > │ UH3_1 │
00:00:51 #7617 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:51 #7618 [Verbose] > │ UH3_1 │
00:00:51 #7619 [Verbose] > │ let v251 : UH3 = │
00:00:51 #7620 [Verbose] > │ match v214 with │
00:00:51 #7621 [Verbose] > │ | UH3_0(v215, v216, v217, v218, v219, v220, v221, v222, v223, v224) │
00:00:51 #7622 [Verbose] > │ -> (* StreamCons *) │
00:00:51 #7623 [Verbose] > │ match v94 with │
00:00:51 #7624 [Verbose] > │ | UH3_0(v225, v226, v227, v228, v229, v230, v231, v232, v233, │
00:00:51 #7625 [Verbose] > │ v234) -> (* StreamCons *) │
00:00:51 #7626 [Verbose] > │ let v235 : float = v215 + v225 │
00:00:51 #7627 [Verbose] > │ let v236 : float = v216 + v226 │
00:00:51 #7628 [Verbose] > │ let v237 : float = v220 + v230 │
00:00:51 #7629 [Verbose] > │ let v238 : float = v217 + v227 │
00:00:51 #7630 [Verbose] > │ let v239 : float = v218 + v228 │
00:00:51 #7631 [Verbose] > │ let v240 : float = v219 + v229 │
00:00:51 #7632 [Verbose] > │ let v241 : float = v221 + v231 │
00:00:51 #7633 [Verbose] > │ let v242 : float = v222 + v232 │
00:00:51 #7634 [Verbose] > │ let v243 : float = v223 + v233 │
00:00:51 #7635 [Verbose] > │ let v244 : (unit -> UH3) = closure136(v234, v224) │
00:00:51 #7636 [Verbose] > │ UH3_0(v235, v236, v238, v239, v240, v237, v241, v242, v243, │
00:00:51 #7637 [Verbose] > │ v244) │
00:00:51 #7638 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:51 #7639 [Verbose] > │ UH3_1 │
00:00:51 #7640 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:51 #7641 [Verbose] > │ UH3_1 │
00:00:51 #7642 [Verbose] > │ let v288 : UH3 = │
00:00:51 #7643 [Verbose] > │ match v251 with │
00:00:51 #7644 [Verbose] > │ | UH3_0(v252, v253, v254, v255, v256, v257, v258, v259, v260, v261) │
00:00:51 #7645 [Verbose] > │ -> (* StreamCons *) │
00:00:51 #7646 [Verbose] > │ match v94 with │
00:00:51 #7647 [Verbose] > │ | UH3_0(v262, v263, v264, v265, v266, v267, v268, v269, v270, │
00:00:51 #7648 [Verbose] > │ v271) -> (* StreamCons *) │
00:00:51 #7649 [Verbose] > │ let v272 : float = v252 + v262 │
00:00:51 #7650 [Verbose] > │ let v273 : float = v253 + v263 │
00:00:51 #7651 [Verbose] > │ let v274 : float = v257 + v267 │
00:00:51 #7652 [Verbose] > │ let v275 : float = v254 + v264 │
00:00:51 #7653 [Verbose] > │ let v276 : float = v255 + v265 │
00:00:51 #7654 [Verbose] > │ let v277 : float = v256 + v266 │
00:00:51 #7655 [Verbose] > │ let v278 : float = v258 + v268 │
00:00:51 #7656 [Verbose] > │ let v279 : float = v259 + v269 │
00:00:51 #7657 [Verbose] > │ let v280 : float = v260 + v270 │
00:00:51 #7658 [Verbose] > │ let v281 : (unit -> UH3) = closure136(v271, v261) │
00:00:51 #7659 [Verbose] > │ UH3_0(v272, v273, v275, v276, v277, v274, v278, v279, v280, │
00:00:51 #7660 [Verbose] > │ v281) │
00:00:51 #7661 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:51 #7662 [Verbose] > │ UH3_1 │
00:00:51 #7663 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:51 #7664 [Verbose] > │ UH3_1 │
00:00:51 #7665 [Verbose] > │ let v325 : UH3 = │
00:00:51 #7666 [Verbose] > │ match v288 with │
00:00:51 #7667 [Verbose] > │ | UH3_0(v289, v290, v291, v292, v293, v294, v295, v296, v297, v298) │
00:00:51 #7668 [Verbose] > │ -> (* StreamCons *) │
00:00:51 #7669 [Verbose] > │ match v140 with │
00:00:51 #7670 [Verbose] > │ | UH3_0(v299, v300, v301, v302, v303, v304, v305, v306, v307, │
00:00:51 #7671 [Verbose] > │ v308) -> (* StreamCons *) │
00:00:51 #7672 [Verbose] > │ let v309 : float = v289 + v299 │
00:00:51 #7673 [Verbose] > │ let v310 : float = v290 + v300 │
00:00:51 #7674 [Verbose] > │ let v311 : float = v294 + v304 │
00:00:51 #7675 [Verbose] > │ let v312 : float = v291 + v301 │
00:00:51 #7676 [Verbose] > │ let v313 : float = v292 + v302 │
00:00:51 #7677 [Verbose] > │ let v314 : float = v293 + v303 │
00:00:51 #7678 [Verbose] > │ let v315 : float = v295 + v305 │
00:00:51 #7679 [Verbose] > │ let v316 : float = v296 + v306 │
00:00:51 #7680 [Verbose] > │ let v317 : float = v297 + v307 │
00:00:51 #7681 [Verbose] > │ let v318 : (unit -> UH3) = closure136(v308, v298) │
00:00:51 #7682 [Verbose] > │ UH3_0(v309, v310, v312, v313, v314, v311, v315, v316, v317, │
00:00:51 #7683 [Verbose] > │ v318) │
00:00:51 #7684 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:51 #7685 [Verbose] > │ UH3_1 │
00:00:51 #7686 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:51 #7687 [Verbose] > │ UH3_1 │
00:00:51 #7688 [Verbose] > │ let v367 : UH1 = │
00:00:51 #7689 [Verbose] > │ match v325 with │
00:00:51 #7690 [Verbose] > │ | UH3_0(v326, v327, v328, v329, v330, v331, v332, v333, v334, v335) │
00:00:51 #7691 [Verbose] > │ -> (* StreamCons *) │
00:00:51 #7692 [Verbose] > │ match v1 with │
00:00:51 #7693 [Verbose] > │ | UH1_0(v336, v337, v338, v339, v340, v341, v342, v343, v344, │
00:00:51 #7694 [Verbose] > │ v345) -> (* StreamCons *) │
00:00:51 #7695 [Verbose] > │ let v346 : float = v331 * 4.166666666666667E-06 │
00:00:51 #7696 [Verbose] > │ let v347 : float = v341 + v346 │
00:00:51 #7697 [Verbose] > │ let v348 : float = 4.166666666666667E-06 * v328 │
00:00:51 #7698 [Verbose] > │ let v349 : float = 4.166666666666667E-06 * v329 │
00:00:51 #7699 [Verbose] > │ let v350 : float = 4.166666666666667E-06 * v330 │
00:00:51 #7700 [Verbose] > │ let v351 : float = v338 + v348 │
00:00:51 #7701 [Verbose] > │ let v352 : float = v339 + v349 │
00:00:51 #7702 [Verbose] > │ let v353 : float = v340 + v350 │
00:00:51 #7703 [Verbose] > │ let v354 : float = 4.166666666666667E-06 * v332 │
00:00:51 #7704 [Verbose] > │ let v355 : float = 4.166666666666667E-06 * v333 │
00:00:51 #7705 [Verbose] > │ let v356 : float = 4.166666666666667E-06 * v334 │
00:00:51 #7706 [Verbose] > │ let v357 : float = v342 + v354 │
00:00:51 #7707 [Verbose] > │ let v358 : float = v343 + v355 │
00:00:51 #7708 [Verbose] > │ let v359 : float = v344 + v356 │
00:00:51 #7709 [Verbose] > │ let v360 : (unit -> UH1) = closure137(v345, v335) │
00:00:51 #7710 [Verbose] > │ UH1_0(v336, v337, v351, v352, v353, v347, v357, v358, v359, │
00:00:51 #7711 [Verbose] > │ v360) │
00:00:51 #7712 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:51 #7713 [Verbose] > │ UH1_1 │
00:00:51 #7714 [Verbose] > │ | UH3_1 -> (* StreamNil *) │
00:00:51 #7715 [Verbose] > │ UH1_1 │
00:00:51 #7716 [Verbose] > │ let v368 : (unit -> UH1) = closure133(v367) │
00:00:51 #7717 [Verbose] > │ let v369 : (unit -> UH1) = method3(v367, v368) │
00:00:51 #7718 [Verbose] > │ let v370 : UH1 = v369 () │
00:00:51 #7719 [Verbose] > │ v370 │
00:00:51 #7720 [Verbose] > │ and closure130 () (v0 : (UH1 -> UH3)) : (UH1 -> UH1) = │
00:00:51 #7721 [Verbose] > │ closure131(v0) │
00:00:51 #7722 [Verbose] > │ and method2 () : ((UH1 -> UH3) -> (UH1 -> UH1)) = │
00:00:51 #7723 [Verbose] > │ closure130() │
00:00:51 #7724 [Verbose] > │ and closure138 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │
00:00:51 #7725 [Verbose] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:51 #7726 [Verbose] > │ float * float) = │
00:00:51 #7727 [Verbose] > │ let v9 : float = v2 * v2 │
00:00:51 #7728 [Verbose] > │ let v10 : float = v3 * v3 │
00:00:51 #7729 [Verbose] > │ let v11 : float = v9 + v10 │
00:00:51 #7730 [Verbose] > │ let v12 : float = v4 * v4 │
00:00:51 #7731 [Verbose] > │ let v13 : float = v11 + v12 │
00:00:51 #7732 [Verbose] > │ let v14 : float = sqrt v13 │
00:00:51 #7733 [Verbose] > │ let v15 : float = -5384.0 * v14 │
00:00:51 #7734 [Verbose] > │ let v16 : float = v15 * v2 │
00:00:51 #7735 [Verbose] > │ let v17 : float = v15 * v3 │
00:00:51 #7736 [Verbose] > │ let v18 : float = v15 * v4 │
00:00:51 #7737 [Verbose] > │ let v19 : float = v16 / v14 │
00:00:51 #7738 [Verbose] > │ let v20 : float = v17 / v14 │
00:00:51 #7739 [Verbose] > │ let v21 : float = v18 / v14 │
00:00:51 #7740 [Verbose] > │ struct (v19, v20, v21) │
00:00:51 #7741 [Verbose] > │ and closure139 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │
00:00:51 #7742 [Verbose] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:51 #7743 [Verbose] > │ float * float) = │
00:00:51 #7744 [Verbose] > │ let v9 : float = v2 + -0.65 │
00:00:51 #7745 [Verbose] > │ let v10 : float = v9 * v9 │
00:00:51 #7746 [Verbose] > │ let v11 : float = v3 * v3 │
00:00:51 #7747 [Verbose] > │ let v12 : float = v10 + v11 │
00:00:51 #7748 [Verbose] > │ let v13 : float = v4 * v4 │
00:00:51 #7749 [Verbose] > │ let v14 : float = v12 + v13 │
00:00:51 #7750 [Verbose] > │ let v15 : float = sqrt v14 │
00:00:51 #7751 [Verbose] > │ let v16 : float = -5384.0 * v15 │
00:00:51 #7752 [Verbose] > │ let v17 : float = v16 * v9 │
00:00:51 #7753 [Verbose] > │ let v18 : float = v16 * v3 │
00:00:51 #7754 [Verbose] > │ let v19 : float = v16 * v4 │
00:00:51 #7755 [Verbose] > │ let v20 : float = v17 / v15 │
00:00:51 #7756 [Verbose] > │ let v21 : float = v18 / v15 │
00:00:51 #7757 [Verbose] > │ let v22 : float = v19 / v15 │
00:00:51 #7758 [Verbose] > │ struct (v20, v21, v22) │
00:00:51 #7759 [Verbose] > │ and closure141 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, │
00:00:51 #7760 [Verbose] > │ v5 : float, v6 : float, v7 : float, v8 : float) struct (v9 : float, v10 : │
00:00:51 #7761 [Verbose] > │ float, v11 : float, v12 : float, v13 : float, v14 : float, v15 : float, v16 │
00:00:51 #7762 [Verbose] > │ : float, v17 : float) : struct (float * float * float) = │
00:00:51 #7763 [Verbose] > │ let v18 : float = -1.0 * v2 │
00:00:51 #7764 [Verbose] > │ let v19 : float = -1.0 * v3 │
00:00:51 #7765 [Verbose] > │ let v20 : float = -1.0 * v4 │
00:00:51 #7766 [Verbose] > │ let v21 : float = v11 + v18 │
00:00:51 #7767 [Verbose] > │ let v22 : float = v12 + v19 │
00:00:51 #7768 [Verbose] > │ let v23 : float = v13 + v20 │
00:00:51 #7769 [Verbose] > │ let v24 : float = v21 * v21 │
00:00:51 #7770 [Verbose] > │ let v25 : float = v22 * v22 │
00:00:51 #7771 [Verbose] > │ let v26 : float = v24 + v25 │
00:00:51 #7772 [Verbose] > │ let v27 : float = v23 * v23 │
00:00:51 #7773 [Verbose] > │ let v28 : float = v26 + v27 │
00:00:51 #7774 [Verbose] > │ let v29 : float = sqrt v28 │
00:00:51 #7775 [Verbose] > │ let v30 : float = -5384.0 * v29 │
00:00:51 #7776 [Verbose] > │ let v31 : float = v30 * v21 │
00:00:51 #7777 [Verbose] > │ let v32 : float = v30 * v22 │
00:00:51 #7778 [Verbose] > │ let v33 : float = v30 * v23 │
00:00:51 #7779 [Verbose] > │ let v34 : float = v31 / v29 │
00:00:51 #7780 [Verbose] > │ let v35 : float = v32 / v29 │
00:00:51 #7781 [Verbose] > │ let v36 : float = v33 / v29 │
00:00:51 #7782 [Verbose] > │ struct (v34, v35, v36) │
00:00:51 #7783 [Verbose] > │ and closure140 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │
00:00:51 #7784 [Verbose] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : (struct (float * │
00:00:51 #7785 [Verbose] > │ float * float * float * float * float * float * float * float) -> struct │
00:00:51 #7786 [Verbose] > │ (float * float * float)) = │
00:00:51 #7787 [Verbose] > │ closure141(v0, v1, v2, v3, v4, v5, v6, v7, v8) │
00:00:51 #7788 [Verbose] > │ and method4 () : UH4 = │
00:00:51 #7789 [Verbose] > │ let v0 : (struct (float * float * float * float * float * float * float │
00:00:51 #7790 [Verbose] > │ * float * float) -> struct (float * float * float)) = closure138() │
00:00:51 #7791 [Verbose] > │ let v1 : US1 = US1_0(0, v0) │
00:00:51 #7792 [Verbose] > │ let v2 : (struct (float * float * float * float * float * float * float │
00:00:51 #7793 [Verbose] > │ * float * float) -> struct (float * float * float)) = closure139() │
00:00:51 #7794 [Verbose] > │ let v3 : US1 = US1_0(63, v2) │
00:00:51 #7795 [Verbose] > │ let v4 : (struct (float * float * float * float * float * float * float │
00:00:51 #7796 [Verbose] > │ * float * float) -> (struct (float * float * float * float * float * float * │
00:00:51 #7797 [Verbose] > │ float * float * float) -> struct (float * float * float))) = closure140() │
00:00:51 #7798 [Verbose] > │ let v5 : US1 = US1_1(0, 1, v4) │
00:00:51 #7799 [Verbose] > │ let v6 : US1 = US1_1(1, 2, v4) │
00:00:51 #7800 [Verbose] > │ let v7 : US1 = US1_1(2, 3, v4) │
00:00:51 #7801 [Verbose] > │ let v8 : US1 = US1_1(3, 4, v4) │
00:00:51 #7802 [Verbose] > │ let v9 : US1 = US1_1(4, 5, v4) │
00:00:51 #7803 [Verbose] > │ let v10 : US1 = US1_1(5, 6, v4) │
00:00:51 #7804 [Verbose] > │ let v11 : US1 = US1_1(6, 7, v4) │
00:00:51 #7805 [Verbose] > │ let v12 : US1 = US1_1(7, 8, v4) │
00:00:51 #7806 [Verbose] > │ let v13 : US1 = US1_1(8, 9, v4) │
00:00:51 #7807 [Verbose] > │ let v14 : US1 = US1_1(9, 10, v4) │
00:00:51 #7808 [Verbose] > │ let v15 : US1 = US1_1(10, 11, v4) │
00:00:51 #7809 [Verbose] > │ let v16 : US1 = US1_1(11, 12, v4) │
00:00:51 #7810 [Verbose] > │ let v17 : US1 = US1_1(12, 13, v4) │
00:00:51 #7811 [Verbose] > │ let v18 : US1 = US1_1(13, 14, v4) │
00:00:51 #7812 [Verbose] > │ let v19 : US1 = US1_1(14, 15, v4) │
00:00:51 #7813 [Verbose] > │ let v20 : US1 = US1_1(15, 16, v4) │
00:00:51 #7814 [Verbose] > │ let v21 : US1 = US1_1(16, 17, v4) │
00:00:51 #7815 [Verbose] > │ let v22 : US1 = US1_1(17, 18, v4) │
00:00:51 #7816 [Verbose] > │ let v23 : US1 = US1_1(18, 19, v4) │
00:00:51 #7817 [Verbose] > │ let v24 : US1 = US1_1(19, 20, v4) │
00:00:51 #7818 [Verbose] > │ let v25 : US1 = US1_1(20, 21, v4) │
00:00:51 #7819 [Verbose] > │ let v26 : US1 = US1_1(21, 22, v4) │
00:00:51 #7820 [Verbose] > │ let v27 : US1 = US1_1(22, 23, v4) │
00:00:51 #7821 [Verbose] > │ let v28 : US1 = US1_1(23, 24, v4) │
00:00:51 #7822 [Verbose] > │ let v29 : US1 = US1_1(24, 25, v4) │
00:00:51 #7823 [Verbose] > │ let v30 : US1 = US1_1(25, 26, v4) │
00:00:51 #7824 [Verbose] > │ let v31 : US1 = US1_1(26, 27, v4) │
00:00:51 #7825 [Verbose] > │ let v32 : US1 = US1_1(27, 28, v4) │
00:00:51 #7826 [Verbose] > │ let v33 : US1 = US1_1(28, 29, v4) │
00:00:51 #7827 [Verbose] > │ let v34 : US1 = US1_1(29, 30, v4) │
00:00:51 #7828 [Verbose] > │ let v35 : US1 = US1_1(30, 31, v4) │
00:00:51 #7829 [Verbose] > │ let v36 : US1 = US1_1(31, 32, v4) │
00:00:51 #7830 [Verbose] > │ let v37 : US1 = US1_1(32, 33, v4) │
00:00:51 #7831 [Verbose] > │ let v38 : US1 = US1_1(33, 34, v4) │
00:00:51 #7832 [Verbose] > │ let v39 : US1 = US1_1(34, 35, v4) │
00:00:51 #7833 [Verbose] > │ let v40 : US1 = US1_1(35, 36, v4) │
00:00:51 #7834 [Verbose] > │ let v41 : US1 = US1_1(36, 37, v4) │
00:00:51 #7835 [Verbose] > │ let v42 : US1 = US1_1(37, 38, v4) │
00:00:51 #7836 [Verbose] > │ let v43 : US1 = US1_1(38, 39, v4) │
00:00:51 #7837 [Verbose] > │ let v44 : US1 = US1_1(39, 40, v4) │
00:00:51 #7838 [Verbose] > │ let v45 : US1 = US1_1(40, 41, v4) │
00:00:51 #7839 [Verbose] > │ let v46 : US1 = US1_1(41, 42, v4) │
00:00:51 #7840 [Verbose] > │ let v47 : US1 = US1_1(42, 43, v4) │
00:00:51 #7841 [Verbose] > │ let v48 : US1 = US1_1(43, 44, v4) │
00:00:51 #7842 [Verbose] > │ let v49 : US1 = US1_1(44, 45, v4) │
00:00:51 #7843 [Verbose] > │ let v50 : US1 = US1_1(45, 46, v4) │
00:00:51 #7844 [Verbose] > │ let v51 : US1 = US1_1(46, 47, v4) │
00:00:51 #7845 [Verbose] > │ let v52 : US1 = US1_1(47, 48, v4) │
00:00:51 #7846 [Verbose] > │ let v53 : US1 = US1_1(48, 49, v4) │
00:00:51 #7847 [Verbose] > │ let v54 : US1 = US1_1(49, 50, v4) │
00:00:51 #7848 [Verbose] > │ let v55 : US1 = US1_1(50, 51, v4) │
00:00:51 #7849 [Verbose] > │ let v56 : US1 = US1_1(51, 52, v4) │
00:00:51 #7850 [Verbose] > │ let v57 : US1 = US1_1(52, 53, v4) │
00:00:51 #7851 [Verbose] > │ let v58 : US1 = US1_1(53, 54, v4) │
00:00:51 #7852 [Verbose] > │ let v59 : US1 = US1_1(54, 55, v4) │
00:00:51 #7853 [Verbose] > │ let v60 : US1 = US1_1(55, 56, v4) │
00:00:51 #7854 [Verbose] > │ let v61 : US1 = US1_1(56, 57, v4) │
00:00:51 #7855 [Verbose] > │ let v62 : US1 = US1_1(57, 58, v4) │
00:00:51 #7856 [Verbose] > │ let v63 : US1 = US1_1(58, 59, v4) │
00:00:51 #7857 [Verbose] > │ let v64 : US1 = US1_1(59, 60, v4) │
00:00:51 #7858 [Verbose] > │ let v65 : UH4 = UH4_1 │
00:00:51 #7859 [Verbose] > │ let v66 : UH4 = UH4_0(v64, v65) │
00:00:51 #7860 [Verbose] > │ let v67 : UH4 = UH4_0(v63, v66) │
00:00:51 #7861 [Verbose] > │ let v68 : UH4 = UH4_0(v62, v67) │
00:00:51 #7862 [Verbose] > │ let v69 : UH4 = UH4_0(v61, v68) │
00:00:51 #7863 [Verbose] > │ let v70 : UH4 = UH4_0(v60, v69) │
00:00:51 #7864 [Verbose] > │ let v71 : UH4 = UH4_0(v59, v70) │
00:00:51 #7865 [Verbose] > │ let v72 : UH4 = UH4_0(v58, v71) │
00:00:51 #7866 [Verbose] > │ let v73 : UH4 = UH4_0(v57, v72) │
00:00:51 #7867 [Verbose] > │ let v74 : UH4 = UH4_0(v56, v73) │
00:00:51 #7868 [Verbose] > │ let v75 : UH4 = UH4_0(v55, v74) │
00:00:51 #7869 [Verbose] > │ let v76 : UH4 = UH4_0(v54, v75) │
00:00:51 #7870 [Verbose] > │ let v77 : UH4 = UH4_0(v53, v76) │
00:00:51 #7871 [Verbose] > │ let v78 : UH4 = UH4_0(v52, v77) │
00:00:51 #7872 [Verbose] > │ let v79 : UH4 = UH4_0(v51, v78) │
00:00:51 #7873 [Verbose] > │ let v80 : UH4 = UH4_0(v50, v79) │
00:00:51 #7874 [Verbose] > │ let v81 : UH4 = UH4_0(v49, v80) │
00:00:51 #7875 [Verbose] > │ let v82 : UH4 = UH4_0(v48, v81) │
00:00:51 #7876 [Verbose] > │ let v83 : UH4 = UH4_0(v47, v82) │
00:00:51 #7877 [Verbose] > │ let v84 : UH4 = UH4_0(v46, v83) │
00:00:51 #7878 [Verbose] > │ let v85 : UH4 = UH4_0(v45, v84) │
00:00:51 #7879 [Verbose] > │ let v86 : UH4 = UH4_0(v44, v85) │
00:00:51 #7880 [Verbose] > │ let v87 : UH4 = UH4_0(v43, v86) │
00:00:51 #7881 [Verbose] > │ let v88 : UH4 = UH4_0(v42, v87) │
00:00:51 #7882 [Verbose] > │ let v89 : UH4 = UH4_0(v41, v88) │
00:00:51 #7883 [Verbose] > │ let v90 : UH4 = UH4_0(v40, v89) │
00:00:51 #7884 [Verbose] > │ let v91 : UH4 = UH4_0(v39, v90) │
00:00:51 #7885 [Verbose] > │ let v92 : UH4 = UH4_0(v38, v91) │
00:00:51 #7886 [Verbose] > │ let v93 : UH4 = UH4_0(v37, v92) │
00:00:51 #7887 [Verbose] > │ let v94 : UH4 = UH4_0(v36, v93) │
00:00:51 #7888 [Verbose] > │ let v95 : UH4 = UH4_0(v35, v94) │
00:00:51 #7889 [Verbose] > │ let v96 : UH4 = UH4_0(v34, v95) │
00:00:51 #7890 [Verbose] > │ let v97 : UH4 = UH4_0(v33, v96) │
00:00:51 #7891 [Verbose] > │ let v98 : UH4 = UH4_0(v32, v97) │
00:00:51 #7892 [Verbose] > │ let v99 : UH4 = UH4_0(v31, v98) │
00:00:51 #7893 [Verbose] > │ let v100 : UH4 = UH4_0(v30, v99) │
00:00:51 #7894 [Verbose] > │ let v101 : UH4 = UH4_0(v29, v100) │
00:00:51 #7895 [Verbose] > │ let v102 : UH4 = UH4_0(v28, v101) │
00:00:51 #7896 [Verbose] > │ let v103 : UH4 = UH4_0(v27, v102) │
00:00:51 #7897 [Verbose] > │ let v104 : UH4 = UH4_0(v26, v103) │
00:00:51 #7898 [Verbose] > │ let v105 : UH4 = UH4_0(v25, v104) │
00:00:51 #7899 [Verbose] > │ let v106 : UH4 = UH4_0(v24, v105) │
00:00:51 #7900 [Verbose] > │ let v107 : UH4 = UH4_0(v23, v106) │
00:00:51 #7901 [Verbose] > │ let v108 : UH4 = UH4_0(v22, v107) │
00:00:51 #7902 [Verbose] > │ let v109 : UH4 = UH4_0(v21, v108) │
00:00:51 #7903 [Verbose] > │ let v110 : UH4 = UH4_0(v20, v109) │
00:00:51 #7904 [Verbose] > │ let v111 : UH4 = UH4_0(v19, v110) │
00:00:51 #7905 [Verbose] > │ let v112 : UH4 = UH4_0(v18, v111) │
00:00:51 #7906 [Verbose] > │ let v113 : UH4 = UH4_0(v17, v112) │
00:00:51 #7907 [Verbose] > │ let v114 : UH4 = UH4_0(v16, v113) │
00:00:51 #7908 [Verbose] > │ let v115 : UH4 = UH4_0(v15, v114) │
00:00:51 #7909 [Verbose] > │ let v116 : UH4 = UH4_0(v14, v115) │
00:00:51 #7910 [Verbose] > │ let v117 : UH4 = UH4_0(v13, v116) │
00:00:51 #7911 [Verbose] > │ let v118 : UH4 = UH4_0(v12, v117) │
00:00:51 #7912 [Verbose] > │ let v119 : UH4 = UH4_0(v11, v118) │
00:00:51 #7913 [Verbose] > │ let v120 : UH4 = UH4_0(v10, v119) │
00:00:51 #7914 [Verbose] > │ let v121 : UH4 = UH4_0(v9, v120) │
00:00:51 #7915 [Verbose] > │ let v122 : UH4 = UH4_0(v8, v121) │
00:00:51 #7916 [Verbose] > │ let v123 : UH4 = UH4_0(v7, v122) │
00:00:51 #7917 [Verbose] > │ let v124 : UH4 = UH4_0(v6, v123) │
00:00:51 #7918 [Verbose] > │ let v125 : UH4 = UH4_0(v5, v124) │
00:00:51 #7919 [Verbose] > │ let v126 : UH4 = UH4_0(v3, v125) │
00:00:51 #7920 [Verbose] > │ UH4_0(v1, v126) │
00:00:51 #7921 [Verbose] > │ and closure143 (v0 : UH5) () : UH5 = │
00:00:51 #7922 [Verbose] > │ v0 │
00:00:51 #7923 [Verbose] > │ and method5 (v0 : UH1, v1 : UH5, v2 : int32) : struct (UH5 * int32) = │
00:00:51 #7924 [Verbose] > │ match v0 with │
00:00:51 #7925 [Verbose] > │ | UH1_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons *) │
00:00:51 #7926 [Verbose] > │ let v13 : int32 = v2 + 1 │
00:00:51 #7927 [Verbose] > │ let v14 : UH1 = v12 () │
00:00:51 #7928 [Verbose] > │ let v15 : (unit -> UH5) = closure143(v1) │
00:00:51 #7929 [Verbose] > │ let v16 : UH5 = UH5_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v15) │
00:00:51 #7930 [Verbose] > │ method5(v14, v16, v13) │
00:00:51 #7931 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:51 #7932 [Verbose] > │ struct (v1, v2) │
00:00:51 #7933 [Verbose] > │ and closure144 (v0 : UH5) () : UH5 = │
00:00:51 #7934 [Verbose] > │ v0 │
00:00:51 #7935 [Verbose] > │ and method6 (v0 : UH5, v1 : UH5) : UH5 = │
00:00:51 #7936 [Verbose] > │ match v0 with │
00:00:51 #7937 [Verbose] > │ | UH5_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) -> (* StreamCons │
00:00:51 #7938 [Verbose] > │ *) │
00:00:51 #7939 [Verbose] > │ let v13 : UH5 = v12 () │
00:00:51 #7940 [Verbose] > │ let v14 : (unit -> UH5) = closure144(v1) │
00:00:51 #7941 [Verbose] > │ let v15 : UH5 = UH5_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v14) │
00:00:51 #7942 [Verbose] > │ method6(v13, v15) │
00:00:51 #7943 [Verbose] > │ | UH5_1 -> (* StreamNil *) │
00:00:51 #7944 [Verbose] > │ v1 │
00:00:51 #7945 [Verbose] > │ and closure145 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │
00:00:51 #7946 [Verbose] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:51 #7947 [Verbose] > │ float * float) = │
00:00:51 #7948 [Verbose] > │ struct (0.0, 0.0, 0.0) │
00:00:51 #7949 [Verbose] > │ and method9 (v0 : int32, v1 : UH1) : US3 = │
00:00:51 #7950 [Verbose] > │ match v1 with │
00:00:51 #7951 [Verbose] > │ | UH1_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* StreamCons *) │
00:00:51 #7952 [Verbose] > │ let v12 : bool = v0 <= 0 │
00:00:51 #7953 [Verbose] > │ if v12 then │
00:00:51 #7954 [Verbose] > │ US3_1(v2, v3, v4, v5, v6, v7, v8, v9, v10) │
00:00:51 #7955 [Verbose] > │ else │
00:00:51 #7956 [Verbose] > │ let v14 : int32 = v0 - 1 │
00:00:51 #7957 [Verbose] > │ let v15 : UH1 = v11 () │
00:00:51 #7958 [Verbose] > │ method9(v14, v15) │
00:00:51 #7959 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:51 #7960 [Verbose] > │ US3_0 │
00:00:51 #7961 [Verbose] > │ and closure146 () struct (v0 : float, v1 : float, v2 : float, v3 : float, v4 │
00:00:51 #7962 [Verbose] > │ : float, v5 : float, v6 : float, v7 : float, v8 : float) : struct (float * │
00:00:51 #7963 [Verbose] > │ float * float) = │
00:00:51 #7964 [Verbose] > │ struct (0.0, 0.0, 0.0) │
00:00:51 #7965 [Verbose] > │ and method8 (v0 : int32, v1 : UH1, v2 : UH4, v3 : UH6) : UH6 = │
00:00:51 #7966 [Verbose] > │ match v2 with │
00:00:51 #7967 [Verbose] > │ | UH4_0(v4, v5) -> (* Cons *) │
00:00:51 #7968 [Verbose] > │ let v6 : UH6 = method8(v0, v1, v5, v3) │
00:00:51 #7969 [Verbose] > │ let v55 : (struct (float * float * float * float * float * float * │
00:00:51 #7970 [Verbose] > │ float * float * float) -> struct (float * float * float)) = │
00:00:51 #7971 [Verbose] > │ match v4 with │
00:00:51 #7972 [Verbose] > │ | US1_0(v7, v8) -> (* ExternalForce *) │
00:00:51 #7973 [Verbose] > │ let v9 : bool = v0 = v7 │
00:00:51 #7974 [Verbose] > │ if v9 then │
00:00:51 #7975 [Verbose] > │ v8 │
00:00:51 #7976 [Verbose] > │ else │
00:00:51 #7977 [Verbose] > │ closure145() │
00:00:51 #7978 [Verbose] > │ | US1_1(v12, v13, v14) -> (* InternalForce *) │
00:00:51 #7979 [Verbose] > │ let v15 : bool = v0 = v12 │
00:00:51 #7980 [Verbose] > │ let v49 : US2 = │
00:00:51 #7981 [Verbose] > │ if v15 then │
00:00:51 #7982 [Verbose] > │ let v16 : US3 = method9(v13, v1) │
00:00:51 #7983 [Verbose] > │ match v16 with │
00:00:51 #7984 [Verbose] > │ | US3_0 -> (* None *) │
00:00:51 #7985 [Verbose] > │ US2_0 │
00:00:51 #7986 [Verbose] > │ | US3_1(v17, v18, v19, v20, v21, v22, v23, v24, v25) │
00:00:51 #7987 [Verbose] > │ -> (* Some *) │
00:00:51 #7988 [Verbose] > │ let v26 : (struct (float * float * float * float │
00:00:51 #7989 [Verbose] > │ * float * float * float * float * float) -> struct (float * float * float)) │
00:00:51 #7990 [Verbose] > │ = v14 struct (v17, v18, v19, v20, v21, v22, v23, v24, v25) │
00:00:51 #7991 [Verbose] > │ US2_1(v26) │
00:00:51 #7992 [Verbose] > │ else │
00:00:51 #7993 [Verbose] > │ let v31 : bool = v0 = v13 │
00:00:51 #7994 [Verbose] > │ if v31 then │
00:00:51 #7995 [Verbose] > │ let v32 : US3 = method9(v12, v1) │
00:00:51 #7996 [Verbose] > │ match v32 with │
00:00:51 #7997 [Verbose] > │ | US3_0 -> (* None *) │
00:00:51 #7998 [Verbose] > │ US2_0 │
00:00:51 #7999 [Verbose] > │ | US3_1(v33, v34, v35, v36, v37, v38, v39, v40, │
00:00:51 #8000 [Verbose] > │ v41) -> (* Some *) │
00:00:51 #8001 [Verbose] > │ let v42 : (struct (float * float * float * │
00:00:51 #8002 [Verbose] > │ float * float * float * float * float * float) -> struct (float * float * │
00:00:51 #8003 [Verbose] > │ float)) = v14 struct (v33, v34, v35, v36, v37, v38, v39, v40, v41) │
00:00:51 #8004 [Verbose] > │ US2_1(v42) │
00:00:51 #8005 [Verbose] > │ else │
00:00:51 #8006 [Verbose] > │ US2_0 │
00:00:51 #8007 [Verbose] > │ match v49 with │
00:00:51 #8008 [Verbose] > │ | US2_0 -> (* None *) │
00:00:51 #8009 [Verbose] > │ closure146() │
00:00:51 #8010 [Verbose] > │ | US2_1(v50) -> (* Some *) │
00:00:51 #8011 [Verbose] > │ v50 │
00:00:51 #8012 [Verbose] > │ UH6_0(v55, v6) │
00:00:51 #8013 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:00:51 #8014 [Verbose] > │ v3 │
00:00:51 #8015 [Verbose] > │ and method10 (v0 : float, v1 : float, v2 : float, v3 : float, v4 : float, v5 │
00:00:51 #8016 [Verbose] > │ : float, v6 : float, v7 : float, v8 : float, v9 : UH6, v10 : UH7) : UH7 = │
00:00:51 #8017 [Verbose] > │ match v9 with │
00:00:51 #8018 [Verbose] > │ | UH6_0(v11, v12) -> (* Cons *) │
00:00:51 #8019 [Verbose] > │ let v13 : UH7 = method10(v0, v1, v2, v3, v4, v5, v6, v7, v8, v12, │
00:00:51 #8020 [Verbose] > │ v10) │
00:00:51 #8021 [Verbose] > │ let struct (v14 : float, v15 : float, v16 : float) = v11 struct (v0, │
00:00:51 #8022 [Verbose] > │ v1, v2, v3, v4, v5, v6, v7, v8) │
00:00:51 #8023 [Verbose] > │ UH7_0(v14, v15, v16, v13) │
00:00:51 #8024 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:00:51 #8025 [Verbose] > │ v10 │
00:00:51 #8026 [Verbose] > │ and method11 (v0 : UH7, v1 : float, v2 : float, v3 : float) : struct (float │
00:00:51 #8027 [Verbose] > │ * float * float) = │
00:00:51 #8028 [Verbose] > │ match v0 with │
00:00:51 #8029 [Verbose] > │ | UH7_0(v4, v5, v6, v7) -> (* Cons *) │
00:00:51 #8030 [Verbose] > │ let v8 : float = v1 + v4 │
00:00:51 #8031 [Verbose] > │ let v9 : float = v2 + v5 │
00:00:51 #8032 [Verbose] > │ let v10 : float = v3 + v6 │
00:00:51 #8033 [Verbose] > │ method11(v7, v8, v9, v10) │
00:00:51 #8034 [Verbose] > │ | UH7_1 -> (* Nil *) │
00:00:51 #8035 [Verbose] > │ struct (v1, v2, v3) │
00:00:51 #8036 [Verbose] > │ and closure147 (v0 : UH3) () : UH3 = │
00:00:51 #8037 [Verbose] > │ v0 │
00:00:51 #8038 [Verbose] > │ and method7 (v0 : UH4, v1 : UH1, v2 : UH5, v3 : UH3) : UH3 = │
00:00:51 #8039 [Verbose] > │ match v2 with │
00:00:51 #8040 [Verbose] > │ | UH5_0(v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14) -> (* │
00:00:51 #8041 [Verbose] > │ StreamCons *) │
00:00:51 #8042 [Verbose] > │ let v15 : UH5 = v14 () │
00:00:51 #8043 [Verbose] > │ let v16 : UH3 = method7(v0, v1, v15, v3) │
00:00:51 #8044 [Verbose] > │ let v17 : UH6 = UH6_1 │
00:00:51 #8045 [Verbose] > │ let v18 : UH6 = method8(v4, v1, v0, v17) │
00:00:51 #8046 [Verbose] > │ let v19 : UH7 = UH7_1 │
00:00:51 #8047 [Verbose] > │ let v20 : UH7 = method10(v5, v6, v7, v8, v9, v10, v11, v12, v13, │
00:00:51 #8048 [Verbose] > │ v18, v19) │
00:00:51 #8049 [Verbose] > │ let v21 : float = 0.0 │
00:00:51 #8050 [Verbose] > │ let v22 : float = 0.0 │
00:00:51 #8051 [Verbose] > │ let v23 : float = 0.0 │
00:00:51 #8052 [Verbose] > │ let struct (v24 : float, v25 : float, v26 : float) = method11(v20, │
00:00:51 #8053 [Verbose] > │ v21, v22, v23) │
00:00:51 #8054 [Verbose] > │ let v27 : float = v24 / v6 │
00:00:51 #8055 [Verbose] > │ let v28 : float = v25 / v6 │
00:00:51 #8056 [Verbose] > │ let v29 : float = v26 / v6 │
00:00:51 #8057 [Verbose] > │ let v30 : (unit -> UH3) = closure147(v16) │
00:00:51 #8058 [Verbose] > │ UH3_0(0.0, 0.0, v11, v12, v13, 1.0, v27, v28, v29, v30) │
00:00:51 #8059 [Verbose] > │ | UH5_1 -> (* StreamNil *) │
00:00:51 #8060 [Verbose] > │ v3 │
00:00:51 #8061 [Verbose] > │ and closure142 (v0 : UH4) (v1 : UH1) : UH3 = │
00:00:51 #8062 [Verbose] > │ let v2 : UH5 = UH5_1 │
00:00:51 #8063 [Verbose] > │ let v3 : int32 = 0 │
00:00:51 #8064 [Verbose] > │ let struct (v4 : UH5, v5 : int32) = method5(v1, v2, v3) │
00:00:51 #8065 [Verbose] > │ let v6 : UH5 = UH5_1 │
00:00:51 #8066 [Verbose] > │ let v7 : UH5 = method6(v4, v6) │
00:00:51 #8067 [Verbose] > │ let v8 : UH3 = UH3_1 │
00:00:51 #8068 [Verbose] > │ let v9 : UH3 = method7(v0, v1, v7, v8) │
00:00:51 #8069 [Verbose] > │ v9 │
00:00:51 #8070 [Verbose] > │ and closure148 (v0 : (UH1 -> UH1), v1 : UH1, v2 : UH1) () : UH8 = │
00:00:51 #8071 [Verbose] > │ let v3 : UH1 = v0 v2 │
00:00:51 #8072 [Verbose] > │ let v4 : (unit -> UH8) = closure148(v0, v1, v3) │
00:00:51 #8073 [Verbose] > │ UH8_0(v2, v4) │
00:00:51 #8074 [Verbose] > │ and method12 (v0 : float, v1 : UH8) : US4 = │
00:00:51 #8075 [Verbose] > │ match v1 with │
00:00:51 #8076 [Verbose] > │ | UH8_0(v2, v3) -> (* StreamCons *) │
00:00:51 #8077 [Verbose] > │ let v4 : bool = v0 <= 0.0 │
00:00:51 #8078 [Verbose] > │ if v4 then │
00:00:51 #8079 [Verbose] > │ US4_1(v2) │
00:00:51 #8080 [Verbose] > │ else │
00:00:51 #8081 [Verbose] > │ let v6 : float = v0 - 1.0 │
00:00:51 #8082 [Verbose] > │ let v7 : UH8 = v3 () │
00:00:51 #8083 [Verbose] > │ method12(v6, v7) │
00:00:51 #8084 [Verbose] > │ | UH8_1 -> (* StreamNil *) │
00:00:51 #8085 [Verbose] > │ US4_0 │
00:00:51 #8086 [Verbose] > │ and closure149 (v0 : UH9) () : UH9 = │
00:00:51 #8087 [Verbose] > │ v0 │
00:00:51 #8088 [Verbose] > │ and method13 (v0 : UH1, v1 : UH9) : UH9 = │
00:00:51 #8089 [Verbose] > │ match v0 with │
00:00:51 #8090 [Verbose] > │ | UH1_0(v2, v3, v4, v5, v6, v7, v8, v9, v10, v11) -> (* StreamCons *) │
00:00:51 #8091 [Verbose] > │ let v12 : UH1 = v11 () │
00:00:51 #8092 [Verbose] > │ let v13 : UH9 = method13(v12, v1) │
00:00:51 #8093 [Verbose] > │ let v14 : (unit -> UH9) = closure149(v13) │
00:00:51 #8094 [Verbose] > │ UH9_0(v4, v5, v6, v14) │
00:00:51 #8095 [Verbose] > │ | UH1_1 -> (* StreamNil *) │
00:00:51 #8096 [Verbose] > │ v1 │
00:00:51 #8097 [Verbose] > │ and method14 (v0 : UH9, v1 : UH7) : UH7 = │
00:00:51 #8098 [Verbose] > │ match v0 with │
00:00:51 #8099 [Verbose] > │ | UH9_0(v2, v3, v4, v5) -> (* StreamCons *) │
00:00:51 #8100 [Verbose] > │ let v6 : UH9 = v5 () │
00:00:51 #8101 [Verbose] > │ let v7 : UH7 = method14(v6, v1) │
00:00:51 #8102 [Verbose] > │ UH7_0(v2, v3, v4, v7) │
00:00:51 #8103 [Verbose] > │ | UH9_1 -> (* StreamNil *) │
00:00:51 #8104 [Verbose] > │ v1 │
00:00:51 #8105 [Verbose] > │ and method15 (v0 : UH7, v1 : UH7) : UH7 = │
00:00:51 #8106 [Verbose] > │ match v0 with │
00:00:51 #8107 [Verbose] > │ | UH7_0(v2, v3, v4, v5) -> (* Cons *) │
00:00:51 #8108 [Verbose] > │ let v6 : UH7 = method15(v5, v1) │
00:00:51 #8109 [Verbose] > │ UH7_0(v2, v3, v4, v6) │
00:00:51 #8110 [Verbose] > │ | UH7_1 -> (* Nil *) │
00:00:51 #8111 [Verbose] > │ v1 │
00:00:51 #8112 [Verbose] > │ and method16 (v0 : UH7, v1 : UH10) : UH10 = │
00:00:51 #8113 [Verbose] > │ match v0 with │
00:00:51 #8114 [Verbose] > │ | UH7_0(v2, v3, v4, v5) -> (* Cons *) │
00:00:51 #8115 [Verbose] > │ let v6 : UH10 = method16(v5, v1) │
00:00:51 #8116 [Verbose] > │ UH10_0(v2, v3, v6) │
00:00:51 #8117 [Verbose] > │ | UH7_1 -> (* Nil *) │
00:00:51 #8118 [Verbose] > │ v1 │
00:00:51 #8119 [Verbose] > │ and closure150 (v0 : UH11) () : UH11 = │
00:00:51 #8120 [Verbose] > │ v0 │
00:00:51 #8121 [Verbose] > │ and method17 (v0 : UH10, v1 : UH11) : UH11 = │
00:00:51 #8122 [Verbose] > │ match v0 with │
00:00:51 #8123 [Verbose] > │ | UH10_0(v2, v3, v4) -> (* Cons *) │
00:00:51 #8124 [Verbose] > │ let v5 : UH11 = method17(v4, v1) │
00:00:51 #8125 [Verbose] > │ let v6 : (unit -> UH11) = closure150(v5) │
00:00:51 #8126 [Verbose] > │ UH11_0(v2, v3, v6) │
00:00:51 #8127 [Verbose] > │ | UH10_1 -> (* Nil *) │
00:00:51 #8128 [Verbose] > │ v1 │
00:00:51 #8129 [Verbose] > │ and closure151 (v0 : UH0) () : UH0 = │
00:00:51 #8130 [Verbose] > │ v0 │
00:00:51 #8131 [Verbose] > │ and closure152 (v0 : UH0) () : UH0 = │
00:00:51 #8132 [Verbose] > │ v0 │
00:00:51 #8133 [Verbose] > │ and method18 (v0 : UH11) : struct (UH0 * UH0) = │
00:00:51 #8134 [Verbose] > │ match v0 with │
00:00:51 #8135 [Verbose] > │ | UH11_0(v1, v2, v3) -> (* StreamCons *) │
00:00:51 #8136 [Verbose] > │ let v4 : UH11 = v3 () │
00:00:51 #8137 [Verbose] > │ let struct (v5 : UH0, v6 : UH0) = method18(v4) │
00:00:51 #8138 [Verbose] > │ let v7 : (unit -> UH0) = closure151(v5) │
00:00:51 #8139 [Verbose] > │ let v8 : UH0 = UH0_0(v1, v7) │
00:00:51 #8140 [Verbose] > │ let v9 : (unit -> UH0) = closure152(v6) │
00:00:51 #8141 [Verbose] > │ let v10 : UH0 = UH0_0(v2, v9) │
00:00:51 #8142 [Verbose] > │ struct (v8, v10) │
00:00:51 #8143 [Verbose] > │ | UH11_1 -> (* StreamNil *) │
00:00:51 #8144 [Verbose] > │ let v11 : UH0 = UH0_1 │
00:00:51 #8145 [Verbose] > │ let v12 : UH0 = UH0_1 │
00:00:51 #8146 [Verbose] > │ struct (v11, v12) │
00:00:51 #8147 [Verbose] > │ and method19 (v0 : UH0, v1 : UH12) : UH12 = │
00:00:51 #8148 [Verbose] > │ match v0 with │
00:00:51 #8149 [Verbose] > │ | UH0_0(v2, v3) -> (* StreamCons *) │
00:00:51 #8150 [Verbose] > │ let v4 : UH0 = v3 () │
00:00:51 #8151 [Verbose] > │ let v5 : UH12 = method19(v4, v1) │
00:00:51 #8152 [Verbose] > │ UH12_0(v2, v5) │
00:00:51 #8153 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:51 #8154 [Verbose] > │ v1 │
00:00:51 #8155 [Verbose] > │ and method21 (v0 : UH12, v1 : int32) : int32 = │
00:00:51 #8156 [Verbose] > │ match v0 with │
00:00:51 #8157 [Verbose] > │ | UH12_0(v2, v3) -> (* Cons *) │
00:00:51 #8158 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:00:51 #8159 [Verbose] > │ method21(v3, v4) │
00:00:51 #8160 [Verbose] > │ | UH12_1 -> (* Nil *) │
00:00:51 #8161 [Verbose] > │ v1 │
00:00:51 #8162 [Verbose] > │ and method22 (v0 : (float []), v1 : UH12, v2 : int32) : int32 = │
00:00:51 #8163 [Verbose] > │ match v1 with │
00:00:51 #8164 [Verbose] > │ | UH12_0(v3, v4) -> (* Cons *) │
00:00:51 #8165 [Verbose] > │ v0.[int v2] <- v3 │
00:00:51 #8166 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:00:51 #8167 [Verbose] > │ method22(v0, v4, v5) │
00:00:51 #8168 [Verbose] > │ | UH12_1 -> (* Nil *) │
00:00:51 #8169 [Verbose] > │ v2 │
00:00:51 #8170 [Verbose] > │ and method20 (v0 : UH12) : (float []) = │
00:00:51 #8171 [Verbose] > │ let v1 : int32 = 0 │
00:00:51 #8172 [Verbose] > │ let v2 : int32 = method21(v0, v1) │
00:00:51 #8173 [Verbose] > │ let v3 : (float []) = Array.zeroCreate<float> (v2) │
00:00:51 #8174 [Verbose] > │ let v4 : int32 = 0 │
00:00:51 #8175 [Verbose] > │ let v5 : int32 = method22(v3, v0, v4) │
00:00:51 #8176 [Verbose] > │ v3 │
00:00:51 #8177 [Verbose] > │ and closure153 (v0 : UH2) () : UH2 = │
00:00:51 #8178 [Verbose] > │ v0 │
00:00:51 #8179 [Verbose] > │ and method1 (v0 : UH1, v1 : UH0, v2 : UH2) : UH2 = │
00:00:51 #8180 [Verbose] > │ match v1 with │
00:00:51 #8181 [Verbose] > │ | UH0_0(v3, v4) -> (* StreamCons *) │
00:00:51 #8182 [Verbose] > │ let v5 : UH0 = v4 () │
00:00:51 #8183 [Verbose] > │ let v6 : UH2 = method1(v0, v5, v2) │
00:00:51 #8184 [Verbose] > │ let v7 : ((UH1 -> UH3) -> (UH1 -> UH1)) = method2() │
00:00:51 #8185 [Verbose] > │ let v8 : UH4 = method4() │
00:00:51 #8186 [Verbose] > │ let v9 : (UH1 -> UH3) = closure142(v8) │
00:00:51 #8187 [Verbose] > │ let v10 : (UH1 -> UH1) = v7 v9 │
00:00:51 #8188 [Verbose] > │ let v11 : UH1 = v10 v0 │
00:00:51 #8189 [Verbose] > │ let v12 : (unit -> UH8) = closure148(v10, v0, v11) │
00:00:51 #8190 [Verbose] > │ let v13 : UH8 = UH8_0(v0, v12) │
00:00:51 #8191 [Verbose] > │ let v14 : US4 = method12(v3, v13) │
00:00:51 #8192 [Verbose] > │ let v18 : UH1 = │
00:00:51 #8193 [Verbose] > │ match v14 with │
00:00:51 #8194 [Verbose] > │ | US4_0 -> (* None *) │
00:00:51 #8195 [Verbose] > │ failwith<UH1> "Option does not have a value." │
00:00:51 #8196 [Verbose] > │ | US4_1(v15) -> (* Some *) │
00:00:51 #8197 [Verbose] > │ v15 │
00:00:51 #8198 [Verbose] > │ let v19 : UH9 = UH9_1 │
00:00:51 #8199 [Verbose] > │ let v20 : UH9 = method13(v18, v19) │
00:00:51 #8200 [Verbose] > │ let v21 : UH7 = UH7_1 │
00:00:51 #8201 [Verbose] > │ let v22 : UH7 = method14(v20, v21) │
00:00:51 #8202 [Verbose] > │ let v23 : float = 0.65 │
00:00:51 #8203 [Verbose] > │ let v24 : float = 0.0 │
00:00:51 #8204 [Verbose] > │ let v25 : float = 0.0 │
00:00:51 #8205 [Verbose] > │ let v26 : UH7 = UH7_1 │
00:00:51 #8206 [Verbose] > │ let v27 : UH7 = UH7_0(v23, v24, v25, v26) │
00:00:51 #8207 [Verbose] > │ let v28 : UH7 = method15(v22, v27) │
00:00:51 #8208 [Verbose] > │ let v29 : UH10 = UH10_1 │
00:00:51 #8209 [Verbose] > │ let v30 : UH10 = method16(v28, v29) │
00:00:51 #8210 [Verbose] > │ let v31 : UH11 = UH11_1 │
00:00:51 #8211 [Verbose] > │ let v32 : UH11 = method17(v30, v31) │
00:00:51 #8212 [Verbose] > │ let struct (v33 : UH0, v34 : UH0) = method18(v32) │
00:00:51 #8213 [Verbose] > │ let v35 : UH12 = UH12_1 │
00:00:51 #8214 [Verbose] > │ let v36 : UH12 = method19(v33, v35) │
00:00:51 #8215 [Verbose] > │ let v37 : float = 0.0 │
00:00:51 #8216 [Verbose] > │ let v38 : UH12 = UH12_0(v37, v36) │
00:00:51 #8217 [Verbose] > │ let v39 : (float []) = method20(v38) │
00:00:51 #8218 [Verbose] > │ let v40 : UH12 = UH12_1 │
00:00:51 #8219 [Verbose] > │ let v41 : UH12 = method19(v34, v40) │
00:00:51 #8220 [Verbose] > │ let v42 : float = 0.0 │
00:00:51 #8221 [Verbose] > │ let v43 : UH12 = UH12_0(v42, v41) │
00:00:51 #8222 [Verbose] > │ let v44 : (float []) = method20(v43) │
00:00:51 #8223 [Verbose] > │ let v45 : (unit -> UH2) = closure153(v6) │
00:00:51 #8224 [Verbose] > │ UH2_0(v39, v44, v45) │
00:00:51 #8225 [Verbose] > │ | UH0_1 -> (* StreamNil *) │
00:00:51 #8226 [Verbose] > │ v2 │
00:00:51 #8227 [Verbose] > │ and closure154 (v0 : UH13) () : UH13 = │
00:00:51 #8228 [Verbose] > │ v0 │
00:00:51 #8229 [Verbose] > │ and method23 (v0 : UH2, v1 : UH13, v2 : int32) : struct (UH13 * int32) = │
00:00:51 #8230 [Verbose] > │ match v0 with │
00:00:51 #8231 [Verbose] > │ | UH2_0(v3, v4, v5) -> (* StreamCons *) │
00:00:51 #8232 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:00:51 #8233 [Verbose] > │ let v7 : UH2 = v5 () │
00:00:51 #8234 [Verbose] > │ let v8 : (unit -> UH13) = closure154(v1) │
00:00:51 #8235 [Verbose] > │ let v9 : UH13 = UH13_0(v2, v3, v4, v8) │
00:00:51 #8236 [Verbose] > │ method23(v7, v9, v6) │
00:00:51 #8237 [Verbose] > │ | UH2_1 -> (* StreamNil *) │
00:00:51 #8238 [Verbose] > │ struct (v1, v2) │
00:00:51 #8239 [Verbose] > │ and closure155 (v0 : UH13) () : UH13 = │
00:00:51 #8240 [Verbose] > │ v0 │
00:00:51 #8241 [Verbose] > │ and method24 (v0 : UH13, v1 : UH13) : UH13 = │
00:00:51 #8242 [Verbose] > │ match v0 with │
00:00:51 #8243 [Verbose] > │ | UH13_0(v2, v3, v4, v5) -> (* StreamCons *) │
00:00:51 #8244 [Verbose] > │ let v6 : UH13 = v5 () │
00:00:51 #8245 [Verbose] > │ let v7 : (unit -> UH13) = closure155(v1) │
00:00:51 #8246 [Verbose] > │ let v8 : UH13 = UH13_0(v2, v3, v4, v7) │
00:00:51 #8247 [Verbose] > │ method24(v6, v8) │
00:00:51 #8248 [Verbose] > │ | UH13_1 -> (* StreamNil *) │
00:00:51 #8249 [Verbose] > │ v1 │
00:00:51 #8250 [Verbose] > │ and method26 (v0 : (struct (string * (float []) * (float [])) [])) : (struct │
00:00:51 #8251 [Verbose] > │ (string * (float []) * (float [])) []) = │
00:00:51 #8252 [Verbose] > │ v0 │
00:00:51 #8253 [Verbose] > │ and closure156 (v0 : UH14) () : UH14 = │
00:00:51 #8254 [Verbose] > │ v0 │
00:00:51 #8255 [Verbose] > │ and method25 (v0 : UH13, v1 : UH14) : UH14 = │
00:00:51 #8256 [Verbose] > │ match v0 with │
00:00:51 #8257 [Verbose] > │ | UH13_0(v2, v3, v4, v5) -> (* StreamCons *) │
00:00:51 #8258 [Verbose] > │ let v6 : UH13 = v5 () │
00:00:51 #8259 [Verbose] > │ let v7 : UH14 = method25(v6, v1) │
00:00:51 #8260 [Verbose] > │ let v8 : string = $"{v2}" │
00:00:51 #8261 [Verbose] > │ let v9 : (struct (string * (float []) * (float [])) []) = [|struct │
00:00:51 #8262 [Verbose] > │ (v8, v3, v4)|] │
00:00:51 #8263 [Verbose] > │ let v10 : (struct (string * (float []) * (float [])) []) = │
00:00:51 #8264 [Verbose] > │ method26(v9) │
00:00:51 #8265 [Verbose] > │ let v11 : string = "wave" │
00:00:51 #8266 [Verbose] > │ let v12 : string = "position (m)" │
00:00:51 #8267 [Verbose] > │ let v13 : string = "displacement (m)" │
00:00:51 #8268 [Verbose] > │ let v14 : (unit -> UH14) = closure156(v7) │
00:00:51 #8269 [Verbose] > │ UH14_0(v11, v12, v13, v10, v14) │
00:00:51 #8270 [Verbose] > │ | UH13_1 -> (* StreamNil *) │
00:00:51 #8271 [Verbose] > │ v1 │
00:00:51 #8272 [Verbose] > │ and method27 (v0 : UH14, v1 : UH15) : UH15 = │
00:00:51 #8273 [Verbose] > │ match v0 with │
00:00:51 #8274 [Verbose] > │ | UH14_0(v2, v3, v4, v5, v6) -> (* StreamCons *) │
00:00:51 #8275 [Verbose] > │ let v7 : UH14 = v6 () │
00:00:51 #8276 [Verbose] > │ let v8 : UH15 = method27(v7, v1) │
00:00:51 #8277 [Verbose] > │ UH15_0(v2, v3, v4, v5, v8) │
00:00:51 #8278 [Verbose] > │ | UH14_1 -> (* StreamNil *) │
00:00:51 #8279 [Verbose] > │ v1 │
00:00:51 #8280 [Verbose] > │ and method29 (v0 : UH15, v1 : int32) : int32 = │
00:00:51 #8281 [Verbose] > │ match v0 with │
00:00:51 #8282 [Verbose] > │ | UH15_0(v2, v3, v4, v5, v6) -> (* Cons *) │
00:00:51 #8283 [Verbose] > │ let v7 : int32 = v1 + 1 │
00:00:51 #8284 [Verbose] > │ method29(v6, v7) │
00:00:51 #8285 [Verbose] > │ | UH15_1 -> (* Nil *) │
00:00:51 #8286 [Verbose] > │ v1 │
00:00:51 #8287 [Verbose] > │ and method30 (v0 : (struct (string * string * string * (struct (string * │
00:00:51 #8288 [Verbose] > │ (float []) * (float [])) [])) []), v1 : UH15, v2 : int32) : int32 = │
00:00:51 #8289 [Verbose] > │ match v1 with │
00:00:51 #8290 [Verbose] > │ | UH15_0(v3, v4, v5, v6, v7) -> (* Cons *) │
00:00:51 #8291 [Verbose] > │ v0.[int v2] <- struct (v3, v4, v5, v6) │
00:00:51 #8292 [Verbose] > │ let v8 : int32 = v2 + 1 │
00:00:51 #8293 [Verbose] > │ method30(v0, v7, v8) │
00:00:51 #8294 [Verbose] > │ | UH15_1 -> (* Nil *) │
00:00:51 #8295 [Verbose] > │ v2 │
00:00:51 #8296 [Verbose] > │ and method28 (v0 : UH15) : (struct (string * string * string * (struct │
00:00:51 #8297 [Verbose] > │ (string * (float []) * (float [])) [])) []) = │
00:00:51 #8298 [Verbose] > │ let v1 : int32 = 0 │
00:00:51 #8299 [Verbose] > │ let v2 : int32 = method29(v0, v1) │
00:00:51 #8300 [Verbose] > │ let v3 : (struct (string * string * string * (struct (string * (float [ │
00:00:51 #8301 [Verbose] > │ ]) * (float [])) [])) []) = Array.zeroCreate<struct (string * string * │
00:00:51 #8302 [Verbose] > │ string * (struct (string * (float []) * (float [])) []))> (v2) │
00:00:51 #8303 [Verbose] > │ let v4 : int32 = 0 │
00:00:51 #8304 [Verbose] > │ let v5 : int32 = method30(v3, v0, v4) │
00:00:51 #8305 [Verbose] > │ v3 │
00:00:51 #8306 [Verbose] > │ and method0 () : (struct (string * string * string * (struct (string * │
00:00:51 #8307 [Verbose] > │ (float []) * (float [])) [])) []) = │
00:00:51 #8308 [Verbose] > │ let v0 : float = 0.0 │
00:00:51 #8309 [Verbose] > │ let v1 : (unit -> UH0) = closure0() │
00:00:51 #8310 [Verbose] > │ let v2 : UH0 = UH0_0(v0, v1) │
00:00:51 #8311 [Verbose] > │ let v3 : float = 0.0 │
00:00:51 #8312 [Verbose] > │ let v4 : float = 8.422578125E-06 │
00:00:51 #8313 [Verbose] > │ let v5 : float = 0.01 │
00:00:51 #8314 [Verbose] > │ let v6 : float = 0.0007224452478461068 │
00:00:51 #8315 [Verbose] > │ let v7 : float = 0.0 │
00:00:51 #8316 [Verbose] > │ let v8 : float = 0.0 │
00:00:51 #8317 [Verbose] > │ let v9 : float = 0.0 │
00:00:51 #8318 [Verbose] > │ let v10 : float = 0.0 │
00:00:51 #8319 [Verbose] > │ let v11 : float = 0.0 │
00:00:51 #8320 [Verbose] > │ let v12 : (unit -> UH1) = closure66() │
00:00:51 #8321 [Verbose] > │ let v13 : UH1 = UH1_0(v3, v4, v5, v6, v7, v8, v9, v10, v11, v12) │
00:00:51 #8322 [Verbose] > │ let v14 : UH2 = UH2_1 │
00:00:51 #8323 [Verbose] > │ let v15 : UH2 = method1(v13, v2, v14) │
00:00:51 #8324 [Verbose] > │ let v16 : UH13 = UH13_1 │
00:00:51 #8325 [Verbose] > │ let v17 : int32 = 0 │
00:00:51 #8326 [Verbose] > │ let struct (v18 : UH13, v19 : int32) = method23(v15, v16, v17) │
00:00:51 #8327 [Verbose] > │ let v20 : UH13 = UH13_1 │
00:00:51 #8328 [Verbose] > │ let v21 : UH13 = method24(v18, v20) │
00:00:51 #8329 [Verbose] > │ let v22 : UH14 = UH14_1 │
00:00:51 #8330 [Verbose] > │ let v23 : UH14 = method25(v21, v22) │
00:00:51 #8331 [Verbose] > │ let v24 : UH15 = UH15_1 │
00:00:51 #8332 [Verbose] > │ let v25 : UH15 = method27(v23, v24) │
00:00:51 #8333 [Verbose] > │ method28(v25) │
00:00:51 #8334 [Verbose] > │ method0() │
00:00:51 #8335 [Verbose] > │ │
00:00:51 #8336 [Verbose] > │ │
00:00:51 #8337 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:51 #8338 [Verbose] >
00:00:51 #8339 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:51 #8340 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:51 #8341 [Verbose] > │ ## end │
00:00:51 #8342 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 #8343 [Verbose] > [NbConvertApp] Converting notebook physics.dib.ipynb to html
00:00:53 #8344 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:00:53 #8345 [Verbose] > validate(nb)
00:00:54 #8346 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:00:54 #8347 [Verbose] > return _pygments_highlight(
00:00:57 #8348 [Verbose] > [NbConvertApp] Writing 2732783 bytes to physics.dib.html
00:00:58 #8349 [Debug] executeAsync / exitCode: 0 / output.Length: 570188
00:00:58 #8350 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: testing.dib
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: optionm'.dib
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: listm'.dib
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: math.dib
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: console.dib
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: am'.dib
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: common.dib
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: sm'.dib
00:00:00 #6 [Debug] parseDibCode / output: Spi / file: testing.dib
00:00:00 #4 [Debug] parseDibCode / output: Spi / file: common.dib
00:00:00 #7 [Debug] parseDibCode / output: Spi / file: console.dib
00:00:00 #4 [Debug] parseDibCode / output: Spi / file: sm'.dib
00:00:00 #5 [Debug] parseDibCode / output: Spi / file: math.dib
00:00:00 #4 [Debug] parseDibCode / output: Spi / file: listm'.dib
00:00:00 #9 [Debug] parseDibCode / output: Spi / file: am'.dib
00:00:00 #8 [Debug] parseDibCode / output: Spi / file: optionm'.dib
00:00:00 #12 [Debug] writeDibCode / output: Spi / path: util.dib
00:00:00 #12 [Debug] writeDibCode / output: Spi / path: rust.dib
00:00:00 #12 [Debug] writeDibCode / output: Spi / path: physics.dib
00:00:00 #12 [Debug] writeDibCode / output: Spi / path: benchmark.dib
00:00:00 #12 [Debug] writeDibCode / output: Spi / path: seq.dib
00:00:00 #12 [Debug] writeDibCode / output: Spi / path: stream.dib
00:00:00 #13 [Debug] parseDibCode / output: Spi / file: util.dib
00:00:00 #14 [Debug] parseDibCode / output: Spi / file: rust.dib
00:00:00 #16 [Debug] parseDibCode / output: Spi / file: benchmark.dib
00:00:00 #15 [Debug] parseDibCode / output: Spi / file: physics.dib
00:00:00 #18 [Debug] parseDibCode / output: Spi / file: stream.dib
00:00:00 #17 [Debug] parseDibCode / output: Spi / file: seq.dib
In [ ]:
{ . "$ScriptDir/../lib/math/build.ps1" } | Invoke-Block
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\lib\math
00:00:00 #4 [Verbose] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 #6 [Debug] runWithTimeoutAsync / timeout: 500
00:00:01 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805
00:00:01 #11 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 math.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:03 #12 [Verbose] >
00:00:04 #13 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 #14 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 #15 [Verbose] > │ # math │
00:00:04 #16 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:04 #17 [Verbose] >
00:00:04 #18 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:04 #19 [Verbose] > open testing
00:00:04 #20 [Verbose] > open rust_operators
00:00:07 #21 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0044-3396-9614-94cf6520450c\main.spi
00:00:10 #22 [Verbose] >
00:00:10 #23 [Verbose] > ╭─[ 6.01s - stdout ]───────────────────────────────────────────────────────────╮
00:00:10 #24 [Verbose] > │ () │
00:00:10 #25 [Verbose] > │ │
00:00:10 #26 [Verbose] > │ │
00:00:10 #27 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #28 [Verbose] >
00:00:10 #29 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #30 [Verbose] > inl types () =
00:00:10 #31 [Verbose] > global "[[<Fable.Core.Erase;
00:00:10 #32 [Verbose] > Fable.Core.Emit(\"num_complex::Complex<$0>\")>]] type num_complex_Complex<'T> =
00:00:10 #33 [Verbose] > class end"
00:00:10 #34 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"pyo3::types::PyModule\")>]]
00:00:10 #35 [Verbose] > type pyo3_types_PyModule = class end"
00:00:10 #36 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"pyo3::Bound<$0>\")>]] type
00:00:10 #37 [Verbose] > pyo3_Bound<'T> = class end"
00:00:10 #38 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"pyo3::Python\")>]] type
00:00:10 #39 [Verbose] > pyo3_Python = class end"
00:00:10 #40 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"pyo3::PyAny\")>]] type
00:00:10 #41 [Verbose] > pyo3_PyAny = class end"
00:00:10 #42 [Verbose] > global "[[<Fable.Core.Erase; Fable.Core.Emit(\"pyo3::PyErr\")>]] type
00:00:10 #43 [Verbose] > pyo3_PyErr = class end"
00:00:10 #44 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0044-3735-3534-3d12b50c6f1d\main.spi
00:00:10 #45 [Verbose] >
00:00:10 #46 [Verbose] > ╭─[ 268.79ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #47 [Verbose] > │ () │
00:00:10 #48 [Verbose] > │ │
00:00:10 #49 [Verbose] > │ │
00:00:10 #50 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #51 [Verbose] >
00:00:10 #52 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #53 [Verbose] > inl types () =
00:00:10 #54 [Verbose] > rust.types ()
00:00:10 #55 [Verbose] > sm'.types ()
00:00:10 #56 [Verbose] > types ()
00:00:10 #57 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0044-3761-6168-6d3f34c71657\main.spi
00:00:10 #58 [Verbose] >
00:00:10 #59 [Verbose] > ╭─[ 244.82ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #60 [Verbose] > │ () │
00:00:10 #61 [Verbose] > │ │
00:00:10 #62 [Verbose] > │ │
00:00:10 #63 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #64 [Verbose] >
00:00:10 #65 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:10 #66 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:10 #67 [Verbose] > │ ## complex │
00:00:10 #68 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #69 [Verbose] >
00:00:10 #70 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #71 [Verbose] > nominal complex t = $"num_complex_Complex<`t>"
00:00:10 #72 [Verbose] > nominal bound t = $"pyo3_Bound<`t>"
00:00:10 #73 [Verbose] > nominal python = $"pyo3_Python"
00:00:10 #74 [Verbose] > nominal pymodule = $"pyo3_types_PyModule"
00:00:10 #75 [Verbose] > nominal pyany = $"pyo3_PyAny"
00:00:10 #76 [Verbose] > nominal pyerr = $"pyo3_PyErr"
00:00:10 #77 [Verbose] >
00:00:10 #78 [Verbose] > inl complex forall t. ((re : t), (im : t)) : complex t =
00:00:10 #79 [Verbose] > inl re = join re
00:00:10 #80 [Verbose] > inl im = join im
00:00:10 #81 [Verbose] > !\($'"num_complex::Complex::new(!re, !im)"')
00:00:10 #82 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0044-3786-8665-8f74267595ec\main.spi
00:00:10 #83 [Verbose] >
00:00:10 #84 [Verbose] > ╭─[ 261.83ms - stdout ]────────────────────────────────────────────────────────╮
00:00:10 #85 [Verbose] > │ () │
00:00:10 #86 [Verbose] > │ │
00:00:10 #87 [Verbose] > │ │
00:00:10 #88 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:10 #89 [Verbose] >
00:00:10 #90 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:10 #91 [Verbose] > // // test
00:00:10 #92 [Verbose] > // // rust=
00:00:10 #93 [Verbose] >
00:00:10 #94 [Verbose] > types ()
00:00:10 #95 [Verbose] >
00:00:10 #96 [Verbose] > complex (0f64, 0f64)
00:00:10 #97 [Verbose] > |> sm'.format'
00:00:10 #98 [Verbose] > |> sm'.from_std_string
00:00:10 #99 [Verbose] > |> _assert_eq "0+0i"
00:00:10 #100 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0044-3813-1322-170d8fa344bc\main.spi
00:00:15 #101 [Verbose] >
00:00:15 #102 [Verbose] > ╭─[ 5.15s - return value ]─────────────────────────────────────────────────────╮
00:00:15 #103 [Verbose] > │ .rs output: │
00:00:15 #104 [Verbose] > │ │
00:00:15 #105 [Verbose] > │ │
00:00:15 #106 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #107 [Verbose] >
00:00:15 #108 [Verbose] > ╭─[ 5.16s - stdout ]───────────────────────────────────────────────────────────╮
00:00:16 #109 [Verbose] > │ │
00:00:16 #110 [Verbose] > │ .fsx: │
00:00:16 #111 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Func0<$0>")>] type Func0<'T> = class │
00:00:16 #112 [Verbose] > │ end │
00:00:16 #113 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Func1<$0, $1>")>] type Func0<'T, 'U> = │
00:00:16 #114 [Verbose] > │ class end │
00:00:16 #115 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Box<$0>")>] type Box<'T> = class end │
00:00:16 #116 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("dyn $0")>] type Dyn<'T> = class end │
00:00:16 #117 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn() -> $0")>] type Fn<'T> = class end │
00:00:16 #118 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn()")>] type FnUnit = class end │
00:00:16 #119 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("FnOnce() -> $0")>] type FnOnce<'T> = │
00:00:16 #120 [Verbose] > │ class end │
00:00:16 #121 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn($0, $1)")>] type ActionFn2<'T, 'U> = │
00:00:16 #122 [Verbose] > │ class end │
00:00:16 #123 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("impl $0")>] type Impl<'T> = class end │
00:00:16 #124 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("mut $0")>] type Mut<'T> = class end │
00:00:16 #125 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&$0")>] type Ref<'T> = class end │
00:00:16 #126 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&'static $0")>] type StaticRef<'T> = │
00:00:16 #127 [Verbose] > │ class end │
00:00:16 #128 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("MutCell<$0>")>] type MutCell<'T> = │
00:00:16 #129 [Verbose] > │ class end │
00:00:16 #130 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::any::Any")>] type std_any_Any = │
00:00:16 #131 [Verbose] > │ class end │
00:00:16 #132 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::cell::RefCell<$0>")>] type │
00:00:16 #133 [Verbose] > │ std_cell_RefCell<'T> = class end │
00:00:16 #134 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::pin::Pin<$0>")>] type │
00:00:16 #135 [Verbose] > │ std_pin_Pin<'T> = class end │
00:00:16 #136 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::rc::Rc<$0>")>] type std_rc_Rc<'T> │
00:00:16 #137 [Verbose] > │ = class end │
00:00:16 #138 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::rc::Weak<$0>")>] type │
00:00:16 #139 [Verbose] > │ std_rc_Weak<'T> = class end │
00:00:16 #140 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::sync::Arc<$0>")>] type │
00:00:16 #141 [Verbose] > │ std_sync_Arc<'T> = class end │
00:00:16 #142 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("str")>] type Str = class end │
00:00:16 #143 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("base64::DecodeError")>] type │
00:00:16 #144 [Verbose] > │ base64_DecodeError = class end │
00:00:16 #145 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("borsh::io::Error")>] type │
00:00:16 #146 [Verbose] > │ borsh_io_Error = class end │
00:00:16 #147 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("js_sys::JsString")>] type │
00:00:16 #148 [Verbose] > │ js_sys_JsString = class end │
00:00:16 #149 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_json::Error")>] type │
00:00:16 #150 [Verbose] > │ serde_json_Error = class end │
00:00:16 #151 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_json::Value")>] type │
00:00:16 #152 [Verbose] > │ serde_json_Value = class end │
00:00:16 #153 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_wasm_bindgen::Error")>] type │
00:00:16 #154 [Verbose] > │ serde_wasm_bindgen_Error = class end │
00:00:16 #155 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::str::Utf8Error")>] type │
00:00:16 #156 [Verbose] > │ std_str_Utf8Error = class end │
00:00:16 #157 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>] type │
00:00:16 #158 [Verbose] > │ std_string_String = class end │
00:00:16 #159 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("num_complex::Complex<$0>")>] type │
00:00:16 #160 [Verbose] > │ num_complex_Complex<'T> = class end │
00:00:16 #161 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::types::PyModule")>] type │
00:00:16 #162 [Verbose] > │ pyo3_types_PyModule = class end │
00:00:16 #163 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::Bound<$0>")>] type pyo3_Bound<'T> │
00:00:16 #164 [Verbose] > │ = class end │
00:00:16 #165 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::Python")>] type pyo3_Python = │
00:00:16 #166 [Verbose] > │ class end │
00:00:16 #167 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::PyAny")>] type pyo3_PyAny = class │
00:00:16 #168 [Verbose] > │ end │
00:00:16 #169 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::PyErr")>] type pyo3_PyErr = class │
00:00:16 #170 [Verbose] > │ end │
00:00:16 #171 [Verbose] > │ let rec method1 () : float = │
00:00:16 #172 [Verbose] > │ 0.0 │
00:00:16 #173 [Verbose] > │ and method2 () : float = │
00:00:16 #174 [Verbose] > │ 0.0 │
00:00:16 #175 [Verbose] > │ and method3 (v0 : std_string_String) : std_string_String = │
00:00:16 #176 [Verbose] > │ v0 │
00:00:16 #177 [Verbose] > │ and method4 (v0 : bool) : bool = │
00:00:16 #178 [Verbose] > │ v0 │
00:00:16 #179 [Verbose] > │ and method0 () : unit = │
00:00:16 #180 [Verbose] > │ let v0 : float = method1() │
00:00:16 #181 [Verbose] > │ let v1 : float = method2() │
00:00:16 #182 [Verbose] > │ let v2 : string = "num_complex::Complex::new(v0, v1)" │
00:00:16 #183 [Verbose] > │ let v3 : num_complex_Complex<float> = │
00:00:16 #184 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v2 │
00:00:16 #185 [Verbose] > │ let v4 : string = @$"format!(""{{}}"", $0)" │
00:00:16 #186 [Verbose] > │ let v5 : std_string_String = Fable.Core.RustInterop.emitRustExpr v3 v4 │
00:00:16 #187 [Verbose] > │ let v6 : std_string_String = method3(v5) │
00:00:16 #188 [Verbose] > │ let v7 : string = "fable_library_rust::String_::fromString(v6)" │
00:00:16 #189 [Verbose] > │ let v8 : string = Fable.Core.RustInterop.emitRustExpr () v7 │
00:00:16 #190 [Verbose] > │ let v10 : bool = v8 = "0+0i" │
00:00:16 #191 [Verbose] > │ let v12 : bool = │
00:00:16 #192 [Verbose] > │ if v10 then │
00:00:16 #193 [Verbose] > │ true │
00:00:16 #194 [Verbose] > │ else │
00:00:16 #195 [Verbose] > │ method4(v10) │
00:00:16 #196 [Verbose] > │ let v13 : string = "0+0i" │
00:00:16 #197 [Verbose] > │ let v14 : string = $"__expect / actual: %A{v8} / expected: %A{v13}" │
00:00:16 #198 [Verbose] > │ let v15 : bool = v12 = false │
00:00:16 #199 [Verbose] > │ if v15 then │
00:00:16 #200 [Verbose] > │ failwith<unit> v14 │
00:00:16 #201 [Verbose] > │ method0() │
00:00:16 #202 [Verbose] > │ │
00:00:16 #203 [Verbose] > │ .rs: │
00:00:16 #204 [Verbose] > │ #![allow(dead_code,)] │
00:00:16 #205 [Verbose] > │ #![allow(non_camel_case_types,)] │
00:00:16 #206 [Verbose] > │ #![allow(non_snake_case,)] │
00:00:16 #207 [Verbose] > │ #![allow(non_upper_case_globals,)] │
00:00:16 #208 [Verbose] > │ #![allow(unreachable_code,)] │
00:00:16 #209 [Verbose] > │ #![allow(unused_attributes,)] │
00:00:16 #210 [Verbose] > │ #![allow(unused_imports,)] │
00:00:16 #211 [Verbose] > │ #![allow(unused_macros,)] │
00:00:16 #212 [Verbose] > │ #![allow(unused_parens,)] │
00:00:16 #213 [Verbose] > │ #![allow(unused_variables,)] │
00:00:16 #214 [Verbose] > │ mod module_ccfa04bf { │
00:00:16 #215 [Verbose] > │ pub mod Spiral_eval { │
00:00:16 #216 [Verbose] > │ use super::*; │
00:00:16 #217 [Verbose] > │ use fable_library_rust::Native_::on_startup; │
00:00:16 #218 [Verbose] > │ use fable_library_rust::String_::sprintf; │
00:00:16 #219 [Verbose] > │ use fable_library_rust::String_::string; │
00:00:16 #220 [Verbose] > │ pub fn method1() -> f64 { 0.0_f64 } │
00:00:16 #221 [Verbose] > │ pub fn method2() -> f64 { 0.0_f64 } │
00:00:16 #222 [Verbose] > │ pub fn method3(v0: std::string::String) -> std::string::String { v0 │
00:00:16 #223 [Verbose] > │ } │
00:00:16 #224 [Verbose] > │ pub fn method4(v0: bool) -> bool { v0 } │
00:00:16 #225 [Verbose] > │ pub fn method0() { │
00:00:16 #226 [Verbose] > │ let v0: f64 = Spiral_eval::method1(); │
00:00:16 #227 [Verbose] > │ let v1: f64 = Spiral_eval::method2(); │
00:00:16 #228 [Verbose] > │ let v3: num_complex::Complex<f64> = │
00:00:16 #229 [Verbose] > │ num_complex::Complex::new(v0, v1); │
00:00:16 #230 [Verbose] > │ let v6: std::string::String = │
00:00:16 #231 [Verbose] > │ Spiral_eval::method3(format!("{}", v3)); │
00:00:16 #232 [Verbose] > │ let v8: string = fable_library_rust::String_::fromString(v6); │
00:00:16 #233 [Verbose] > │ let v10: bool = v8.clone() == string("0+0i"); │
00:00:16 #234 [Verbose] > │ if (if v10 { true } else { Spiral_eval::method4(v10) }) == false │
00:00:16 #235 [Verbose] > │ { │
00:00:16 #236 [Verbose] > │ panic!("{}", │
00:00:16 #237 [Verbose] > │ sprintf!("__expect / actual: {:?} / expected: {:?}", │
00:00:16 #238 [Verbose] > │ v8, string("0+0i"))); │
00:00:16 #239 [Verbose] > │ } │
00:00:16 #240 [Verbose] > │ } │
00:00:16 #241 [Verbose] > │ on_startup!(Spiral_eval::method0()); │
00:00:16 #242 [Verbose] > │ } │
00:00:16 #243 [Verbose] > │ } │
00:00:16 #244 [Verbose] > │ pub use module_ccfa04bf::*; │
00:00:16 #245 [Verbose] > │ │
00:00:16 #246 [Verbose] > │ │
00:00:16 #247 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #248 [Verbose] >
00:00:16 #249 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #250 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #251 [Verbose] > │ ## run_test │
00:00:16 #252 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #253 [Verbose] >
00:00:16 #254 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #255 [Verbose] > inl re forall t. (c : complex t) : t =
00:00:16 #256 [Verbose] > inl c = join c
00:00:16 #257 [Verbose] > !\($'"!c.re"')
00:00:16 #258 [Verbose] >
00:00:16 #259 [Verbose] > inl im forall t. (c : complex t) : t =
00:00:16 #260 [Verbose] > inl c = join c
00:00:16 #261 [Verbose] > !\($'"!c.im"')
00:00:16 #262 [Verbose] >
00:00:16 #263 [Verbose] > inl complex_unbox forall t. (c : complex t) =
00:00:16 #264 [Verbose] > c |> re, c |> im
00:00:16 #265 [Verbose] >
00:00:16 #266 [Verbose] > inl powc forall t. (s : complex t) (c : complex t) : complex t =
00:00:16 #267 [Verbose] > !\($'"num_complex::Complex::powc(!c, !s)"')
00:00:16 #268 [Verbose] >
00:00:16 #269 [Verbose] > inl complex_sub forall t. (a : complex t) (b : complex t) : complex t =
00:00:16 #270 [Verbose] > !\($'"!a - !b"')
00:00:16 #271 [Verbose] >
00:00:16 #272 [Verbose] > inl complex_mult forall t. (a : complex t) (b : complex t) : complex t =
00:00:16 #273 [Verbose] > !\($'"!a * !b"')
00:00:16 #274 [Verbose] >
00:00:16 #275 [Verbose] > inl complex_div forall t. (a : complex t) (b : complex t) : complex t =
00:00:16 #276 [Verbose] > !\($'"!a / !b"')
00:00:16 #277 [Verbose] >
00:00:16 #278 [Verbose] > inl complex_sin forall t. (c : complex t) : complex t =
00:00:16 #279 [Verbose] > !\($'"!c.sin()"')
00:00:16 #280 [Verbose] >
00:00:16 #281 [Verbose] > inl conj forall t. (c : complex t) : complex t =
00:00:16 #282 [Verbose] > !\($'"!c.conj()"')
00:00:16 #283 [Verbose] >
00:00:16 #284 [Verbose] > inl module_from_code (py : python) (code : string) : resultm.result' (bound
00:00:16 #285 [Verbose] > pymodule) pyerr =
00:00:16 #286 [Verbose] > inl py = join py
00:00:16 #287 [Verbose] > inl code = code |> sm'.as_str
00:00:16 #288 [Verbose] > !\($'"pyo3::types::PyModule::from_code_bound(!py, !code, \\"\\", \\"\\")"')
00:00:16 #289 [Verbose] >
00:00:16 #290 [Verbose] > inl use_pyanymethods () =
00:00:16 #291 [Verbose] > global "Fable.Core.RustInterop.emitRustExpr () \");\nuse
00:00:16 #292 [Verbose] > pyo3::prelude::PyAnyMethods;\n//\""
00:00:16 #293 [Verbose] >
00:00:16 #294 [Verbose] > inl getattr (attr : string) (module : bound pymodule) : resultm.result' (bound
00:00:16 #295 [Verbose] > pyany) pyerr =
00:00:16 #296 [Verbose] > inl attr = attr |> sm'.as_str
00:00:16 #297 [Verbose] > inl module = join module
00:00:16 #298 [Verbose] > use_pyanymethods ()
00:00:16 #299 [Verbose] > !\($'"!module.getattr(!attr)"')
00:00:16 #300 [Verbose] >
00:00:16 #301 [Verbose] > inl call forall t. (args : t) (module : bound pyany) : resultm.result' (bound
00:00:16 #302 [Verbose] > pyany) pyerr =
00:00:16 #303 [Verbose] > inl args = join args
00:00:16 #304 [Verbose] > inl module = join module
00:00:16 #305 [Verbose] > !\($'"pyo3::prelude::PyAnyMethods::call(&!module, (*(*!args).0, ()),
00:00:16 #306 [Verbose] > None)"')
00:00:16 #307 [Verbose] >
00:00:16 #308 [Verbose] > inl extract forall t. (result : bound pyany) : resultm.result' t pyerr =
00:00:16 #309 [Verbose] > inl result = join result
00:00:16 #310 [Verbose] > use_pyanymethods ()
00:00:16 #311 [Verbose] > !\($'"!result.extract()"')
00:00:16 #312 [Verbose] >
00:00:16 #313 [Verbose] > inl eval py code args =
00:00:16 #314 [Verbose] > inl code =
00:00:16 #315 [Verbose] > code
00:00:16 #316 [Verbose] > |> module_from_code py
00:00:16 #317 [Verbose] > |> resultm.unwrap'
00:00:16 #318 [Verbose] > inl fn =
00:00:16 #319 [Verbose] > code
00:00:16 #320 [Verbose] > |> getattr "fn"
00:00:16 #321 [Verbose] > |> fun x => x : _ _ pyerr
00:00:16 #322 [Verbose] > |> resultm.unwrap'
00:00:16 #323 [Verbose] >
00:00:16 #324 [Verbose] > fn
00:00:16 #325 [Verbose] > |> call args
00:00:16 #326 [Verbose] > |> resultm.unwrap'
00:00:16 #327 [Verbose] > |> extract
00:00:16 #328 [Verbose] > |> fun x => x : _ _ pyerr
00:00:16 #329 [Verbose] > |> resultm.unwrap'
00:00:16 #330 [Verbose] > |> complex
00:00:16 #331 [Verbose] > |> Ok
00:00:16 #332 [Verbose] > |> fun x => x : _ _ pyerr
00:00:16 #333 [Verbose] > |> resultm.box
00:00:16 #334 [Verbose] >
00:00:16 #335 [Verbose] > inl gamma_ py s =
00:00:16 #336 [Verbose] > inl code =
00:00:16 #337 [Verbose] > ;[[
00:00:16 #338 [Verbose] > "import mpmath"
00:00:16 #339 [Verbose] > "def fn(s, _):"
00:00:16 #340 [Verbose] > " s = complex(*s)"
00:00:16 #341 [Verbose] > " s = mpmath.gamma(s)"
00:00:16 #342 [Verbose] > " return (s.real, s.imag)"
00:00:16 #343 [Verbose] > ]]
00:00:16 #344 [Verbose] > inl code = (a code : _ i32 _) |> sm'.concat_array_trailing "\n"
00:00:16 #345 [Verbose] >
00:00:16 #346 [Verbose] > inl s = new_pair (s |> re) (s |> im)
00:00:16 #347 [Verbose] > inl args = new_pair s ()
00:00:16 #348 [Verbose] >
00:00:16 #349 [Verbose] > eval py code args
00:00:16 #350 [Verbose] >
00:00:16 #351 [Verbose] > inl zeta_ py s =
00:00:16 #352 [Verbose] > inl code =
00:00:16 #353 [Verbose] > ;[[
00:00:16 #354 [Verbose] > "import mpmath"
00:00:16 #355 [Verbose] > "def fn(s, _):"
00:00:16 #356 [Verbose] > " s = complex(*s)"
00:00:16 #357 [Verbose] > " try:"
00:00:16 #358 [Verbose] > " s = mpmath.zeta(s)"
00:00:16 #359 [Verbose] > " except ValueError as e:"
00:00:16 #360 [Verbose] > " if s.real == 1:"
00:00:16 #361 [Verbose] > " s = complex(float('inf'), 0)"
00:00:16 #362 [Verbose] > " return (s.real, s.imag)"
00:00:16 #363 [Verbose] > ]]
00:00:16 #364 [Verbose] > inl code = (a code : _ i32 _) |> sm'.concat_array_trailing "\n"
00:00:16 #365 [Verbose] >
00:00:16 #366 [Verbose] > inl s = new_pair (s |> re) (s |> im)
00:00:16 #367 [Verbose] > inl args = new_pair s ()
00:00:16 #368 [Verbose] >
00:00:16 #369 [Verbose] > eval py code args
00:00:16 #370 [Verbose] >
00:00:16 #371 [Verbose] > inl run_test closure_fix (fn : (complex f64 -> complex f64) * (complex f64 ->
00:00:16 #372 [Verbose] > complex f64) -> ()) =
00:00:16 #373 [Verbose] > inl fn_ (py : python) : resultm.result' () pyerr =
00:00:16 #374 [Verbose] > inl zeta = fun (s : complex f64) =>
00:00:16 #375 [Verbose] > inl s = zeta_ py s |> resultm.unwrap'
00:00:16 #376 [Verbose] > s
00:00:16 #377 [Verbose] > inl gamma = fun (s : complex f64) =>
00:00:16 #378 [Verbose] > inl s = gamma_ py s |> resultm.unwrap'
00:00:16 #379 [Verbose] > s
00:00:16 #380 [Verbose] > fn (zeta, gamma)
00:00:16 #381 [Verbose] >
00:00:16 #382 [Verbose] > Ok ()
00:00:16 #383 [Verbose] > |> resultm.box
00:00:16 #384 [Verbose] >
00:00:16 #385 [Verbose] > join
00:00:16 #386 [Verbose] > !\($'"pyo3::prepare_freethreaded_python()"') : ()
00:00:16 #387 [Verbose] >
00:00:16 #388 [Verbose] > !\($'"let __result = pyo3::Python::with_gil(|py| -> pyo3::PyResult<()> {
00:00:16 #389 [Verbose] > //"')
00:00:16 #390 [Verbose] >
00:00:16 #391 [Verbose] > inl x = fn_
00:00:16 #392 [Verbose] > let x' = x (!\($'"py"') : python)
00:00:16 #393 [Verbose] > inl x' = join x'
00:00:16 #394 [Verbose] >
00:00:16 #395 [Verbose] > x' |> rust.fix_closure closure_fix
00:00:16 #396 [Verbose] >
00:00:16 #397 [Verbose] > (!\($'"__result"') : _ () pyerr)
00:00:16 #398 [Verbose] > |> resultm.unwrap'
00:00:16 #399 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0044-4338-3829-3265f4c3c53d\main.spi
00:00:16 #400 [Verbose] >
00:00:16 #401 [Verbose] > ╭─[ 276.77ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #402 [Verbose] > │ () │
00:00:16 #403 [Verbose] > │ │
00:00:16 #404 [Verbose] > │ │
00:00:16 #405 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #406 [Verbose] >
00:00:16 #407 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:16 #408 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:16 #409 [Verbose] > │ ## test_zeta_at_known_values_ │
00:00:16 #410 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #411 [Verbose] >
00:00:16 #412 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #413 [Verbose] > inl test_zeta_at_known_values_ () = run_test (3u8, 2u8) fun zeta, gamma =>
00:00:16 #414 [Verbose] > ;[[
00:00:16 #415 [Verbose] > complex (2, 0), pi ** 2 / 6
00:00:16 #416 [Verbose] > complex (-1, 0), -1 / 12
00:00:16 #417 [Verbose] > ]]
00:00:16 #418 [Verbose] > |> fun x => a x : _ i32 _
00:00:16 #419 [Verbose] > |> am.iter fun s, e =>
00:00:16 #420 [Verbose] > inl result = zeta s
00:00:16 #421 [Verbose] >
00:00:16 #422 [Verbose] > result
00:00:16 #423 [Verbose] > |> im
00:00:16 #424 [Verbose] > |> _assert_eq 0f64
00:00:16 #425 [Verbose] >
00:00:16 #426 [Verbose] > (result |> re) - e |> abs
00:00:16 #427 [Verbose] > |> _assert_lt 0.0001
00:00:16 #428 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0044-4365-6511-6bd088fc780a\main.spi
00:00:16 #429 [Verbose] >
00:00:16 #430 [Verbose] > ╭─[ 248.55ms - stdout ]────────────────────────────────────────────────────────╮
00:00:16 #431 [Verbose] > │ () │
00:00:16 #432 [Verbose] > │ │
00:00:16 #433 [Verbose] > │ │
00:00:16 #434 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:16 #435 [Verbose] >
00:00:16 #436 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:16 #437 [Verbose] > // // test
00:00:16 #438 [Verbose] > // // rust=
00:00:16 #439 [Verbose] > // // print_code=false
00:00:16 #440 [Verbose] >
00:00:16 #441 [Verbose] >
00:00:16 #442 [Verbose] > types ()
00:00:16 #443 [Verbose] > test_zeta_at_known_values_ ()
00:00:16 #444 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0044-4390-9032-9e614c71a36a\main.spi
00:00:23 #445 [Verbose] >
00:00:23 #446 [Verbose] >
00:00:23 #447 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:23 #448 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:23 #449 [Verbose] > │ ## test_zeta_at_2_minus2 │
00:00:23 #450 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #451 [Verbose] >
00:00:23 #452 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 #453 [Verbose] > inl test_zeta_at_2_minus2 () = run_test (5u8, 4u8) fun zeta, gamma =>
00:00:23 #454 [Verbose] > inl s = complex (2f64, -2f64)
00:00:23 #455 [Verbose] > inl result = zeta s
00:00:23 #456 [Verbose] >
00:00:23 #457 [Verbose] > ((result |> re) - 0.8673f64) |> abs
00:00:23 #458 [Verbose] > |> _assert_lt 0.001f64
00:00:23 #459 [Verbose] >
00:00:23 #460 [Verbose] > ((result |> im) - 0.2750f64) |> abs
00:00:23 #461 [Verbose] > |> _assert_lt 0.001f64
00:00:23 #462 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0044-5054-5413-59a6e61ab921\main.spi
00:00:23 #463 [Verbose] >
00:00:23 #464 [Verbose] > ╭─[ 196.34ms - stdout ]────────────────────────────────────────────────────────╮
00:00:23 #465 [Verbose] > │ () │
00:00:23 #466 [Verbose] > │ │
00:00:23 #467 [Verbose] > │ │
00:00:23 #468 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:23 #469 [Verbose] >
00:00:23 #470 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:23 #471 [Verbose] > // // test
00:00:23 #472 [Verbose] > // // rust=
00:00:23 #473 [Verbose] > // // print_code=false
00:00:23 #474 [Verbose] >
00:00:23 #475 [Verbose] > types ()
00:00:23 #476 [Verbose] > test_zeta_at_2_minus2 ()
00:00:23 #477 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0044-5073-7389-7e9700c75ebe\main.spi
00:00:29 #478 [Verbose] >
00:00:29 #479 [Verbose] >
00:00:29 #480 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:29 #481 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:29 #482 [Verbose] > │ ## test_trivial_zero_at_negative_even___ │
00:00:29 #483 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 #484 [Verbose] >
00:00:29 #485 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:29 #486 [Verbose] > inl test_trivial_zero_at_negative_even___ () = run_test (2u8, 1u8) fun zeta,
00:00:29 #487 [Verbose] > gamma =>
00:00:29 #488 [Verbose] > (join listm'.init_series -2f64 -40 -2)
00:00:29 #489 [Verbose] > |> listm.iter fun n =>
00:00:29 #490 [Verbose] > inl s = complex (n, 0)
00:00:29 #491 [Verbose] > inl result = zeta s
00:00:29 #492 [Verbose] >
00:00:29 #493 [Verbose] > result
00:00:29 #494 [Verbose] > |> re
00:00:29 #495 [Verbose] > |> _assert_eq 0
00:00:29 #496 [Verbose] >
00:00:29 #497 [Verbose] > result
00:00:29 #498 [Verbose] > |> im
00:00:29 #499 [Verbose] > |> _assert_eq 0
00:00:29 #500 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0044-5690-9092-93fa0af61ca1\main.spi
00:00:29 #501 [Verbose] >
00:00:29 #502 [Verbose] > ╭─[ 201.59ms - stdout ]────────────────────────────────────────────────────────╮
00:00:29 #503 [Verbose] > │ () │
00:00:29 #504 [Verbose] > │ │
00:00:29 #505 [Verbose] > │ │
00:00:29 #506 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:29 #507 [Verbose] >
00:00:29 #508 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:29 #509 [Verbose] > // // test
00:00:29 #510 [Verbose] > // // rust=
00:00:29 #511 [Verbose] > // // print_code=false
00:00:29 #512 [Verbose] >
00:00:29 #513 [Verbose] > types ()
00:00:29 #514 [Verbose] > test_trivial_zero_at_negative_even___ ()
00:00:29 #515 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0044-5711-1128-11090f35fe97\main.spi
00:00:35 #516 [Verbose] >
00:00:35 #517 [Verbose] >
00:00:35 #518 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:35 #519 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:35 #520 [Verbose] > │ ## test_non_trivial_zero___ │
00:00:35 #521 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 #522 [Verbose] >
00:00:35 #523 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:35 #524 [Verbose] > inl test_non_trivial_zero___ () = run_test (3u8, 2u8) fun zeta, gamma =>
00:00:35 #525 [Verbose] > ;[[
00:00:35 #526 [Verbose] > complex (0.5, 14.134725)
00:00:35 #527 [Verbose] > complex (0.5, 21.022040)
00:00:35 #528 [Verbose] > complex (0.5, 25.010857)
00:00:35 #529 [Verbose] > complex (0.5, 30.424876)
00:00:35 #530 [Verbose] > complex (0.5, 32.935062)
00:00:35 #531 [Verbose] > complex (0.5, 37.586178)
00:00:35 #532 [Verbose] > ]]
00:00:35 #533 [Verbose] > |> fun x => a x : _ i32 _
00:00:35 #534 [Verbose] > |> am.iter fun x =>
00:00:35 #535 [Verbose] > inl result = zeta x
00:00:35 #536 [Verbose] > result |> re |> abs |> _assert_lt 0.0001
00:00:35 #537 [Verbose] > result |> im |> abs |> _assert_lt 0.0001
00:00:35 #538 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0045-0294-9483-9c9072d76512\main.spi
00:00:35 #539 [Verbose] >
00:00:35 #540 [Verbose] > ╭─[ 218.83ms - stdout ]────────────────────────────────────────────────────────╮
00:00:35 #541 [Verbose] > │ () │
00:00:35 #542 [Verbose] > │ │
00:00:35 #543 [Verbose] > │ │
00:00:35 #544 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:35 #545 [Verbose] >
00:00:35 #546 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:35 #547 [Verbose] > // // test
00:00:35 #548 [Verbose] > // // rust=
00:00:35 #549 [Verbose] > // // print_code=false
00:00:35 #550 [Verbose] >
00:00:35 #551 [Verbose] > types ()
00:00:35 #552 [Verbose] > test_non_trivial_zero___ ()
00:00:36 #553 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0045-0317-1758-1d347cf4ef17\main.spi
00:00:41 #554 [Verbose] >
00:00:41 #555 [Verbose] >
00:00:41 #556 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:41 #557 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:41 #558 [Verbose] > │ ## test_real_part_greater_than_one___ │
00:00:41 #559 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:41 #560 [Verbose] >
00:00:41 #561 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:41 #562 [Verbose] > inl test_real_part_greater_than_one___ () = run_test (3u8, 2u8) fun zeta, gamma
00:00:41 #563 [Verbose] > =>
00:00:41 #564 [Verbose] > inl points = ;[[2; 3; 4; 5; 10; 20; 50]]
00:00:41 #565 [Verbose] > (a points : _ i32 _)
00:00:41 #566 [Verbose] > |> am.iter fun point =>
00:00:41 #567 [Verbose] > inl s = complex (point, 0)
00:00:41 #568 [Verbose] > inl result = zeta s
00:00:41 #569 [Verbose] > result |> re |> _assert_gt 0
00:00:41 #570 [Verbose] > result |> im |> _assert_eq 0
00:00:41 #571 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0045-0900-0043-06a635dfef75\main.spi
00:00:41 #572 [Verbose] >
00:00:41 #573 [Verbose] > ╭─[ 202.82ms - stdout ]────────────────────────────────────────────────────────╮
00:00:41 #574 [Verbose] > │ () │
00:00:41 #575 [Verbose] > │ │
00:00:41 #576 [Verbose] > │ │
00:00:41 #577 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:41 #578 [Verbose] >
00:00:41 #579 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:41 #580 [Verbose] > // // test
00:00:41 #581 [Verbose] > // // rust=
00:00:41 #582 [Verbose] > // // print_code=false
00:00:41 #583 [Verbose] >
00:00:41 #584 [Verbose] > types ()
00:00:41 #585 [Verbose] > test_real_part_greater_than_one___ ()
00:00:42 #586 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0045-0920-2078-2799b18c8591\main.spi
00:00:47 #587 [Verbose] >
00:00:47 #588 [Verbose] >
00:00:47 #589 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:47 #590 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:47 #591 [Verbose] > │ ## test_zeta_at_1___ │
00:00:47 #592 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 #593 [Verbose] >
00:00:47 #594 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:47 #595 [Verbose] > inl test_zeta_at_1___ () = run_test (5u8, 4u8) fun zeta, gamma =>
00:00:47 #596 [Verbose] > inl s = complex (1, 0)
00:00:47 #597 [Verbose] > inl result = zeta s
00:00:47 #598 [Verbose] > result |> re |> _assert_eq limit.max
00:00:47 #599 [Verbose] > result |> im |> _assert_eq 0
00:00:47 #600 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0045-1471-7157-776b6c42d975\main.spi
00:00:47 #601 [Verbose] >
00:00:47 #602 [Verbose] > ╭─[ 209.18ms - stdout ]────────────────────────────────────────────────────────╮
00:00:47 #603 [Verbose] > │ () │
00:00:47 #604 [Verbose] > │ │
00:00:47 #605 [Verbose] > │ │
00:00:47 #606 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:47 #607 [Verbose] >
00:00:47 #608 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:47 #609 [Verbose] > // // test
00:00:47 #610 [Verbose] > // // rust=
00:00:47 #611 [Verbose] > // // print_code=false
00:00:47 #612 [Verbose] >
00:00:47 #613 [Verbose] > types ()
00:00:47 #614 [Verbose] > test_zeta_at_1___ ()
00:00:47 #615 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0045-1492-9264-98c6eb9e0608\main.spi
00:00:53 #616 [Verbose] >
00:00:53 #617 [Verbose] >
00:00:53 #618 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:53 #619 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:53 #620 [Verbose] > │ ## test_symmetry_across_real_axis___ │
00:00:53 #621 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 #622 [Verbose] >
00:00:53 #623 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:53 #624 [Verbose] > inl test_symmetry_across_real_axis___ () = run_test (6u8, 5u8) fun zeta, gamma
00:00:53 #625 [Verbose] > =>
00:00:53 #626 [Verbose] > inl s = complex (2, 10)
00:00:53 #627 [Verbose] > inl result_positive_im = zeta s
00:00:53 #628 [Verbose] > inl result_negative_im = complex (s |> re, s |> im |> (~-)) |> zeta
00:00:53 #629 [Verbose] > inl conj = result_negative_im |> conj
00:00:53 #630 [Verbose] > result_positive_im |> re |> _assert_eq (conj |> re)
00:00:53 #631 [Verbose] > result_positive_im |> im |> _assert_eq (conj |> im)
00:00:53 #632 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0045-2040-4036-4f22fd7244c3\main.spi
00:00:53 #633 [Verbose] >
00:00:53 #634 [Verbose] > ╭─[ 209.23ms - stdout ]────────────────────────────────────────────────────────╮
00:00:53 #635 [Verbose] > │ () │
00:00:53 #636 [Verbose] > │ │
00:00:53 #637 [Verbose] > │ │
00:00:53 #638 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:53 #639 [Verbose] >
00:00:53 #640 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:53 #641 [Verbose] > // // test
00:00:53 #642 [Verbose] > // // rust=
00:00:53 #643 [Verbose] > // // print_code=false
00:00:53 #644 [Verbose] >
00:00:53 #645 [Verbose] > types ()
00:00:53 #646 [Verbose] > test_symmetry_across_real_axis___ ()
00:00:53 #647 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0045-2061-6142-6f4297b6eeac\main.spi
00:00:59 #648 [Verbose] >
00:00:59 #649 [Verbose] >
00:00:59 #650 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:59 #651 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:59 #652 [Verbose] > │ ## test_behavior_near_origin___ │
00:00:59 #653 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:59 #654 [Verbose] >
00:00:59 #655 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:59 #656 [Verbose] > inl test_behavior_near_origin___ () = run_test (5u8, 4u8) fun zeta, gamma =>
00:00:59 #657 [Verbose] > inl s = complex (0.01, 0.01)
00:00:59 #658 [Verbose] > inl result = zeta s
00:00:59 #659 [Verbose] > result |> re |> _assert_lt limit.max
00:00:59 #660 [Verbose] > result |> im |> _assert_lt limit.max
00:00:59 #661 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0045-2635-3508-35d5655df291\main.spi
00:00:59 #662 [Verbose] >
00:00:59 #663 [Verbose] > ╭─[ 199.34ms - stdout ]────────────────────────────────────────────────────────╮
00:00:59 #664 [Verbose] > │ () │
00:00:59 #665 [Verbose] > │ │
00:00:59 #666 [Verbose] > │ │
00:00:59 #667 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:59 #668 [Verbose] >
00:00:59 #669 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:59 #670 [Verbose] > // // test
00:00:59 #671 [Verbose] > // // rust=
00:00:59 #672 [Verbose] > // // print_code=false
00:00:59 #673 [Verbose] >
00:00:59 #674 [Verbose] > types ()
00:00:59 #675 [Verbose] > test_behavior_near_origin___ ()
00:00:59 #676 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0045-2655-5509-57675a110d55\main.spi
00:01:04 #677 [Verbose] >
00:01:04 #678 [Verbose] >
00:01:04 #679 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:04 #680 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:04 #681 [Verbose] > │ ## test_zeta_at_minus_1 │
00:01:04 #682 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:04 #683 [Verbose] >
00:01:04 #684 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:04 #685 [Verbose] > inl test_zeta_at_minus_1 () = run_test (5u8, 4u8) fun zeta, gamma =>
00:01:04 #686 [Verbose] > inl s = complex (-1, 0)
00:01:04 #687 [Verbose] > inl result = zeta s
00:01:04 #688 [Verbose] > (result |> re) + 1f64 / 12f64 |> abs |> _assert_lt 0.0001
00:01:04 #689 [Verbose] > result |> im |> _assert_eq 0
00:01:04 #690 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0045-3212-1284-14216ebbbab8\main.spi
00:01:05 #691 [Verbose] >
00:01:05 #692 [Verbose] > ╭─[ 218.98ms - stdout ]────────────────────────────────────────────────────────╮
00:01:05 #693 [Verbose] > │ () │
00:01:05 #694 [Verbose] > │ │
00:01:05 #695 [Verbose] > │ │
00:01:05 #696 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:05 #697 [Verbose] >
00:01:05 #698 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:05 #699 [Verbose] > // // test
00:01:05 #700 [Verbose] > // // rust=
00:01:05 #701 [Verbose] > // // print_code=false
00:01:05 #702 [Verbose] >
00:01:05 #703 [Verbose] > types ()
00:01:05 #704 [Verbose] > test_zeta_at_minus_1 ()
00:01:05 #705 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0045-3235-3526-33e22f9e2da1\main.spi
00:01:11 #706 [Verbose] >
00:01:11 #707 [Verbose] >
00:01:11 #708 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:11 #709 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:11 #710 [Verbose] > │ ## test_imaginary_axis │
00:01:11 #711 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:11 #712 [Verbose] >
00:01:11 #713 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:11 #714 [Verbose] > inl test_imaginary_axis () = run_test (3u8, 2u8) fun zeta, gamma =>
00:01:11 #715 [Verbose] > (join a ;[[10; 20; 30; 40; 50; 60; 70; 80; 90; 100]] : _ i32 _)
00:01:11 #716 [Verbose] > |> am.iter fun s =>
00:01:11 #717 [Verbose] > inl s = complex (0, s)
00:01:11 #718 [Verbose] > inl result = zeta s
00:01:11 #719 [Verbose] > result |> re |> _assert_ne 0
00:01:11 #720 [Verbose] > result |> im |> _assert_ne 0
00:01:12 #721 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0045-3903-0355-0c101b967d6d\main.spi
00:01:12 #722 [Verbose] >
00:01:12 #723 [Verbose] > ╭─[ 408.55ms - stdout ]────────────────────────────────────────────────────────╮
00:01:12 #724 [Verbose] > │ () │
00:01:12 #725 [Verbose] > │ │
00:01:12 #726 [Verbose] > │ │
00:01:12 #727 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:12 #728 [Verbose] >
00:01:12 #729 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:12 #730 [Verbose] > // // test
00:01:12 #731 [Verbose] > // // rust=
00:01:12 #732 [Verbose] > // // print_code=false
00:01:12 #733 [Verbose] >
00:01:12 #734 [Verbose] > types ()
00:01:12 #735 [Verbose] > test_imaginary_axis ()
00:01:12 #736 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0045-3944-4468-45ece251c148\main.spi
00:01:18 #737 [Verbose] >
00:01:18 #738 [Verbose] >
00:01:18 #739 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:18 #740 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:18 #741 [Verbose] > │ ## test_critical_strip │
00:01:18 #742 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:18 #743 [Verbose] >
00:01:18 #744 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:18 #745 [Verbose] > inl test_critical_strip () = run_test (3u8, 2u8) fun zeta, gamma =>
00:01:18 #746 [Verbose] > ;[[
00:01:18 #747 [Verbose] > complex (0.5, 14.134725)
00:01:18 #748 [Verbose] > complex (0.75, 20.5)
00:01:18 #749 [Verbose] > complex (1.25, 30.1)
00:01:18 #750 [Verbose] > complex (0.25, 40.0)
00:01:18 #751 [Verbose] > complex (1.0, 50.0)
00:01:18 #752 [Verbose] > ]]
00:01:18 #753 [Verbose] > |> fun x => a x : _ i32 _
00:01:18 #754 [Verbose] > |> am.iter fun s =>
00:01:18 #755 [Verbose] > inl result = zeta s
00:01:18 #756 [Verbose] > result |> re |> _assert_ne 0
00:01:18 #757 [Verbose] > result |> im |> _assert_ne 0
00:01:19 #758 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0045-4625-2540-2803ac82d20f\main.spi
00:01:19 #759 [Verbose] >
00:01:19 #760 [Verbose] > ╭─[ 191.35ms - stdout ]────────────────────────────────────────────────────────╮
00:01:19 #761 [Verbose] > │ () │
00:01:19 #762 [Verbose] > │ │
00:01:19 #763 [Verbose] > │ │
00:01:19 #764 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:19 #765 [Verbose] >
00:01:19 #766 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:19 #767 [Verbose] > // // test
00:01:19 #768 [Verbose] > // // rust=
00:01:19 #769 [Verbose] > // // print_code=false
00:01:19 #770 [Verbose] >
00:01:19 #771 [Verbose] > types ()
00:01:19 #772 [Verbose] > test_critical_strip ()
00:01:19 #773 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0045-4644-4454-43e7dbef319e\main.spi
00:01:26 #774 [Verbose] >
00:01:26 #775 [Verbose] >
00:01:26 #776 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:26 #777 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:26 #778 [Verbose] > │ ## test_reflection_formula_for_specific_value │
00:01:26 #779 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:26 #780 [Verbose] >
00:01:26 #781 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:26 #782 [Verbose] > inl test_reflection_formula_for_specific_value () = run_test (3u8, 2u8) fun
00:01:26 #783 [Verbose] > zeta, gamma =>
00:01:26 #784 [Verbose] > ;[[
00:01:26 #785 [Verbose] > complex (3, 4)
00:01:26 #786 [Verbose] > complex (2.5, -3.5)
00:01:26 #787 [Verbose] > complex (1.5, 2.5)
00:01:26 #788 [Verbose] > complex (0.5, 14.134725)
00:01:26 #789 [Verbose] > ]]
00:01:26 #790 [Verbose] > |> fun x => a x : _ i32 _
00:01:26 #791 [Verbose] > |> am.iter fun s =>
00:01:26 #792 [Verbose] > inl lhs = zeta s
00:01:26 #793 [Verbose] > inl reflection_coefficient =
00:01:26 #794 [Verbose] > complex_mult
00:01:26 #795 [Verbose] > (complex_mult
00:01:26 #796 [Verbose] > (complex_mult
00:01:26 #797 [Verbose] > (complex (2, 0) |> powc s)
00:01:26 #798 [Verbose] > (complex (pi, 0) |> powc (complex_sub s (complex (1,
00:01:26 #799 [Verbose] > 0))))
00:01:26 #800 [Verbose] > )
00:01:26 #801 [Verbose] > (
00:01:26 #802 [Verbose] > (complex_div
00:01:26 #803 [Verbose] > (complex_mult
00:01:26 #804 [Verbose] > (complex (pi, 0))
00:01:26 #805 [Verbose] > s
00:01:26 #806 [Verbose] > )
00:01:26 #807 [Verbose] > (complex (2, 0))
00:01:26 #808 [Verbose] > )
00:01:26 #809 [Verbose] > |> complex_sin
00:01:26 #810 [Verbose] > )
00:01:26 #811 [Verbose] > )
00:01:26 #812 [Verbose] > (gamma (complex_sub (complex (1, 0)) s))
00:01:26 #813 [Verbose] >
00:01:26 #814 [Verbose] > inl one_minus_s = complex (1 - (s |> re), -(s |> im))
00:01:26 #815 [Verbose] > inl rhs_calculated = complex_mult reflection_coefficient (zeta
00:01:26 #816 [Verbose] > one_minus_s)
00:01:26 #817 [Verbose] >
00:01:26 #818 [Verbose] > ((lhs |> re) - (rhs_calculated |> re)) |> abs |> _assert_lt 0.0001
00:01:26 #819 [Verbose] > ((lhs |> im) - (rhs_calculated |> im)) |> abs |> _assert_lt 0.0001
00:01:26 #820 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0045-5340-4027-454cac812ee4\main.spi
00:01:26 #821 [Verbose] >
00:01:26 #822 [Verbose] > ╭─[ 182.74ms - stdout ]────────────────────────────────────────────────────────╮
00:01:26 #823 [Verbose] > │ () │
00:01:26 #824 [Verbose] > │ │
00:01:26 #825 [Verbose] > │ │
00:01:26 #826 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:26 #827 [Verbose] >
00:01:26 #828 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:26 #829 [Verbose] > // // test
00:01:26 #830 [Verbose] > // // rust=
00:01:26 #831 [Verbose] > // // print_code=false
00:01:26 #832 [Verbose] >
00:01:26 #833 [Verbose] > types ()
00:01:26 #834 [Verbose] > test_reflection_formula_for_specific_value ()
00:01:26 #835 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0045-5358-5869-568685d156ca\main.spi
00:01:33 #836 [Verbose] >
00:01:33 #837 [Verbose] >
00:01:33 #838 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:33 #839 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:33 #840 [Verbose] > │ ## test_euler_product_formula │
00:01:33 #841 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:33 #842 [Verbose] >
00:01:33 #843 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:33 #844 [Verbose] > inl test_euler_product_formula () = run_test (3u8, 2u8) fun zeta, gamma =>
00:01:33 #845 [Verbose] > inl s_values = ;[[2; 2.5; 3; 3.5; 4; 4.5; 5]]
00:01:33 #846 [Verbose] > inl primes = ;[[2; 3; 5; 7; 11; 13; 17; 19; 23; 29; 31; 37; 41; 43; 47; 53;
00:01:33 #847 [Verbose] > 59; 61; 67; 71]]
00:01:33 #848 [Verbose] > (a s_values : _ i32 _)
00:01:33 #849 [Verbose] > |> am.iter fun s_re =>
00:01:33 #850 [Verbose] > inl s = complex (s_re, 0)
00:01:33 #851 [Verbose] > inl product =
00:01:33 #852 [Verbose] > (1, (a primes : _ i32 _))
00:01:33 #853 [Verbose] > ||> am.fold fun acc x =>
00:01:33 #854 [Verbose] > acc * 1 / (1 - x ** -s_re)
00:01:33 #855 [Verbose] >
00:01:33 #856 [Verbose] > inl result = zeta s
00:01:33 #857 [Verbose] > ((result |> re) - product) |> abs |> _assert_lt 0.01f64
00:01:33 #858 [Verbose] > result |> im |> _assert_lt 0.01f64
00:01:34 #859 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0046-0129-2977-2dd55307c732\main.spi
00:01:34 #860 [Verbose] >
00:01:34 #861 [Verbose] > ╭─[ 201.98ms - stdout ]────────────────────────────────────────────────────────╮
00:01:34 #862 [Verbose] > │ () │
00:01:34 #863 [Verbose] > │ │
00:01:34 #864 [Verbose] > │ │
00:01:34 #865 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:34 #866 [Verbose] >
00:01:34 #867 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:34 #868 [Verbose] > // // test
00:01:34 #869 [Verbose] > // // rust=
00:01:34 #870 [Verbose] > // // print_code=false
00:01:34 #871 [Verbose] >
00:01:34 #872 [Verbose] > types ()
00:01:34 #873 [Verbose] > test_euler_product_formula ()
00:01:34 #874 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0046-0149-4972-46f6925e1acf\main.spi
00:01:43 #875 [Verbose] >
00:01:43 #876 [Verbose] >
00:01:43 #877 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:43 #878 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:43 #879 [Verbose] > │ ## tests │
00:01:43 #880 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:43 #881 [Verbose] >
00:01:43 #882 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:43 #883 [Verbose] > inl tests () =
00:01:43 #884 [Verbose] > !\($'"}//"') : ()
00:01:43 #885 [Verbose] >
00:01:43 #886 [Verbose] > !\($'"#[[test]] fn test_zeta_at_known_values_() { //"') : ()
00:01:43 #887 [Verbose] > test_zeta_at_known_values_ ()
00:01:43 #888 [Verbose] > !\($'"} #[[test]] fn test_zeta_at_2_minus2() { //"') : ()
00:01:43 #889 [Verbose] > test_zeta_at_2_minus2 ()
00:01:43 #890 [Verbose] > !\($'"} #[[test]] fn test_trivial_zero_at_negative_even___() { //"') : ()
00:01:43 #891 [Verbose] > test_trivial_zero_at_negative_even___ ()
00:01:43 #892 [Verbose] > !\($'"} #[[test]] fn test_non_trivial_zero___() { //"') : ()
00:01:43 #893 [Verbose] > test_non_trivial_zero___ ()
00:01:43 #894 [Verbose] > !\($'"} #[[test]] fn test_real_part_greater_than_one___() { //"') : ()
00:01:43 #895 [Verbose] > test_real_part_greater_than_one___ ()
00:01:43 #896 [Verbose] > !\($'"} #[[test]] fn test_zeta_at_1___() { //"') : ()
00:01:43 #897 [Verbose] > test_zeta_at_1___ ()
00:01:43 #898 [Verbose] > !\($'"} #[[test]] fn test_symmetry_across_real_axis___() { //"') : ()
00:01:43 #899 [Verbose] > test_symmetry_across_real_axis___ ()
00:01:43 #900 [Verbose] > !\($'"} #[[test]] fn test_behavior_near_origin___() { //"') : ()
00:01:43 #901 [Verbose] > test_behavior_near_origin___ ()
00:01:43 #902 [Verbose] > !\($'"} #[[test]] fn test_zeta_at_minus_1() { //"') : ()
00:01:43 #903 [Verbose] > test_zeta_at_minus_1 ()
00:01:43 #904 [Verbose] > !\($'"} #[[test]] fn test_imaginary_axis() { //"') : ()
00:01:43 #905 [Verbose] > test_imaginary_axis ()
00:01:43 #906 [Verbose] > !\($'"} #[[test]] fn test_critical_strip() { //"') : ()
00:01:43 #907 [Verbose] > test_critical_strip ()
00:01:43 #908 [Verbose] > !\($'"} #[[test]] fn test_reflection_formula_for_specific_value() { //"') :
00:01:43 #909 [Verbose] > ()
00:01:43 #910 [Verbose] > test_reflection_formula_for_specific_value ()
00:01:43 #911 [Verbose] > !\($'"} #[[test]] fn test_euler_product_formula() { //"') : ()
00:01:43 #912 [Verbose] > test_euler_product_formula ()
00:01:43 #913 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0046-1060-6018-64a497e73efc\main.spi
00:01:43 #914 [Verbose] >
00:01:43 #915 [Verbose] > ╭─[ 210.58ms - stdout ]────────────────────────────────────────────────────────╮
00:01:43 #916 [Verbose] > │ () │
00:01:43 #917 [Verbose] > │ │
00:01:43 #918 [Verbose] > │ │
00:01:43 #919 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:43 #920 [Verbose] >
00:01:43 #921 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:43 #922 [Verbose] > inl main' (_args : array_base string) =
00:01:43 #923 [Verbose] > inl value = 1i32
00:01:43 #924 [Verbose] > console.write_line ($"$\"value: {!value}\"" : string)
00:01:43 #925 [Verbose] > 0i32
00:01:43 #926 [Verbose] >
00:01:43 #927 [Verbose] > inl main' () =
00:01:43 #928 [Verbose] > types ()
00:01:43 #929 [Verbose] > $"let tests () = !tests ()" : ()
00:01:43 #930 [Verbose] > $"let main args = !main' args" : ()
00:01:43 #931 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0046-1081-8158-8346d8b1511a\main.spi
00:01:43 #932 [Verbose] >
00:01:43 #933 [Verbose] > ╭─[ 293.21ms - stdout ]────────────────────────────────────────────────────────╮
00:01:43 #934 [Verbose] > │ () │
00:01:43 #935 [Verbose] > │ │
00:01:43 #936 [Verbose] > │ │
00:01:43 #937 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:43 #938 [Verbose] >
00:01:43 #939 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:43 #940 [Verbose] > inl main () =
00:01:43 #941 [Verbose] > main' ()
00:01:43 #942 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0046-1111-1135-1b949d469082\main.spi
00:01:48 #943 [Verbose] >
00:01:48 #944 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:48 #945 [Verbose] > ╭─[ 4.24s - diagnostics ]──────────────────────────────────────────────────────╮
00:01:48 #946 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #947 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #948 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #949 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #950 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #951 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #952 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #953 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #954 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #955 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #956 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #957 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #958 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #959 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #960 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #961 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #962 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #963 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #964 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #965 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #966 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #967 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #968 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #969 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #970 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #971 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #972 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #973 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #974 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #975 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #976 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #977 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #978 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #979 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #980 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #981 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #982 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #983 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #984 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #985 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #986 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #987 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #988 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #989 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #990 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #991 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #992 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #993 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #994 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #995 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #996 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #997 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #998 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #999 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #1000 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #1001 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #1002 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #1003 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #1004 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #1005 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #1006 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #1007 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #1008 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #1009 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #1010 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #1011 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #1012 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #1013 [Verbose] > │ (0,1)-(0,1) typecheck error The namespace or module 'Fable' is not defined. │
00:01:48 #1014 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1015 [Verbose] > │ not defined. │
00:01:48 #1016 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1017 [Verbose] > │ not defined. │
00:01:48 #1018 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1019 [Verbose] > │ not defined. │
00:01:48 #1020 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1021 [Verbose] > │ not defined. │
00:01:48 #1022 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1023 [Verbose] > │ not defined. │
00:01:48 #1024 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1025 [Verbose] > │ not defined. │
00:01:48 #1026 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1027 [Verbose] > │ not defined. │
00:01:48 #1028 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1029 [Verbose] > │ not defined. │
00:01:48 #1030 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1031 [Verbose] > │ not defined. │
00:01:48 #1032 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1033 [Verbose] > │ not defined. │
00:01:48 #1034 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1035 [Verbose] > │ not defined. │
00:01:48 #1036 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1037 [Verbose] > │ not defined. │
00:01:48 #1038 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1039 [Verbose] > │ not defined. │
00:01:48 #1040 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1041 [Verbose] > │ not defined. │
00:01:48 #1042 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1043 [Verbose] > │ not defined. │
00:01:48 #1044 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1045 [Verbose] > │ not defined. │
00:01:48 #1046 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1047 [Verbose] > │ not defined. │
00:01:48 #1048 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1049 [Verbose] > │ not defined. │
00:01:48 #1050 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1051 [Verbose] > │ not defined. │
00:01:48 #1052 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1053 [Verbose] > │ not defined. │
00:01:48 #1054 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1055 [Verbose] > │ not defined. │
00:01:48 #1056 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1057 [Verbose] > │ not defined. │
00:01:48 #1058 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1059 [Verbose] > │ not defined. │
00:01:48 #1060 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1061 [Verbose] > │ not defined. │
00:01:48 #1062 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1063 [Verbose] > │ not defined. │
00:01:48 #1064 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1065 [Verbose] > │ not defined. │
00:01:48 #1066 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1067 [Verbose] > │ not defined. │
00:01:48 #1068 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1069 [Verbose] > │ not defined. │
00:01:48 #1070 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1071 [Verbose] > │ not defined. │
00:01:48 #1072 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1073 [Verbose] > │ not defined. │
00:01:48 #1074 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1075 [Verbose] > │ not defined. │
00:01:48 #1076 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1077 [Verbose] > │ not defined. │
00:01:48 #1078 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1079 [Verbose] > │ not defined. │
00:01:48 #1080 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1081 [Verbose] > │ not defined. │
00:01:48 #1082 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1083 [Verbose] > │ not defined. │
00:01:48 #1084 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1085 [Verbose] > │ not defined. │
00:01:48 #1086 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1087 [Verbose] > │ not defined. │
00:01:48 #1088 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1089 [Verbose] > │ not defined. │
00:01:48 #1090 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1091 [Verbose] > │ not defined. │
00:01:48 #1092 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1093 [Verbose] > │ not defined. │
00:01:48 #1094 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1095 [Verbose] > │ not defined. │
00:01:48 #1096 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1097 [Verbose] > │ not defined. │
00:01:48 #1098 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1099 [Verbose] > │ not defined. │
00:01:48 #1100 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1101 [Verbose] > │ not defined. │
00:01:48 #1102 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1103 [Verbose] > │ not defined. │
00:01:48 #1104 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1105 [Verbose] > │ not defined. │
00:01:48 #1106 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1107 [Verbose] > │ not defined. │
00:01:48 #1108 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1109 [Verbose] > │ not defined. │
00:01:48 #1110 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1111 [Verbose] > │ not defined. │
00:01:48 #1112 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1113 [Verbose] > │ not defined. │
00:01:48 #1114 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1115 [Verbose] > │ not defined. │
00:01:48 #1116 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1117 [Verbose] > │ not defined. │
00:01:48 #1118 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1119 [Verbose] > │ not defined. │
00:01:48 #1120 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1121 [Verbose] > │ not defined. │
00:01:48 #1122 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1123 [Verbose] > │ not defined. │
00:01:48 #1124 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1125 [Verbose] > │ not defined. │
00:01:48 #1126 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1127 [Verbose] > │ not defined. │
00:01:48 #1128 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1129 [Verbose] > │ not defined. │
00:01:48 #1130 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1131 [Verbose] > │ not defined. │
00:01:48 #1132 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1133 [Verbose] > │ not defined. │
00:01:48 #1134 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1135 [Verbose] > │ not defined. │
00:01:48 #1136 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1137 [Verbose] > │ not defined. │
00:01:48 #1138 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1139 [Verbose] > │ not defined. │
00:01:48 #1140 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1141 [Verbose] > │ not defined. │
00:01:48 #1142 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1143 [Verbose] > │ not defined. │
00:01:48 #1144 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1145 [Verbose] > │ not defined. │
00:01:48 #1146 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1147 [Verbose] > │ not defined. │
00:01:48 #1148 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1149 [Verbose] > │ not defined. │
00:01:48 #1150 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1151 [Verbose] > │ not defined. │
00:01:48 #1152 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1153 [Verbose] > │ not defined. │
00:01:48 #1154 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1155 [Verbose] > │ not defined. │
00:01:48 #1156 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1157 [Verbose] > │ not defined. │
00:01:48 #1158 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1159 [Verbose] > │ not defined. │
00:01:48 #1160 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1161 [Verbose] > │ not defined. │
00:01:48 #1162 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1163 [Verbose] > │ not defined. │
00:01:48 #1164 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1165 [Verbose] > │ not defined. │
00:01:48 #1166 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1167 [Verbose] > │ not defined. │
00:01:48 #1168 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1169 [Verbose] > │ not defined. │
00:01:48 #1170 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1171 [Verbose] > │ not defined. │
00:01:48 #1172 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1173 [Verbose] > │ not defined. │
00:01:48 #1174 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1175 [Verbose] > │ not defined. │
00:01:48 #1176 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1177 [Verbose] > │ not defined. │
00:01:48 #1178 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1179 [Verbose] > │ not defined. │
00:01:48 #1180 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1181 [Verbose] > │ not defined. │
00:01:48 #1182 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1183 [Verbose] > │ not defined. │
00:01:48 #1184 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1185 [Verbose] > │ not defined. │
00:01:48 #1186 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1187 [Verbose] > │ not defined. │
00:01:48 #1188 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1189 [Verbose] > │ not defined. │
00:01:48 #1190 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1191 [Verbose] > │ not defined. │
00:01:48 #1192 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1193 [Verbose] > │ not defined. │
00:01:48 #1194 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1195 [Verbose] > │ not defined. │
00:01:48 #1196 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1197 [Verbose] > │ not defined. │
00:01:48 #1198 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1199 [Verbose] > │ not defined. │
00:01:48 #1200 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1201 [Verbose] > │ not defined. │
00:01:48 #1202 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1203 [Verbose] > │ not defined. │
00:01:48 #1204 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1205 [Verbose] > │ not defined. │
00:01:48 #1206 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1207 [Verbose] > │ not defined. │
00:01:48 #1208 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1209 [Verbose] > │ not defined. │
00:01:48 #1210 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1211 [Verbose] > │ not defined. │
00:01:48 #1212 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1213 [Verbose] > │ not defined. │
00:01:48 #1214 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1215 [Verbose] > │ not defined. │
00:01:48 #1216 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1217 [Verbose] > │ not defined. │
00:01:48 #1218 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1219 [Verbose] > │ not defined. │
00:01:48 #1220 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1221 [Verbose] > │ not defined. │
00:01:48 #1222 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1223 [Verbose] > │ not defined. │
00:01:48 #1224 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1225 [Verbose] > │ not defined. │
00:01:48 #1226 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1227 [Verbose] > │ not defined. │
00:01:48 #1228 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1229 [Verbose] > │ not defined. │
00:01:48 #1230 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1231 [Verbose] > │ not defined. │
00:01:48 #1232 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1233 [Verbose] > │ not defined. │
00:01:48 #1234 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1235 [Verbose] > │ not defined. │
00:01:48 #1236 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1237 [Verbose] > │ not defined. │
00:01:48 #1238 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1239 [Verbose] > │ not defined. │
00:01:48 #1240 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1241 [Verbose] > │ not defined. │
00:01:48 #1242 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1243 [Verbose] > │ not defined. │
00:01:48 #1244 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1245 [Verbose] > │ not defined. │
00:01:48 #1246 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1247 [Verbose] > │ not defined. │
00:01:48 #1248 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1249 [Verbose] > │ not defined. │
00:01:48 #1250 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1251 [Verbose] > │ not defined. │
00:01:48 #1252 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1253 [Verbose] > │ not defined. │
00:01:48 #1254 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1255 [Verbose] > │ not defined. │
00:01:48 #1256 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1257 [Verbose] > │ not defined. │
00:01:48 #1258 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1259 [Verbose] > │ not defined. │
00:01:48 #1260 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1261 [Verbose] > │ not defined. │
00:01:48 #1262 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1263 [Verbose] > │ not defined. │
00:01:48 #1264 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1265 [Verbose] > │ not defined. │
00:01:48 #1266 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1267 [Verbose] > │ not defined. │
00:01:48 #1268 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1269 [Verbose] > │ not defined. │
00:01:48 #1270 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1271 [Verbose] > │ not defined. │
00:01:48 #1272 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1273 [Verbose] > │ not defined. │
00:01:48 #1274 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1275 [Verbose] > │ not defined. │
00:01:48 #1276 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1277 [Verbose] > │ not defined. │
00:01:48 #1278 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1279 [Verbose] > │ not defined. │
00:01:48 #1280 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1281 [Verbose] > │ not defined. │
00:01:48 #1282 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1283 [Verbose] > │ not defined. │
00:01:48 #1284 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1285 [Verbose] > │ not defined. │
00:01:48 #1286 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1287 [Verbose] > │ not defined. │
00:01:48 #1288 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1289 [Verbose] > │ not defined. │
00:01:48 #1290 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1291 [Verbose] > │ not defined. │
00:01:48 #1292 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1293 [Verbose] > │ not defined. │
00:01:48 #1294 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1295 [Verbose] > │ not defined. │
00:01:48 #1296 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1297 [Verbose] > │ not defined. │
00:01:48 #1298 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1299 [Verbose] > │ not defined. │
00:01:48 #1300 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1301 [Verbose] > │ not defined. │
00:01:48 #1302 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1303 [Verbose] > │ not defined. │
00:01:48 #1304 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1305 [Verbose] > │ not defined. │
00:01:48 #1306 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1307 [Verbose] > │ not defined. │
00:01:48 #1308 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1309 [Verbose] > │ not defined. │
00:01:48 #1310 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1311 [Verbose] > │ not defined. │
00:01:48 #1312 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1313 [Verbose] > │ not defined. │
00:01:48 #1314 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1315 [Verbose] > │ not defined. │
00:01:48 #1316 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1317 [Verbose] > │ not defined. │
00:01:48 #1318 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1319 [Verbose] > │ not defined. │
00:01:48 #1320 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1321 [Verbose] > │ not defined. │
00:01:48 #1322 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1323 [Verbose] > │ not defined. │
00:01:48 #1324 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1325 [Verbose] > │ not defined. │
00:01:48 #1326 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1327 [Verbose] > │ not defined. │
00:01:48 #1328 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1329 [Verbose] > │ not defined. │
00:01:48 #1330 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1331 [Verbose] > │ not defined. │
00:01:48 #1332 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1333 [Verbose] > │ not defined. │
00:01:48 #1334 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1335 [Verbose] > │ not defined. │
00:01:48 #1336 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1337 [Verbose] > │ not defined. │
00:01:48 #1338 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1339 [Verbose] > │ not defined. │
00:01:48 #1340 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1341 [Verbose] > │ not defined. │
00:01:48 #1342 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1343 [Verbose] > │ not defined. │
00:01:48 #1344 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1345 [Verbose] > │ not defined. │
00:01:48 #1346 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1347 [Verbose] > │ not defined. │
00:01:48 #1348 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1349 [Verbose] > │ not defined. │
00:01:48 #1350 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1351 [Verbose] > │ not defined. │
00:01:48 #1352 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1353 [Verbose] > │ not defined. │
00:01:48 #1354 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1355 [Verbose] > │ not defined. │
00:01:48 #1356 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1357 [Verbose] > │ not defined. │
00:01:48 #1358 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1359 [Verbose] > │ not defined. │
00:01:48 #1360 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1361 [Verbose] > │ not defined. │
00:01:48 #1362 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1363 [Verbose] > │ not defined. │
00:01:48 #1364 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1365 [Verbose] > │ not defined. │
00:01:48 #1366 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1367 [Verbose] > │ not defined. │
00:01:48 #1368 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1369 [Verbose] > │ not defined. │
00:01:48 #1370 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1371 [Verbose] > │ not defined. │
00:01:48 #1372 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1373 [Verbose] > │ not defined. │
00:01:48 #1374 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1375 [Verbose] > │ not defined. │
00:01:48 #1376 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1377 [Verbose] > │ not defined. │
00:01:48 #1378 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1379 [Verbose] > │ not defined. │
00:01:48 #1380 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1381 [Verbose] > │ not defined. │
00:01:48 #1382 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1383 [Verbose] > │ not defined. │
00:01:48 #1384 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1385 [Verbose] > │ not defined. │
00:01:48 #1386 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1387 [Verbose] > │ not defined. │
00:01:48 #1388 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1389 [Verbose] > │ not defined. │
00:01:48 #1390 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1391 [Verbose] > │ not defined. │
00:01:48 #1392 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1393 [Verbose] > │ not defined. │
00:01:48 #1394 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1395 [Verbose] > │ not defined. │
00:01:48 #1396 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1397 [Verbose] > │ not defined. │
00:01:48 #1398 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1399 [Verbose] > │ not defined. │
00:01:48 #1400 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1401 [Verbose] > │ not defined. │
00:01:48 #1402 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1403 [Verbose] > │ not defined. │
00:01:48 #1404 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1405 [Verbose] > │ not defined. │
00:01:48 #1406 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1407 [Verbose] > │ not defined. │
00:01:48 #1408 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1409 [Verbose] > │ not defined. │
00:01:48 #1410 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1411 [Verbose] > │ not defined. │
00:01:48 #1412 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1413 [Verbose] > │ not defined. │
00:01:48 #1414 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1415 [Verbose] > │ not defined. │
00:01:48 #1416 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1417 [Verbose] > │ not defined. │
00:01:48 #1418 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1419 [Verbose] > │ not defined. │
00:01:48 #1420 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1421 [Verbose] > │ not defined. │
00:01:48 #1422 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1423 [Verbose] > │ not defined. │
00:01:48 #1424 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1425 [Verbose] > │ not defined. │
00:01:48 #1426 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1427 [Verbose] > │ not defined. │
00:01:48 #1428 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1429 [Verbose] > │ not defined. │
00:01:48 #1430 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1431 [Verbose] > │ not defined. │
00:01:48 #1432 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1433 [Verbose] > │ not defined. │
00:01:48 #1434 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1435 [Verbose] > │ not defined. │
00:01:48 #1436 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1437 [Verbose] > │ not defined. │
00:01:48 #1438 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1439 [Verbose] > │ not defined. │
00:01:48 #1440 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1441 [Verbose] > │ not defined. │
00:01:48 #1442 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1443 [Verbose] > │ not defined. │
00:01:48 #1444 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1445 [Verbose] > │ not defined. │
00:01:48 #1446 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1447 [Verbose] > │ not defined. │
00:01:48 #1448 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1449 [Verbose] > │ not defined. │
00:01:48 #1450 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1451 [Verbose] > │ not defined. │
00:01:48 #1452 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1453 [Verbose] > │ not defined. │
00:01:48 #1454 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1455 [Verbose] > │ not defined. │
00:01:48 #1456 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1457 [Verbose] > │ not defined. │
00:01:48 #1458 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1459 [Verbose] > │ not defined. │
00:01:48 #1460 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1461 [Verbose] > │ not defined. │
00:01:48 #1462 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1463 [Verbose] > │ not defined. │
00:01:48 #1464 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1465 [Verbose] > │ not defined. │
00:01:48 #1466 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1467 [Verbose] > │ not defined. │
00:01:48 #1468 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1469 [Verbose] > │ not defined. │
00:01:48 #1470 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1471 [Verbose] > │ not defined. │
00:01:48 #1472 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1473 [Verbose] > │ not defined. │
00:01:48 #1474 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1475 [Verbose] > │ not defined. │
00:01:48 #1476 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1477 [Verbose] > │ not defined. │
00:01:48 #1478 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1479 [Verbose] > │ not defined. │
00:01:48 #1480 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1481 [Verbose] > │ not defined. │
00:01:48 #1482 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1483 [Verbose] > │ not defined. │
00:01:48 #1484 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1485 [Verbose] > │ not defined. │
00:01:48 #1486 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1487 [Verbose] > │ not defined. │
00:01:48 #1488 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1489 [Verbose] > │ not defined. │
00:01:48 #1490 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1491 [Verbose] > │ not defined. │
00:01:48 #1492 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1493 [Verbose] > │ not defined. │
00:01:48 #1494 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1495 [Verbose] > │ not defined. │
00:01:48 #1496 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1497 [Verbose] > │ not defined. │
00:01:48 #1498 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1499 [Verbose] > │ not defined. │
00:01:48 #1500 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1501 [Verbose] > │ not defined. │
00:01:48 #1502 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1503 [Verbose] > │ not defined. │
00:01:48 #1504 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1505 [Verbose] > │ not defined. │
00:01:48 #1506 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1507 [Verbose] > │ not defined. │
00:01:48 #1508 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1509 [Verbose] > │ not defined. │
00:01:48 #1510 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1511 [Verbose] > │ not defined. │
00:01:48 #1512 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1513 [Verbose] > │ not defined. │
00:01:48 #1514 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1515 [Verbose] > │ not defined. │
00:01:48 #1516 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1517 [Verbose] > │ not defined. │
00:01:48 #1518 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1519 [Verbose] > │ not defined. │
00:01:48 #1520 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1521 [Verbose] > │ not defined. │
00:01:48 #1522 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1523 [Verbose] > │ not defined. │
00:01:48 #1524 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1525 [Verbose] > │ not defined. │
00:01:48 #1526 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1527 [Verbose] > │ not defined. │
00:01:48 #1528 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1529 [Verbose] > │ not defined. │
00:01:48 #1530 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1531 [Verbose] > │ not defined. │
00:01:48 #1532 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1533 [Verbose] > │ not defined. │
00:01:48 #1534 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1535 [Verbose] > │ not defined. │
00:01:48 #1536 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1537 [Verbose] > │ not defined. │
00:01:48 #1538 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1539 [Verbose] > │ not defined. │
00:01:48 #1540 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1541 [Verbose] > │ not defined. │
00:01:48 #1542 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1543 [Verbose] > │ not defined. │
00:01:48 #1544 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1545 [Verbose] > │ not defined. │
00:01:48 #1546 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1547 [Verbose] > │ not defined. │
00:01:48 #1548 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1549 [Verbose] > │ not defined. │
00:01:48 #1550 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1551 [Verbose] > │ not defined. │
00:01:48 #1552 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1553 [Verbose] > │ not defined. │
00:01:48 #1554 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1555 [Verbose] > │ not defined. │
00:01:48 #1556 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1557 [Verbose] > │ not defined. │
00:01:48 #1558 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1559 [Verbose] > │ not defined. │
00:01:48 #1560 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1561 [Verbose] > │ not defined. │
00:01:48 #1562 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1563 [Verbose] > │ not defined. │
00:01:48 #1564 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1565 [Verbose] > │ not defined. │
00:01:48 #1566 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1567 [Verbose] > │ not defined. │
00:01:48 #1568 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1569 [Verbose] > │ not defined. │
00:01:48 #1570 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1571 [Verbose] > │ not defined. │
00:01:48 #1572 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1573 [Verbose] > │ not defined. │
00:01:48 #1574 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1575 [Verbose] > │ not defined. │
00:01:48 #1576 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1577 [Verbose] > │ not defined. │
00:01:48 #1578 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1579 [Verbose] > │ not defined. │
00:01:48 #1580 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1581 [Verbose] > │ not defined. │
00:01:48 #1582 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1583 [Verbose] > │ not defined. │
00:01:48 #1584 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1585 [Verbose] > │ not defined. │
00:01:48 #1586 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1587 [Verbose] > │ not defined. │
00:01:48 #1588 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1589 [Verbose] > │ not defined. │
00:01:48 #1590 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1591 [Verbose] > │ not defined. │
00:01:48 #1592 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1593 [Verbose] > │ not defined. │
00:01:48 #1594 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1595 [Verbose] > │ not defined. │
00:01:48 #1596 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1597 [Verbose] > │ not defined. │
00:01:48 #1598 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1599 [Verbose] > │ not defined. │
00:01:48 #1600 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1601 [Verbose] > │ not defined. │
00:01:48 #1602 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1603 [Verbose] > │ not defined. │
00:01:48 #1604 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1605 [Verbose] > │ not defined. │
00:01:48 #1606 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1607 [Verbose] > │ not defined. │
00:01:48 #1608 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1609 [Verbose] > │ not defined. │
00:01:48 #1610 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1611 [Verbose] > │ not defined. │
00:01:48 #1612 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1613 [Verbose] > │ not defined. │
00:01:48 #1614 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1615 [Verbose] > │ not defined. │
00:01:48 #1616 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1617 [Verbose] > │ not defined. │
00:01:48 #1618 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1619 [Verbose] > │ not defined. │
00:01:48 #1620 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1621 [Verbose] > │ not defined. │
00:01:48 #1622 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1623 [Verbose] > │ not defined. │
00:01:48 #1624 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1625 [Verbose] > │ not defined. │
00:01:48 #1626 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1627 [Verbose] > │ not defined. │
00:01:48 #1628 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1629 [Verbose] > │ not defined. │
00:01:48 #1630 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1631 [Verbose] > │ not defined. │
00:01:48 #1632 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1633 [Verbose] > │ not defined. │
00:01:48 #1634 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1635 [Verbose] > │ not defined. │
00:01:48 #1636 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1637 [Verbose] > │ not defined. │
00:01:48 #1638 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1639 [Verbose] > │ not defined. │
00:01:48 #1640 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1641 [Verbose] > │ not defined. │
00:01:48 #1642 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1643 [Verbose] > │ not defined. │
00:01:48 #1644 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1645 [Verbose] > │ not defined. │
00:01:48 #1646 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1647 [Verbose] > │ not defined. │
00:01:48 #1648 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1649 [Verbose] > │ not defined. │
00:01:48 #1650 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1651 [Verbose] > │ not defined. │
00:01:48 #1652 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1653 [Verbose] > │ not defined. │
00:01:48 #1654 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1655 [Verbose] > │ not defined. │
00:01:48 #1656 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1657 [Verbose] > │ not defined. │
00:01:48 #1658 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1659 [Verbose] > │ not defined. │
00:01:48 #1660 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1661 [Verbose] > │ not defined. │
00:01:48 #1662 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1663 [Verbose] > │ not defined. │
00:01:48 #1664 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1665 [Verbose] > │ not defined. │
00:01:48 #1666 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1667 [Verbose] > │ not defined. │
00:01:48 #1668 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1669 [Verbose] > │ not defined. │
00:01:48 #1670 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1671 [Verbose] > │ not defined. │
00:01:48 #1672 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1673 [Verbose] > │ not defined. │
00:01:48 #1674 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1675 [Verbose] > │ not defined. │
00:01:48 #1676 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1677 [Verbose] > │ not defined. │
00:01:48 #1678 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1679 [Verbose] > │ not defined. │
00:01:48 #1680 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1681 [Verbose] > │ not defined. │
00:01:48 #1682 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1683 [Verbose] > │ not defined. │
00:01:48 #1684 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1685 [Verbose] > │ not defined. │
00:01:48 #1686 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1687 [Verbose] > │ not defined. │
00:01:48 #1688 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1689 [Verbose] > │ not defined. │
00:01:48 #1690 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1691 [Verbose] > │ not defined. │
00:01:48 #1692 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1693 [Verbose] > │ not defined. │
00:01:48 #1694 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1695 [Verbose] > │ not defined. │
00:01:48 #1696 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1697 [Verbose] > │ not defined. │
00:01:48 #1698 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1699 [Verbose] > │ not defined. │
00:01:48 #1700 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1701 [Verbose] > │ not defined. │
00:01:48 #1702 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1703 [Verbose] > │ not defined. │
00:01:48 #1704 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1705 [Verbose] > │ not defined. │
00:01:48 #1706 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1707 [Verbose] > │ not defined. │
00:01:48 #1708 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1709 [Verbose] > │ not defined. │
00:01:48 #1710 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1711 [Verbose] > │ not defined. │
00:01:48 #1712 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1713 [Verbose] > │ not defined. │
00:01:48 #1714 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1715 [Verbose] > │ not defined. │
00:01:48 #1716 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1717 [Verbose] > │ not defined. │
00:01:48 #1718 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1719 [Verbose] > │ not defined. │
00:01:48 #1720 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1721 [Verbose] > │ not defined. │
00:01:48 #1722 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1723 [Verbose] > │ not defined. │
00:01:48 #1724 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1725 [Verbose] > │ not defined. │
00:01:48 #1726 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1727 [Verbose] > │ not defined. │
00:01:48 #1728 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1729 [Verbose] > │ not defined. │
00:01:48 #1730 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1731 [Verbose] > │ not defined. │
00:01:48 #1732 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1733 [Verbose] > │ not defined. │
00:01:48 #1734 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1735 [Verbose] > │ not defined. │
00:01:48 #1736 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1737 [Verbose] > │ not defined. │
00:01:48 #1738 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1739 [Verbose] > │ not defined. │
00:01:48 #1740 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1741 [Verbose] > │ not defined. │
00:01:48 #1742 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1743 [Verbose] > │ not defined. │
00:01:48 #1744 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1745 [Verbose] > │ not defined. │
00:01:48 #1746 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1747 [Verbose] > │ not defined. │
00:01:48 #1748 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1749 [Verbose] > │ not defined. │
00:01:48 #1750 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1751 [Verbose] > │ not defined. │
00:01:48 #1752 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1753 [Verbose] > │ not defined. │
00:01:48 #1754 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1755 [Verbose] > │ not defined. │
00:01:48 #1756 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1757 [Verbose] > │ not defined. │
00:01:48 #1758 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1759 [Verbose] > │ not defined. │
00:01:48 #1760 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1761 [Verbose] > │ not defined. │
00:01:48 #1762 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1763 [Verbose] > │ not defined. │
00:01:48 #1764 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1765 [Verbose] > │ not defined. │
00:01:48 #1766 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1767 [Verbose] > │ not defined. │
00:01:48 #1768 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1769 [Verbose] > │ not defined. │
00:01:48 #1770 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1771 [Verbose] > │ not defined. │
00:01:48 #1772 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1773 [Verbose] > │ not defined. │
00:01:48 #1774 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1775 [Verbose] > │ not defined. │
00:01:48 #1776 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1777 [Verbose] > │ not defined. │
00:01:48 #1778 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1779 [Verbose] > │ not defined. │
00:01:48 #1780 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1781 [Verbose] > │ not defined. │
00:01:48 #1782 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1783 [Verbose] > │ not defined. │
00:01:48 #1784 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1785 [Verbose] > │ not defined. │
00:01:48 #1786 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1787 [Verbose] > │ not defined. │
00:01:48 #1788 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1789 [Verbose] > │ not defined. │
00:01:48 #1790 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1791 [Verbose] > │ not defined. │
00:01:48 #1792 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1793 [Verbose] > │ not defined. │
00:01:48 #1794 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1795 [Verbose] > │ not defined. │
00:01:48 #1796 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1797 [Verbose] > │ not defined. │
00:01:48 #1798 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1799 [Verbose] > │ not defined. │
00:01:48 #1800 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1801 [Verbose] > │ not defined. │
00:01:48 #1802 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1803 [Verbose] > │ not defined. │
00:01:48 #1804 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1805 [Verbose] > │ not defined. │
00:01:48 #1806 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1807 [Verbose] > │ not defined. │
00:01:48 #1808 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1809 [Verbose] > │ not defined. │
00:01:48 #1810 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1811 [Verbose] > │ not defined. │
00:01:48 #1812 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1813 [Verbose] > │ not defined. │
00:01:48 #1814 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1815 [Verbose] > │ not defined. │
00:01:48 #1816 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1817 [Verbose] > │ not defined. │
00:01:48 #1818 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1819 [Verbose] > │ not defined. │
00:01:48 #1820 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1821 [Verbose] > │ not defined. │
00:01:48 #1822 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1823 [Verbose] > │ not defined. │
00:01:48 #1824 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1825 [Verbose] > │ not defined. │
00:01:48 #1826 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1827 [Verbose] > │ not defined. │
00:01:48 #1828 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1829 [Verbose] > │ not defined. │
00:01:48 #1830 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1831 [Verbose] > │ not defined. │
00:01:48 #1832 [Verbose] > │ (0,1)-(0,1) typecheck error The value, namespace, type or module 'Fable' is │
00:01:48 #1833 [Verbose] > │ not defined. │
00:01:48 #1834 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:48 #1835 [Verbose] >
00:01:48 #1836 [Verbose] > ╭─[ 4.82s - stderr ]───────────────────────────────────────────────────────────╮
00:01:48 #1837 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Func0<$0>")>] type Func0<'T> = class │
00:01:48 #1838 [Verbose] > │ end │
00:01:48 #1839 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Func1<$0, $1>")>] type Func0<'T, 'U> = │
00:01:48 #1840 [Verbose] > │ class end │
00:01:48 #1841 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Box<$0>")>] type Box<'T> = class end │
00:01:48 #1842 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("dyn $0")>] type Dyn<'T> = class end │
00:01:48 #1843 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn() -> $0")>] type Fn<'T> = class end │
00:01:48 #1844 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn()")>] type FnUnit = class end │
00:01:48 #1845 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("FnOnce() -> $0")>] type FnOnce<'T> = │
00:01:48 #1846 [Verbose] > │ class end │
00:01:48 #1847 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("Fn($0, $1)")>] type ActionFn2<'T, 'U> = │
00:01:48 #1848 [Verbose] > │ class end │
00:01:48 #1849 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("impl $0")>] type Impl<'T> = class end │
00:01:48 #1850 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("mut $0")>] type Mut<'T> = class end │
00:01:48 #1851 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&$0")>] type Ref<'T> = class end │
00:01:48 #1852 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("&'static $0")>] type StaticRef<'T> = │
00:01:48 #1853 [Verbose] > │ class end │
00:01:48 #1854 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("MutCell<$0>")>] type MutCell<'T> = │
00:01:48 #1855 [Verbose] > │ class end │
00:01:48 #1856 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::any::Any")>] type std_any_Any = │
00:01:48 #1857 [Verbose] > │ class end │
00:01:48 #1858 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::cell::RefCell<$0>")>] type │
00:01:48 #1859 [Verbose] > │ std_cell_RefCell<'T> = class end │
00:01:48 #1860 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::pin::Pin<$0>")>] type │
00:01:48 #1861 [Verbose] > │ std_pin_Pin<'T> = class end │
00:01:48 #1862 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::rc::Rc<$0>")>] type std_rc_Rc<'T> │
00:01:48 #1863 [Verbose] > │ = class end │
00:01:48 #1864 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::rc::Weak<$0>")>] type │
00:01:48 #1865 [Verbose] > │ std_rc_Weak<'T> = class end │
00:01:48 #1866 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::sync::Arc<$0>")>] type │
00:01:48 #1867 [Verbose] > │ std_sync_Arc<'T> = class end │
00:01:48 #1868 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("str")>] type Str = class end │
00:01:48 #1869 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("base64::DecodeError")>] type │
00:01:48 #1870 [Verbose] > │ base64_DecodeError = class end │
00:01:48 #1871 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("borsh::io::Error")>] type │
00:01:48 #1872 [Verbose] > │ borsh_io_Error = class end │
00:01:48 #1873 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("js_sys::JsString")>] type │
00:01:48 #1874 [Verbose] > │ js_sys_JsString = class end │
00:01:48 #1875 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_json::Error")>] type │
00:01:48 #1876 [Verbose] > │ serde_json_Error = class end │
00:01:48 #1877 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_json::Value")>] type │
00:01:48 #1878 [Verbose] > │ serde_json_Value = class end │
00:01:48 #1879 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("serde_wasm_bindgen::Error")>] type │
00:01:48 #1880 [Verbose] > │ serde_wasm_bindgen_Error = class end │
00:01:48 #1881 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::str::Utf8Error")>] type │
00:01:48 #1882 [Verbose] > │ std_str_Utf8Error = class end │
00:01:48 #1883 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("std::string::String")>] type │
00:01:48 #1884 [Verbose] > │ std_string_String = class end │
00:01:48 #1885 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("num_complex::Complex<$0>")>] type │
00:01:48 #1886 [Verbose] > │ num_complex_Complex<'T> = class end │
00:01:48 #1887 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::types::PyModule")>] type │
00:01:48 #1888 [Verbose] > │ pyo3_types_PyModule = class end │
00:01:48 #1889 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::Bound<$0>")>] type pyo3_Bound<'T> │
00:01:48 #1890 [Verbose] > │ = class end │
00:01:48 #1891 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::Python")>] type pyo3_Python = │
00:01:48 #1892 [Verbose] > │ class end │
00:01:48 #1893 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::PyAny")>] type pyo3_PyAny = class │
00:01:48 #1894 [Verbose] > │ end │
00:01:48 #1895 [Verbose] > │ [<Fable.Core.Erase; Fable.Core.Emit("pyo3::PyErr")>] type pyo3_PyErr = class │
00:01:48 #1896 [Verbose] > │ end │
00:01:48 #1897 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () "); │
00:01:48 #1898 [Verbose] > │ use pyo3::prelude::PyAnyMethods; │
00:01:48 #1899 [Verbose] > │ //" │
00:01:48 #1900 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:01:48 #1901 [Verbose] > │ and Mut1 = {mutable l0 : int32; mutable l1 : string} │
00:01:48 #1902 [Verbose] > │ and UH0 = │
00:01:48 #1903 [Verbose] > │ | UH0_0 of float * UH0 │
00:01:48 #1904 [Verbose] > │ | UH0_1 │
00:01:48 #1905 [Verbose] > │ and Mut2 = {mutable l0 : int32; mutable l1 : float} │
00:01:48 #1906 [Verbose] > │ let rec method1 () : float = │
00:01:48 #1907 [Verbose] > │ 2.0 │
00:01:48 #1908 [Verbose] > │ and method2 () : float = │
00:01:48 #1909 [Verbose] > │ 0.0 │
00:01:48 #1910 [Verbose] > │ and method3 () : float = │
00:01:48 #1911 [Verbose] > │ -1.0 │
00:01:48 #1912 [Verbose] > │ and method4 (v0 : (struct (num_complex_Complex<float> * float) [])) : │
00:01:48 #1913 [Verbose] > │ (struct (num_complex_Complex<float> * float) []) = │
00:01:48 #1914 [Verbose] > │ v0 │
00:01:48 #1915 [Verbose] > │ and method5 (v0 : int32, v1 : Mut0) : bool = │
00:01:48 #1916 [Verbose] > │ let v2 : int32 = v1.l0 │
00:01:48 #1917 [Verbose] > │ let v3 : bool = v2 < v0 │
00:01:48 #1918 [Verbose] > │ v3 │
00:01:48 #1919 [Verbose] > │ and method6 (v0 : (string [])) : (string []) = │
00:01:48 #1920 [Verbose] > │ v0 │
00:01:48 #1921 [Verbose] > │ and method7 (v0 : int32, v1 : Mut1) : bool = │
00:01:48 #1922 [Verbose] > │ let v2 : int32 = v1.l0 │
00:01:48 #1923 [Verbose] > │ let v3 : bool = v2 < v0 │
00:01:48 #1924 [Verbose] > │ v3 │
00:01:48 #1925 [Verbose] > │ and method8 (v0 : num_complex_Complex<float>) : num_complex_Complex<float> = │
00:01:48 #1926 [Verbose] > │ v0 │
00:01:48 #1927 [Verbose] > │ and method9 (v0 : num_complex_Complex<float>) : num_complex_Complex<float> = │
00:01:48 #1928 [Verbose] > │ v0 │
00:01:48 #1929 [Verbose] > │ and method10 (v0 : pyo3_Python) : pyo3_Python = │
00:01:48 #1930 [Verbose] > │ v0 │
00:01:48 #1931 [Verbose] > │ and method11 (v0 : string) : string = │
00:01:48 #1932 [Verbose] > │ v0 │
00:01:48 #1933 [Verbose] > │ and method12 (v0 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr>) : │
00:01:48 #1934 [Verbose] > │ Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:48 #1935 [Verbose] > │ v0 │
00:01:48 #1936 [Verbose] > │ and method13 () : string = │
00:01:48 #1937 [Verbose] > │ let v0 : string = "fn" │
00:01:48 #1938 [Verbose] > │ v0 │
00:01:48 #1939 [Verbose] > │ and method14 (v0 : pyo3_Bound<pyo3_types_PyModule>) : │
00:01:48 #1940 [Verbose] > │ pyo3_Bound<pyo3_types_PyModule> = │
00:01:48 #1941 [Verbose] > │ v0 │
00:01:48 #1942 [Verbose] > │ and method15 (v0 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr>) : │
00:01:48 #1943 [Verbose] > │ Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:48 #1944 [Verbose] > │ v0 │
00:01:48 #1945 [Verbose] > │ and method16 (v0 : ((float * float) * unit)) : ((float * float) * unit) = │
00:01:48 #1946 [Verbose] > │ v0 │
00:01:48 #1947 [Verbose] > │ and method17 (v0 : pyo3_Bound<pyo3_PyAny>) : pyo3_Bound<pyo3_PyAny> = │
00:01:48 #1948 [Verbose] > │ v0 │
00:01:48 #1949 [Verbose] > │ and method18 (v0 : pyo3_Bound<pyo3_PyAny>) : pyo3_Bound<pyo3_PyAny> = │
00:01:48 #1950 [Verbose] > │ v0 │
00:01:48 #1951 [Verbose] > │ and method19 (v0 : Result<struct (float * float), pyo3_PyErr>) : │
00:01:48 #1952 [Verbose] > │ Result<struct (float * float), pyo3_PyErr> = │
00:01:48 #1953 [Verbose] > │ v0 │
00:01:48 #1954 [Verbose] > │ and method20 (v0 : float) : float = │
00:01:48 #1955 [Verbose] > │ v0 │
00:01:48 #1956 [Verbose] > │ and method21 (v0 : float) : float = │
00:01:48 #1957 [Verbose] > │ v0 │
00:01:48 #1958 [Verbose] > │ and method22 (v0 : Result<num_complex_Complex<float>, pyo3_PyErr>) : │
00:01:48 #1959 [Verbose] > │ Result<num_complex_Complex<float>, pyo3_PyErr> = │
00:01:48 #1960 [Verbose] > │ v0 │
00:01:48 #1961 [Verbose] > │ and method23 (v0 : bool) : bool = │
00:01:48 #1962 [Verbose] > │ v0 │
00:01:48 #1963 [Verbose] > │ and method24 (v0 : Result<unit, pyo3_PyErr>) : Result<unit, pyo3_PyErr> = │
00:01:48 #1964 [Verbose] > │ v0 │
00:01:48 #1965 [Verbose] > │ and method25 (v0 : Result<unit, pyo3_PyErr>) : Result<unit, pyo3_PyErr> = │
00:01:48 #1966 [Verbose] > │ v0 │
00:01:48 #1967 [Verbose] > │ and method0 () : unit = │
00:01:48 #1968 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:48 #1969 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:48 #1970 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:48 #1971 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:48 #1972 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:48 #1973 [Verbose] > │ let v2 : string = "py" │
00:01:48 #1974 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:48 #1975 [Verbose] > │ let v4 : float = method1() │
00:01:48 #1976 [Verbose] > │ let v5 : float = method2() │
00:01:48 #1977 [Verbose] > │ let v6 : string = "num_complex::Complex::new(v4, v5)" │
00:01:48 #1978 [Verbose] > │ let v7 : num_complex_Complex<float> = │
00:01:48 #1979 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:01:48 #1980 [Verbose] > │ let v8 : float = method3() │
00:01:48 #1981 [Verbose] > │ let v9 : float = method2() │
00:01:48 #1982 [Verbose] > │ let v10 : string = "num_complex::Complex::new(v8, v9)" │
00:01:48 #1983 [Verbose] > │ let v11 : num_complex_Complex<float> = │
00:01:48 #1984 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v10 │
00:01:48 #1985 [Verbose] > │ let v12 : (struct (num_complex_Complex<float> * float) []) = [|struct │
00:01:48 #1986 [Verbose] > │ (v7, 1.6449340668482264); struct (v11, -0.08333333333333333)|] │
00:01:48 #1987 [Verbose] > │ let v13 : (struct (num_complex_Complex<float> * float) []) = │
00:01:48 #1988 [Verbose] > │ method4(v12) │
00:01:48 #1989 [Verbose] > │ let v14 : int32 = v13.Length │
00:01:48 #1990 [Verbose] > │ let v15 : Mut0 = {l0 = 0} : Mut0 │
00:01:48 #1991 [Verbose] > │ while method5(v14, v15) do │
00:01:48 #1992 [Verbose] > │ let v17 : int32 = v15.l0 │
00:01:48 #1993 [Verbose] > │ let struct (v18 : num_complex_Complex<float>, v19 : float) = v13.[ │
00:01:48 #1994 [Verbose] > │ int v17] │
00:01:48 #1995 [Verbose] > │ let v20 : string = "import mpmath" │
00:01:48 #1996 [Verbose] > │ let v21 : string = "def fn(s, _):" │
00:01:48 #1997 [Verbose] > │ let v22 : string = " s = complex(*s)" │
00:01:48 #1998 [Verbose] > │ let v23 : string = " try:" │
00:01:48 #1999 [Verbose] > │ let v24 : string = " s = mpmath.zeta(s)" │
00:01:48 #2000 [Verbose] > │ let v25 : string = " except ValueError as e:" │
00:01:48 #2001 [Verbose] > │ let v26 : string = " if s.real == 1:" │
00:01:48 #2002 [Verbose] > │ let v27 : string = " s = complex(float('inf'), 0)" │
00:01:48 #2003 [Verbose] > │ let v28 : string = " return (s.real, s.imag)" │
00:01:48 #2004 [Verbose] > │ let v29 : (string []) = [|v20; v21; v22; v23; v24; v25; v26; v27; │
00:01:48 #2005 [Verbose] > │ v28|] │
00:01:48 #2006 [Verbose] > │ let v30 : (string []) = method6(v29) │
00:01:48 #2007 [Verbose] > │ let v31 : int32 = v30.Length │
00:01:48 #2008 [Verbose] > │ let v32 : string = "" │
00:01:48 #2009 [Verbose] > │ let v33 : Mut1 = {l0 = 0; l1 = v32} : Mut1 │
00:01:48 #2010 [Verbose] > │ while method7(v31, v33) do │
00:01:48 #2011 [Verbose] > │ let v35 : int32 = v33.l0 │
00:01:48 #2012 [Verbose] > │ let v36 : string = v33.l1 │
00:01:48 #2013 [Verbose] > │ let v37 : string = v30.[int v35] │
00:01:48 #2014 [Verbose] > │ let v38 : string = "\n" │
00:01:48 #2015 [Verbose] > │ let v39 : string = v36 + v37 + v38 + "" │
00:01:48 #2016 [Verbose] > │ let v40 : int32 = v35 + 1 │
00:01:48 #2017 [Verbose] > │ v33.l0 <- v40 │
00:01:48 #2018 [Verbose] > │ v33.l1 <- v39 │
00:01:48 #2019 [Verbose] > │ () │
00:01:48 #2020 [Verbose] > │ let v41 : string = v33.l1 │
00:01:48 #2021 [Verbose] > │ let v42 : num_complex_Complex<float> = method8(v18) │
00:01:48 #2022 [Verbose] > │ let v43 : string = "v42.re" │
00:01:48 #2023 [Verbose] > │ let v44 : float = Fable.Core.RustInterop.emitRustExpr () v43 │
00:01:48 #2024 [Verbose] > │ let v45 : num_complex_Complex<float> = method9(v18) │
00:01:48 #2025 [Verbose] > │ let v46 : string = "v45.im" │
00:01:48 #2026 [Verbose] > │ let v47 : float = Fable.Core.RustInterop.emitRustExpr () v46 │
00:01:48 #2027 [Verbose] > │ let v48 : (float * float) = v44, v47 │
00:01:48 #2028 [Verbose] > │ let v49 : ((float * float) * unit) = v48, () │
00:01:48 #2029 [Verbose] > │ let v50 : pyo3_Python = method10(v3) │
00:01:48 #2030 [Verbose] > │ let v51 : string = method11(v41) │
00:01:48 #2031 [Verbose] > │ let v52 : string = │
00:01:48 #2032 [Verbose] > │ $"fable_library_rust::String_::LrcStr::as_str(&v51)" │
00:01:48 #2033 [Verbose] > │ let v53 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v52 │
00:01:48 #2034 [Verbose] > │ let v54 : string = "pyo3::types::PyModule::from_code_bound(v50, v53, │
00:01:48 #2035 [Verbose] > │ \"\", \"\")" │
00:01:48 #2036 [Verbose] > │ let v55 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:48 #2037 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v54 │
00:01:48 #2038 [Verbose] > │ let v56 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:48 #2039 [Verbose] > │ method12(v55) │
00:01:48 #2040 [Verbose] > │ let v57 : string = "v56.unwrap()" │
00:01:48 #2041 [Verbose] > │ let v58 : pyo3_Bound<pyo3_types_PyModule> = │
00:01:48 #2042 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v57 │
00:01:48 #2043 [Verbose] > │ let v59 : string = method13() │
00:01:48 #2044 [Verbose] > │ let v60 : string = │
00:01:48 #2045 [Verbose] > │ $"fable_library_rust::String_::LrcStr::as_str(&v59)" │
00:01:48 #2046 [Verbose] > │ let v61 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v60 │
00:01:48 #2047 [Verbose] > │ let v62 : pyo3_Bound<pyo3_types_PyModule> = method14(v58) │
00:01:48 #2048 [Verbose] > │ let v63 : string = "v62.getattr(v61)" │
00:01:48 #2049 [Verbose] > │ let v64 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:48 #2050 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v63 │
00:01:48 #2051 [Verbose] > │ let v65 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v64) │
00:01:48 #2052 [Verbose] > │ let v66 : string = "v65.unwrap()" │
00:01:48 #2053 [Verbose] > │ let v67 : pyo3_Bound<pyo3_PyAny> = │
00:01:48 #2054 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v66 │
00:01:48 #2055 [Verbose] > │ let v68 : ((float * float) * unit) = method16(v49) │
00:01:48 #2056 [Verbose] > │ let v69 : pyo3_Bound<pyo3_PyAny> = method17(v67) │
00:01:48 #2057 [Verbose] > │ let v70 : string = "pyo3::prelude::PyAnyMethods::call(&v69, │
00:01:48 #2058 [Verbose] > │ (*(*v68).0, ()), None)" │
00:01:48 #2059 [Verbose] > │ let v71 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:48 #2060 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v70 │
00:01:48 #2061 [Verbose] > │ let v72 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v71) │
00:01:48 #2062 [Verbose] > │ let v73 : string = "v72.unwrap()" │
00:01:48 #2063 [Verbose] > │ let v74 : pyo3_Bound<pyo3_PyAny> = │
00:01:48 #2064 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v73 │
00:01:48 #2065 [Verbose] > │ let v75 : pyo3_Bound<pyo3_PyAny> = method18(v74) │
00:01:48 #2066 [Verbose] > │ let v76 : string = "v75.extract()" │
00:01:48 #2067 [Verbose] > │ let v77 : Result<struct (float * float), pyo3_PyErr> = │
00:01:48 #2068 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v76 │
00:01:48 #2069 [Verbose] > │ let v78 : Result<struct (float * float), pyo3_PyErr> = method19(v77) │
00:01:48 #2070 [Verbose] > │ let v79 : string = "v78.unwrap()" │
00:01:48 #2071 [Verbose] > │ let struct (v80 : float, v81 : float) = │
00:01:48 #2072 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v79 │
00:01:48 #2073 [Verbose] > │ let v82 : float = method20(v80) │
00:01:48 #2074 [Verbose] > │ let v83 : float = method21(v81) │
00:01:48 #2075 [Verbose] > │ let v84 : string = "num_complex::Complex::new(v82, v83)" │
00:01:48 #2076 [Verbose] > │ let v85 : num_complex_Complex<float> = │
00:01:48 #2077 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v84 │
00:01:48 #2078 [Verbose] > │ let v86 : Result<num_complex_Complex<float>, pyo3_PyErr> = Ok v85 │
00:01:48 #2079 [Verbose] > │ let v87 : Result<num_complex_Complex<float>, pyo3_PyErr> = │
00:01:48 #2080 [Verbose] > │ method22(v86) │
00:01:48 #2081 [Verbose] > │ let v88 : string = "v87.unwrap()" │
00:01:48 #2082 [Verbose] > │ let v89 : num_complex_Complex<float> = │
00:01:48 #2083 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v88 │
00:01:48 #2084 [Verbose] > │ let v90 : num_complex_Complex<float> = method9(v89) │
00:01:48 #2085 [Verbose] > │ let v91 : string = "v90.im" │
00:01:48 #2086 [Verbose] > │ let v92 : float = Fable.Core.RustInterop.emitRustExpr () v91 │
00:01:48 #2087 [Verbose] > │ let v93 : bool = v92 = 0.0 │
00:01:48 #2088 [Verbose] > │ let v95 : bool = │
00:01:48 #2089 [Verbose] > │ if v93 then │
00:01:48 #2090 [Verbose] > │ true │
00:01:48 #2091 [Verbose] > │ else │
00:01:48 #2092 [Verbose] > │ method23(v93) │
00:01:48 #2093 [Verbose] > │ let v96 : string = $"__expect / actual: %A{v92} / expected: %A{0.0}" │
00:01:48 #2094 [Verbose] > │ let v97 : bool = v95 = false │
00:01:48 #2095 [Verbose] > │ if v97 then │
00:01:48 #2096 [Verbose] > │ failwith<unit> v96 │
00:01:48 #2097 [Verbose] > │ let v98 : num_complex_Complex<float> = method8(v89) │
00:01:48 #2098 [Verbose] > │ let v99 : string = "v98.re" │
00:01:48 #2099 [Verbose] > │ let v100 : float = Fable.Core.RustInterop.emitRustExpr () v99 │
00:01:48 #2100 [Verbose] > │ let v101 : float = v100 - v19 │
00:01:48 #2101 [Verbose] > │ let v102 : float = -v101 │
00:01:48 #2102 [Verbose] > │ let v103 : bool = v101 >= v102 │
00:01:48 #2103 [Verbose] > │ let v104 : float = │
00:01:48 #2104 [Verbose] > │ if v103 then │
00:01:48 #2105 [Verbose] > │ v101 │
00:01:48 #2106 [Verbose] > │ else │
00:01:48 #2107 [Verbose] > │ v102 │
00:01:48 #2108 [Verbose] > │ let v105 : bool = v104 < 0.0001 │
00:01:48 #2109 [Verbose] > │ let v107 : bool = │
00:01:48 #2110 [Verbose] > │ if v105 then │
00:01:48 #2111 [Verbose] > │ true │
00:01:48 #2112 [Verbose] > │ else │
00:01:48 #2113 [Verbose] > │ method23(v105) │
00:01:48 #2114 [Verbose] > │ let v108 : string = $"__expect / actual: %A{v104} / expected: │
00:01:48 #2115 [Verbose] > │ %A{0.0001}" │
00:01:48 #2116 [Verbose] > │ let v109 : bool = v107 = false │
00:01:48 #2117 [Verbose] > │ if v109 then │
00:01:48 #2118 [Verbose] > │ failwith<unit> v108 │
00:01:48 #2119 [Verbose] > │ let v110 : int32 = v17 + 1 │
00:01:48 #2120 [Verbose] > │ v15.l0 <- v110 │
00:01:48 #2121 [Verbose] > │ () │
00:01:48 #2122 [Verbose] > │ let v111 : Result<unit, pyo3_PyErr> = Ok () │
00:01:48 #2123 [Verbose] > │ let v112 : Result<unit, pyo3_PyErr> = method24(v111) │
00:01:48 #2124 [Verbose] > │ let v113 : string = "v112 }}})" │
00:01:48 #2125 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v113 │
00:01:48 #2126 [Verbose] > │ let v114 : string = " {{ //" │
00:01:48 #2127 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v114 │
00:01:48 #2128 [Verbose] > │ let v115 : string = "__result" │
00:01:48 #2129 [Verbose] > │ let v116 : Result<unit, pyo3_PyErr> = │
00:01:48 #2130 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v115 │
00:01:48 #2131 [Verbose] > │ let v117 : Result<unit, pyo3_PyErr> = method25(v116) │
00:01:48 #2132 [Verbose] > │ let v118 : string = "v117.unwrap()" │
00:01:48 #2133 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v118 │
00:01:48 #2134 [Verbose] > │ () │
00:01:48 #2135 [Verbose] > │ and method27 () : float = │
00:01:48 #2136 [Verbose] > │ -2.0 │
00:01:48 #2137 [Verbose] > │ and method26 () : unit = │
00:01:48 #2138 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:48 #2139 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:48 #2140 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:48 #2141 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:48 #2142 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:48 #2143 [Verbose] > │ let v2 : string = "py" │
00:01:48 #2144 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:48 #2145 [Verbose] > │ let v4 : float = method1() │
00:01:48 #2146 [Verbose] > │ let v5 : float = method27() │
00:01:48 #2147 [Verbose] > │ let v6 : string = "num_complex::Complex::new(v4, v5)" │
00:01:48 #2148 [Verbose] > │ let v7 : num_complex_Complex<float> = │
00:01:48 #2149 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:01:48 #2150 [Verbose] > │ let v8 : string = "import mpmath" │
00:01:48 #2151 [Verbose] > │ let v9 : string = "def fn(s, _):" │
00:01:48 #2152 [Verbose] > │ let v10 : string = " s = complex(*s)" │
00:01:48 #2153 [Verbose] > │ let v11 : string = " try:" │
00:01:48 #2154 [Verbose] > │ let v12 : string = " s = mpmath.zeta(s)" │
00:01:48 #2155 [Verbose] > │ let v13 : string = " except ValueError as e:" │
00:01:48 #2156 [Verbose] > │ let v14 : string = " if s.real == 1:" │
00:01:48 #2157 [Verbose] > │ let v15 : string = " s = complex(float('inf'), 0)" │
00:01:48 #2158 [Verbose] > │ let v16 : string = " return (s.real, s.imag)" │
00:01:48 #2159 [Verbose] > │ let v17 : (string []) = [|v8; v9; v10; v11; v12; v13; v14; v15; v16|] │
00:01:48 #2160 [Verbose] > │ let v18 : (string []) = method6(v17) │
00:01:48 #2161 [Verbose] > │ let v19 : int32 = v18.Length │
00:01:48 #2162 [Verbose] > │ let v20 : string = "" │
00:01:48 #2163 [Verbose] > │ let v21 : Mut1 = {l0 = 0; l1 = v20} : Mut1 │
00:01:48 #2164 [Verbose] > │ while method7(v19, v21) do │
00:01:48 #2165 [Verbose] > │ let v23 : int32 = v21.l0 │
00:01:48 #2166 [Verbose] > │ let v24 : string = v21.l1 │
00:01:48 #2167 [Verbose] > │ let v25 : string = v18.[int v23] │
00:01:48 #2168 [Verbose] > │ let v26 : string = "\n" │
00:01:48 #2169 [Verbose] > │ let v27 : string = v24 + v25 + v26 + "" │
00:01:48 #2170 [Verbose] > │ let v28 : int32 = v23 + 1 │
00:01:48 #2171 [Verbose] > │ v21.l0 <- v28 │
00:01:48 #2172 [Verbose] > │ v21.l1 <- v27 │
00:01:48 #2173 [Verbose] > │ () │
00:01:48 #2174 [Verbose] > │ let v29 : string = v21.l1 │
00:01:48 #2175 [Verbose] > │ let v30 : num_complex_Complex<float> = method8(v7) │
00:01:48 #2176 [Verbose] > │ let v31 : string = "v30.re" │
00:01:48 #2177 [Verbose] > │ let v32 : float = Fable.Core.RustInterop.emitRustExpr () v31 │
00:01:48 #2178 [Verbose] > │ let v33 : num_complex_Complex<float> = method9(v7) │
00:01:48 #2179 [Verbose] > │ let v34 : string = "v33.im" │
00:01:48 #2180 [Verbose] > │ let v35 : float = Fable.Core.RustInterop.emitRustExpr () v34 │
00:01:48 #2181 [Verbose] > │ let v36 : (float * float) = v32, v35 │
00:01:48 #2182 [Verbose] > │ let v37 : ((float * float) * unit) = v36, () │
00:01:48 #2183 [Verbose] > │ let v38 : pyo3_Python = method10(v3) │
00:01:48 #2184 [Verbose] > │ let v39 : string = method11(v29) │
00:01:48 #2185 [Verbose] > │ let v40 : string = $"fable_library_rust::String_::LrcStr::as_str(&v39)" │
00:01:48 #2186 [Verbose] > │ let v41 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v40 │
00:01:48 #2187 [Verbose] > │ let v42 : string = "pyo3::types::PyModule::from_code_bound(v38, v41, │
00:01:48 #2188 [Verbose] > │ \"\", \"\")" │
00:01:48 #2189 [Verbose] > │ let v43 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:48 #2190 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v42 │
00:01:48 #2191 [Verbose] > │ let v44 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:48 #2192 [Verbose] > │ method12(v43) │
00:01:48 #2193 [Verbose] > │ let v45 : string = "v44.unwrap()" │
00:01:48 #2194 [Verbose] > │ let v46 : pyo3_Bound<pyo3_types_PyModule> = │
00:01:48 #2195 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v45 │
00:01:48 #2196 [Verbose] > │ let v47 : string = method13() │
00:01:48 #2197 [Verbose] > │ let v48 : string = $"fable_library_rust::String_::LrcStr::as_str(&v47)" │
00:01:48 #2198 [Verbose] > │ let v49 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v48 │
00:01:48 #2199 [Verbose] > │ let v50 : pyo3_Bound<pyo3_types_PyModule> = method14(v46) │
00:01:48 #2200 [Verbose] > │ let v51 : string = "v50.getattr(v49)" │
00:01:48 #2201 [Verbose] > │ let v52 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:48 #2202 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v51 │
00:01:48 #2203 [Verbose] > │ let v53 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v52) │
00:01:48 #2204 [Verbose] > │ let v54 : string = "v53.unwrap()" │
00:01:48 #2205 [Verbose] > │ let v55 : pyo3_Bound<pyo3_PyAny> = Fable.Core.RustInterop.emitRustExpr │
00:01:48 #2206 [Verbose] > │ () v54 │
00:01:48 #2207 [Verbose] > │ let v56 : ((float * float) * unit) = method16(v37) │
00:01:48 #2208 [Verbose] > │ let v57 : pyo3_Bound<pyo3_PyAny> = method17(v55) │
00:01:48 #2209 [Verbose] > │ let v58 : string = "pyo3::prelude::PyAnyMethods::call(&v57, (*(*v56).0, │
00:01:48 #2210 [Verbose] > │ ()), None)" │
00:01:48 #2211 [Verbose] > │ let v59 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:48 #2212 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v58 │
00:01:48 #2213 [Verbose] > │ let v60 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v59) │
00:01:48 #2214 [Verbose] > │ let v61 : string = "v60.unwrap()" │
00:01:48 #2215 [Verbose] > │ let v62 : pyo3_Bound<pyo3_PyAny> = Fable.Core.RustInterop.emitRustExpr │
00:01:48 #2216 [Verbose] > │ () v61 │
00:01:48 #2217 [Verbose] > │ let v63 : pyo3_Bound<pyo3_PyAny> = method18(v62) │
00:01:48 #2218 [Verbose] > │ let v64 : string = "v63.extract()" │
00:01:48 #2219 [Verbose] > │ let v65 : Result<struct (float * float), pyo3_PyErr> = │
00:01:48 #2220 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v64 │
00:01:48 #2221 [Verbose] > │ let v66 : Result<struct (float * float), pyo3_PyErr> = method19(v65) │
00:01:48 #2222 [Verbose] > │ let v67 : string = "v66.unwrap()" │
00:01:48 #2223 [Verbose] > │ let struct (v68 : float, v69 : float) = │
00:01:48 #2224 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v67 │
00:01:48 #2225 [Verbose] > │ let v70 : float = method20(v68) │
00:01:48 #2226 [Verbose] > │ let v71 : float = method21(v69) │
00:01:48 #2227 [Verbose] > │ let v72 : string = "num_complex::Complex::new(v70, v71)" │
00:01:48 #2228 [Verbose] > │ let v73 : num_complex_Complex<float> = │
00:01:48 #2229 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v72 │
00:01:48 #2230 [Verbose] > │ let v74 : Result<num_complex_Complex<float>, pyo3_PyErr> = Ok v73 │
00:01:48 #2231 [Verbose] > │ let v75 : Result<num_complex_Complex<float>, pyo3_PyErr> = method22(v74) │
00:01:48 #2232 [Verbose] > │ let v76 : string = "v75.unwrap()" │
00:01:48 #2233 [Verbose] > │ let v77 : num_complex_Complex<float> = │
00:01:48 #2234 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v76 │
00:01:48 #2235 [Verbose] > │ let v78 : num_complex_Complex<float> = method8(v77) │
00:01:48 #2236 [Verbose] > │ let v79 : string = "v78.re" │
00:01:48 #2237 [Verbose] > │ let v80 : float = Fable.Core.RustInterop.emitRustExpr () v79 │
00:01:48 #2238 [Verbose] > │ let v81 : float = v80 - 0.8673 │
00:01:48 #2239 [Verbose] > │ let v82 : float = -v81 │
00:01:48 #2240 [Verbose] > │ let v83 : bool = v81 >= v82 │
00:01:48 #2241 [Verbose] > │ let v84 : float = │
00:01:48 #2242 [Verbose] > │ if v83 then │
00:01:48 #2243 [Verbose] > │ v81 │
00:01:48 #2244 [Verbose] > │ else │
00:01:48 #2245 [Verbose] > │ v82 │
00:01:48 #2246 [Verbose] > │ let v85 : bool = v84 < 0.001 │
00:01:48 #2247 [Verbose] > │ let v87 : bool = │
00:01:48 #2248 [Verbose] > │ if v85 then │
00:01:48 #2249 [Verbose] > │ true │
00:01:48 #2250 [Verbose] > │ else │
00:01:48 #2251 [Verbose] > │ method23(v85) │
00:01:48 #2252 [Verbose] > │ let v88 : string = $"__expect / actual: %A{v84} / expected: %A{0.001}" │
00:01:48 #2253 [Verbose] > │ let v89 : bool = v87 = false │
00:01:48 #2254 [Verbose] > │ if v89 then │
00:01:48 #2255 [Verbose] > │ failwith<unit> v88 │
00:01:48 #2256 [Verbose] > │ let v90 : num_complex_Complex<float> = method9(v77) │
00:01:48 #2257 [Verbose] > │ let v91 : string = "v90.im" │
00:01:48 #2258 [Verbose] > │ let v92 : float = Fable.Core.RustInterop.emitRustExpr () v91 │
00:01:48 #2259 [Verbose] > │ let v93 : float = v92 - 0.275 │
00:01:48 #2260 [Verbose] > │ let v94 : float = -v93 │
00:01:48 #2261 [Verbose] > │ let v95 : bool = v93 >= v94 │
00:01:48 #2262 [Verbose] > │ let v96 : float = │
00:01:48 #2263 [Verbose] > │ if v95 then │
00:01:48 #2264 [Verbose] > │ v93 │
00:01:48 #2265 [Verbose] > │ else │
00:01:48 #2266 [Verbose] > │ v94 │
00:01:48 #2267 [Verbose] > │ let v97 : bool = v96 < 0.001 │
00:01:48 #2268 [Verbose] > │ let v99 : bool = │
00:01:48 #2269 [Verbose] > │ if v97 then │
00:01:48 #2270 [Verbose] > │ true │
00:01:48 #2271 [Verbose] > │ else │
00:01:48 #2272 [Verbose] > │ method23(v97) │
00:01:48 #2273 [Verbose] > │ let v100 : string = $"__expect / actual: %A{v96} / expected: %A{0.001}" │
00:01:48 #2274 [Verbose] > │ let v101 : bool = v99 = false │
00:01:48 #2275 [Verbose] > │ if v101 then │
00:01:48 #2276 [Verbose] > │ failwith<unit> v100 │
00:01:48 #2277 [Verbose] > │ let v102 : Result<unit, pyo3_PyErr> = Ok () │
00:01:48 #2278 [Verbose] > │ let v103 : Result<unit, pyo3_PyErr> = method24(v102) │
00:01:48 #2279 [Verbose] > │ let v104 : string = "v103 }}}}})" │
00:01:48 #2280 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v104 │
00:01:48 #2281 [Verbose] > │ let v105 : string = " {{{{ //" │
00:01:48 #2282 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v105 │
00:01:48 #2283 [Verbose] > │ let v106 : string = "__result" │
00:01:48 #2284 [Verbose] > │ let v107 : Result<unit, pyo3_PyErr> = │
00:01:48 #2285 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v106 │
00:01:48 #2286 [Verbose] > │ let v108 : Result<unit, pyo3_PyErr> = method25(v107) │
00:01:48 #2287 [Verbose] > │ let v109 : string = "v108.unwrap()" │
00:01:48 #2288 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v109 │
00:01:48 #2289 [Verbose] > │ () │
00:01:48 #2290 [Verbose] > │ and method29 () : UH0 = │
00:01:48 #2291 [Verbose] > │ let v0 : UH0 = UH0_1 │
00:01:48 #2292 [Verbose] > │ let v1 : UH0 = UH0_0(-40.0, v0) │
00:01:48 #2293 [Verbose] > │ let v2 : UH0 = UH0_0(-38.0, v1) │
00:01:48 #2294 [Verbose] > │ let v3 : UH0 = UH0_0(-36.0, v2) │
00:01:48 #2295 [Verbose] > │ let v4 : UH0 = UH0_0(-34.0, v3) │
00:01:48 #2296 [Verbose] > │ let v5 : UH0 = UH0_0(-32.0, v4) │
00:01:48 #2297 [Verbose] > │ let v6 : UH0 = UH0_0(-30.0, v5) │
00:01:48 #2298 [Verbose] > │ let v7 : UH0 = UH0_0(-28.0, v6) │
00:01:48 #2299 [Verbose] > │ let v8 : UH0 = UH0_0(-26.0, v7) │
00:01:48 #2300 [Verbose] > │ let v9 : UH0 = UH0_0(-24.0, v8) │
00:01:48 #2301 [Verbose] > │ let v10 : UH0 = UH0_0(-22.0, v9) │
00:01:48 #2302 [Verbose] > │ let v11 : UH0 = UH0_0(-20.0, v10) │
00:01:48 #2303 [Verbose] > │ let v12 : UH0 = UH0_0(-18.0, v11) │
00:01:48 #2304 [Verbose] > │ let v13 : UH0 = UH0_0(-16.0, v12) │
00:01:48 #2305 [Verbose] > │ let v14 : UH0 = UH0_0(-14.0, v13) │
00:01:48 #2306 [Verbose] > │ let v15 : UH0 = UH0_0(-12.0, v14) │
00:01:48 #2307 [Verbose] > │ let v16 : UH0 = UH0_0(-10.0, v15) │
00:01:48 #2308 [Verbose] > │ let v17 : UH0 = UH0_0(-8.0, v16) │
00:01:48 #2309 [Verbose] > │ let v18 : UH0 = UH0_0(-6.0, v17) │
00:01:48 #2310 [Verbose] > │ let v19 : UH0 = UH0_0(-4.0, v18) │
00:01:48 #2311 [Verbose] > │ UH0_0(-2.0, v19) │
00:01:48 #2312 [Verbose] > │ and method30 (v0 : pyo3_Python, v1 : UH0) : unit = │
00:01:48 #2313 [Verbose] > │ match v1 with │
00:01:48 #2314 [Verbose] > │ | UH0_0(v2, v3) -> (* Cons *) │
00:01:48 #2315 [Verbose] > │ let v4 : float = method20(v2) │
00:01:48 #2316 [Verbose] > │ let v5 : float = method2() │
00:01:48 #2317 [Verbose] > │ let v6 : string = "num_complex::Complex::new(v4, v5)" │
00:01:48 #2318 [Verbose] > │ let v7 : num_complex_Complex<float> = │
00:01:48 #2319 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:01:48 #2320 [Verbose] > │ let v8 : string = "import mpmath" │
00:01:48 #2321 [Verbose] > │ let v9 : string = "def fn(s, _):" │
00:01:48 #2322 [Verbose] > │ let v10 : string = " s = complex(*s)" │
00:01:48 #2323 [Verbose] > │ let v11 : string = " try:" │
00:01:48 #2324 [Verbose] > │ let v12 : string = " s = mpmath.zeta(s)" │
00:01:48 #2325 [Verbose] > │ let v13 : string = " except ValueError as e:" │
00:01:48 #2326 [Verbose] > │ let v14 : string = " if s.real == 1:" │
00:01:48 #2327 [Verbose] > │ let v15 : string = " s = complex(float('inf'), 0)" │
00:01:48 #2328 [Verbose] > │ let v16 : string = " return (s.real, s.imag)" │
00:01:48 #2329 [Verbose] > │ let v17 : (string []) = [|v8; v9; v10; v11; v12; v13; v14; v15; │
00:01:48 #2330 [Verbose] > │ v16|] │
00:01:48 #2331 [Verbose] > │ let v18 : (string []) = method6(v17) │
00:01:48 #2332 [Verbose] > │ let v19 : int32 = v18.Length │
00:01:48 #2333 [Verbose] > │ let v20 : string = "" │
00:01:48 #2334 [Verbose] > │ let v21 : Mut1 = {l0 = 0; l1 = v20} : Mut1 │
00:01:48 #2335 [Verbose] > │ while method7(v19, v21) do │
00:01:48 #2336 [Verbose] > │ let v23 : int32 = v21.l0 │
00:01:48 #2337 [Verbose] > │ let v24 : string = v21.l1 │
00:01:48 #2338 [Verbose] > │ let v25 : string = v18.[int v23] │
00:01:48 #2339 [Verbose] > │ let v26 : string = "\n" │
00:01:48 #2340 [Verbose] > │ let v27 : string = v24 + v25 + v26 + "" │
00:01:48 #2341 [Verbose] > │ let v28 : int32 = v23 + 1 │
00:01:48 #2342 [Verbose] > │ v21.l0 <- v28 │
00:01:49 #2343 [Verbose] > │ v21.l1 <- v27 │
00:01:49 #2344 [Verbose] > │ () │
00:01:49 #2345 [Verbose] > │ let v29 : string = v21.l1 │
00:01:49 #2346 [Verbose] > │ let v30 : num_complex_Complex<float> = method8(v7) │
00:01:49 #2347 [Verbose] > │ let v31 : string = "v30.re" │
00:01:49 #2348 [Verbose] > │ let v32 : float = Fable.Core.RustInterop.emitRustExpr () v31 │
00:01:49 #2349 [Verbose] > │ let v33 : num_complex_Complex<float> = method9(v7) │
00:01:49 #2350 [Verbose] > │ let v34 : string = "v33.im" │
00:01:49 #2351 [Verbose] > │ let v35 : float = Fable.Core.RustInterop.emitRustExpr () v34 │
00:01:49 #2352 [Verbose] > │ let v36 : (float * float) = v32, v35 │
00:01:49 #2353 [Verbose] > │ let v37 : ((float * float) * unit) = v36, () │
00:01:49 #2354 [Verbose] > │ let v38 : pyo3_Python = method10(v0) │
00:01:49 #2355 [Verbose] > │ let v39 : string = method11(v29) │
00:01:49 #2356 [Verbose] > │ let v40 : string = │
00:01:49 #2357 [Verbose] > │ $"fable_library_rust::String_::LrcStr::as_str(&v39)" │
00:01:49 #2358 [Verbose] > │ let v41 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v40 │
00:01:49 #2359 [Verbose] > │ let v42 : string = "pyo3::types::PyModule::from_code_bound(v38, v41, │
00:01:49 #2360 [Verbose] > │ \"\", \"\")" │
00:01:49 #2361 [Verbose] > │ let v43 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #2362 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v42 │
00:01:49 #2363 [Verbose] > │ let v44 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #2364 [Verbose] > │ method12(v43) │
00:01:49 #2365 [Verbose] > │ let v45 : string = "v44.unwrap()" │
00:01:49 #2366 [Verbose] > │ let v46 : pyo3_Bound<pyo3_types_PyModule> = │
00:01:49 #2367 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v45 │
00:01:49 #2368 [Verbose] > │ let v47 : string = method13() │
00:01:49 #2369 [Verbose] > │ let v48 : string = │
00:01:49 #2370 [Verbose] > │ $"fable_library_rust::String_::LrcStr::as_str(&v47)" │
00:01:49 #2371 [Verbose] > │ let v49 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v48 │
00:01:49 #2372 [Verbose] > │ let v50 : pyo3_Bound<pyo3_types_PyModule> = method14(v46) │
00:01:49 #2373 [Verbose] > │ let v51 : string = "v50.getattr(v49)" │
00:01:49 #2374 [Verbose] > │ let v52 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #2375 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v51 │
00:01:49 #2376 [Verbose] > │ let v53 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v52) │
00:01:49 #2377 [Verbose] > │ let v54 : string = "v53.unwrap()" │
00:01:49 #2378 [Verbose] > │ let v55 : pyo3_Bound<pyo3_PyAny> = │
00:01:49 #2379 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v54 │
00:01:49 #2380 [Verbose] > │ let v56 : ((float * float) * unit) = method16(v37) │
00:01:49 #2381 [Verbose] > │ let v57 : pyo3_Bound<pyo3_PyAny> = method17(v55) │
00:01:49 #2382 [Verbose] > │ let v58 : string = "pyo3::prelude::PyAnyMethods::call(&v57, │
00:01:49 #2383 [Verbose] > │ (*(*v56).0, ()), None)" │
00:01:49 #2384 [Verbose] > │ let v59 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #2385 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v58 │
00:01:49 #2386 [Verbose] > │ let v60 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v59) │
00:01:49 #2387 [Verbose] > │ let v61 : string = "v60.unwrap()" │
00:01:49 #2388 [Verbose] > │ let v62 : pyo3_Bound<pyo3_PyAny> = │
00:01:49 #2389 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v61 │
00:01:49 #2390 [Verbose] > │ let v63 : pyo3_Bound<pyo3_PyAny> = method18(v62) │
00:01:49 #2391 [Verbose] > │ let v64 : string = "v63.extract()" │
00:01:49 #2392 [Verbose] > │ let v65 : Result<struct (float * float), pyo3_PyErr> = │
00:01:49 #2393 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v64 │
00:01:49 #2394 [Verbose] > │ let v66 : Result<struct (float * float), pyo3_PyErr> = method19(v65) │
00:01:49 #2395 [Verbose] > │ let v67 : string = "v66.unwrap()" │
00:01:49 #2396 [Verbose] > │ let struct (v68 : float, v69 : float) = │
00:01:49 #2397 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v67 │
00:01:49 #2398 [Verbose] > │ let v70 : float = method20(v68) │
00:01:49 #2399 [Verbose] > │ let v71 : float = method21(v69) │
00:01:49 #2400 [Verbose] > │ let v72 : string = "num_complex::Complex::new(v70, v71)" │
00:01:49 #2401 [Verbose] > │ let v73 : num_complex_Complex<float> = │
00:01:49 #2402 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v72 │
00:01:49 #2403 [Verbose] > │ let v74 : Result<num_complex_Complex<float>, pyo3_PyErr> = Ok v73 │
00:01:49 #2404 [Verbose] > │ let v75 : Result<num_complex_Complex<float>, pyo3_PyErr> = │
00:01:49 #2405 [Verbose] > │ method22(v74) │
00:01:49 #2406 [Verbose] > │ let v76 : string = "v75.unwrap()" │
00:01:49 #2407 [Verbose] > │ let v77 : num_complex_Complex<float> = │
00:01:49 #2408 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v76 │
00:01:49 #2409 [Verbose] > │ let v78 : num_complex_Complex<float> = method8(v77) │
00:01:49 #2410 [Verbose] > │ let v79 : string = "v78.re" │
00:01:49 #2411 [Verbose] > │ let v80 : float = Fable.Core.RustInterop.emitRustExpr () v79 │
00:01:49 #2412 [Verbose] > │ let v81 : bool = v80 = 0.0 │
00:01:49 #2413 [Verbose] > │ let v83 : bool = │
00:01:49 #2414 [Verbose] > │ if v81 then │
00:01:49 #2415 [Verbose] > │ true │
00:01:49 #2416 [Verbose] > │ else │
00:01:49 #2417 [Verbose] > │ method23(v81) │
00:01:49 #2418 [Verbose] > │ let v84 : string = $"__expect / actual: %A{v80} / expected: %A{0.0}" │
00:01:49 #2419 [Verbose] > │ let v85 : bool = v83 = false │
00:01:49 #2420 [Verbose] > │ if v85 then │
00:01:49 #2421 [Verbose] > │ failwith<unit> v84 │
00:01:49 #2422 [Verbose] > │ let v86 : num_complex_Complex<float> = method9(v77) │
00:01:49 #2423 [Verbose] > │ let v87 : string = "v86.im" │
00:01:49 #2424 [Verbose] > │ let v88 : float = Fable.Core.RustInterop.emitRustExpr () v87 │
00:01:49 #2425 [Verbose] > │ let v89 : bool = v88 = 0.0 │
00:01:49 #2426 [Verbose] > │ let v91 : bool = │
00:01:49 #2427 [Verbose] > │ if v89 then │
00:01:49 #2428 [Verbose] > │ true │
00:01:49 #2429 [Verbose] > │ else │
00:01:49 #2430 [Verbose] > │ method23(v89) │
00:01:49 #2431 [Verbose] > │ let v92 : string = $"__expect / actual: %A{v88} / expected: %A{0.0}" │
00:01:49 #2432 [Verbose] > │ let v93 : bool = v91 = false │
00:01:49 #2433 [Verbose] > │ if v93 then │
00:01:49 #2434 [Verbose] > │ failwith<unit> v92 │
00:01:49 #2435 [Verbose] > │ method30(v0, v3) │
00:01:49 #2436 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:01:49 #2437 [Verbose] > │ () │
00:01:49 #2438 [Verbose] > │ and method28 () : unit = │
00:01:49 #2439 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:49 #2440 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:49 #2441 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:49 #2442 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:49 #2443 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:49 #2444 [Verbose] > │ let v2 : string = "py" │
00:01:49 #2445 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:49 #2446 [Verbose] > │ let v4 : UH0 = method29() │
00:01:49 #2447 [Verbose] > │ method30(v3, v4) │
00:01:49 #2448 [Verbose] > │ let v5 : Result<unit, pyo3_PyErr> = Ok () │
00:01:49 #2449 [Verbose] > │ let v6 : Result<unit, pyo3_PyErr> = method24(v5) │
00:01:49 #2450 [Verbose] > │ let v7 : string = "v6 }})" │
00:01:49 #2451 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:01:49 #2452 [Verbose] > │ let v8 : string = " { //" │
00:01:49 #2453 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v8 │
00:01:49 #2454 [Verbose] > │ let v9 : string = "__result" │
00:01:49 #2455 [Verbose] > │ let v10 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:01:49 #2456 [Verbose] > │ () v9 │
00:01:49 #2457 [Verbose] > │ let v11 : Result<unit, pyo3_PyErr> = method25(v10) │
00:01:49 #2458 [Verbose] > │ let v12 : string = "v11.unwrap()" │
00:01:49 #2459 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v12 │
00:01:49 #2460 [Verbose] > │ () │
00:01:49 #2461 [Verbose] > │ and method32 () : float = │
00:01:49 #2462 [Verbose] > │ 0.5 │
00:01:49 #2463 [Verbose] > │ and method33 () : float = │
00:01:49 #2464 [Verbose] > │ 14.134725 │
00:01:49 #2465 [Verbose] > │ and method34 () : float = │
00:01:49 #2466 [Verbose] > │ 21.02204 │
00:01:49 #2467 [Verbose] > │ and method35 () : float = │
00:01:49 #2468 [Verbose] > │ 25.010857 │
00:01:49 #2469 [Verbose] > │ and method36 () : float = │
00:01:49 #2470 [Verbose] > │ 30.424876 │
00:01:49 #2471 [Verbose] > │ and method37 () : float = │
00:01:49 #2472 [Verbose] > │ 32.935062 │
00:01:49 #2473 [Verbose] > │ and method38 () : float = │
00:01:49 #2474 [Verbose] > │ 37.586178 │
00:01:49 #2475 [Verbose] > │ and method39 (v0 : (num_complex_Complex<float> [])) : │
00:01:49 #2476 [Verbose] > │ (num_complex_Complex<float> []) = │
00:01:49 #2477 [Verbose] > │ v0 │
00:01:49 #2478 [Verbose] > │ and method31 () : unit = │
00:01:49 #2479 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:49 #2480 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:49 #2481 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:49 #2482 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:49 #2483 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:49 #2484 [Verbose] > │ let v2 : string = "py" │
00:01:49 #2485 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:49 #2486 [Verbose] > │ let v4 : float = method32() │
00:01:49 #2487 [Verbose] > │ let v5 : float = method33() │
00:01:49 #2488 [Verbose] > │ let v6 : string = "num_complex::Complex::new(v4, v5)" │
00:01:49 #2489 [Verbose] > │ let v7 : num_complex_Complex<float> = │
00:01:49 #2490 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:01:49 #2491 [Verbose] > │ let v8 : float = method32() │
00:01:49 #2492 [Verbose] > │ let v9 : float = method34() │
00:01:49 #2493 [Verbose] > │ let v10 : string = "num_complex::Complex::new(v8, v9)" │
00:01:49 #2494 [Verbose] > │ let v11 : num_complex_Complex<float> = │
00:01:49 #2495 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v10 │
00:01:49 #2496 [Verbose] > │ let v12 : float = method32() │
00:01:49 #2497 [Verbose] > │ let v13 : float = method35() │
00:01:49 #2498 [Verbose] > │ let v14 : string = "num_complex::Complex::new(v12, v13)" │
00:01:49 #2499 [Verbose] > │ let v15 : num_complex_Complex<float> = │
00:01:49 #2500 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v14 │
00:01:49 #2501 [Verbose] > │ let v16 : float = method32() │
00:01:49 #2502 [Verbose] > │ let v17 : float = method36() │
00:01:49 #2503 [Verbose] > │ let v18 : string = "num_complex::Complex::new(v16, v17)" │
00:01:49 #2504 [Verbose] > │ let v19 : num_complex_Complex<float> = │
00:01:49 #2505 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v18 │
00:01:49 #2506 [Verbose] > │ let v20 : float = method32() │
00:01:49 #2507 [Verbose] > │ let v21 : float = method37() │
00:01:49 #2508 [Verbose] > │ let v22 : string = "num_complex::Complex::new(v20, v21)" │
00:01:49 #2509 [Verbose] > │ let v23 : num_complex_Complex<float> = │
00:01:49 #2510 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v22 │
00:01:49 #2511 [Verbose] > │ let v24 : float = method32() │
00:01:49 #2512 [Verbose] > │ let v25 : float = method38() │
00:01:49 #2513 [Verbose] > │ let v26 : string = "num_complex::Complex::new(v24, v25)" │
00:01:49 #2514 [Verbose] > │ let v27 : num_complex_Complex<float> = │
00:01:49 #2515 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v26 │
00:01:49 #2516 [Verbose] > │ let v28 : (num_complex_Complex<float> []) = [|v7; v11; v15; v19; v23; │
00:01:49 #2517 [Verbose] > │ v27|] │
00:01:49 #2518 [Verbose] > │ let v29 : (num_complex_Complex<float> []) = method39(v28) │
00:01:49 #2519 [Verbose] > │ let v30 : int32 = v29.Length │
00:01:49 #2520 [Verbose] > │ let v31 : Mut0 = {l0 = 0} : Mut0 │
00:01:49 #2521 [Verbose] > │ while method5(v30, v31) do │
00:01:49 #2522 [Verbose] > │ let v33 : int32 = v31.l0 │
00:01:49 #2523 [Verbose] > │ let v34 : num_complex_Complex<float> = v29.[int v33] │
00:01:49 #2524 [Verbose] > │ let v35 : string = "import mpmath" │
00:01:49 #2525 [Verbose] > │ let v36 : string = "def fn(s, _):" │
00:01:49 #2526 [Verbose] > │ let v37 : string = " s = complex(*s)" │
00:01:49 #2527 [Verbose] > │ let v38 : string = " try:" │
00:01:49 #2528 [Verbose] > │ let v39 : string = " s = mpmath.zeta(s)" │
00:01:49 #2529 [Verbose] > │ let v40 : string = " except ValueError as e:" │
00:01:49 #2530 [Verbose] > │ let v41 : string = " if s.real == 1:" │
00:01:49 #2531 [Verbose] > │ let v42 : string = " s = complex(float('inf'), 0)" │
00:01:49 #2532 [Verbose] > │ let v43 : string = " return (s.real, s.imag)" │
00:01:49 #2533 [Verbose] > │ let v44 : (string []) = [|v35; v36; v37; v38; v39; v40; v41; v42; │
00:01:49 #2534 [Verbose] > │ v43|] │
00:01:49 #2535 [Verbose] > │ let v45 : (string []) = method6(v44) │
00:01:49 #2536 [Verbose] > │ let v46 : int32 = v45.Length │
00:01:49 #2537 [Verbose] > │ let v47 : string = "" │
00:01:49 #2538 [Verbose] > │ let v48 : Mut1 = {l0 = 0; l1 = v47} : Mut1 │
00:01:49 #2539 [Verbose] > │ while method7(v46, v48) do │
00:01:49 #2540 [Verbose] > │ let v50 : int32 = v48.l0 │
00:01:49 #2541 [Verbose] > │ let v51 : string = v48.l1 │
00:01:49 #2542 [Verbose] > │ let v52 : string = v45.[int v50] │
00:01:49 #2543 [Verbose] > │ let v53 : string = "\n" │
00:01:49 #2544 [Verbose] > │ let v54 : string = v51 + v52 + v53 + "" │
00:01:49 #2545 [Verbose] > │ let v55 : int32 = v50 + 1 │
00:01:49 #2546 [Verbose] > │ v48.l0 <- v55 │
00:01:49 #2547 [Verbose] > │ v48.l1 <- v54 │
00:01:49 #2548 [Verbose] > │ () │
00:01:49 #2549 [Verbose] > │ let v56 : string = v48.l1 │
00:01:49 #2550 [Verbose] > │ let v57 : num_complex_Complex<float> = method8(v34) │
00:01:49 #2551 [Verbose] > │ let v58 : string = "v57.re" │
00:01:49 #2552 [Verbose] > │ let v59 : float = Fable.Core.RustInterop.emitRustExpr () v58 │
00:01:49 #2553 [Verbose] > │ let v60 : num_complex_Complex<float> = method9(v34) │
00:01:49 #2554 [Verbose] > │ let v61 : string = "v60.im" │
00:01:49 #2555 [Verbose] > │ let v62 : float = Fable.Core.RustInterop.emitRustExpr () v61 │
00:01:49 #2556 [Verbose] > │ let v63 : (float * float) = v59, v62 │
00:01:49 #2557 [Verbose] > │ let v64 : ((float * float) * unit) = v63, () │
00:01:49 #2558 [Verbose] > │ let v65 : pyo3_Python = method10(v3) │
00:01:49 #2559 [Verbose] > │ let v66 : string = method11(v56) │
00:01:49 #2560 [Verbose] > │ let v67 : string = │
00:01:49 #2561 [Verbose] > │ $"fable_library_rust::String_::LrcStr::as_str(&v66)" │
00:01:49 #2562 [Verbose] > │ let v68 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v67 │
00:01:49 #2563 [Verbose] > │ let v69 : string = "pyo3::types::PyModule::from_code_bound(v65, v68, │
00:01:49 #2564 [Verbose] > │ \"\", \"\")" │
00:01:49 #2565 [Verbose] > │ let v70 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #2566 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v69 │
00:01:49 #2567 [Verbose] > │ let v71 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #2568 [Verbose] > │ method12(v70) │
00:01:49 #2569 [Verbose] > │ let v72 : string = "v71.unwrap()" │
00:01:49 #2570 [Verbose] > │ let v73 : pyo3_Bound<pyo3_types_PyModule> = │
00:01:49 #2571 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v72 │
00:01:49 #2572 [Verbose] > │ let v74 : string = method13() │
00:01:49 #2573 [Verbose] > │ let v75 : string = │
00:01:49 #2574 [Verbose] > │ $"fable_library_rust::String_::LrcStr::as_str(&v74)" │
00:01:49 #2575 [Verbose] > │ let v76 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v75 │
00:01:49 #2576 [Verbose] > │ let v77 : pyo3_Bound<pyo3_types_PyModule> = method14(v73) │
00:01:49 #2577 [Verbose] > │ let v78 : string = "v77.getattr(v76)" │
00:01:49 #2578 [Verbose] > │ let v79 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #2579 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v78 │
00:01:49 #2580 [Verbose] > │ let v80 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v79) │
00:01:49 #2581 [Verbose] > │ let v81 : string = "v80.unwrap()" │
00:01:49 #2582 [Verbose] > │ let v82 : pyo3_Bound<pyo3_PyAny> = │
00:01:49 #2583 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v81 │
00:01:49 #2584 [Verbose] > │ let v83 : ((float * float) * unit) = method16(v64) │
00:01:49 #2585 [Verbose] > │ let v84 : pyo3_Bound<pyo3_PyAny> = method17(v82) │
00:01:49 #2586 [Verbose] > │ let v85 : string = "pyo3::prelude::PyAnyMethods::call(&v84, │
00:01:49 #2587 [Verbose] > │ (*(*v83).0, ()), None)" │
00:01:49 #2588 [Verbose] > │ let v86 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #2589 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v85 │
00:01:49 #2590 [Verbose] > │ let v87 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v86) │
00:01:49 #2591 [Verbose] > │ let v88 : string = "v87.unwrap()" │
00:01:49 #2592 [Verbose] > │ let v89 : pyo3_Bound<pyo3_PyAny> = │
00:01:49 #2593 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v88 │
00:01:49 #2594 [Verbose] > │ let v90 : pyo3_Bound<pyo3_PyAny> = method18(v89) │
00:01:49 #2595 [Verbose] > │ let v91 : string = "v90.extract()" │
00:01:49 #2596 [Verbose] > │ let v92 : Result<struct (float * float), pyo3_PyErr> = │
00:01:49 #2597 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v91 │
00:01:49 #2598 [Verbose] > │ let v93 : Result<struct (float * float), pyo3_PyErr> = method19(v92) │
00:01:49 #2599 [Verbose] > │ let v94 : string = "v93.unwrap()" │
00:01:49 #2600 [Verbose] > │ let struct (v95 : float, v96 : float) = │
00:01:49 #2601 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v94 │
00:01:49 #2602 [Verbose] > │ let v97 : float = method20(v95) │
00:01:49 #2603 [Verbose] > │ let v98 : float = method21(v96) │
00:01:49 #2604 [Verbose] > │ let v99 : string = "num_complex::Complex::new(v97, v98)" │
00:01:49 #2605 [Verbose] > │ let v100 : num_complex_Complex<float> = │
00:01:49 #2606 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v99 │
00:01:49 #2607 [Verbose] > │ let v101 : Result<num_complex_Complex<float>, pyo3_PyErr> = Ok v100 │
00:01:49 #2608 [Verbose] > │ let v102 : Result<num_complex_Complex<float>, pyo3_PyErr> = │
00:01:49 #2609 [Verbose] > │ method22(v101) │
00:01:49 #2610 [Verbose] > │ let v103 : string = "v102.unwrap()" │
00:01:49 #2611 [Verbose] > │ let v104 : num_complex_Complex<float> = │
00:01:49 #2612 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v103 │
00:01:49 #2613 [Verbose] > │ let v105 : num_complex_Complex<float> = method8(v104) │
00:01:49 #2614 [Verbose] > │ let v106 : string = "v105.re" │
00:01:49 #2615 [Verbose] > │ let v107 : float = Fable.Core.RustInterop.emitRustExpr () v106 │
00:01:49 #2616 [Verbose] > │ let v108 : float = -v107 │
00:01:49 #2617 [Verbose] > │ let v109 : bool = v107 >= v108 │
00:01:49 #2618 [Verbose] > │ let v110 : float = │
00:01:49 #2619 [Verbose] > │ if v109 then │
00:01:49 #2620 [Verbose] > │ v107 │
00:01:49 #2621 [Verbose] > │ else │
00:01:49 #2622 [Verbose] > │ v108 │
00:01:49 #2623 [Verbose] > │ let v111 : bool = v110 < 0.0001 │
00:01:49 #2624 [Verbose] > │ let v113 : bool = │
00:01:49 #2625 [Verbose] > │ if v111 then │
00:01:49 #2626 [Verbose] > │ true │
00:01:49 #2627 [Verbose] > │ else │
00:01:49 #2628 [Verbose] > │ method23(v111) │
00:01:49 #2629 [Verbose] > │ let v114 : string = $"__expect / actual: %A{v110} / expected: │
00:01:49 #2630 [Verbose] > │ %A{0.0001}" │
00:01:49 #2631 [Verbose] > │ let v115 : bool = v113 = false │
00:01:49 #2632 [Verbose] > │ if v115 then │
00:01:49 #2633 [Verbose] > │ failwith<unit> v114 │
00:01:49 #2634 [Verbose] > │ let v116 : num_complex_Complex<float> = method9(v104) │
00:01:49 #2635 [Verbose] > │ let v117 : string = "v116.im" │
00:01:49 #2636 [Verbose] > │ let v118 : float = Fable.Core.RustInterop.emitRustExpr () v117 │
00:01:49 #2637 [Verbose] > │ let v119 : float = -v118 │
00:01:49 #2638 [Verbose] > │ let v120 : bool = v118 >= v119 │
00:01:49 #2639 [Verbose] > │ let v121 : float = │
00:01:49 #2640 [Verbose] > │ if v120 then │
00:01:49 #2641 [Verbose] > │ v118 │
00:01:49 #2642 [Verbose] > │ else │
00:01:49 #2643 [Verbose] > │ v119 │
00:01:49 #2644 [Verbose] > │ let v122 : bool = v121 < 0.0001 │
00:01:49 #2645 [Verbose] > │ let v124 : bool = │
00:01:49 #2646 [Verbose] > │ if v122 then │
00:01:49 #2647 [Verbose] > │ true │
00:01:49 #2648 [Verbose] > │ else │
00:01:49 #2649 [Verbose] > │ method23(v122) │
00:01:49 #2650 [Verbose] > │ let v125 : string = $"__expect / actual: %A{v121} / expected: │
00:01:49 #2651 [Verbose] > │ %A{0.0001}" │
00:01:49 #2652 [Verbose] > │ let v126 : bool = v124 = false │
00:01:49 #2653 [Verbose] > │ if v126 then │
00:01:49 #2654 [Verbose] > │ failwith<unit> v125 │
00:01:49 #2655 [Verbose] > │ let v127 : int32 = v33 + 1 │
00:01:49 #2656 [Verbose] > │ v31.l0 <- v127 │
00:01:49 #2657 [Verbose] > │ () │
00:01:49 #2658 [Verbose] > │ let v128 : Result<unit, pyo3_PyErr> = Ok () │
00:01:49 #2659 [Verbose] > │ let v129 : Result<unit, pyo3_PyErr> = method24(v128) │
00:01:49 #2660 [Verbose] > │ let v130 : string = "v129 }}})" │
00:01:49 #2661 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v130 │
00:01:49 #2662 [Verbose] > │ let v131 : string = " {{ //" │
00:01:49 #2663 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v131 │
00:01:49 #2664 [Verbose] > │ let v132 : string = "__result" │
00:01:49 #2665 [Verbose] > │ let v133 : Result<unit, pyo3_PyErr> = │
00:01:49 #2666 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v132 │
00:01:49 #2667 [Verbose] > │ let v134 : Result<unit, pyo3_PyErr> = method25(v133) │
00:01:49 #2668 [Verbose] > │ let v135 : string = "v134.unwrap()" │
00:01:49 #2669 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v135 │
00:01:49 #2670 [Verbose] > │ () │
00:01:49 #2671 [Verbose] > │ and method41 (v0 : (float [])) : (float []) = │
00:01:49 #2672 [Verbose] > │ v0 │
00:01:49 #2673 [Verbose] > │ and method40 () : unit = │
00:01:49 #2674 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:49 #2675 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:49 #2676 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:49 #2677 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:49 #2678 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:49 #2679 [Verbose] > │ let v2 : string = "py" │
00:01:49 #2680 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:49 #2681 [Verbose] > │ let v4 : (float []) = [|2.0; 3.0; 4.0; 5.0; 10.0; 20.0; 50.0|] │
00:01:49 #2682 [Verbose] > │ let v5 : (float []) = method41(v4) │
00:01:49 #2683 [Verbose] > │ let v6 : int32 = v5.Length │
00:01:49 #2684 [Verbose] > │ let v7 : Mut0 = {l0 = 0} : Mut0 │
00:01:49 #2685 [Verbose] > │ while method5(v6, v7) do │
00:01:49 #2686 [Verbose] > │ let v9 : int32 = v7.l0 │
00:01:49 #2687 [Verbose] > │ let v10 : float = v5.[int v9] │
00:01:49 #2688 [Verbose] > │ let v11 : float = method20(v10) │
00:01:49 #2689 [Verbose] > │ let v12 : float = method2() │
00:01:49 #2690 [Verbose] > │ let v13 : string = "num_complex::Complex::new(v11, v12)" │
00:01:49 #2691 [Verbose] > │ let v14 : num_complex_Complex<float> = │
00:01:49 #2692 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v13 │
00:01:49 #2693 [Verbose] > │ let v15 : string = "import mpmath" │
00:01:49 #2694 [Verbose] > │ let v16 : string = "def fn(s, _):" │
00:01:49 #2695 [Verbose] > │ let v17 : string = " s = complex(*s)" │
00:01:49 #2696 [Verbose] > │ let v18 : string = " try:" │
00:01:49 #2697 [Verbose] > │ let v19 : string = " s = mpmath.zeta(s)" │
00:01:49 #2698 [Verbose] > │ let v20 : string = " except ValueError as e:" │
00:01:49 #2699 [Verbose] > │ let v21 : string = " if s.real == 1:" │
00:01:49 #2700 [Verbose] > │ let v22 : string = " s = complex(float('inf'), 0)" │
00:01:49 #2701 [Verbose] > │ let v23 : string = " return (s.real, s.imag)" │
00:01:49 #2702 [Verbose] > │ let v24 : (string []) = [|v15; v16; v17; v18; v19; v20; v21; v22; │
00:01:49 #2703 [Verbose] > │ v23|] │
00:01:49 #2704 [Verbose] > │ let v25 : (string []) = method6(v24) │
00:01:49 #2705 [Verbose] > │ let v26 : int32 = v25.Length │
00:01:49 #2706 [Verbose] > │ let v27 : string = "" │
00:01:49 #2707 [Verbose] > │ let v28 : Mut1 = {l0 = 0; l1 = v27} : Mut1 │
00:01:49 #2708 [Verbose] > │ while method7(v26, v28) do │
00:01:49 #2709 [Verbose] > │ let v30 : int32 = v28.l0 │
00:01:49 #2710 [Verbose] > │ let v31 : string = v28.l1 │
00:01:49 #2711 [Verbose] > │ let v32 : string = v25.[int v30] │
00:01:49 #2712 [Verbose] > │ let v33 : string = "\n" │
00:01:49 #2713 [Verbose] > │ let v34 : string = v31 + v32 + v33 + "" │
00:01:49 #2714 [Verbose] > │ let v35 : int32 = v30 + 1 │
00:01:49 #2715 [Verbose] > │ v28.l0 <- v35 │
00:01:49 #2716 [Verbose] > │ v28.l1 <- v34 │
00:01:49 #2717 [Verbose] > │ () │
00:01:49 #2718 [Verbose] > │ let v36 : string = v28.l1 │
00:01:49 #2719 [Verbose] > │ let v37 : num_complex_Complex<float> = method8(v14) │
00:01:49 #2720 [Verbose] > │ let v38 : string = "v37.re" │
00:01:49 #2721 [Verbose] > │ let v39 : float = Fable.Core.RustInterop.emitRustExpr () v38 │
00:01:49 #2722 [Verbose] > │ let v40 : num_complex_Complex<float> = method9(v14) │
00:01:49 #2723 [Verbose] > │ let v41 : string = "v40.im" │
00:01:49 #2724 [Verbose] > │ let v42 : float = Fable.Core.RustInterop.emitRustExpr () v41 │
00:01:49 #2725 [Verbose] > │ let v43 : (float * float) = v39, v42 │
00:01:49 #2726 [Verbose] > │ let v44 : ((float * float) * unit) = v43, () │
00:01:49 #2727 [Verbose] > │ let v45 : pyo3_Python = method10(v3) │
00:01:49 #2728 [Verbose] > │ let v46 : string = method11(v36) │
00:01:49 #2729 [Verbose] > │ let v47 : string = │
00:01:49 #2730 [Verbose] > │ $"fable_library_rust::String_::LrcStr::as_str(&v46)" │
00:01:49 #2731 [Verbose] > │ let v48 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v47 │
00:01:49 #2732 [Verbose] > │ let v49 : string = "pyo3::types::PyModule::from_code_bound(v45, v48, │
00:01:49 #2733 [Verbose] > │ \"\", \"\")" │
00:01:49 #2734 [Verbose] > │ let v50 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #2735 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v49 │
00:01:49 #2736 [Verbose] > │ let v51 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #2737 [Verbose] > │ method12(v50) │
00:01:49 #2738 [Verbose] > │ let v52 : string = "v51.unwrap()" │
00:01:49 #2739 [Verbose] > │ let v53 : pyo3_Bound<pyo3_types_PyModule> = │
00:01:49 #2740 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v52 │
00:01:49 #2741 [Verbose] > │ let v54 : string = method13() │
00:01:49 #2742 [Verbose] > │ let v55 : string = │
00:01:49 #2743 [Verbose] > │ $"fable_library_rust::String_::LrcStr::as_str(&v54)" │
00:01:49 #2744 [Verbose] > │ let v56 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v55 │
00:01:49 #2745 [Verbose] > │ let v57 : pyo3_Bound<pyo3_types_PyModule> = method14(v53) │
00:01:49 #2746 [Verbose] > │ let v58 : string = "v57.getattr(v56)" │
00:01:49 #2747 [Verbose] > │ let v59 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #2748 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v58 │
00:01:49 #2749 [Verbose] > │ let v60 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v59) │
00:01:49 #2750 [Verbose] > │ let v61 : string = "v60.unwrap()" │
00:01:49 #2751 [Verbose] > │ let v62 : pyo3_Bound<pyo3_PyAny> = │
00:01:49 #2752 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v61 │
00:01:49 #2753 [Verbose] > │ let v63 : ((float * float) * unit) = method16(v44) │
00:01:49 #2754 [Verbose] > │ let v64 : pyo3_Bound<pyo3_PyAny> = method17(v62) │
00:01:49 #2755 [Verbose] > │ let v65 : string = "pyo3::prelude::PyAnyMethods::call(&v64, │
00:01:49 #2756 [Verbose] > │ (*(*v63).0, ()), None)" │
00:01:49 #2757 [Verbose] > │ let v66 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #2758 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v65 │
00:01:49 #2759 [Verbose] > │ let v67 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v66) │
00:01:49 #2760 [Verbose] > │ let v68 : string = "v67.unwrap()" │
00:01:49 #2761 [Verbose] > │ let v69 : pyo3_Bound<pyo3_PyAny> = │
00:01:49 #2762 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v68 │
00:01:49 #2763 [Verbose] > │ let v70 : pyo3_Bound<pyo3_PyAny> = method18(v69) │
00:01:49 #2764 [Verbose] > │ let v71 : string = "v70.extract()" │
00:01:49 #2765 [Verbose] > │ let v72 : Result<struct (float * float), pyo3_PyErr> = │
00:01:49 #2766 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v71 │
00:01:49 #2767 [Verbose] > │ let v73 : Result<struct (float * float), pyo3_PyErr> = method19(v72) │
00:01:49 #2768 [Verbose] > │ let v74 : string = "v73.unwrap()" │
00:01:49 #2769 [Verbose] > │ let struct (v75 : float, v76 : float) = │
00:01:49 #2770 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v74 │
00:01:49 #2771 [Verbose] > │ let v77 : float = method20(v75) │
00:01:49 #2772 [Verbose] > │ let v78 : float = method21(v76) │
00:01:49 #2773 [Verbose] > │ let v79 : string = "num_complex::Complex::new(v77, v78)" │
00:01:49 #2774 [Verbose] > │ let v80 : num_complex_Complex<float> = │
00:01:49 #2775 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v79 │
00:01:49 #2776 [Verbose] > │ let v81 : Result<num_complex_Complex<float>, pyo3_PyErr> = Ok v80 │
00:01:49 #2777 [Verbose] > │ let v82 : Result<num_complex_Complex<float>, pyo3_PyErr> = │
00:01:49 #2778 [Verbose] > │ method22(v81) │
00:01:49 #2779 [Verbose] > │ let v83 : string = "v82.unwrap()" │
00:01:49 #2780 [Verbose] > │ let v84 : num_complex_Complex<float> = │
00:01:49 #2781 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v83 │
00:01:49 #2782 [Verbose] > │ let v85 : num_complex_Complex<float> = method8(v84) │
00:01:49 #2783 [Verbose] > │ let v86 : string = "v85.re" │
00:01:49 #2784 [Verbose] > │ let v87 : float = Fable.Core.RustInterop.emitRustExpr () v86 │
00:01:49 #2785 [Verbose] > │ let v88 : bool = v87 > 0.0 │
00:01:49 #2786 [Verbose] > │ let v90 : bool = │
00:01:49 #2787 [Verbose] > │ if v88 then │
00:01:49 #2788 [Verbose] > │ true │
00:01:49 #2789 [Verbose] > │ else │
00:01:49 #2790 [Verbose] > │ method23(v88) │
00:01:49 #2791 [Verbose] > │ let v91 : string = $"__expect / actual: %A{v87} / expected: %A{0.0}" │
00:01:49 #2792 [Verbose] > │ let v92 : bool = v90 = false │
00:01:49 #2793 [Verbose] > │ if v92 then │
00:01:49 #2794 [Verbose] > │ failwith<unit> v91 │
00:01:49 #2795 [Verbose] > │ let v93 : num_complex_Complex<float> = method9(v84) │
00:01:49 #2796 [Verbose] > │ let v94 : string = "v93.im" │
00:01:49 #2797 [Verbose] > │ let v95 : float = Fable.Core.RustInterop.emitRustExpr () v94 │
00:01:49 #2798 [Verbose] > │ let v96 : bool = v95 = 0.0 │
00:01:49 #2799 [Verbose] > │ let v98 : bool = │
00:01:49 #2800 [Verbose] > │ if v96 then │
00:01:49 #2801 [Verbose] > │ true │
00:01:49 #2802 [Verbose] > │ else │
00:01:49 #2803 [Verbose] > │ method23(v96) │
00:01:49 #2804 [Verbose] > │ let v99 : string = $"__expect / actual: %A{v95} / expected: %A{0.0}" │
00:01:49 #2805 [Verbose] > │ let v100 : bool = v98 = false │
00:01:49 #2806 [Verbose] > │ if v100 then │
00:01:49 #2807 [Verbose] > │ failwith<unit> v99 │
00:01:49 #2808 [Verbose] > │ let v101 : int32 = v9 + 1 │
00:01:49 #2809 [Verbose] > │ v7.l0 <- v101 │
00:01:49 #2810 [Verbose] > │ () │
00:01:49 #2811 [Verbose] > │ let v102 : Result<unit, pyo3_PyErr> = Ok () │
00:01:49 #2812 [Verbose] > │ let v103 : Result<unit, pyo3_PyErr> = method24(v102) │
00:01:49 #2813 [Verbose] > │ let v104 : string = "v103 }}})" │
00:01:49 #2814 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v104 │
00:01:49 #2815 [Verbose] > │ let v105 : string = " {{ //" │
00:01:49 #2816 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v105 │
00:01:49 #2817 [Verbose] > │ let v106 : string = "__result" │
00:01:49 #2818 [Verbose] > │ let v107 : Result<unit, pyo3_PyErr> = │
00:01:49 #2819 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v106 │
00:01:49 #2820 [Verbose] > │ let v108 : Result<unit, pyo3_PyErr> = method25(v107) │
00:01:49 #2821 [Verbose] > │ let v109 : string = "v108.unwrap()" │
00:01:49 #2822 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v109 │
00:01:49 #2823 [Verbose] > │ () │
00:01:49 #2824 [Verbose] > │ and method43 () : float = │
00:01:49 #2825 [Verbose] > │ 1.0 │
00:01:49 #2826 [Verbose] > │ and method42 () : unit = │
00:01:49 #2827 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:49 #2828 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:49 #2829 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:49 #2830 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:49 #2831 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:49 #2832 [Verbose] > │ let v2 : string = "py" │
00:01:49 #2833 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:49 #2834 [Verbose] > │ let v4 : float = method43() │
00:01:49 #2835 [Verbose] > │ let v5 : float = method2() │
00:01:49 #2836 [Verbose] > │ let v6 : string = "num_complex::Complex::new(v4, v5)" │
00:01:49 #2837 [Verbose] > │ let v7 : num_complex_Complex<float> = │
00:01:49 #2838 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:01:49 #2839 [Verbose] > │ let v8 : string = "import mpmath" │
00:01:49 #2840 [Verbose] > │ let v9 : string = "def fn(s, _):" │
00:01:49 #2841 [Verbose] > │ let v10 : string = " s = complex(*s)" │
00:01:49 #2842 [Verbose] > │ let v11 : string = " try:" │
00:01:49 #2843 [Verbose] > │ let v12 : string = " s = mpmath.zeta(s)" │
00:01:49 #2844 [Verbose] > │ let v13 : string = " except ValueError as e:" │
00:01:49 #2845 [Verbose] > │ let v14 : string = " if s.real == 1:" │
00:01:49 #2846 [Verbose] > │ let v15 : string = " s = complex(float('inf'), 0)" │
00:01:49 #2847 [Verbose] > │ let v16 : string = " return (s.real, s.imag)" │
00:01:49 #2848 [Verbose] > │ let v17 : (string []) = [|v8; v9; v10; v11; v12; v13; v14; v15; v16|] │
00:01:49 #2849 [Verbose] > │ let v18 : (string []) = method6(v17) │
00:01:49 #2850 [Verbose] > │ let v19 : int32 = v18.Length │
00:01:49 #2851 [Verbose] > │ let v20 : string = "" │
00:01:49 #2852 [Verbose] > │ let v21 : Mut1 = {l0 = 0; l1 = v20} : Mut1 │
00:01:49 #2853 [Verbose] > │ while method7(v19, v21) do │
00:01:49 #2854 [Verbose] > │ let v23 : int32 = v21.l0 │
00:01:49 #2855 [Verbose] > │ let v24 : string = v21.l1 │
00:01:49 #2856 [Verbose] > │ let v25 : string = v18.[int v23] │
00:01:49 #2857 [Verbose] > │ let v26 : string = "\n" │
00:01:49 #2858 [Verbose] > │ let v27 : string = v24 + v25 + v26 + "" │
00:01:49 #2859 [Verbose] > │ let v28 : int32 = v23 + 1 │
00:01:49 #2860 [Verbose] > │ v21.l0 <- v28 │
00:01:49 #2861 [Verbose] > │ v21.l1 <- v27 │
00:01:49 #2862 [Verbose] > │ () │
00:01:49 #2863 [Verbose] > │ let v29 : string = v21.l1 │
00:01:49 #2864 [Verbose] > │ let v30 : num_complex_Complex<float> = method8(v7) │
00:01:49 #2865 [Verbose] > │ let v31 : string = "v30.re" │
00:01:49 #2866 [Verbose] > │ let v32 : float = Fable.Core.RustInterop.emitRustExpr () v31 │
00:01:49 #2867 [Verbose] > │ let v33 : num_complex_Complex<float> = method9(v7) │
00:01:49 #2868 [Verbose] > │ let v34 : string = "v33.im" │
00:01:49 #2869 [Verbose] > │ let v35 : float = Fable.Core.RustInterop.emitRustExpr () v34 │
00:01:49 #2870 [Verbose] > │ let v36 : (float * float) = v32, v35 │
00:01:49 #2871 [Verbose] > │ let v37 : ((float * float) * unit) = v36, () │
00:01:49 #2872 [Verbose] > │ let v38 : pyo3_Python = method10(v3) │
00:01:49 #2873 [Verbose] > │ let v39 : string = method11(v29) │
00:01:49 #2874 [Verbose] > │ let v40 : string = $"fable_library_rust::String_::LrcStr::as_str(&v39)" │
00:01:49 #2875 [Verbose] > │ let v41 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v40 │
00:01:49 #2876 [Verbose] > │ let v42 : string = "pyo3::types::PyModule::from_code_bound(v38, v41, │
00:01:49 #2877 [Verbose] > │ \"\", \"\")" │
00:01:49 #2878 [Verbose] > │ let v43 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #2879 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v42 │
00:01:49 #2880 [Verbose] > │ let v44 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #2881 [Verbose] > │ method12(v43) │
00:01:49 #2882 [Verbose] > │ let v45 : string = "v44.unwrap()" │
00:01:49 #2883 [Verbose] > │ let v46 : pyo3_Bound<pyo3_types_PyModule> = │
00:01:49 #2884 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v45 │
00:01:49 #2885 [Verbose] > │ let v47 : string = method13() │
00:01:49 #2886 [Verbose] > │ let v48 : string = $"fable_library_rust::String_::LrcStr::as_str(&v47)" │
00:01:49 #2887 [Verbose] > │ let v49 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v48 │
00:01:49 #2888 [Verbose] > │ let v50 : pyo3_Bound<pyo3_types_PyModule> = method14(v46) │
00:01:49 #2889 [Verbose] > │ let v51 : string = "v50.getattr(v49)" │
00:01:49 #2890 [Verbose] > │ let v52 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #2891 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v51 │
00:01:49 #2892 [Verbose] > │ let v53 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v52) │
00:01:49 #2893 [Verbose] > │ let v54 : string = "v53.unwrap()" │
00:01:49 #2894 [Verbose] > │ let v55 : pyo3_Bound<pyo3_PyAny> = Fable.Core.RustInterop.emitRustExpr │
00:01:49 #2895 [Verbose] > │ () v54 │
00:01:49 #2896 [Verbose] > │ let v56 : ((float * float) * unit) = method16(v37) │
00:01:49 #2897 [Verbose] > │ let v57 : pyo3_Bound<pyo3_PyAny> = method17(v55) │
00:01:49 #2898 [Verbose] > │ let v58 : string = "pyo3::prelude::PyAnyMethods::call(&v57, (*(*v56).0, │
00:01:49 #2899 [Verbose] > │ ()), None)" │
00:01:49 #2900 [Verbose] > │ let v59 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #2901 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v58 │
00:01:49 #2902 [Verbose] > │ let v60 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v59) │
00:01:49 #2903 [Verbose] > │ let v61 : string = "v60.unwrap()" │
00:01:49 #2904 [Verbose] > │ let v62 : pyo3_Bound<pyo3_PyAny> = Fable.Core.RustInterop.emitRustExpr │
00:01:49 #2905 [Verbose] > │ () v61 │
00:01:49 #2906 [Verbose] > │ let v63 : pyo3_Bound<pyo3_PyAny> = method18(v62) │
00:01:49 #2907 [Verbose] > │ let v64 : string = "v63.extract()" │
00:01:49 #2908 [Verbose] > │ let v65 : Result<struct (float * float), pyo3_PyErr> = │
00:01:49 #2909 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v64 │
00:01:49 #2910 [Verbose] > │ let v66 : Result<struct (float * float), pyo3_PyErr> = method19(v65) │
00:01:49 #2911 [Verbose] > │ let v67 : string = "v66.unwrap()" │
00:01:49 #2912 [Verbose] > │ let struct (v68 : float, v69 : float) = │
00:01:49 #2913 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v67 │
00:01:49 #2914 [Verbose] > │ let v70 : float = method20(v68) │
00:01:49 #2915 [Verbose] > │ let v71 : float = method21(v69) │
00:01:49 #2916 [Verbose] > │ let v72 : string = "num_complex::Complex::new(v70, v71)" │
00:01:49 #2917 [Verbose] > │ let v73 : num_complex_Complex<float> = │
00:01:49 #2918 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v72 │
00:01:49 #2919 [Verbose] > │ let v74 : Result<num_complex_Complex<float>, pyo3_PyErr> = Ok v73 │
00:01:49 #2920 [Verbose] > │ let v75 : Result<num_complex_Complex<float>, pyo3_PyErr> = method22(v74) │
00:01:49 #2921 [Verbose] > │ let v76 : string = "v75.unwrap()" │
00:01:49 #2922 [Verbose] > │ let v77 : num_complex_Complex<float> = │
00:01:49 #2923 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v76 │
00:01:49 #2924 [Verbose] > │ let v78 : num_complex_Complex<float> = method8(v77) │
00:01:49 #2925 [Verbose] > │ let v79 : string = "v78.re" │
00:01:49 #2926 [Verbose] > │ let v80 : float = Fable.Core.RustInterop.emitRustExpr () v79 │
00:01:49 #2927 [Verbose] > │ let v81 : bool = v80 = infinity │
00:01:49 #2928 [Verbose] > │ let v83 : bool = │
00:01:49 #2929 [Verbose] > │ if v81 then │
00:01:49 #2930 [Verbose] > │ true │
00:01:49 #2931 [Verbose] > │ else │
00:01:49 #2932 [Verbose] > │ method23(v81) │
00:01:49 #2933 [Verbose] > │ let v84 : string = $"__expect / actual: %A{v80} / expected: │
00:01:49 #2934 [Verbose] > │ %A{infinity}" │
00:01:49 #2935 [Verbose] > │ let v85 : bool = v83 = false │
00:01:49 #2936 [Verbose] > │ if v85 then │
00:01:49 #2937 [Verbose] > │ failwith<unit> v84 │
00:01:49 #2938 [Verbose] > │ let v86 : num_complex_Complex<float> = method9(v77) │
00:01:49 #2939 [Verbose] > │ let v87 : string = "v86.im" │
00:01:49 #2940 [Verbose] > │ let v88 : float = Fable.Core.RustInterop.emitRustExpr () v87 │
00:01:49 #2941 [Verbose] > │ let v89 : bool = v88 = 0.0 │
00:01:49 #2942 [Verbose] > │ let v91 : bool = │
00:01:49 #2943 [Verbose] > │ if v89 then │
00:01:49 #2944 [Verbose] > │ true │
00:01:49 #2945 [Verbose] > │ else │
00:01:49 #2946 [Verbose] > │ method23(v89) │
00:01:49 #2947 [Verbose] > │ let v92 : string = $"__expect / actual: %A{v88} / expected: %A{0.0}" │
00:01:49 #2948 [Verbose] > │ let v93 : bool = v91 = false │
00:01:49 #2949 [Verbose] > │ if v93 then │
00:01:49 #2950 [Verbose] > │ failwith<unit> v92 │
00:01:49 #2951 [Verbose] > │ let v94 : Result<unit, pyo3_PyErr> = Ok () │
00:01:49 #2952 [Verbose] > │ let v95 : Result<unit, pyo3_PyErr> = method24(v94) │
00:01:49 #2953 [Verbose] > │ let v96 : string = "v95 }}}}})" │
00:01:49 #2954 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v96 │
00:01:49 #2955 [Verbose] > │ let v97 : string = " {{{{ //" │
00:01:49 #2956 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v97 │
00:01:49 #2957 [Verbose] > │ let v98 : string = "__result" │
00:01:49 #2958 [Verbose] > │ let v99 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:01:49 #2959 [Verbose] > │ () v98 │
00:01:49 #2960 [Verbose] > │ let v100 : Result<unit, pyo3_PyErr> = method25(v99) │
00:01:49 #2961 [Verbose] > │ let v101 : string = "v100.unwrap()" │
00:01:49 #2962 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v101 │
00:01:49 #2963 [Verbose] > │ () │
00:01:49 #2964 [Verbose] > │ and method45 () : float = │
00:01:49 #2965 [Verbose] > │ 10.0 │
00:01:49 #2966 [Verbose] > │ and method44 () : unit = │
00:01:49 #2967 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:49 #2968 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:49 #2969 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:49 #2970 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:49 #2971 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:49 #2972 [Verbose] > │ let v2 : string = "py" │
00:01:49 #2973 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:49 #2974 [Verbose] > │ let v4 : float = method1() │
00:01:49 #2975 [Verbose] > │ let v5 : float = method45() │
00:01:49 #2976 [Verbose] > │ let v6 : string = "num_complex::Complex::new(v4, v5)" │
00:01:49 #2977 [Verbose] > │ let v7 : num_complex_Complex<float> = │
00:01:49 #2978 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:01:49 #2979 [Verbose] > │ let v8 : string = "import mpmath" │
00:01:49 #2980 [Verbose] > │ let v9 : string = "def fn(s, _):" │
00:01:49 #2981 [Verbose] > │ let v10 : string = " s = complex(*s)" │
00:01:49 #2982 [Verbose] > │ let v11 : string = " try:" │
00:01:49 #2983 [Verbose] > │ let v12 : string = " s = mpmath.zeta(s)" │
00:01:49 #2984 [Verbose] > │ let v13 : string = " except ValueError as e:" │
00:01:49 #2985 [Verbose] > │ let v14 : string = " if s.real == 1:" │
00:01:49 #2986 [Verbose] > │ let v15 : string = " s = complex(float('inf'), 0)" │
00:01:49 #2987 [Verbose] > │ let v16 : string = " return (s.real, s.imag)" │
00:01:49 #2988 [Verbose] > │ let v17 : (string []) = [|v8; v9; v10; v11; v12; v13; v14; v15; v16|] │
00:01:49 #2989 [Verbose] > │ let v18 : (string []) = method6(v17) │
00:01:49 #2990 [Verbose] > │ let v19 : int32 = v18.Length │
00:01:49 #2991 [Verbose] > │ let v20 : string = "" │
00:01:49 #2992 [Verbose] > │ let v21 : Mut1 = {l0 = 0; l1 = v20} : Mut1 │
00:01:49 #2993 [Verbose] > │ while method7(v19, v21) do │
00:01:49 #2994 [Verbose] > │ let v23 : int32 = v21.l0 │
00:01:49 #2995 [Verbose] > │ let v24 : string = v21.l1 │
00:01:49 #2996 [Verbose] > │ let v25 : string = v18.[int v23] │
00:01:49 #2997 [Verbose] > │ let v26 : string = "\n" │
00:01:49 #2998 [Verbose] > │ let v27 : string = v24 + v25 + v26 + "" │
00:01:49 #2999 [Verbose] > │ let v28 : int32 = v23 + 1 │
00:01:49 #3000 [Verbose] > │ v21.l0 <- v28 │
00:01:49 #3001 [Verbose] > │ v21.l1 <- v27 │
00:01:49 #3002 [Verbose] > │ () │
00:01:49 #3003 [Verbose] > │ let v29 : string = v21.l1 │
00:01:49 #3004 [Verbose] > │ let v30 : num_complex_Complex<float> = method8(v7) │
00:01:49 #3005 [Verbose] > │ let v31 : string = "v30.re" │
00:01:49 #3006 [Verbose] > │ let v32 : float = Fable.Core.RustInterop.emitRustExpr () v31 │
00:01:49 #3007 [Verbose] > │ let v33 : num_complex_Complex<float> = method9(v7) │
00:01:49 #3008 [Verbose] > │ let v34 : string = "v33.im" │
00:01:49 #3009 [Verbose] > │ let v35 : float = Fable.Core.RustInterop.emitRustExpr () v34 │
00:01:49 #3010 [Verbose] > │ let v36 : (float * float) = v32, v35 │
00:01:49 #3011 [Verbose] > │ let v37 : ((float * float) * unit) = v36, () │
00:01:49 #3012 [Verbose] > │ let v38 : pyo3_Python = method10(v3) │
00:01:49 #3013 [Verbose] > │ let v39 : string = method11(v29) │
00:01:49 #3014 [Verbose] > │ let v40 : string = $"fable_library_rust::String_::LrcStr::as_str(&v39)" │
00:01:49 #3015 [Verbose] > │ let v41 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v40 │
00:01:49 #3016 [Verbose] > │ let v42 : string = "pyo3::types::PyModule::from_code_bound(v38, v41, │
00:01:49 #3017 [Verbose] > │ \"\", \"\")" │
00:01:49 #3018 [Verbose] > │ let v43 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #3019 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v42 │
00:01:49 #3020 [Verbose] > │ let v44 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #3021 [Verbose] > │ method12(v43) │
00:01:49 #3022 [Verbose] > │ let v45 : string = "v44.unwrap()" │
00:01:49 #3023 [Verbose] > │ let v46 : pyo3_Bound<pyo3_types_PyModule> = │
00:01:49 #3024 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v45 │
00:01:49 #3025 [Verbose] > │ let v47 : string = method13() │
00:01:49 #3026 [Verbose] > │ let v48 : string = $"fable_library_rust::String_::LrcStr::as_str(&v47)" │
00:01:49 #3027 [Verbose] > │ let v49 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v48 │
00:01:49 #3028 [Verbose] > │ let v50 : pyo3_Bound<pyo3_types_PyModule> = method14(v46) │
00:01:49 #3029 [Verbose] > │ let v51 : string = "v50.getattr(v49)" │
00:01:49 #3030 [Verbose] > │ let v52 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #3031 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v51 │
00:01:49 #3032 [Verbose] > │ let v53 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v52) │
00:01:49 #3033 [Verbose] > │ let v54 : string = "v53.unwrap()" │
00:01:49 #3034 [Verbose] > │ let v55 : pyo3_Bound<pyo3_PyAny> = Fable.Core.RustInterop.emitRustExpr │
00:01:49 #3035 [Verbose] > │ () v54 │
00:01:49 #3036 [Verbose] > │ let v56 : ((float * float) * unit) = method16(v37) │
00:01:49 #3037 [Verbose] > │ let v57 : pyo3_Bound<pyo3_PyAny> = method17(v55) │
00:01:49 #3038 [Verbose] > │ let v58 : string = "pyo3::prelude::PyAnyMethods::call(&v57, (*(*v56).0, │
00:01:49 #3039 [Verbose] > │ ()), None)" │
00:01:49 #3040 [Verbose] > │ let v59 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #3041 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v58 │
00:01:49 #3042 [Verbose] > │ let v60 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v59) │
00:01:49 #3043 [Verbose] > │ let v61 : string = "v60.unwrap()" │
00:01:49 #3044 [Verbose] > │ let v62 : pyo3_Bound<pyo3_PyAny> = Fable.Core.RustInterop.emitRustExpr │
00:01:49 #3045 [Verbose] > │ () v61 │
00:01:49 #3046 [Verbose] > │ let v63 : pyo3_Bound<pyo3_PyAny> = method18(v62) │
00:01:49 #3047 [Verbose] > │ let v64 : string = "v63.extract()" │
00:01:49 #3048 [Verbose] > │ let v65 : Result<struct (float * float), pyo3_PyErr> = │
00:01:49 #3049 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v64 │
00:01:49 #3050 [Verbose] > │ let v66 : Result<struct (float * float), pyo3_PyErr> = method19(v65) │
00:01:49 #3051 [Verbose] > │ let v67 : string = "v66.unwrap()" │
00:01:49 #3052 [Verbose] > │ let struct (v68 : float, v69 : float) = │
00:01:49 #3053 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v67 │
00:01:49 #3054 [Verbose] > │ let v70 : float = method20(v68) │
00:01:49 #3055 [Verbose] > │ let v71 : float = method21(v69) │
00:01:49 #3056 [Verbose] > │ let v72 : string = "num_complex::Complex::new(v70, v71)" │
00:01:49 #3057 [Verbose] > │ let v73 : num_complex_Complex<float> = │
00:01:49 #3058 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v72 │
00:01:49 #3059 [Verbose] > │ let v74 : Result<num_complex_Complex<float>, pyo3_PyErr> = Ok v73 │
00:01:49 #3060 [Verbose] > │ let v75 : Result<num_complex_Complex<float>, pyo3_PyErr> = method22(v74) │
00:01:49 #3061 [Verbose] > │ let v76 : string = "v75.unwrap()" │
00:01:49 #3062 [Verbose] > │ let v77 : num_complex_Complex<float> = │
00:01:49 #3063 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v76 │
00:01:49 #3064 [Verbose] > │ let v78 : num_complex_Complex<float> = method8(v7) │
00:01:49 #3065 [Verbose] > │ let v79 : string = "v78.re" │
00:01:49 #3066 [Verbose] > │ let v80 : float = Fable.Core.RustInterop.emitRustExpr () v79 │
00:01:49 #3067 [Verbose] > │ let v81 : num_complex_Complex<float> = method9(v7) │
00:01:49 #3068 [Verbose] > │ let v82 : string = "v81.im" │
00:01:49 #3069 [Verbose] > │ let v83 : float = Fable.Core.RustInterop.emitRustExpr () v82 │
00:01:49 #3070 [Verbose] > │ let v84 : float = -v83 │
00:01:49 #3071 [Verbose] > │ let v85 : float = method20(v80) │
00:01:49 #3072 [Verbose] > │ let v86 : float = method21(v84) │
00:01:49 #3073 [Verbose] > │ let v87 : string = "num_complex::Complex::new(v85, v86)" │
00:01:49 #3074 [Verbose] > │ let v88 : num_complex_Complex<float> = │
00:01:49 #3075 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v87 │
00:01:49 #3076 [Verbose] > │ let v89 : (string []) = [|v8; v9; v10; v11; v12; v13; v14; v15; v16|] │
00:01:49 #3077 [Verbose] > │ let v90 : (string []) = method6(v89) │
00:01:49 #3078 [Verbose] > │ let v91 : int32 = v90.Length │
00:01:49 #3079 [Verbose] > │ let v92 : Mut1 = {l0 = 0; l1 = v20} : Mut1 │
00:01:49 #3080 [Verbose] > │ while method7(v91, v92) do │
00:01:49 #3081 [Verbose] > │ let v94 : int32 = v92.l0 │
00:01:49 #3082 [Verbose] > │ let v95 : string = v92.l1 │
00:01:49 #3083 [Verbose] > │ let v96 : string = v90.[int v94] │
00:01:49 #3084 [Verbose] > │ let v97 : string = "\n" │
00:01:49 #3085 [Verbose] > │ let v98 : string = v95 + v96 + v97 + "" │
00:01:49 #3086 [Verbose] > │ let v99 : int32 = v94 + 1 │
00:01:49 #3087 [Verbose] > │ v92.l0 <- v99 │
00:01:49 #3088 [Verbose] > │ v92.l1 <- v98 │
00:01:49 #3089 [Verbose] > │ () │
00:01:49 #3090 [Verbose] > │ let v100 : string = v92.l1 │
00:01:49 #3091 [Verbose] > │ let v101 : num_complex_Complex<float> = method8(v88) │
00:01:49 #3092 [Verbose] > │ let v102 : string = "v101.re" │
00:01:49 #3093 [Verbose] > │ let v103 : float = Fable.Core.RustInterop.emitRustExpr () v102 │
00:01:49 #3094 [Verbose] > │ let v104 : num_complex_Complex<float> = method9(v88) │
00:01:49 #3095 [Verbose] > │ let v105 : string = "v104.im" │
00:01:49 #3096 [Verbose] > │ let v106 : float = Fable.Core.RustInterop.emitRustExpr () v105 │
00:01:49 #3097 [Verbose] > │ let v107 : (float * float) = v103, v106 │
00:01:49 #3098 [Verbose] > │ let v108 : ((float * float) * unit) = v107, () │
00:01:49 #3099 [Verbose] > │ let v109 : pyo3_Python = method10(v3) │
00:01:49 #3100 [Verbose] > │ let v110 : string = method11(v100) │
00:01:49 #3101 [Verbose] > │ let v111 : string = │
00:01:49 #3102 [Verbose] > │ $"fable_library_rust::String_::LrcStr::as_str(&v110)" │
00:01:49 #3103 [Verbose] > │ let v112 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v111 │
00:01:49 #3104 [Verbose] > │ let v113 : string = "pyo3::types::PyModule::from_code_bound(v109, v112, │
00:01:49 #3105 [Verbose] > │ \"\", \"\")" │
00:01:49 #3106 [Verbose] > │ let v114 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #3107 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v113 │
00:01:49 #3108 [Verbose] > │ let v115 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #3109 [Verbose] > │ method12(v114) │
00:01:49 #3110 [Verbose] > │ let v116 : string = "v115.unwrap()" │
00:01:49 #3111 [Verbose] > │ let v117 : pyo3_Bound<pyo3_types_PyModule> = │
00:01:49 #3112 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v116 │
00:01:49 #3113 [Verbose] > │ let v118 : string = method13() │
00:01:49 #3114 [Verbose] > │ let v119 : string = │
00:01:49 #3115 [Verbose] > │ $"fable_library_rust::String_::LrcStr::as_str(&v118)" │
00:01:49 #3116 [Verbose] > │ let v120 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v119 │
00:01:49 #3117 [Verbose] > │ let v121 : pyo3_Bound<pyo3_types_PyModule> = method14(v117) │
00:01:49 #3118 [Verbose] > │ let v122 : string = "v121.getattr(v120)" │
00:01:49 #3119 [Verbose] > │ let v123 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #3120 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v122 │
00:01:49 #3121 [Verbose] > │ let v124 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v123) │
00:01:49 #3122 [Verbose] > │ let v125 : string = "v124.unwrap()" │
00:01:49 #3123 [Verbose] > │ let v126 : pyo3_Bound<pyo3_PyAny> = Fable.Core.RustInterop.emitRustExpr │
00:01:49 #3124 [Verbose] > │ () v125 │
00:01:49 #3125 [Verbose] > │ let v127 : ((float * float) * unit) = method16(v108) │
00:01:49 #3126 [Verbose] > │ let v128 : pyo3_Bound<pyo3_PyAny> = method17(v126) │
00:01:49 #3127 [Verbose] > │ let v129 : string = "pyo3::prelude::PyAnyMethods::call(&v128, │
00:01:49 #3128 [Verbose] > │ (*(*v127).0, ()), None)" │
00:01:49 #3129 [Verbose] > │ let v130 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #3130 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v129 │
00:01:49 #3131 [Verbose] > │ let v131 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v130) │
00:01:49 #3132 [Verbose] > │ let v132 : string = "v131.unwrap()" │
00:01:49 #3133 [Verbose] > │ let v133 : pyo3_Bound<pyo3_PyAny> = Fable.Core.RustInterop.emitRustExpr │
00:01:49 #3134 [Verbose] > │ () v132 │
00:01:49 #3135 [Verbose] > │ let v134 : pyo3_Bound<pyo3_PyAny> = method18(v133) │
00:01:49 #3136 [Verbose] > │ let v135 : string = "v134.extract()" │
00:01:49 #3137 [Verbose] > │ let v136 : Result<struct (float * float), pyo3_PyErr> = │
00:01:49 #3138 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v135 │
00:01:49 #3139 [Verbose] > │ let v137 : Result<struct (float * float), pyo3_PyErr> = method19(v136) │
00:01:49 #3140 [Verbose] > │ let v138 : string = "v137.unwrap()" │
00:01:49 #3141 [Verbose] > │ let struct (v139 : float, v140 : float) = │
00:01:49 #3142 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v138 │
00:01:49 #3143 [Verbose] > │ let v141 : float = method20(v139) │
00:01:49 #3144 [Verbose] > │ let v142 : float = method21(v140) │
00:01:49 #3145 [Verbose] > │ let v143 : string = "num_complex::Complex::new(v141, v142)" │
00:01:49 #3146 [Verbose] > │ let v144 : num_complex_Complex<float> = │
00:01:49 #3147 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v143 │
00:01:49 #3148 [Verbose] > │ let v145 : Result<num_complex_Complex<float>, pyo3_PyErr> = Ok v144 │
00:01:49 #3149 [Verbose] > │ let v146 : Result<num_complex_Complex<float>, pyo3_PyErr> = │
00:01:49 #3150 [Verbose] > │ method22(v145) │
00:01:49 #3151 [Verbose] > │ let v147 : string = "v146.unwrap()" │
00:01:49 #3152 [Verbose] > │ let v148 : num_complex_Complex<float> = │
00:01:49 #3153 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v147 │
00:01:49 #3154 [Verbose] > │ let v149 : string = "v148.conj()" │
00:01:49 #3155 [Verbose] > │ let v150 : num_complex_Complex<float> = │
00:01:49 #3156 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v149 │
00:01:49 #3157 [Verbose] > │ let v151 : num_complex_Complex<float> = method8(v77) │
00:01:49 #3158 [Verbose] > │ let v152 : string = "v151.re" │
00:01:49 #3159 [Verbose] > │ let v153 : float = Fable.Core.RustInterop.emitRustExpr () v152 │
00:01:49 #3160 [Verbose] > │ let v154 : num_complex_Complex<float> = method8(v150) │
00:01:49 #3161 [Verbose] > │ let v155 : string = "v154.re" │
00:01:49 #3162 [Verbose] > │ let v156 : float = Fable.Core.RustInterop.emitRustExpr () v155 │
00:01:49 #3163 [Verbose] > │ let v157 : bool = v153 = v156 │
00:01:49 #3164 [Verbose] > │ let v159 : bool = │
00:01:49 #3165 [Verbose] > │ if v157 then │
00:01:49 #3166 [Verbose] > │ true │
00:01:49 #3167 [Verbose] > │ else │
00:01:49 #3168 [Verbose] > │ method23(v157) │
00:01:49 #3169 [Verbose] > │ let v160 : string = $"__expect / actual: %A{v153} / expected: %A{v156}" │
00:01:49 #3170 [Verbose] > │ let v161 : bool = v159 = false │
00:01:49 #3171 [Verbose] > │ if v161 then │
00:01:49 #3172 [Verbose] > │ failwith<unit> v160 │
00:01:49 #3173 [Verbose] > │ let v162 : num_complex_Complex<float> = method9(v77) │
00:01:49 #3174 [Verbose] > │ let v163 : string = "v162.im" │
00:01:49 #3175 [Verbose] > │ let v164 : float = Fable.Core.RustInterop.emitRustExpr () v163 │
00:01:49 #3176 [Verbose] > │ let v165 : num_complex_Complex<float> = method9(v150) │
00:01:49 #3177 [Verbose] > │ let v166 : string = "v165.im" │
00:01:49 #3178 [Verbose] > │ let v167 : float = Fable.Core.RustInterop.emitRustExpr () v166 │
00:01:49 #3179 [Verbose] > │ let v168 : bool = v164 = v167 │
00:01:49 #3180 [Verbose] > │ let v170 : bool = │
00:01:49 #3181 [Verbose] > │ if v168 then │
00:01:49 #3182 [Verbose] > │ true │
00:01:49 #3183 [Verbose] > │ else │
00:01:49 #3184 [Verbose] > │ method23(v168) │
00:01:49 #3185 [Verbose] > │ let v171 : string = $"__expect / actual: %A{v164} / expected: %A{v167}" │
00:01:49 #3186 [Verbose] > │ let v172 : bool = v170 = false │
00:01:49 #3187 [Verbose] > │ if v172 then │
00:01:49 #3188 [Verbose] > │ failwith<unit> v171 │
00:01:49 #3189 [Verbose] > │ let v173 : Result<unit, pyo3_PyErr> = Ok () │
00:01:49 #3190 [Verbose] > │ let v174 : Result<unit, pyo3_PyErr> = method24(v173) │
00:01:49 #3191 [Verbose] > │ let v175 : string = "v174 }}}}}})" │
00:01:49 #3192 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v175 │
00:01:49 #3193 [Verbose] > │ let v176 : string = " {{{{{ //" │
00:01:49 #3194 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v176 │
00:01:49 #3195 [Verbose] > │ let v177 : string = "__result" │
00:01:49 #3196 [Verbose] > │ let v178 : Result<unit, pyo3_PyErr> = │
00:01:49 #3197 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v177 │
00:01:49 #3198 [Verbose] > │ let v179 : Result<unit, pyo3_PyErr> = method25(v178) │
00:01:49 #3199 [Verbose] > │ let v180 : string = "v179.unwrap()" │
00:01:49 #3200 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v180 │
00:01:49 #3201 [Verbose] > │ () │
00:01:49 #3202 [Verbose] > │ and method47 () : float = │
00:01:49 #3203 [Verbose] > │ 0.01 │
00:01:49 #3204 [Verbose] > │ and method48 () : float = │
00:01:49 #3205 [Verbose] > │ 0.01 │
00:01:49 #3206 [Verbose] > │ and method46 () : unit = │
00:01:49 #3207 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:49 #3208 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:49 #3209 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:49 #3210 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:49 #3211 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:49 #3212 [Verbose] > │ let v2 : string = "py" │
00:01:49 #3213 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:49 #3214 [Verbose] > │ let v4 : float = method47() │
00:01:49 #3215 [Verbose] > │ let v5 : float = method48() │
00:01:49 #3216 [Verbose] > │ let v6 : string = "num_complex::Complex::new(v4, v5)" │
00:01:49 #3217 [Verbose] > │ let v7 : num_complex_Complex<float> = │
00:01:49 #3218 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:01:49 #3219 [Verbose] > │ let v8 : string = "import mpmath" │
00:01:49 #3220 [Verbose] > │ let v9 : string = "def fn(s, _):" │
00:01:49 #3221 [Verbose] > │ let v10 : string = " s = complex(*s)" │
00:01:49 #3222 [Verbose] > │ let v11 : string = " try:" │
00:01:49 #3223 [Verbose] > │ let v12 : string = " s = mpmath.zeta(s)" │
00:01:49 #3224 [Verbose] > │ let v13 : string = " except ValueError as e:" │
00:01:49 #3225 [Verbose] > │ let v14 : string = " if s.real == 1:" │
00:01:49 #3226 [Verbose] > │ let v15 : string = " s = complex(float('inf'), 0)" │
00:01:49 #3227 [Verbose] > │ let v16 : string = " return (s.real, s.imag)" │
00:01:49 #3228 [Verbose] > │ let v17 : (string []) = [|v8; v9; v10; v11; v12; v13; v14; v15; v16|] │
00:01:49 #3229 [Verbose] > │ let v18 : (string []) = method6(v17) │
00:01:49 #3230 [Verbose] > │ let v19 : int32 = v18.Length │
00:01:49 #3231 [Verbose] > │ let v20 : string = "" │
00:01:49 #3232 [Verbose] > │ let v21 : Mut1 = {l0 = 0; l1 = v20} : Mut1 │
00:01:49 #3233 [Verbose] > │ while method7(v19, v21) do │
00:01:49 #3234 [Verbose] > │ let v23 : int32 = v21.l0 │
00:01:49 #3235 [Verbose] > │ let v24 : string = v21.l1 │
00:01:49 #3236 [Verbose] > │ let v25 : string = v18.[int v23] │
00:01:49 #3237 [Verbose] > │ let v26 : string = "\n" │
00:01:49 #3238 [Verbose] > │ let v27 : string = v24 + v25 + v26 + "" │
00:01:49 #3239 [Verbose] > │ let v28 : int32 = v23 + 1 │
00:01:49 #3240 [Verbose] > │ v21.l0 <- v28 │
00:01:49 #3241 [Verbose] > │ v21.l1 <- v27 │
00:01:49 #3242 [Verbose] > │ () │
00:01:49 #3243 [Verbose] > │ let v29 : string = v21.l1 │
00:01:49 #3244 [Verbose] > │ let v30 : num_complex_Complex<float> = method8(v7) │
00:01:49 #3245 [Verbose] > │ let v31 : string = "v30.re" │
00:01:49 #3246 [Verbose] > │ let v32 : float = Fable.Core.RustInterop.emitRustExpr () v31 │
00:01:49 #3247 [Verbose] > │ let v33 : num_complex_Complex<float> = method9(v7) │
00:01:49 #3248 [Verbose] > │ let v34 : string = "v33.im" │
00:01:49 #3249 [Verbose] > │ let v35 : float = Fable.Core.RustInterop.emitRustExpr () v34 │
00:01:49 #3250 [Verbose] > │ let v36 : (float * float) = v32, v35 │
00:01:49 #3251 [Verbose] > │ let v37 : ((float * float) * unit) = v36, () │
00:01:49 #3252 [Verbose] > │ let v38 : pyo3_Python = method10(v3) │
00:01:49 #3253 [Verbose] > │ let v39 : string = method11(v29) │
00:01:49 #3254 [Verbose] > │ let v40 : string = $"fable_library_rust::String_::LrcStr::as_str(&v39)" │
00:01:49 #3255 [Verbose] > │ let v41 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v40 │
00:01:49 #3256 [Verbose] > │ let v42 : string = "pyo3::types::PyModule::from_code_bound(v38, v41, │
00:01:49 #3257 [Verbose] > │ \"\", \"\")" │
00:01:49 #3258 [Verbose] > │ let v43 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #3259 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v42 │
00:01:49 #3260 [Verbose] > │ let v44 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #3261 [Verbose] > │ method12(v43) │
00:01:49 #3262 [Verbose] > │ let v45 : string = "v44.unwrap()" │
00:01:49 #3263 [Verbose] > │ let v46 : pyo3_Bound<pyo3_types_PyModule> = │
00:01:49 #3264 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v45 │
00:01:49 #3265 [Verbose] > │ let v47 : string = method13() │
00:01:49 #3266 [Verbose] > │ let v48 : string = $"fable_library_rust::String_::LrcStr::as_str(&v47)" │
00:01:49 #3267 [Verbose] > │ let v49 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v48 │
00:01:49 #3268 [Verbose] > │ let v50 : pyo3_Bound<pyo3_types_PyModule> = method14(v46) │
00:01:49 #3269 [Verbose] > │ let v51 : string = "v50.getattr(v49)" │
00:01:49 #3270 [Verbose] > │ let v52 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #3271 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v51 │
00:01:49 #3272 [Verbose] > │ let v53 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v52) │
00:01:49 #3273 [Verbose] > │ let v54 : string = "v53.unwrap()" │
00:01:49 #3274 [Verbose] > │ let v55 : pyo3_Bound<pyo3_PyAny> = Fable.Core.RustInterop.emitRustExpr │
00:01:49 #3275 [Verbose] > │ () v54 │
00:01:49 #3276 [Verbose] > │ let v56 : ((float * float) * unit) = method16(v37) │
00:01:49 #3277 [Verbose] > │ let v57 : pyo3_Bound<pyo3_PyAny> = method17(v55) │
00:01:49 #3278 [Verbose] > │ let v58 : string = "pyo3::prelude::PyAnyMethods::call(&v57, (*(*v56).0, │
00:01:49 #3279 [Verbose] > │ ()), None)" │
00:01:49 #3280 [Verbose] > │ let v59 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #3281 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v58 │
00:01:49 #3282 [Verbose] > │ let v60 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v59) │
00:01:49 #3283 [Verbose] > │ let v61 : string = "v60.unwrap()" │
00:01:49 #3284 [Verbose] > │ let v62 : pyo3_Bound<pyo3_PyAny> = Fable.Core.RustInterop.emitRustExpr │
00:01:49 #3285 [Verbose] > │ () v61 │
00:01:49 #3286 [Verbose] > │ let v63 : pyo3_Bound<pyo3_PyAny> = method18(v62) │
00:01:49 #3287 [Verbose] > │ let v64 : string = "v63.extract()" │
00:01:49 #3288 [Verbose] > │ let v65 : Result<struct (float * float), pyo3_PyErr> = │
00:01:49 #3289 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v64 │
00:01:49 #3290 [Verbose] > │ let v66 : Result<struct (float * float), pyo3_PyErr> = method19(v65) │
00:01:49 #3291 [Verbose] > │ let v67 : string = "v66.unwrap()" │
00:01:49 #3292 [Verbose] > │ let struct (v68 : float, v69 : float) = │
00:01:49 #3293 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v67 │
00:01:49 #3294 [Verbose] > │ let v70 : float = method20(v68) │
00:01:49 #3295 [Verbose] > │ let v71 : float = method21(v69) │
00:01:49 #3296 [Verbose] > │ let v72 : string = "num_complex::Complex::new(v70, v71)" │
00:01:49 #3297 [Verbose] > │ let v73 : num_complex_Complex<float> = │
00:01:49 #3298 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v72 │
00:01:49 #3299 [Verbose] > │ let v74 : Result<num_complex_Complex<float>, pyo3_PyErr> = Ok v73 │
00:01:49 #3300 [Verbose] > │ let v75 : Result<num_complex_Complex<float>, pyo3_PyErr> = method22(v74) │
00:01:49 #3301 [Verbose] > │ let v76 : string = "v75.unwrap()" │
00:01:49 #3302 [Verbose] > │ let v77 : num_complex_Complex<float> = │
00:01:49 #3303 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v76 │
00:01:49 #3304 [Verbose] > │ let v78 : num_complex_Complex<float> = method8(v77) │
00:01:49 #3305 [Verbose] > │ let v79 : string = "v78.re" │
00:01:49 #3306 [Verbose] > │ let v80 : float = Fable.Core.RustInterop.emitRustExpr () v79 │
00:01:49 #3307 [Verbose] > │ let v81 : bool = v80 < infinity │
00:01:49 #3308 [Verbose] > │ let v83 : bool = │
00:01:49 #3309 [Verbose] > │ if v81 then │
00:01:49 #3310 [Verbose] > │ true │
00:01:49 #3311 [Verbose] > │ else │
00:01:49 #3312 [Verbose] > │ method23(v81) │
00:01:49 #3313 [Verbose] > │ let v84 : string = $"__expect / actual: %A{v80} / expected: │
00:01:49 #3314 [Verbose] > │ %A{infinity}" │
00:01:49 #3315 [Verbose] > │ let v85 : bool = v83 = false │
00:01:49 #3316 [Verbose] > │ if v85 then │
00:01:49 #3317 [Verbose] > │ failwith<unit> v84 │
00:01:49 #3318 [Verbose] > │ let v86 : num_complex_Complex<float> = method9(v77) │
00:01:49 #3319 [Verbose] > │ let v87 : string = "v86.im" │
00:01:49 #3320 [Verbose] > │ let v88 : float = Fable.Core.RustInterop.emitRustExpr () v87 │
00:01:49 #3321 [Verbose] > │ let v89 : bool = v88 < infinity │
00:01:49 #3322 [Verbose] > │ let v91 : bool = │
00:01:49 #3323 [Verbose] > │ if v89 then │
00:01:49 #3324 [Verbose] > │ true │
00:01:49 #3325 [Verbose] > │ else │
00:01:49 #3326 [Verbose] > │ method23(v89) │
00:01:49 #3327 [Verbose] > │ let v92 : string = $"__expect / actual: %A{v88} / expected: │
00:01:49 #3328 [Verbose] > │ %A{infinity}" │
00:01:49 #3329 [Verbose] > │ let v93 : bool = v91 = false │
00:01:49 #3330 [Verbose] > │ if v93 then │
00:01:49 #3331 [Verbose] > │ failwith<unit> v92 │
00:01:49 #3332 [Verbose] > │ let v94 : Result<unit, pyo3_PyErr> = Ok () │
00:01:49 #3333 [Verbose] > │ let v95 : Result<unit, pyo3_PyErr> = method24(v94) │
00:01:49 #3334 [Verbose] > │ let v96 : string = "v95 }}}}})" │
00:01:49 #3335 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v96 │
00:01:49 #3336 [Verbose] > │ let v97 : string = " {{{{ //" │
00:01:49 #3337 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v97 │
00:01:49 #3338 [Verbose] > │ let v98 : string = "__result" │
00:01:49 #3339 [Verbose] > │ let v99 : Result<unit, pyo3_PyErr> = Fable.Core.RustInterop.emitRustExpr │
00:01:49 #3340 [Verbose] > │ () v98 │
00:01:49 #3341 [Verbose] > │ let v100 : Result<unit, pyo3_PyErr> = method25(v99) │
00:01:49 #3342 [Verbose] > │ let v101 : string = "v100.unwrap()" │
00:01:49 #3343 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v101 │
00:01:49 #3344 [Verbose] > │ () │
00:01:49 #3345 [Verbose] > │ and method49 () : unit = │
00:01:49 #3346 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:49 #3347 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:49 #3348 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:49 #3349 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:49 #3350 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:49 #3351 [Verbose] > │ let v2 : string = "py" │
00:01:49 #3352 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:49 #3353 [Verbose] > │ let v4 : float = method3() │
00:01:49 #3354 [Verbose] > │ let v5 : float = method2() │
00:01:49 #3355 [Verbose] > │ let v6 : string = "num_complex::Complex::new(v4, v5)" │
00:01:49 #3356 [Verbose] > │ let v7 : num_complex_Complex<float> = │
00:01:49 #3357 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:01:49 #3358 [Verbose] > │ let v8 : string = "import mpmath" │
00:01:49 #3359 [Verbose] > │ let v9 : string = "def fn(s, _):" │
00:01:49 #3360 [Verbose] > │ let v10 : string = " s = complex(*s)" │
00:01:49 #3361 [Verbose] > │ let v11 : string = " try:" │
00:01:49 #3362 [Verbose] > │ let v12 : string = " s = mpmath.zeta(s)" │
00:01:49 #3363 [Verbose] > │ let v13 : string = " except ValueError as e:" │
00:01:49 #3364 [Verbose] > │ let v14 : string = " if s.real == 1:" │
00:01:49 #3365 [Verbose] > │ let v15 : string = " s = complex(float('inf'), 0)" │
00:01:49 #3366 [Verbose] > │ let v16 : string = " return (s.real, s.imag)" │
00:01:49 #3367 [Verbose] > │ let v17 : (string []) = [|v8; v9; v10; v11; v12; v13; v14; v15; v16|] │
00:01:49 #3368 [Verbose] > │ let v18 : (string []) = method6(v17) │
00:01:49 #3369 [Verbose] > │ let v19 : int32 = v18.Length │
00:01:49 #3370 [Verbose] > │ let v20 : string = "" │
00:01:49 #3371 [Verbose] > │ let v21 : Mut1 = {l0 = 0; l1 = v20} : Mut1 │
00:01:49 #3372 [Verbose] > │ while method7(v19, v21) do │
00:01:49 #3373 [Verbose] > │ let v23 : int32 = v21.l0 │
00:01:49 #3374 [Verbose] > │ let v24 : string = v21.l1 │
00:01:49 #3375 [Verbose] > │ let v25 : string = v18.[int v23] │
00:01:49 #3376 [Verbose] > │ let v26 : string = "\n" │
00:01:49 #3377 [Verbose] > │ let v27 : string = v24 + v25 + v26 + "" │
00:01:49 #3378 [Verbose] > │ let v28 : int32 = v23 + 1 │
00:01:49 #3379 [Verbose] > │ v21.l0 <- v28 │
00:01:49 #3380 [Verbose] > │ v21.l1 <- v27 │
00:01:49 #3381 [Verbose] > │ () │
00:01:49 #3382 [Verbose] > │ let v29 : string = v21.l1 │
00:01:49 #3383 [Verbose] > │ let v30 : num_complex_Complex<float> = method8(v7) │
00:01:49 #3384 [Verbose] > │ let v31 : string = "v30.re" │
00:01:49 #3385 [Verbose] > │ let v32 : float = Fable.Core.RustInterop.emitRustExpr () v31 │
00:01:49 #3386 [Verbose] > │ let v33 : num_complex_Complex<float> = method9(v7) │
00:01:49 #3387 [Verbose] > │ let v34 : string = "v33.im" │
00:01:49 #3388 [Verbose] > │ let v35 : float = Fable.Core.RustInterop.emitRustExpr () v34 │
00:01:49 #3389 [Verbose] > │ let v36 : (float * float) = v32, v35 │
00:01:49 #3390 [Verbose] > │ let v37 : ((float * float) * unit) = v36, () │
00:01:49 #3391 [Verbose] > │ let v38 : pyo3_Python = method10(v3) │
00:01:49 #3392 [Verbose] > │ let v39 : string = method11(v29) │
00:01:49 #3393 [Verbose] > │ let v40 : string = $"fable_library_rust::String_::LrcStr::as_str(&v39)" │
00:01:49 #3394 [Verbose] > │ let v41 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v40 │
00:01:49 #3395 [Verbose] > │ let v42 : string = "pyo3::types::PyModule::from_code_bound(v38, v41, │
00:01:49 #3396 [Verbose] > │ \"\", \"\")" │
00:01:49 #3397 [Verbose] > │ let v43 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #3398 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v42 │
00:01:49 #3399 [Verbose] > │ let v44 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #3400 [Verbose] > │ method12(v43) │
00:01:49 #3401 [Verbose] > │ let v45 : string = "v44.unwrap()" │
00:01:49 #3402 [Verbose] > │ let v46 : pyo3_Bound<pyo3_types_PyModule> = │
00:01:49 #3403 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v45 │
00:01:49 #3404 [Verbose] > │ let v47 : string = method13() │
00:01:49 #3405 [Verbose] > │ let v48 : string = $"fable_library_rust::String_::LrcStr::as_str(&v47)" │
00:01:49 #3406 [Verbose] > │ let v49 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v48 │
00:01:49 #3407 [Verbose] > │ let v50 : pyo3_Bound<pyo3_types_PyModule> = method14(v46) │
00:01:49 #3408 [Verbose] > │ let v51 : string = "v50.getattr(v49)" │
00:01:49 #3409 [Verbose] > │ let v52 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #3410 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v51 │
00:01:49 #3411 [Verbose] > │ let v53 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v52) │
00:01:49 #3412 [Verbose] > │ let v54 : string = "v53.unwrap()" │
00:01:49 #3413 [Verbose] > │ let v55 : pyo3_Bound<pyo3_PyAny> = Fable.Core.RustInterop.emitRustExpr │
00:01:49 #3414 [Verbose] > │ () v54 │
00:01:49 #3415 [Verbose] > │ let v56 : ((float * float) * unit) = method16(v37) │
00:01:49 #3416 [Verbose] > │ let v57 : pyo3_Bound<pyo3_PyAny> = method17(v55) │
00:01:49 #3417 [Verbose] > │ let v58 : string = "pyo3::prelude::PyAnyMethods::call(&v57, (*(*v56).0, │
00:01:49 #3418 [Verbose] > │ ()), None)" │
00:01:49 #3419 [Verbose] > │ let v59 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #3420 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v58 │
00:01:49 #3421 [Verbose] > │ let v60 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v59) │
00:01:49 #3422 [Verbose] > │ let v61 : string = "v60.unwrap()" │
00:01:49 #3423 [Verbose] > │ let v62 : pyo3_Bound<pyo3_PyAny> = Fable.Core.RustInterop.emitRustExpr │
00:01:49 #3424 [Verbose] > │ () v61 │
00:01:49 #3425 [Verbose] > │ let v63 : pyo3_Bound<pyo3_PyAny> = method18(v62) │
00:01:49 #3426 [Verbose] > │ let v64 : string = "v63.extract()" │
00:01:49 #3427 [Verbose] > │ let v65 : Result<struct (float * float), pyo3_PyErr> = │
00:01:49 #3428 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v64 │
00:01:49 #3429 [Verbose] > │ let v66 : Result<struct (float * float), pyo3_PyErr> = method19(v65) │
00:01:49 #3430 [Verbose] > │ let v67 : string = "v66.unwrap()" │
00:01:49 #3431 [Verbose] > │ let struct (v68 : float, v69 : float) = │
00:01:49 #3432 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v67 │
00:01:49 #3433 [Verbose] > │ let v70 : float = method20(v68) │
00:01:49 #3434 [Verbose] > │ let v71 : float = method21(v69) │
00:01:49 #3435 [Verbose] > │ let v72 : string = "num_complex::Complex::new(v70, v71)" │
00:01:49 #3436 [Verbose] > │ let v73 : num_complex_Complex<float> = │
00:01:49 #3437 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v72 │
00:01:49 #3438 [Verbose] > │ let v74 : Result<num_complex_Complex<float>, pyo3_PyErr> = Ok v73 │
00:01:49 #3439 [Verbose] > │ let v75 : Result<num_complex_Complex<float>, pyo3_PyErr> = method22(v74) │
00:01:49 #3440 [Verbose] > │ let v76 : string = "v75.unwrap()" │
00:01:49 #3441 [Verbose] > │ let v77 : num_complex_Complex<float> = │
00:01:49 #3442 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v76 │
00:01:49 #3443 [Verbose] > │ let v78 : num_complex_Complex<float> = method8(v77) │
00:01:49 #3444 [Verbose] > │ let v79 : string = "v78.re" │
00:01:49 #3445 [Verbose] > │ let v80 : float = Fable.Core.RustInterop.emitRustExpr () v79 │
00:01:49 #3446 [Verbose] > │ let v81 : float = v80 + 0.08333333333333333 │
00:01:49 #3447 [Verbose] > │ let v82 : float = -v81 │
00:01:49 #3448 [Verbose] > │ let v83 : bool = v81 >= v82 │
00:01:49 #3449 [Verbose] > │ let v84 : float = │
00:01:49 #3450 [Verbose] > │ if v83 then │
00:01:49 #3451 [Verbose] > │ v81 │
00:01:49 #3452 [Verbose] > │ else │
00:01:49 #3453 [Verbose] > │ v82 │
00:01:49 #3454 [Verbose] > │ let v85 : bool = v84 < 0.0001 │
00:01:49 #3455 [Verbose] > │ let v87 : bool = │
00:01:49 #3456 [Verbose] > │ if v85 then │
00:01:49 #3457 [Verbose] > │ true │
00:01:49 #3458 [Verbose] > │ else │
00:01:49 #3459 [Verbose] > │ method23(v85) │
00:01:49 #3460 [Verbose] > │ let v88 : string = $"__expect / actual: %A{v84} / expected: %A{0.0001}" │
00:01:49 #3461 [Verbose] > │ let v89 : bool = v87 = false │
00:01:49 #3462 [Verbose] > │ if v89 then │
00:01:49 #3463 [Verbose] > │ failwith<unit> v88 │
00:01:49 #3464 [Verbose] > │ let v90 : num_complex_Complex<float> = method9(v77) │
00:01:49 #3465 [Verbose] > │ let v91 : string = "v90.im" │
00:01:49 #3466 [Verbose] > │ let v92 : float = Fable.Core.RustInterop.emitRustExpr () v91 │
00:01:49 #3467 [Verbose] > │ let v93 : bool = v92 = 0.0 │
00:01:49 #3468 [Verbose] > │ let v95 : bool = │
00:01:49 #3469 [Verbose] > │ if v93 then │
00:01:49 #3470 [Verbose] > │ true │
00:01:49 #3471 [Verbose] > │ else │
00:01:49 #3472 [Verbose] > │ method23(v93) │
00:01:49 #3473 [Verbose] > │ let v96 : string = $"__expect / actual: %A{v92} / expected: %A{0.0}" │
00:01:49 #3474 [Verbose] > │ let v97 : bool = v95 = false │
00:01:49 #3475 [Verbose] > │ if v97 then │
00:01:49 #3476 [Verbose] > │ failwith<unit> v96 │
00:01:49 #3477 [Verbose] > │ let v98 : Result<unit, pyo3_PyErr> = Ok () │
00:01:49 #3478 [Verbose] > │ let v99 : Result<unit, pyo3_PyErr> = method24(v98) │
00:01:49 #3479 [Verbose] > │ let v100 : string = "v99 }}}}})" │
00:01:49 #3480 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v100 │
00:01:49 #3481 [Verbose] > │ let v101 : string = " {{{{ //" │
00:01:49 #3482 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v101 │
00:01:49 #3483 [Verbose] > │ let v102 : string = "__result" │
00:01:49 #3484 [Verbose] > │ let v103 : Result<unit, pyo3_PyErr> = │
00:01:49 #3485 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v102 │
00:01:49 #3486 [Verbose] > │ let v104 : Result<unit, pyo3_PyErr> = method25(v103) │
00:01:49 #3487 [Verbose] > │ let v105 : string = "v104.unwrap()" │
00:01:49 #3488 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v105 │
00:01:49 #3489 [Verbose] > │ () │
00:01:49 #3490 [Verbose] > │ and method51 () : (float []) = │
00:01:49 #3491 [Verbose] > │ let v0 : (float []) = [|10.0; 20.0; 30.0; 40.0; 50.0; 60.0; 70.0; 80.0; │
00:01:49 #3492 [Verbose] > │ 90.0; 100.0|] │
00:01:49 #3493 [Verbose] > │ let v1 : (float []) = method41(v0) │
00:01:49 #3494 [Verbose] > │ v1 │
00:01:49 #3495 [Verbose] > │ and method52 () : float = │
00:01:49 #3496 [Verbose] > │ 0.0 │
00:01:49 #3497 [Verbose] > │ and method53 (v0 : bool) : bool = │
00:01:49 #3498 [Verbose] > │ let v1 : bool = v0 = false │
00:01:49 #3499 [Verbose] > │ v1 │
00:01:49 #3500 [Verbose] > │ and method50 () : unit = │
00:01:49 #3501 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:49 #3502 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:49 #3503 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:49 #3504 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:49 #3505 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:49 #3506 [Verbose] > │ let v2 : string = "py" │
00:01:49 #3507 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:49 #3508 [Verbose] > │ let v4 : (float []) = method51() │
00:01:49 #3509 [Verbose] > │ let v5 : int32 = v4.Length │
00:01:49 #3510 [Verbose] > │ let v6 : Mut0 = {l0 = 0} : Mut0 │
00:01:49 #3511 [Verbose] > │ while method5(v5, v6) do │
00:01:49 #3512 [Verbose] > │ let v8 : int32 = v6.l0 │
00:01:49 #3513 [Verbose] > │ let v9 : float = v4.[int v8] │
00:01:49 #3514 [Verbose] > │ let v10 : float = method52() │
00:01:49 #3515 [Verbose] > │ let v11 : float = method21(v9) │
00:01:49 #3516 [Verbose] > │ let v12 : string = "num_complex::Complex::new(v10, v11)" │
00:01:49 #3517 [Verbose] > │ let v13 : num_complex_Complex<float> = │
00:01:49 #3518 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v12 │
00:01:49 #3519 [Verbose] > │ let v14 : string = "import mpmath" │
00:01:49 #3520 [Verbose] > │ let v15 : string = "def fn(s, _):" │
00:01:49 #3521 [Verbose] > │ let v16 : string = " s = complex(*s)" │
00:01:49 #3522 [Verbose] > │ let v17 : string = " try:" │
00:01:49 #3523 [Verbose] > │ let v18 : string = " s = mpmath.zeta(s)" │
00:01:49 #3524 [Verbose] > │ let v19 : string = " except ValueError as e:" │
00:01:49 #3525 [Verbose] > │ let v20 : string = " if s.real == 1:" │
00:01:49 #3526 [Verbose] > │ let v21 : string = " s = complex(float('inf'), 0)" │
00:01:49 #3527 [Verbose] > │ let v22 : string = " return (s.real, s.imag)" │
00:01:49 #3528 [Verbose] > │ let v23 : (string []) = [|v14; v15; v16; v17; v18; v19; v20; v21; │
00:01:49 #3529 [Verbose] > │ v22|] │
00:01:49 #3530 [Verbose] > │ let v24 : (string []) = method6(v23) │
00:01:49 #3531 [Verbose] > │ let v25 : int32 = v24.Length │
00:01:49 #3532 [Verbose] > │ let v26 : string = "" │
00:01:49 #3533 [Verbose] > │ let v27 : Mut1 = {l0 = 0; l1 = v26} : Mut1 │
00:01:49 #3534 [Verbose] > │ while method7(v25, v27) do │
00:01:49 #3535 [Verbose] > │ let v29 : int32 = v27.l0 │
00:01:49 #3536 [Verbose] > │ let v30 : string = v27.l1 │
00:01:49 #3537 [Verbose] > │ let v31 : string = v24.[int v29] │
00:01:49 #3538 [Verbose] > │ let v32 : string = "\n" │
00:01:49 #3539 [Verbose] > │ let v33 : string = v30 + v31 + v32 + "" │
00:01:49 #3540 [Verbose] > │ let v34 : int32 = v29 + 1 │
00:01:49 #3541 [Verbose] > │ v27.l0 <- v34 │
00:01:49 #3542 [Verbose] > │ v27.l1 <- v33 │
00:01:49 #3543 [Verbose] > │ () │
00:01:49 #3544 [Verbose] > │ let v35 : string = v27.l1 │
00:01:49 #3545 [Verbose] > │ let v36 : num_complex_Complex<float> = method8(v13) │
00:01:49 #3546 [Verbose] > │ let v37 : string = "v36.re" │
00:01:49 #3547 [Verbose] > │ let v38 : float = Fable.Core.RustInterop.emitRustExpr () v37 │
00:01:49 #3548 [Verbose] > │ let v39 : num_complex_Complex<float> = method9(v13) │
00:01:49 #3549 [Verbose] > │ let v40 : string = "v39.im" │
00:01:49 #3550 [Verbose] > │ let v41 : float = Fable.Core.RustInterop.emitRustExpr () v40 │
00:01:49 #3551 [Verbose] > │ let v42 : (float * float) = v38, v41 │
00:01:49 #3552 [Verbose] > │ let v43 : ((float * float) * unit) = v42, () │
00:01:49 #3553 [Verbose] > │ let v44 : pyo3_Python = method10(v3) │
00:01:49 #3554 [Verbose] > │ let v45 : string = method11(v35) │
00:01:49 #3555 [Verbose] > │ let v46 : string = │
00:01:49 #3556 [Verbose] > │ $"fable_library_rust::String_::LrcStr::as_str(&v45)" │
00:01:49 #3557 [Verbose] > │ let v47 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v46 │
00:01:49 #3558 [Verbose] > │ let v48 : string = "pyo3::types::PyModule::from_code_bound(v44, v47, │
00:01:49 #3559 [Verbose] > │ \"\", \"\")" │
00:01:49 #3560 [Verbose] > │ let v49 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #3561 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v48 │
00:01:49 #3562 [Verbose] > │ let v50 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #3563 [Verbose] > │ method12(v49) │
00:01:49 #3564 [Verbose] > │ let v51 : string = "v50.unwrap()" │
00:01:49 #3565 [Verbose] > │ let v52 : pyo3_Bound<pyo3_types_PyModule> = │
00:01:49 #3566 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v51 │
00:01:49 #3567 [Verbose] > │ let v53 : string = method13() │
00:01:49 #3568 [Verbose] > │ let v54 : string = │
00:01:49 #3569 [Verbose] > │ $"fable_library_rust::String_::LrcStr::as_str(&v53)" │
00:01:49 #3570 [Verbose] > │ let v55 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v54 │
00:01:49 #3571 [Verbose] > │ let v56 : pyo3_Bound<pyo3_types_PyModule> = method14(v52) │
00:01:49 #3572 [Verbose] > │ let v57 : string = "v56.getattr(v55)" │
00:01:49 #3573 [Verbose] > │ let v58 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #3574 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v57 │
00:01:49 #3575 [Verbose] > │ let v59 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v58) │
00:01:49 #3576 [Verbose] > │ let v60 : string = "v59.unwrap()" │
00:01:49 #3577 [Verbose] > │ let v61 : pyo3_Bound<pyo3_PyAny> = │
00:01:49 #3578 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v60 │
00:01:49 #3579 [Verbose] > │ let v62 : ((float * float) * unit) = method16(v43) │
00:01:49 #3580 [Verbose] > │ let v63 : pyo3_Bound<pyo3_PyAny> = method17(v61) │
00:01:49 #3581 [Verbose] > │ let v64 : string = "pyo3::prelude::PyAnyMethods::call(&v63, │
00:01:49 #3582 [Verbose] > │ (*(*v62).0, ()), None)" │
00:01:49 #3583 [Verbose] > │ let v65 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #3584 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v64 │
00:01:49 #3585 [Verbose] > │ let v66 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v65) │
00:01:49 #3586 [Verbose] > │ let v67 : string = "v66.unwrap()" │
00:01:49 #3587 [Verbose] > │ let v68 : pyo3_Bound<pyo3_PyAny> = │
00:01:49 #3588 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v67 │
00:01:49 #3589 [Verbose] > │ let v69 : pyo3_Bound<pyo3_PyAny> = method18(v68) │
00:01:49 #3590 [Verbose] > │ let v70 : string = "v69.extract()" │
00:01:49 #3591 [Verbose] > │ let v71 : Result<struct (float * float), pyo3_PyErr> = │
00:01:49 #3592 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v70 │
00:01:49 #3593 [Verbose] > │ let v72 : Result<struct (float * float), pyo3_PyErr> = method19(v71) │
00:01:49 #3594 [Verbose] > │ let v73 : string = "v72.unwrap()" │
00:01:49 #3595 [Verbose] > │ let struct (v74 : float, v75 : float) = │
00:01:49 #3596 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v73 │
00:01:49 #3597 [Verbose] > │ let v76 : float = method20(v74) │
00:01:49 #3598 [Verbose] > │ let v77 : float = method21(v75) │
00:01:49 #3599 [Verbose] > │ let v78 : string = "num_complex::Complex::new(v76, v77)" │
00:01:49 #3600 [Verbose] > │ let v79 : num_complex_Complex<float> = │
00:01:49 #3601 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v78 │
00:01:49 #3602 [Verbose] > │ let v80 : Result<num_complex_Complex<float>, pyo3_PyErr> = Ok v79 │
00:01:49 #3603 [Verbose] > │ let v81 : Result<num_complex_Complex<float>, pyo3_PyErr> = │
00:01:49 #3604 [Verbose] > │ method22(v80) │
00:01:49 #3605 [Verbose] > │ let v82 : string = "v81.unwrap()" │
00:01:49 #3606 [Verbose] > │ let v83 : num_complex_Complex<float> = │
00:01:49 #3607 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v82 │
00:01:49 #3608 [Verbose] > │ let v84 : num_complex_Complex<float> = method8(v83) │
00:01:49 #3609 [Verbose] > │ let v85 : string = "v84.re" │
00:01:49 #3610 [Verbose] > │ let v86 : float = Fable.Core.RustInterop.emitRustExpr () v85 │
00:01:49 #3611 [Verbose] > │ let v87 : bool = v86 = 0.0 │
00:01:49 #3612 [Verbose] > │ let v88 : bool = method53(v87) │
00:01:49 #3613 [Verbose] > │ let v90 : bool = │
00:01:49 #3614 [Verbose] > │ if v88 then │
00:01:49 #3615 [Verbose] > │ true │
00:01:49 #3616 [Verbose] > │ else │
00:01:49 #3617 [Verbose] > │ method23(v88) │
00:01:49 #3618 [Verbose] > │ let v91 : string = $"__expect / actual: %A{v86} / expected: %A{0.0}" │
00:01:49 #3619 [Verbose] > │ let v92 : bool = v90 = false │
00:01:49 #3620 [Verbose] > │ if v92 then │
00:01:49 #3621 [Verbose] > │ failwith<unit> v91 │
00:01:49 #3622 [Verbose] > │ let v93 : num_complex_Complex<float> = method9(v83) │
00:01:49 #3623 [Verbose] > │ let v94 : string = "v93.im" │
00:01:49 #3624 [Verbose] > │ let v95 : float = Fable.Core.RustInterop.emitRustExpr () v94 │
00:01:49 #3625 [Verbose] > │ let v96 : bool = v95 = 0.0 │
00:01:49 #3626 [Verbose] > │ let v97 : bool = method53(v96) │
00:01:49 #3627 [Verbose] > │ let v99 : bool = │
00:01:49 #3628 [Verbose] > │ if v97 then │
00:01:49 #3629 [Verbose] > │ true │
00:01:49 #3630 [Verbose] > │ else │
00:01:49 #3631 [Verbose] > │ method23(v97) │
00:01:49 #3632 [Verbose] > │ let v100 : string = $"__expect / actual: %A{v95} / expected: │
00:01:49 #3633 [Verbose] > │ %A{0.0}" │
00:01:49 #3634 [Verbose] > │ let v101 : bool = v99 = false │
00:01:49 #3635 [Verbose] > │ if v101 then │
00:01:49 #3636 [Verbose] > │ failwith<unit> v100 │
00:01:49 #3637 [Verbose] > │ let v102 : int32 = v8 + 1 │
00:01:49 #3638 [Verbose] > │ v6.l0 <- v102 │
00:01:49 #3639 [Verbose] > │ () │
00:01:49 #3640 [Verbose] > │ let v103 : Result<unit, pyo3_PyErr> = Ok () │
00:01:49 #3641 [Verbose] > │ let v104 : Result<unit, pyo3_PyErr> = method24(v103) │
00:01:49 #3642 [Verbose] > │ let v105 : string = "v104 }}})" │
00:01:49 #3643 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v105 │
00:01:49 #3644 [Verbose] > │ let v106 : string = " {{ //" │
00:01:49 #3645 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v106 │
00:01:49 #3646 [Verbose] > │ let v107 : string = "__result" │
00:01:49 #3647 [Verbose] > │ let v108 : Result<unit, pyo3_PyErr> = │
00:01:49 #3648 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v107 │
00:01:49 #3649 [Verbose] > │ let v109 : Result<unit, pyo3_PyErr> = method25(v108) │
00:01:49 #3650 [Verbose] > │ let v110 : string = "v109.unwrap()" │
00:01:49 #3651 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v110 │
00:01:49 #3652 [Verbose] > │ () │
00:01:49 #3653 [Verbose] > │ and method55 () : float = │
00:01:49 #3654 [Verbose] > │ 0.75 │
00:01:49 #3655 [Verbose] > │ and method56 () : float = │
00:01:49 #3656 [Verbose] > │ 20.5 │
00:01:49 #3657 [Verbose] > │ and method57 () : float = │
00:01:49 #3658 [Verbose] > │ 1.25 │
00:01:49 #3659 [Verbose] > │ and method58 () : float = │
00:01:49 #3660 [Verbose] > │ 30.1 │
00:01:49 #3661 [Verbose] > │ and method59 () : float = │
00:01:49 #3662 [Verbose] > │ 0.25 │
00:01:49 #3663 [Verbose] > │ and method60 () : float = │
00:01:49 #3664 [Verbose] > │ 40.0 │
00:01:49 #3665 [Verbose] > │ and method61 () : float = │
00:01:49 #3666 [Verbose] > │ 50.0 │
00:01:49 #3667 [Verbose] > │ and method54 () : unit = │
00:01:49 #3668 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:49 #3669 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:49 #3670 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:49 #3671 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:49 #3672 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:49 #3673 [Verbose] > │ let v2 : string = "py" │
00:01:49 #3674 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:49 #3675 [Verbose] > │ let v4 : float = method32() │
00:01:49 #3676 [Verbose] > │ let v5 : float = method33() │
00:01:49 #3677 [Verbose] > │ let v6 : string = "num_complex::Complex::new(v4, v5)" │
00:01:49 #3678 [Verbose] > │ let v7 : num_complex_Complex<float> = │
00:01:49 #3679 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:01:49 #3680 [Verbose] > │ let v8 : float = method55() │
00:01:49 #3681 [Verbose] > │ let v9 : float = method56() │
00:01:49 #3682 [Verbose] > │ let v10 : string = "num_complex::Complex::new(v8, v9)" │
00:01:49 #3683 [Verbose] > │ let v11 : num_complex_Complex<float> = │
00:01:49 #3684 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v10 │
00:01:49 #3685 [Verbose] > │ let v12 : float = method57() │
00:01:49 #3686 [Verbose] > │ let v13 : float = method58() │
00:01:49 #3687 [Verbose] > │ let v14 : string = "num_complex::Complex::new(v12, v13)" │
00:01:49 #3688 [Verbose] > │ let v15 : num_complex_Complex<float> = │
00:01:49 #3689 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v14 │
00:01:49 #3690 [Verbose] > │ let v16 : float = method59() │
00:01:49 #3691 [Verbose] > │ let v17 : float = method60() │
00:01:49 #3692 [Verbose] > │ let v18 : string = "num_complex::Complex::new(v16, v17)" │
00:01:49 #3693 [Verbose] > │ let v19 : num_complex_Complex<float> = │
00:01:49 #3694 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v18 │
00:01:49 #3695 [Verbose] > │ let v20 : float = method43() │
00:01:49 #3696 [Verbose] > │ let v21 : float = method61() │
00:01:49 #3697 [Verbose] > │ let v22 : string = "num_complex::Complex::new(v20, v21)" │
00:01:49 #3698 [Verbose] > │ let v23 : num_complex_Complex<float> = │
00:01:49 #3699 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v22 │
00:01:49 #3700 [Verbose] > │ let v24 : (num_complex_Complex<float> []) = [|v7; v11; v15; v19; v23|] │
00:01:49 #3701 [Verbose] > │ let v25 : (num_complex_Complex<float> []) = method39(v24) │
00:01:49 #3702 [Verbose] > │ let v26 : int32 = v25.Length │
00:01:49 #3703 [Verbose] > │ let v27 : Mut0 = {l0 = 0} : Mut0 │
00:01:49 #3704 [Verbose] > │ while method5(v26, v27) do │
00:01:49 #3705 [Verbose] > │ let v29 : int32 = v27.l0 │
00:01:49 #3706 [Verbose] > │ let v30 : num_complex_Complex<float> = v25.[int v29] │
00:01:49 #3707 [Verbose] > │ let v31 : string = "import mpmath" │
00:01:49 #3708 [Verbose] > │ let v32 : string = "def fn(s, _):" │
00:01:49 #3709 [Verbose] > │ let v33 : string = " s = complex(*s)" │
00:01:49 #3710 [Verbose] > │ let v34 : string = " try:" │
00:01:49 #3711 [Verbose] > │ let v35 : string = " s = mpmath.zeta(s)" │
00:01:49 #3712 [Verbose] > │ let v36 : string = " except ValueError as e:" │
00:01:49 #3713 [Verbose] > │ let v37 : string = " if s.real == 1:" │
00:01:49 #3714 [Verbose] > │ let v38 : string = " s = complex(float('inf'), 0)" │
00:01:49 #3715 [Verbose] > │ let v39 : string = " return (s.real, s.imag)" │
00:01:49 #3716 [Verbose] > │ let v40 : (string []) = [|v31; v32; v33; v34; v35; v36; v37; v38; │
00:01:49 #3717 [Verbose] > │ v39|] │
00:01:49 #3718 [Verbose] > │ let v41 : (string []) = method6(v40) │
00:01:49 #3719 [Verbose] > │ let v42 : int32 = v41.Length │
00:01:49 #3720 [Verbose] > │ let v43 : string = "" │
00:01:49 #3721 [Verbose] > │ let v44 : Mut1 = {l0 = 0; l1 = v43} : Mut1 │
00:01:49 #3722 [Verbose] > │ while method7(v42, v44) do │
00:01:49 #3723 [Verbose] > │ let v46 : int32 = v44.l0 │
00:01:49 #3724 [Verbose] > │ let v47 : string = v44.l1 │
00:01:49 #3725 [Verbose] > │ let v48 : string = v41.[int v46] │
00:01:49 #3726 [Verbose] > │ let v49 : string = "\n" │
00:01:49 #3727 [Verbose] > │ let v50 : string = v47 + v48 + v49 + "" │
00:01:49 #3728 [Verbose] > │ let v51 : int32 = v46 + 1 │
00:01:49 #3729 [Verbose] > │ v44.l0 <- v51 │
00:01:49 #3730 [Verbose] > │ v44.l1 <- v50 │
00:01:49 #3731 [Verbose] > │ () │
00:01:49 #3732 [Verbose] > │ let v52 : string = v44.l1 │
00:01:49 #3733 [Verbose] > │ let v53 : num_complex_Complex<float> = method8(v30) │
00:01:49 #3734 [Verbose] > │ let v54 : string = "v53.re" │
00:01:49 #3735 [Verbose] > │ let v55 : float = Fable.Core.RustInterop.emitRustExpr () v54 │
00:01:49 #3736 [Verbose] > │ let v56 : num_complex_Complex<float> = method9(v30) │
00:01:49 #3737 [Verbose] > │ let v57 : string = "v56.im" │
00:01:49 #3738 [Verbose] > │ let v58 : float = Fable.Core.RustInterop.emitRustExpr () v57 │
00:01:49 #3739 [Verbose] > │ let v59 : (float * float) = v55, v58 │
00:01:49 #3740 [Verbose] > │ let v60 : ((float * float) * unit) = v59, () │
00:01:49 #3741 [Verbose] > │ let v61 : pyo3_Python = method10(v3) │
00:01:49 #3742 [Verbose] > │ let v62 : string = method11(v52) │
00:01:49 #3743 [Verbose] > │ let v63 : string = │
00:01:49 #3744 [Verbose] > │ $"fable_library_rust::String_::LrcStr::as_str(&v62)" │
00:01:49 #3745 [Verbose] > │ let v64 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v63 │
00:01:49 #3746 [Verbose] > │ let v65 : string = "pyo3::types::PyModule::from_code_bound(v61, v64, │
00:01:49 #3747 [Verbose] > │ \"\", \"\")" │
00:01:49 #3748 [Verbose] > │ let v66 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #3749 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v65 │
00:01:49 #3750 [Verbose] > │ let v67 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #3751 [Verbose] > │ method12(v66) │
00:01:49 #3752 [Verbose] > │ let v68 : string = "v67.unwrap()" │
00:01:49 #3753 [Verbose] > │ let v69 : pyo3_Bound<pyo3_types_PyModule> = │
00:01:49 #3754 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v68 │
00:01:49 #3755 [Verbose] > │ let v70 : string = method13() │
00:01:49 #3756 [Verbose] > │ let v71 : string = │
00:01:49 #3757 [Verbose] > │ $"fable_library_rust::String_::LrcStr::as_str(&v70)" │
00:01:49 #3758 [Verbose] > │ let v72 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v71 │
00:01:49 #3759 [Verbose] > │ let v73 : pyo3_Bound<pyo3_types_PyModule> = method14(v69) │
00:01:49 #3760 [Verbose] > │ let v74 : string = "v73.getattr(v72)" │
00:01:49 #3761 [Verbose] > │ let v75 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #3762 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v74 │
00:01:49 #3763 [Verbose] > │ let v76 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v75) │
00:01:49 #3764 [Verbose] > │ let v77 : string = "v76.unwrap()" │
00:01:49 #3765 [Verbose] > │ let v78 : pyo3_Bound<pyo3_PyAny> = │
00:01:49 #3766 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v77 │
00:01:49 #3767 [Verbose] > │ let v79 : ((float * float) * unit) = method16(v60) │
00:01:49 #3768 [Verbose] > │ let v80 : pyo3_Bound<pyo3_PyAny> = method17(v78) │
00:01:49 #3769 [Verbose] > │ let v81 : string = "pyo3::prelude::PyAnyMethods::call(&v80, │
00:01:49 #3770 [Verbose] > │ (*(*v79).0, ()), None)" │
00:01:49 #3771 [Verbose] > │ let v82 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #3772 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v81 │
00:01:49 #3773 [Verbose] > │ let v83 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v82) │
00:01:49 #3774 [Verbose] > │ let v84 : string = "v83.unwrap()" │
00:01:49 #3775 [Verbose] > │ let v85 : pyo3_Bound<pyo3_PyAny> = │
00:01:49 #3776 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v84 │
00:01:49 #3777 [Verbose] > │ let v86 : pyo3_Bound<pyo3_PyAny> = method18(v85) │
00:01:49 #3778 [Verbose] > │ let v87 : string = "v86.extract()" │
00:01:49 #3779 [Verbose] > │ let v88 : Result<struct (float * float), pyo3_PyErr> = │
00:01:49 #3780 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v87 │
00:01:49 #3781 [Verbose] > │ let v89 : Result<struct (float * float), pyo3_PyErr> = method19(v88) │
00:01:49 #3782 [Verbose] > │ let v90 : string = "v89.unwrap()" │
00:01:49 #3783 [Verbose] > │ let struct (v91 : float, v92 : float) = │
00:01:49 #3784 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v90 │
00:01:49 #3785 [Verbose] > │ let v93 : float = method20(v91) │
00:01:49 #3786 [Verbose] > │ let v94 : float = method21(v92) │
00:01:49 #3787 [Verbose] > │ let v95 : string = "num_complex::Complex::new(v93, v94)" │
00:01:49 #3788 [Verbose] > │ let v96 : num_complex_Complex<float> = │
00:01:49 #3789 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v95 │
00:01:49 #3790 [Verbose] > │ let v97 : Result<num_complex_Complex<float>, pyo3_PyErr> = Ok v96 │
00:01:49 #3791 [Verbose] > │ let v98 : Result<num_complex_Complex<float>, pyo3_PyErr> = │
00:01:49 #3792 [Verbose] > │ method22(v97) │
00:01:49 #3793 [Verbose] > │ let v99 : string = "v98.unwrap()" │
00:01:49 #3794 [Verbose] > │ let v100 : num_complex_Complex<float> = │
00:01:49 #3795 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v99 │
00:01:49 #3796 [Verbose] > │ let v101 : num_complex_Complex<float> = method8(v100) │
00:01:49 #3797 [Verbose] > │ let v102 : string = "v101.re" │
00:01:49 #3798 [Verbose] > │ let v103 : float = Fable.Core.RustInterop.emitRustExpr () v102 │
00:01:49 #3799 [Verbose] > │ let v104 : bool = v103 = 0.0 │
00:01:49 #3800 [Verbose] > │ let v105 : bool = method53(v104) │
00:01:49 #3801 [Verbose] > │ let v107 : bool = │
00:01:49 #3802 [Verbose] > │ if v105 then │
00:01:49 #3803 [Verbose] > │ true │
00:01:49 #3804 [Verbose] > │ else │
00:01:49 #3805 [Verbose] > │ method23(v105) │
00:01:49 #3806 [Verbose] > │ let v108 : string = $"__expect / actual: %A{v103} / expected: │
00:01:49 #3807 [Verbose] > │ %A{0.0}" │
00:01:49 #3808 [Verbose] > │ let v109 : bool = v107 = false │
00:01:49 #3809 [Verbose] > │ if v109 then │
00:01:49 #3810 [Verbose] > │ failwith<unit> v108 │
00:01:49 #3811 [Verbose] > │ let v110 : num_complex_Complex<float> = method9(v100) │
00:01:49 #3812 [Verbose] > │ let v111 : string = "v110.im" │
00:01:49 #3813 [Verbose] > │ let v112 : float = Fable.Core.RustInterop.emitRustExpr () v111 │
00:01:49 #3814 [Verbose] > │ let v113 : bool = v112 = 0.0 │
00:01:49 #3815 [Verbose] > │ let v114 : bool = method53(v113) │
00:01:49 #3816 [Verbose] > │ let v116 : bool = │
00:01:49 #3817 [Verbose] > │ if v114 then │
00:01:49 #3818 [Verbose] > │ true │
00:01:49 #3819 [Verbose] > │ else │
00:01:49 #3820 [Verbose] > │ method23(v114) │
00:01:49 #3821 [Verbose] > │ let v117 : string = $"__expect / actual: %A{v112} / expected: │
00:01:49 #3822 [Verbose] > │ %A{0.0}" │
00:01:49 #3823 [Verbose] > │ let v118 : bool = v116 = false │
00:01:49 #3824 [Verbose] > │ if v118 then │
00:01:49 #3825 [Verbose] > │ failwith<unit> v117 │
00:01:49 #3826 [Verbose] > │ let v119 : int32 = v29 + 1 │
00:01:49 #3827 [Verbose] > │ v27.l0 <- v119 │
00:01:49 #3828 [Verbose] > │ () │
00:01:49 #3829 [Verbose] > │ let v120 : Result<unit, pyo3_PyErr> = Ok () │
00:01:49 #3830 [Verbose] > │ let v121 : Result<unit, pyo3_PyErr> = method24(v120) │
00:01:49 #3831 [Verbose] > │ let v122 : string = "v121 }}})" │
00:01:49 #3832 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v122 │
00:01:49 #3833 [Verbose] > │ let v123 : string = " {{ //" │
00:01:49 #3834 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v123 │
00:01:49 #3835 [Verbose] > │ let v124 : string = "__result" │
00:01:49 #3836 [Verbose] > │ let v125 : Result<unit, pyo3_PyErr> = │
00:01:49 #3837 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v124 │
00:01:49 #3838 [Verbose] > │ let v126 : Result<unit, pyo3_PyErr> = method25(v125) │
00:01:49 #3839 [Verbose] > │ let v127 : string = "v126.unwrap()" │
00:01:49 #3840 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v127 │
00:01:49 #3841 [Verbose] > │ () │
00:01:49 #3842 [Verbose] > │ and method63 () : float = │
00:01:49 #3843 [Verbose] > │ 3.0 │
00:01:49 #3844 [Verbose] > │ and method64 () : float = │
00:01:49 #3845 [Verbose] > │ 4.0 │
00:01:49 #3846 [Verbose] > │ and method65 () : float = │
00:01:49 #3847 [Verbose] > │ 2.5 │
00:01:49 #3848 [Verbose] > │ and method66 () : float = │
00:01:49 #3849 [Verbose] > │ -3.5 │
00:01:49 #3850 [Verbose] > │ and method67 () : float = │
00:01:49 #3851 [Verbose] > │ 1.5 │
00:01:49 #3852 [Verbose] > │ and method68 () : float = │
00:01:49 #3853 [Verbose] > │ 2.5 │
00:01:49 #3854 [Verbose] > │ and method69 () : float = │
00:01:49 #3855 [Verbose] > │ 3.141592653589793 │
00:01:49 #3856 [Verbose] > │ and method62 () : unit = │
00:01:49 #3857 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:49 #3858 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:49 #3859 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:49 #3860 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:49 #3861 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:49 #3862 [Verbose] > │ let v2 : string = "py" │
00:01:49 #3863 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:49 #3864 [Verbose] > │ let v4 : float = method63() │
00:01:49 #3865 [Verbose] > │ let v5 : float = method64() │
00:01:49 #3866 [Verbose] > │ let v6 : string = "num_complex::Complex::new(v4, v5)" │
00:01:49 #3867 [Verbose] > │ let v7 : num_complex_Complex<float> = │
00:01:49 #3868 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:01:49 #3869 [Verbose] > │ let v8 : float = method65() │
00:01:49 #3870 [Verbose] > │ let v9 : float = method66() │
00:01:49 #3871 [Verbose] > │ let v10 : string = "num_complex::Complex::new(v8, v9)" │
00:01:49 #3872 [Verbose] > │ let v11 : num_complex_Complex<float> = │
00:01:49 #3873 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v10 │
00:01:49 #3874 [Verbose] > │ let v12 : float = method67() │
00:01:49 #3875 [Verbose] > │ let v13 : float = method68() │
00:01:49 #3876 [Verbose] > │ let v14 : string = "num_complex::Complex::new(v12, v13)" │
00:01:49 #3877 [Verbose] > │ let v15 : num_complex_Complex<float> = │
00:01:49 #3878 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v14 │
00:01:49 #3879 [Verbose] > │ let v16 : float = method32() │
00:01:49 #3880 [Verbose] > │ let v17 : float = method33() │
00:01:49 #3881 [Verbose] > │ let v18 : string = "num_complex::Complex::new(v16, v17)" │
00:01:49 #3882 [Verbose] > │ let v19 : num_complex_Complex<float> = │
00:01:49 #3883 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v18 │
00:01:49 #3884 [Verbose] > │ let v20 : (num_complex_Complex<float> []) = [|v7; v11; v15; v19|] │
00:01:49 #3885 [Verbose] > │ let v21 : (num_complex_Complex<float> []) = method39(v20) │
00:01:49 #3886 [Verbose] > │ let v22 : int32 = v21.Length │
00:01:49 #3887 [Verbose] > │ let v23 : Mut0 = {l0 = 0} : Mut0 │
00:01:49 #3888 [Verbose] > │ while method5(v22, v23) do │
00:01:49 #3889 [Verbose] > │ let v25 : int32 = v23.l0 │
00:01:49 #3890 [Verbose] > │ let v26 : num_complex_Complex<float> = v21.[int v25] │
00:01:49 #3891 [Verbose] > │ let v27 : string = "import mpmath" │
00:01:49 #3892 [Verbose] > │ let v28 : string = "def fn(s, _):" │
00:01:49 #3893 [Verbose] > │ let v29 : string = " s = complex(*s)" │
00:01:49 #3894 [Verbose] > │ let v30 : string = " try:" │
00:01:49 #3895 [Verbose] > │ let v31 : string = " s = mpmath.zeta(s)" │
00:01:49 #3896 [Verbose] > │ let v32 : string = " except ValueError as e:" │
00:01:49 #3897 [Verbose] > │ let v33 : string = " if s.real == 1:" │
00:01:49 #3898 [Verbose] > │ let v34 : string = " s = complex(float('inf'), 0)" │
00:01:49 #3899 [Verbose] > │ let v35 : string = " return (s.real, s.imag)" │
00:01:49 #3900 [Verbose] > │ let v36 : (string []) = [|v27; v28; v29; v30; v31; v32; v33; v34; │
00:01:49 #3901 [Verbose] > │ v35|] │
00:01:49 #3902 [Verbose] > │ let v37 : (string []) = method6(v36) │
00:01:49 #3903 [Verbose] > │ let v38 : int32 = v37.Length │
00:01:49 #3904 [Verbose] > │ let v39 : string = "" │
00:01:49 #3905 [Verbose] > │ let v40 : Mut1 = {l0 = 0; l1 = v39} : Mut1 │
00:01:49 #3906 [Verbose] > │ while method7(v38, v40) do │
00:01:49 #3907 [Verbose] > │ let v42 : int32 = v40.l0 │
00:01:49 #3908 [Verbose] > │ let v43 : string = v40.l1 │
00:01:49 #3909 [Verbose] > │ let v44 : string = v37.[int v42] │
00:01:49 #3910 [Verbose] > │ let v45 : string = "\n" │
00:01:49 #3911 [Verbose] > │ let v46 : string = v43 + v44 + v45 + "" │
00:01:49 #3912 [Verbose] > │ let v47 : int32 = v42 + 1 │
00:01:49 #3913 [Verbose] > │ v40.l0 <- v47 │
00:01:49 #3914 [Verbose] > │ v40.l1 <- v46 │
00:01:49 #3915 [Verbose] > │ () │
00:01:49 #3916 [Verbose] > │ let v48 : string = v40.l1 │
00:01:49 #3917 [Verbose] > │ let v49 : num_complex_Complex<float> = method8(v26) │
00:01:49 #3918 [Verbose] > │ let v50 : string = "v49.re" │
00:01:49 #3919 [Verbose] > │ let v51 : float = Fable.Core.RustInterop.emitRustExpr () v50 │
00:01:49 #3920 [Verbose] > │ let v52 : num_complex_Complex<float> = method9(v26) │
00:01:49 #3921 [Verbose] > │ let v53 : string = "v52.im" │
00:01:49 #3922 [Verbose] > │ let v54 : float = Fable.Core.RustInterop.emitRustExpr () v53 │
00:01:49 #3923 [Verbose] > │ let v55 : (float * float) = v51, v54 │
00:01:49 #3924 [Verbose] > │ let v56 : ((float * float) * unit) = v55, () │
00:01:49 #3925 [Verbose] > │ let v57 : pyo3_Python = method10(v3) │
00:01:49 #3926 [Verbose] > │ let v58 : string = method11(v48) │
00:01:49 #3927 [Verbose] > │ let v59 : string = │
00:01:49 #3928 [Verbose] > │ $"fable_library_rust::String_::LrcStr::as_str(&v58)" │
00:01:49 #3929 [Verbose] > │ let v60 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v59 │
00:01:49 #3930 [Verbose] > │ let v61 : string = "pyo3::types::PyModule::from_code_bound(v57, v60, │
00:01:49 #3931 [Verbose] > │ \"\", \"\")" │
00:01:49 #3932 [Verbose] > │ let v62 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #3933 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v61 │
00:01:49 #3934 [Verbose] > │ let v63 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #3935 [Verbose] > │ method12(v62) │
00:01:49 #3936 [Verbose] > │ let v64 : string = "v63.unwrap()" │
00:01:49 #3937 [Verbose] > │ let v65 : pyo3_Bound<pyo3_types_PyModule> = │
00:01:49 #3938 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v64 │
00:01:49 #3939 [Verbose] > │ let v66 : string = method13() │
00:01:49 #3940 [Verbose] > │ let v67 : string = │
00:01:49 #3941 [Verbose] > │ $"fable_library_rust::String_::LrcStr::as_str(&v66)" │
00:01:49 #3942 [Verbose] > │ let v68 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v67 │
00:01:49 #3943 [Verbose] > │ let v69 : pyo3_Bound<pyo3_types_PyModule> = method14(v65) │
00:01:49 #3944 [Verbose] > │ let v70 : string = "v69.getattr(v68)" │
00:01:49 #3945 [Verbose] > │ let v71 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #3946 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v70 │
00:01:49 #3947 [Verbose] > │ let v72 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v71) │
00:01:49 #3948 [Verbose] > │ let v73 : string = "v72.unwrap()" │
00:01:49 #3949 [Verbose] > │ let v74 : pyo3_Bound<pyo3_PyAny> = │
00:01:49 #3950 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v73 │
00:01:49 #3951 [Verbose] > │ let v75 : ((float * float) * unit) = method16(v56) │
00:01:49 #3952 [Verbose] > │ let v76 : pyo3_Bound<pyo3_PyAny> = method17(v74) │
00:01:49 #3953 [Verbose] > │ let v77 : string = "pyo3::prelude::PyAnyMethods::call(&v76, │
00:01:49 #3954 [Verbose] > │ (*(*v75).0, ()), None)" │
00:01:49 #3955 [Verbose] > │ let v78 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #3956 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v77 │
00:01:49 #3957 [Verbose] > │ let v79 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v78) │
00:01:49 #3958 [Verbose] > │ let v80 : string = "v79.unwrap()" │
00:01:49 #3959 [Verbose] > │ let v81 : pyo3_Bound<pyo3_PyAny> = │
00:01:49 #3960 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v80 │
00:01:49 #3961 [Verbose] > │ let v82 : pyo3_Bound<pyo3_PyAny> = method18(v81) │
00:01:49 #3962 [Verbose] > │ let v83 : string = "v82.extract()" │
00:01:49 #3963 [Verbose] > │ let v84 : Result<struct (float * float), pyo3_PyErr> = │
00:01:49 #3964 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v83 │
00:01:49 #3965 [Verbose] > │ let v85 : Result<struct (float * float), pyo3_PyErr> = method19(v84) │
00:01:49 #3966 [Verbose] > │ let v86 : string = "v85.unwrap()" │
00:01:49 #3967 [Verbose] > │ let struct (v87 : float, v88 : float) = │
00:01:49 #3968 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v86 │
00:01:49 #3969 [Verbose] > │ let v89 : float = method20(v87) │
00:01:49 #3970 [Verbose] > │ let v90 : float = method21(v88) │
00:01:49 #3971 [Verbose] > │ let v91 : string = "num_complex::Complex::new(v89, v90)" │
00:01:49 #3972 [Verbose] > │ let v92 : num_complex_Complex<float> = │
00:01:49 #3973 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v91 │
00:01:49 #3974 [Verbose] > │ let v93 : Result<num_complex_Complex<float>, pyo3_PyErr> = Ok v92 │
00:01:49 #3975 [Verbose] > │ let v94 : Result<num_complex_Complex<float>, pyo3_PyErr> = │
00:01:49 #3976 [Verbose] > │ method22(v93) │
00:01:49 #3977 [Verbose] > │ let v95 : string = "v94.unwrap()" │
00:01:49 #3978 [Verbose] > │ let v96 : num_complex_Complex<float> = │
00:01:49 #3979 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v95 │
00:01:49 #3980 [Verbose] > │ let v97 : float = method1() │
00:01:49 #3981 [Verbose] > │ let v98 : float = method2() │
00:01:49 #3982 [Verbose] > │ let v99 : string = "num_complex::Complex::new(v97, v98)" │
00:01:49 #3983 [Verbose] > │ let v100 : num_complex_Complex<float> = │
00:01:49 #3984 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v99 │
00:01:49 #3985 [Verbose] > │ let v101 : string = "num_complex::Complex::powc(v100, v26)" │
00:01:49 #3986 [Verbose] > │ let v102 : num_complex_Complex<float> = │
00:01:49 #3987 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v101 │
00:01:49 #3988 [Verbose] > │ let v103 : float = method69() │
00:01:49 #3989 [Verbose] > │ let v104 : float = method2() │
00:01:49 #3990 [Verbose] > │ let v105 : string = "num_complex::Complex::new(v103, v104)" │
00:01:49 #3991 [Verbose] > │ let v106 : num_complex_Complex<float> = │
00:01:49 #3992 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v105 │
00:01:49 #3993 [Verbose] > │ let v107 : float = method43() │
00:01:49 #3994 [Verbose] > │ let v108 : float = method2() │
00:01:49 #3995 [Verbose] > │ let v109 : string = "num_complex::Complex::new(v107, v108)" │
00:01:49 #3996 [Verbose] > │ let v110 : num_complex_Complex<float> = │
00:01:49 #3997 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v109 │
00:01:49 #3998 [Verbose] > │ let v111 : string = "v26 - v110" │
00:01:49 #3999 [Verbose] > │ let v112 : num_complex_Complex<float> = │
00:01:49 #4000 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v111 │
00:01:49 #4001 [Verbose] > │ let v113 : string = "num_complex::Complex::powc(v106, v112)" │
00:01:49 #4002 [Verbose] > │ let v114 : num_complex_Complex<float> = │
00:01:49 #4003 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v113 │
00:01:49 #4004 [Verbose] > │ let v115 : string = "v102 * v114" │
00:01:49 #4005 [Verbose] > │ let v116 : num_complex_Complex<float> = │
00:01:49 #4006 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v115 │
00:01:49 #4007 [Verbose] > │ let v117 : float = method69() │
00:01:49 #4008 [Verbose] > │ let v118 : float = method2() │
00:01:49 #4009 [Verbose] > │ let v119 : string = "num_complex::Complex::new(v117, v118)" │
00:01:49 #4010 [Verbose] > │ let v120 : num_complex_Complex<float> = │
00:01:49 #4011 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v119 │
00:01:49 #4012 [Verbose] > │ let v121 : string = "v120 * v26" │
00:01:49 #4013 [Verbose] > │ let v122 : num_complex_Complex<float> = │
00:01:49 #4014 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v121 │
00:01:49 #4015 [Verbose] > │ let v123 : float = method1() │
00:01:49 #4016 [Verbose] > │ let v124 : float = method2() │
00:01:49 #4017 [Verbose] > │ let v125 : string = "num_complex::Complex::new(v123, v124)" │
00:01:49 #4018 [Verbose] > │ let v126 : num_complex_Complex<float> = │
00:01:49 #4019 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v125 │
00:01:49 #4020 [Verbose] > │ let v127 : string = "v122 / v126" │
00:01:49 #4021 [Verbose] > │ let v128 : num_complex_Complex<float> = │
00:01:49 #4022 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v127 │
00:01:49 #4023 [Verbose] > │ let v129 : string = "v128.sin()" │
00:01:49 #4024 [Verbose] > │ let v130 : num_complex_Complex<float> = │
00:01:49 #4025 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v129 │
00:01:49 #4026 [Verbose] > │ let v131 : string = "v116 * v130" │
00:01:49 #4027 [Verbose] > │ let v132 : num_complex_Complex<float> = │
00:01:49 #4028 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v131 │
00:01:49 #4029 [Verbose] > │ let v133 : float = method43() │
00:01:49 #4030 [Verbose] > │ let v134 : float = method2() │
00:01:49 #4031 [Verbose] > │ let v135 : string = "num_complex::Complex::new(v133, v134)" │
00:01:49 #4032 [Verbose] > │ let v136 : num_complex_Complex<float> = │
00:01:49 #4033 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v135 │
00:01:49 #4034 [Verbose] > │ let v137 : string = "v136 - v26" │
00:01:49 #4035 [Verbose] > │ let v138 : num_complex_Complex<float> = │
00:01:49 #4036 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v137 │
00:01:49 #4037 [Verbose] > │ let v139 : string = " s = mpmath.gamma(s)" │
00:01:49 #4038 [Verbose] > │ let v140 : (string []) = [|v27; v28; v29; v139; v35|] │
00:01:49 #4039 [Verbose] > │ let v141 : (string []) = method6(v140) │
00:01:49 #4040 [Verbose] > │ let v142 : int32 = v141.Length │
00:01:49 #4041 [Verbose] > │ let v143 : Mut1 = {l0 = 0; l1 = v39} : Mut1 │
00:01:49 #4042 [Verbose] > │ while method7(v142, v143) do │
00:01:49 #4043 [Verbose] > │ let v145 : int32 = v143.l0 │
00:01:49 #4044 [Verbose] > │ let v146 : string = v143.l1 │
00:01:49 #4045 [Verbose] > │ let v147 : string = v141.[int v145] │
00:01:49 #4046 [Verbose] > │ let v148 : string = "\n" │
00:01:49 #4047 [Verbose] > │ let v149 : string = v146 + v147 + v148 + "" │
00:01:49 #4048 [Verbose] > │ let v150 : int32 = v145 + 1 │
00:01:49 #4049 [Verbose] > │ v143.l0 <- v150 │
00:01:49 #4050 [Verbose] > │ v143.l1 <- v149 │
00:01:49 #4051 [Verbose] > │ () │
00:01:49 #4052 [Verbose] > │ let v151 : string = v143.l1 │
00:01:49 #4053 [Verbose] > │ let v152 : num_complex_Complex<float> = method8(v138) │
00:01:49 #4054 [Verbose] > │ let v153 : string = "v152.re" │
00:01:49 #4055 [Verbose] > │ let v154 : float = Fable.Core.RustInterop.emitRustExpr () v153 │
00:01:49 #4056 [Verbose] > │ let v155 : num_complex_Complex<float> = method9(v138) │
00:01:49 #4057 [Verbose] > │ let v156 : string = "v155.im" │
00:01:49 #4058 [Verbose] > │ let v157 : float = Fable.Core.RustInterop.emitRustExpr () v156 │
00:01:49 #4059 [Verbose] > │ let v158 : (float * float) = v154, v157 │
00:01:49 #4060 [Verbose] > │ let v159 : ((float * float) * unit) = v158, () │
00:01:49 #4061 [Verbose] > │ let v160 : pyo3_Python = method10(v3) │
00:01:49 #4062 [Verbose] > │ let v161 : string = method11(v151) │
00:01:49 #4063 [Verbose] > │ let v162 : string = │
00:01:49 #4064 [Verbose] > │ $"fable_library_rust::String_::LrcStr::as_str(&v161)" │
00:01:49 #4065 [Verbose] > │ let v163 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v162 │
00:01:49 #4066 [Verbose] > │ let v164 : string = "pyo3::types::PyModule::from_code_bound(v160, │
00:01:49 #4067 [Verbose] > │ v163, \"\", \"\")" │
00:01:49 #4068 [Verbose] > │ let v165 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #4069 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v164 │
00:01:49 #4070 [Verbose] > │ let v166 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #4071 [Verbose] > │ method12(v165) │
00:01:49 #4072 [Verbose] > │ let v167 : string = "v166.unwrap()" │
00:01:49 #4073 [Verbose] > │ let v168 : pyo3_Bound<pyo3_types_PyModule> = │
00:01:49 #4074 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v167 │
00:01:49 #4075 [Verbose] > │ let v169 : string = method13() │
00:01:49 #4076 [Verbose] > │ let v170 : string = │
00:01:49 #4077 [Verbose] > │ $"fable_library_rust::String_::LrcStr::as_str(&v169)" │
00:01:49 #4078 [Verbose] > │ let v171 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v170 │
00:01:49 #4079 [Verbose] > │ let v172 : pyo3_Bound<pyo3_types_PyModule> = method14(v168) │
00:01:49 #4080 [Verbose] > │ let v173 : string = "v172.getattr(v171)" │
00:01:49 #4081 [Verbose] > │ let v174 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #4082 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v173 │
00:01:49 #4083 [Verbose] > │ let v175 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #4084 [Verbose] > │ method15(v174) │
00:01:49 #4085 [Verbose] > │ let v176 : string = "v175.unwrap()" │
00:01:49 #4086 [Verbose] > │ let v177 : pyo3_Bound<pyo3_PyAny> = │
00:01:49 #4087 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v176 │
00:01:49 #4088 [Verbose] > │ let v178 : ((float * float) * unit) = method16(v159) │
00:01:49 #4089 [Verbose] > │ let v179 : pyo3_Bound<pyo3_PyAny> = method17(v177) │
00:01:49 #4090 [Verbose] > │ let v180 : string = "pyo3::prelude::PyAnyMethods::call(&v179, │
00:01:49 #4091 [Verbose] > │ (*(*v178).0, ()), None)" │
00:01:49 #4092 [Verbose] > │ let v181 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #4093 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v180 │
00:01:49 #4094 [Verbose] > │ let v182 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #4095 [Verbose] > │ method15(v181) │
00:01:49 #4096 [Verbose] > │ let v183 : string = "v182.unwrap()" │
00:01:49 #4097 [Verbose] > │ let v184 : pyo3_Bound<pyo3_PyAny> = │
00:01:49 #4098 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v183 │
00:01:49 #4099 [Verbose] > │ let v185 : pyo3_Bound<pyo3_PyAny> = method18(v184) │
00:01:49 #4100 [Verbose] > │ let v186 : string = "v185.extract()" │
00:01:49 #4101 [Verbose] > │ let v187 : Result<struct (float * float), pyo3_PyErr> = │
00:01:49 #4102 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v186 │
00:01:49 #4103 [Verbose] > │ let v188 : Result<struct (float * float), pyo3_PyErr> = │
00:01:49 #4104 [Verbose] > │ method19(v187) │
00:01:49 #4105 [Verbose] > │ let v189 : string = "v188.unwrap()" │
00:01:49 #4106 [Verbose] > │ let struct (v190 : float, v191 : float) = │
00:01:49 #4107 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v189 │
00:01:49 #4108 [Verbose] > │ let v192 : float = method20(v190) │
00:01:49 #4109 [Verbose] > │ let v193 : float = method21(v191) │
00:01:49 #4110 [Verbose] > │ let v194 : string = "num_complex::Complex::new(v192, v193)" │
00:01:49 #4111 [Verbose] > │ let v195 : num_complex_Complex<float> = │
00:01:49 #4112 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v194 │
00:01:49 #4113 [Verbose] > │ let v196 : Result<num_complex_Complex<float>, pyo3_PyErr> = Ok v195 │
00:01:49 #4114 [Verbose] > │ let v197 : Result<num_complex_Complex<float>, pyo3_PyErr> = │
00:01:49 #4115 [Verbose] > │ method22(v196) │
00:01:49 #4116 [Verbose] > │ let v198 : string = "v197.unwrap()" │
00:01:49 #4117 [Verbose] > │ let v199 : num_complex_Complex<float> = │
00:01:49 #4118 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v198 │
00:01:49 #4119 [Verbose] > │ let v200 : string = "v132 * v199" │
00:01:49 #4120 [Verbose] > │ let v201 : num_complex_Complex<float> = │
00:01:49 #4121 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v200 │
00:01:49 #4122 [Verbose] > │ let v202 : num_complex_Complex<float> = method8(v26) │
00:01:49 #4123 [Verbose] > │ let v203 : string = "v202.re" │
00:01:49 #4124 [Verbose] > │ let v204 : float = Fable.Core.RustInterop.emitRustExpr () v203 │
00:01:49 #4125 [Verbose] > │ let v205 : float = 1.0 - v204 │
00:01:49 #4126 [Verbose] > │ let v206 : num_complex_Complex<float> = method9(v26) │
00:01:49 #4127 [Verbose] > │ let v207 : string = "v206.im" │
00:01:49 #4128 [Verbose] > │ let v208 : float = Fable.Core.RustInterop.emitRustExpr () v207 │
00:01:49 #4129 [Verbose] > │ let v209 : float = -v208 │
00:01:49 #4130 [Verbose] > │ let v210 : float = method20(v205) │
00:01:49 #4131 [Verbose] > │ let v211 : float = method21(v209) │
00:01:49 #4132 [Verbose] > │ let v212 : string = "num_complex::Complex::new(v210, v211)" │
00:01:49 #4133 [Verbose] > │ let v213 : num_complex_Complex<float> = │
00:01:49 #4134 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v212 │
00:01:49 #4135 [Verbose] > │ let v214 : (string []) = [|v27; v28; v29; v30; v31; v32; v33; v34; │
00:01:49 #4136 [Verbose] > │ v35|] │
00:01:49 #4137 [Verbose] > │ let v215 : (string []) = method6(v214) │
00:01:49 #4138 [Verbose] > │ let v216 : int32 = v215.Length │
00:01:49 #4139 [Verbose] > │ let v217 : Mut1 = {l0 = 0; l1 = v39} : Mut1 │
00:01:49 #4140 [Verbose] > │ while method7(v216, v217) do │
00:01:49 #4141 [Verbose] > │ let v219 : int32 = v217.l0 │
00:01:49 #4142 [Verbose] > │ let v220 : string = v217.l1 │
00:01:49 #4143 [Verbose] > │ let v221 : string = v215.[int v219] │
00:01:49 #4144 [Verbose] > │ let v222 : string = "\n" │
00:01:49 #4145 [Verbose] > │ let v223 : string = v220 + v221 + v222 + "" │
00:01:49 #4146 [Verbose] > │ let v224 : int32 = v219 + 1 │
00:01:49 #4147 [Verbose] > │ v217.l0 <- v224 │
00:01:49 #4148 [Verbose] > │ v217.l1 <- v223 │
00:01:49 #4149 [Verbose] > │ () │
00:01:49 #4150 [Verbose] > │ let v225 : string = v217.l1 │
00:01:49 #4151 [Verbose] > │ let v226 : num_complex_Complex<float> = method8(v213) │
00:01:49 #4152 [Verbose] > │ let v227 : string = "v226.re" │
00:01:49 #4153 [Verbose] > │ let v228 : float = Fable.Core.RustInterop.emitRustExpr () v227 │
00:01:49 #4154 [Verbose] > │ let v229 : num_complex_Complex<float> = method9(v213) │
00:01:49 #4155 [Verbose] > │ let v230 : string = "v229.im" │
00:01:49 #4156 [Verbose] > │ let v231 : float = Fable.Core.RustInterop.emitRustExpr () v230 │
00:01:49 #4157 [Verbose] > │ let v232 : (float * float) = v228, v231 │
00:01:49 #4158 [Verbose] > │ let v233 : ((float * float) * unit) = v232, () │
00:01:49 #4159 [Verbose] > │ let v234 : pyo3_Python = method10(v3) │
00:01:49 #4160 [Verbose] > │ let v235 : string = method11(v225) │
00:01:49 #4161 [Verbose] > │ let v236 : string = │
00:01:49 #4162 [Verbose] > │ $"fable_library_rust::String_::LrcStr::as_str(&v235)" │
00:01:49 #4163 [Verbose] > │ let v237 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v236 │
00:01:49 #4164 [Verbose] > │ let v238 : string = "pyo3::types::PyModule::from_code_bound(v234, │
00:01:49 #4165 [Verbose] > │ v237, \"\", \"\")" │
00:01:49 #4166 [Verbose] > │ let v239 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #4167 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v238 │
00:01:49 #4168 [Verbose] > │ let v240 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:49 #4169 [Verbose] > │ method12(v239) │
00:01:49 #4170 [Verbose] > │ let v241 : string = "v240.unwrap()" │
00:01:49 #4171 [Verbose] > │ let v242 : pyo3_Bound<pyo3_types_PyModule> = │
00:01:49 #4172 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v241 │
00:01:49 #4173 [Verbose] > │ let v243 : string = method13() │
00:01:49 #4174 [Verbose] > │ let v244 : string = │
00:01:49 #4175 [Verbose] > │ $"fable_library_rust::String_::LrcStr::as_str(&v243)" │
00:01:49 #4176 [Verbose] > │ let v245 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v244 │
00:01:49 #4177 [Verbose] > │ let v246 : pyo3_Bound<pyo3_types_PyModule> = method14(v242) │
00:01:49 #4178 [Verbose] > │ let v247 : string = "v246.getattr(v245)" │
00:01:49 #4179 [Verbose] > │ let v248 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #4180 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v247 │
00:01:49 #4181 [Verbose] > │ let v249 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:49 #4182 [Verbose] > │ method15(v248) │
00:01:49 #4183 [Verbose] > │ let v250 : string = "v249.unwrap()" │
00:01:49 #4184 [Verbose] > │ let v251 : pyo3_Bound<pyo3_PyAny> = │
00:01:49 #4185 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v250 │
00:01:49 #4186 [Verbose] > │ let v252 : ((float * float) * unit) = method16(v233) │
00:01:49 #4187 [Verbose] > │ let v253 : pyo3_Bound<pyo3_PyAny> = method17(v251) │
00:01:49 #4188 [Verbose] > │ let v254 : string = "pyo3::prelude::PyAnyMethods::call(&v253, │
00:01:50 #4189 [Verbose] > │ (*(*v252).0, ()), None)" │
00:01:50 #4190 [Verbose] > │ let v255 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:50 #4191 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v254 │
00:01:50 #4192 [Verbose] > │ let v256 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:50 #4193 [Verbose] > │ method15(v255) │
00:01:50 #4194 [Verbose] > │ let v257 : string = "v256.unwrap()" │
00:01:50 #4195 [Verbose] > │ let v258 : pyo3_Bound<pyo3_PyAny> = │
00:01:50 #4196 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v257 │
00:01:50 #4197 [Verbose] > │ let v259 : pyo3_Bound<pyo3_PyAny> = method18(v258) │
00:01:50 #4198 [Verbose] > │ let v260 : string = "v259.extract()" │
00:01:50 #4199 [Verbose] > │ let v261 : Result<struct (float * float), pyo3_PyErr> = │
00:01:50 #4200 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v260 │
00:01:50 #4201 [Verbose] > │ let v262 : Result<struct (float * float), pyo3_PyErr> = │
00:01:50 #4202 [Verbose] > │ method19(v261) │
00:01:50 #4203 [Verbose] > │ let v263 : string = "v262.unwrap()" │
00:01:50 #4204 [Verbose] > │ let struct (v264 : float, v265 : float) = │
00:01:50 #4205 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v263 │
00:01:50 #4206 [Verbose] > │ let v266 : float = method20(v264) │
00:01:50 #4207 [Verbose] > │ let v267 : float = method21(v265) │
00:01:50 #4208 [Verbose] > │ let v268 : string = "num_complex::Complex::new(v266, v267)" │
00:01:50 #4209 [Verbose] > │ let v269 : num_complex_Complex<float> = │
00:01:50 #4210 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v268 │
00:01:50 #4211 [Verbose] > │ let v270 : Result<num_complex_Complex<float>, pyo3_PyErr> = Ok v269 │
00:01:50 #4212 [Verbose] > │ let v271 : Result<num_complex_Complex<float>, pyo3_PyErr> = │
00:01:50 #4213 [Verbose] > │ method22(v270) │
00:01:50 #4214 [Verbose] > │ let v272 : string = "v271.unwrap()" │
00:01:50 #4215 [Verbose] > │ let v273 : num_complex_Complex<float> = │
00:01:50 #4216 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v272 │
00:01:50 #4217 [Verbose] > │ let v274 : string = "v201 * v273" │
00:01:50 #4218 [Verbose] > │ let v275 : num_complex_Complex<float> = │
00:01:50 #4219 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v274 │
00:01:50 #4220 [Verbose] > │ let v276 : num_complex_Complex<float> = method8(v96) │
00:01:50 #4221 [Verbose] > │ let v277 : string = "v276.re" │
00:01:50 #4222 [Verbose] > │ let v278 : float = Fable.Core.RustInterop.emitRustExpr () v277 │
00:01:50 #4223 [Verbose] > │ let v279 : num_complex_Complex<float> = method8(v275) │
00:01:50 #4224 [Verbose] > │ let v280 : string = "v279.re" │
00:01:50 #4225 [Verbose] > │ let v281 : float = Fable.Core.RustInterop.emitRustExpr () v280 │
00:01:50 #4226 [Verbose] > │ let v282 : float = v278 - v281 │
00:01:50 #4227 [Verbose] > │ let v283 : float = -v282 │
00:01:50 #4228 [Verbose] > │ let v284 : bool = v282 >= v283 │
00:01:50 #4229 [Verbose] > │ let v285 : float = │
00:01:50 #4230 [Verbose] > │ if v284 then │
00:01:50 #4231 [Verbose] > │ v282 │
00:01:50 #4232 [Verbose] > │ else │
00:01:50 #4233 [Verbose] > │ v283 │
00:01:50 #4234 [Verbose] > │ let v286 : bool = v285 < 0.0001 │
00:01:50 #4235 [Verbose] > │ let v288 : bool = │
00:01:50 #4236 [Verbose] > │ if v286 then │
00:01:50 #4237 [Verbose] > │ true │
00:01:50 #4238 [Verbose] > │ else │
00:01:50 #4239 [Verbose] > │ method23(v286) │
00:01:50 #4240 [Verbose] > │ let v289 : string = $"__expect / actual: %A{v285} / expected: │
00:01:50 #4241 [Verbose] > │ %A{0.0001}" │
00:01:50 #4242 [Verbose] > │ let v290 : bool = v288 = false │
00:01:50 #4243 [Verbose] > │ if v290 then │
00:01:50 #4244 [Verbose] > │ failwith<unit> v289 │
00:01:50 #4245 [Verbose] > │ let v291 : num_complex_Complex<float> = method9(v96) │
00:01:50 #4246 [Verbose] > │ let v292 : string = "v291.im" │
00:01:50 #4247 [Verbose] > │ let v293 : float = Fable.Core.RustInterop.emitRustExpr () v292 │
00:01:50 #4248 [Verbose] > │ let v294 : num_complex_Complex<float> = method9(v275) │
00:01:50 #4249 [Verbose] > │ let v295 : string = "v294.im" │
00:01:50 #4250 [Verbose] > │ let v296 : float = Fable.Core.RustInterop.emitRustExpr () v295 │
00:01:50 #4251 [Verbose] > │ let v297 : float = v293 - v296 │
00:01:50 #4252 [Verbose] > │ let v298 : float = -v297 │
00:01:50 #4253 [Verbose] > │ let v299 : bool = v297 >= v298 │
00:01:50 #4254 [Verbose] > │ let v300 : float = │
00:01:50 #4255 [Verbose] > │ if v299 then │
00:01:50 #4256 [Verbose] > │ v297 │
00:01:50 #4257 [Verbose] > │ else │
00:01:50 #4258 [Verbose] > │ v298 │
00:01:50 #4259 [Verbose] > │ let v301 : bool = v300 < 0.0001 │
00:01:50 #4260 [Verbose] > │ let v303 : bool = │
00:01:50 #4261 [Verbose] > │ if v301 then │
00:01:50 #4262 [Verbose] > │ true │
00:01:50 #4263 [Verbose] > │ else │
00:01:50 #4264 [Verbose] > │ method23(v301) │
00:01:50 #4265 [Verbose] > │ let v304 : string = $"__expect / actual: %A{v300} / expected: │
00:01:50 #4266 [Verbose] > │ %A{0.0001}" │
00:01:50 #4267 [Verbose] > │ let v305 : bool = v303 = false │
00:01:50 #4268 [Verbose] > │ if v305 then │
00:01:50 #4269 [Verbose] > │ failwith<unit> v304 │
00:01:50 #4270 [Verbose] > │ let v306 : int32 = v25 + 1 │
00:01:50 #4271 [Verbose] > │ v23.l0 <- v306 │
00:01:50 #4272 [Verbose] > │ () │
00:01:50 #4273 [Verbose] > │ let v307 : Result<unit, pyo3_PyErr> = Ok () │
00:01:50 #4274 [Verbose] > │ let v308 : Result<unit, pyo3_PyErr> = method24(v307) │
00:01:50 #4275 [Verbose] > │ let v309 : string = "v308 }}})" │
00:01:50 #4276 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v309 │
00:01:50 #4277 [Verbose] > │ let v310 : string = " {{ //" │
00:01:50 #4278 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v310 │
00:01:50 #4279 [Verbose] > │ let v311 : string = "__result" │
00:01:50 #4280 [Verbose] > │ let v312 : Result<unit, pyo3_PyErr> = │
00:01:50 #4281 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v311 │
00:01:50 #4282 [Verbose] > │ let v313 : Result<unit, pyo3_PyErr> = method25(v312) │
00:01:50 #4283 [Verbose] > │ let v314 : string = "v313.unwrap()" │
00:01:50 #4284 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v314 │
00:01:50 #4285 [Verbose] > │ () │
00:01:50 #4286 [Verbose] > │ and method71 (v0 : int32, v1 : Mut2) : bool = │
00:01:50 #4287 [Verbose] > │ let v2 : int32 = v1.l0 │
00:01:50 #4288 [Verbose] > │ let v3 : bool = v2 < v0 │
00:01:50 #4289 [Verbose] > │ v3 │
00:01:50 #4290 [Verbose] > │ and method70 () : unit = │
00:01:50 #4291 [Verbose] > │ let v0 : string = "pyo3::prepare_freethreaded_python()" │
00:01:50 #4292 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:50 #4293 [Verbose] > │ let v1 : string = "let __result = pyo3::Python::with_gil(|py| -> │
00:01:50 #4294 [Verbose] > │ pyo3::PyResult<()> { //" │
00:01:50 #4295 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:50 #4296 [Verbose] > │ let v2 : string = "py" │
00:01:50 #4297 [Verbose] > │ let v3 : pyo3_Python = Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:50 #4298 [Verbose] > │ let v4 : (float []) = [|2.0; 2.5; 3.0; 3.5; 4.0; 4.5; 5.0|] │
00:01:50 #4299 [Verbose] > │ let v5 : (float []) = method41(v4) │
00:01:50 #4300 [Verbose] > │ let v6 : (float []) = [|2.0; 3.0; 5.0; 7.0; 11.0; 13.0; 17.0; 19.0; │
00:01:50 #4301 [Verbose] > │ 23.0; 29.0; 31.0; 37.0; 41.0; 43.0; 47.0; 53.0; 59.0; 61.0; 67.0; 71.0|] │
00:01:50 #4302 [Verbose] > │ let v7 : (float []) = method41(v6) │
00:01:50 #4303 [Verbose] > │ let v8 : int32 = v5.Length │
00:01:50 #4304 [Verbose] > │ let v9 : Mut0 = {l0 = 0} : Mut0 │
00:01:50 #4305 [Verbose] > │ while method5(v8, v9) do │
00:01:50 #4306 [Verbose] > │ let v11 : int32 = v9.l0 │
00:01:50 #4307 [Verbose] > │ let v12 : float = v5.[int v11] │
00:01:50 #4308 [Verbose] > │ let v13 : float = method20(v12) │
00:01:50 #4309 [Verbose] > │ let v14 : float = method2() │
00:01:50 #4310 [Verbose] > │ let v15 : string = "num_complex::Complex::new(v13, v14)" │
00:01:50 #4311 [Verbose] > │ let v16 : num_complex_Complex<float> = │
00:01:50 #4312 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v15 │
00:01:50 #4313 [Verbose] > │ let v17 : int32 = v7.Length │
00:01:50 #4314 [Verbose] > │ let v18 : Mut2 = {l0 = 0; l1 = 1.0} : Mut2 │
00:01:50 #4315 [Verbose] > │ while method71(v17, v18) do │
00:01:50 #4316 [Verbose] > │ let v20 : int32 = v18.l0 │
00:01:50 #4317 [Verbose] > │ let v21 : float = v18.l1 │
00:01:50 #4318 [Verbose] > │ let v22 : float = v7.[int v20] │
00:01:50 #4319 [Verbose] > │ let v23 : float = -v12 │
00:01:50 #4320 [Verbose] > │ let v24 : float = v22 ** v23 │
00:01:50 #4321 [Verbose] > │ let v25 : float = 1.0 - v24 │
00:01:50 #4322 [Verbose] > │ let v26 : float = v21 / v25 │
00:01:50 #4323 [Verbose] > │ let v27 : int32 = v20 + 1 │
00:01:50 #4324 [Verbose] > │ v18.l0 <- v27 │
00:01:50 #4325 [Verbose] > │ v18.l1 <- v26 │
00:01:50 #4326 [Verbose] > │ () │
00:01:50 #4327 [Verbose] > │ let v28 : float = v18.l1 │
00:01:50 #4328 [Verbose] > │ let v29 : string = "import mpmath" │
00:01:50 #4329 [Verbose] > │ let v30 : string = "def fn(s, _):" │
00:01:50 #4330 [Verbose] > │ let v31 : string = " s = complex(*s)" │
00:01:50 #4331 [Verbose] > │ let v32 : string = " try:" │
00:01:50 #4332 [Verbose] > │ let v33 : string = " s = mpmath.zeta(s)" │
00:01:50 #4333 [Verbose] > │ let v34 : string = " except ValueError as e:" │
00:01:50 #4334 [Verbose] > │ let v35 : string = " if s.real == 1:" │
00:01:50 #4335 [Verbose] > │ let v36 : string = " s = complex(float('inf'), 0)" │
00:01:50 #4336 [Verbose] > │ let v37 : string = " return (s.real, s.imag)" │
00:01:50 #4337 [Verbose] > │ let v38 : (string []) = [|v29; v30; v31; v32; v33; v34; v35; v36; │
00:01:50 #4338 [Verbose] > │ v37|] │
00:01:50 #4339 [Verbose] > │ let v39 : (string []) = method6(v38) │
00:01:50 #4340 [Verbose] > │ let v40 : int32 = v39.Length │
00:01:50 #4341 [Verbose] > │ let v41 : string = "" │
00:01:50 #4342 [Verbose] > │ let v42 : Mut1 = {l0 = 0; l1 = v41} : Mut1 │
00:01:50 #4343 [Verbose] > │ while method7(v40, v42) do │
00:01:50 #4344 [Verbose] > │ let v44 : int32 = v42.l0 │
00:01:50 #4345 [Verbose] > │ let v45 : string = v42.l1 │
00:01:50 #4346 [Verbose] > │ let v46 : string = v39.[int v44] │
00:01:50 #4347 [Verbose] > │ let v47 : string = "\n" │
00:01:50 #4348 [Verbose] > │ let v48 : string = v45 + v46 + v47 + "" │
00:01:50 #4349 [Verbose] > │ let v49 : int32 = v44 + 1 │
00:01:50 #4350 [Verbose] > │ v42.l0 <- v49 │
00:01:50 #4351 [Verbose] > │ v42.l1 <- v48 │
00:01:50 #4352 [Verbose] > │ () │
00:01:50 #4353 [Verbose] > │ let v50 : string = v42.l1 │
00:01:50 #4354 [Verbose] > │ let v51 : num_complex_Complex<float> = method8(v16) │
00:01:50 #4355 [Verbose] > │ let v52 : string = "v51.re" │
00:01:50 #4356 [Verbose] > │ let v53 : float = Fable.Core.RustInterop.emitRustExpr () v52 │
00:01:50 #4357 [Verbose] > │ let v54 : num_complex_Complex<float> = method9(v16) │
00:01:50 #4358 [Verbose] > │ let v55 : string = "v54.im" │
00:01:50 #4359 [Verbose] > │ let v56 : float = Fable.Core.RustInterop.emitRustExpr () v55 │
00:01:50 #4360 [Verbose] > │ let v57 : (float * float) = v53, v56 │
00:01:50 #4361 [Verbose] > │ let v58 : ((float * float) * unit) = v57, () │
00:01:50 #4362 [Verbose] > │ let v59 : pyo3_Python = method10(v3) │
00:01:50 #4363 [Verbose] > │ let v60 : string = method11(v50) │
00:01:50 #4364 [Verbose] > │ let v61 : string = │
00:01:50 #4365 [Verbose] > │ $"fable_library_rust::String_::LrcStr::as_str(&v60)" │
00:01:50 #4366 [Verbose] > │ let v62 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v61 │
00:01:50 #4367 [Verbose] > │ let v63 : string = "pyo3::types::PyModule::from_code_bound(v59, v62, │
00:01:50 #4368 [Verbose] > │ \"\", \"\")" │
00:01:50 #4369 [Verbose] > │ let v64 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:50 #4370 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v63 │
00:01:50 #4371 [Verbose] > │ let v65 : Result<pyo3_Bound<pyo3_types_PyModule>, pyo3_PyErr> = │
00:01:50 #4372 [Verbose] > │ method12(v64) │
00:01:50 #4373 [Verbose] > │ let v66 : string = "v65.unwrap()" │
00:01:50 #4374 [Verbose] > │ let v67 : pyo3_Bound<pyo3_types_PyModule> = │
00:01:50 #4375 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v66 │
00:01:50 #4376 [Verbose] > │ let v68 : string = method13() │
00:01:50 #4377 [Verbose] > │ let v69 : string = │
00:01:50 #4378 [Verbose] > │ $"fable_library_rust::String_::LrcStr::as_str(&v68)" │
00:01:50 #4379 [Verbose] > │ let v70 : Ref<Str> = Fable.Core.RustInterop.emitRustExpr () v69 │
00:01:50 #4380 [Verbose] > │ let v71 : pyo3_Bound<pyo3_types_PyModule> = method14(v67) │
00:01:50 #4381 [Verbose] > │ let v72 : string = "v71.getattr(v70)" │
00:01:50 #4382 [Verbose] > │ let v73 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:50 #4383 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v72 │
00:01:50 #4384 [Verbose] > │ let v74 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v73) │
00:01:50 #4385 [Verbose] > │ let v75 : string = "v74.unwrap()" │
00:01:50 #4386 [Verbose] > │ let v76 : pyo3_Bound<pyo3_PyAny> = │
00:01:50 #4387 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v75 │
00:01:50 #4388 [Verbose] > │ let v77 : ((float * float) * unit) = method16(v58) │
00:01:50 #4389 [Verbose] > │ let v78 : pyo3_Bound<pyo3_PyAny> = method17(v76) │
00:01:50 #4390 [Verbose] > │ let v79 : string = "pyo3::prelude::PyAnyMethods::call(&v78, │
00:01:50 #4391 [Verbose] > │ (*(*v77).0, ()), None)" │
00:01:50 #4392 [Verbose] > │ let v80 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = │
00:01:50 #4393 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v79 │
00:01:50 #4394 [Verbose] > │ let v81 : Result<pyo3_Bound<pyo3_PyAny>, pyo3_PyErr> = method15(v80) │
00:01:50 #4395 [Verbose] > │ let v82 : string = "v81.unwrap()" │
00:01:50 #4396 [Verbose] > │ let v83 : pyo3_Bound<pyo3_PyAny> = │
00:01:50 #4397 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v82 │
00:01:50 #4398 [Verbose] > │ let v84 : pyo3_Bound<pyo3_PyAny> = method18(v83) │
00:01:50 #4399 [Verbose] > │ let v85 : string = "v84.extract()" │
00:01:50 #4400 [Verbose] > │ let v86 : Result<struct (float * float), pyo3_PyErr> = │
00:01:50 #4401 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v85 │
00:01:50 #4402 [Verbose] > │ let v87 : Result<struct (float * float), pyo3_PyErr> = method19(v86) │
00:01:50 #4403 [Verbose] > │ let v88 : string = "v87.unwrap()" │
00:01:50 #4404 [Verbose] > │ let struct (v89 : float, v90 : float) = │
00:01:50 #4405 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v88 │
00:01:50 #4406 [Verbose] > │ let v91 : float = method20(v89) │
00:01:50 #4407 [Verbose] > │ let v92 : float = method21(v90) │
00:01:50 #4408 [Verbose] > │ let v93 : string = "num_complex::Complex::new(v91, v92)" │
00:01:50 #4409 [Verbose] > │ let v94 : num_complex_Complex<float> = │
00:01:50 #4410 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v93 │
00:01:50 #4411 [Verbose] > │ let v95 : Result<num_complex_Complex<float>, pyo3_PyErr> = Ok v94 │
00:01:50 #4412 [Verbose] > │ let v96 : Result<num_complex_Complex<float>, pyo3_PyErr> = │
00:01:50 #4413 [Verbose] > │ method22(v95) │
00:01:50 #4414 [Verbose] > │ let v97 : string = "v96.unwrap()" │
00:01:50 #4415 [Verbose] > │ let v98 : num_complex_Complex<float> = │
00:01:50 #4416 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v97 │
00:01:50 #4417 [Verbose] > │ let v99 : num_complex_Complex<float> = method8(v98) │
00:01:50 #4418 [Verbose] > │ let v100 : string = "v99.re" │
00:01:50 #4419 [Verbose] > │ let v101 : float = Fable.Core.RustInterop.emitRustExpr () v100 │
00:01:50 #4420 [Verbose] > │ let v102 : float = v101 - v28 │
00:01:50 #4421 [Verbose] > │ let v103 : float = -v102 │
00:01:50 #4422 [Verbose] > │ let v104 : bool = v102 >= v103 │
00:01:50 #4423 [Verbose] > │ let v105 : float = │
00:01:50 #4424 [Verbose] > │ if v104 then │
00:01:50 #4425 [Verbose] > │ v102 │
00:01:50 #4426 [Verbose] > │ else │
00:01:50 #4427 [Verbose] > │ v103 │
00:01:50 #4428 [Verbose] > │ let v106 : bool = v105 < 0.01 │
00:01:50 #4429 [Verbose] > │ let v108 : bool = │
00:01:50 #4430 [Verbose] > │ if v106 then │
00:01:50 #4431 [Verbose] > │ true │
00:01:50 #4432 [Verbose] > │ else │
00:01:50 #4433 [Verbose] > │ method23(v106) │
00:01:50 #4434 [Verbose] > │ let v109 : string = $"__expect / actual: %A{v105} / expected: │
00:01:50 #4435 [Verbose] > │ %A{0.01}" │
00:01:50 #4436 [Verbose] > │ let v110 : bool = v108 = false │
00:01:50 #4437 [Verbose] > │ if v110 then │
00:01:50 #4438 [Verbose] > │ failwith<unit> v109 │
00:01:50 #4439 [Verbose] > │ let v111 : num_complex_Complex<float> = method9(v98) │
00:01:50 #4440 [Verbose] > │ let v112 : string = "v111.im" │
00:01:50 #4441 [Verbose] > │ let v113 : float = Fable.Core.RustInterop.emitRustExpr () v112 │
00:01:50 #4442 [Verbose] > │ let v114 : bool = v113 < 0.01 │
00:01:50 #4443 [Verbose] > │ let v116 : bool = │
00:01:50 #4444 [Verbose] > │ if v114 then │
00:01:50 #4445 [Verbose] > │ true │
00:01:50 #4446 [Verbose] > │ else │
00:01:50 #4447 [Verbose] > │ method23(v114) │
00:01:50 #4448 [Verbose] > │ let v117 : string = $"__expect / actual: %A{v113} / expected: │
00:01:50 #4449 [Verbose] > │ %A{0.01}" │
00:01:50 #4450 [Verbose] > │ let v118 : bool = v116 = false │
00:01:50 #4451 [Verbose] > │ if v118 then │
00:01:50 #4452 [Verbose] > │ failwith<unit> v117 │
00:01:50 #4453 [Verbose] > │ let v119 : int32 = v11 + 1 │
00:01:50 #4454 [Verbose] > │ v9.l0 <- v119 │
00:01:50 #4455 [Verbose] > │ () │
00:01:50 #4456 [Verbose] > │ let v120 : Result<unit, pyo3_PyErr> = Ok () │
00:01:50 #4457 [Verbose] > │ let v121 : Result<unit, pyo3_PyErr> = method24(v120) │
00:01:50 #4458 [Verbose] > │ let v122 : string = "v121 }}})" │
00:01:50 #4459 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v122 │
00:01:50 #4460 [Verbose] > │ let v123 : string = " {{ //" │
00:01:50 #4461 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v123 │
00:01:50 #4462 [Verbose] > │ let v124 : string = "__result" │
00:01:50 #4463 [Verbose] > │ let v125 : Result<unit, pyo3_PyErr> = │
00:01:50 #4464 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v124 │
00:01:50 #4465 [Verbose] > │ let v126 : Result<unit, pyo3_PyErr> = method25(v125) │
00:01:50 #4466 [Verbose] > │ let v127 : string = "v126.unwrap()" │
00:01:50 #4467 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v127 │
00:01:50 #4468 [Verbose] > │ () │
00:01:50 #4469 [Verbose] > │ and closure0 () () : unit = │
00:01:50 #4470 [Verbose] > │ let v0 : string = "}//" │
00:01:50 #4471 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v0 │
00:01:50 #4472 [Verbose] > │ let v1 : string = "#[test] fn test_zeta_at_known_values_() { //" │
00:01:50 #4473 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v1 │
00:01:50 #4474 [Verbose] > │ method0() │
00:01:50 #4475 [Verbose] > │ let v2 : string = "} #[test] fn test_zeta_at_2_minus2() { //" │
00:01:50 #4476 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v2 │
00:01:50 #4477 [Verbose] > │ method26() │
00:01:50 #4478 [Verbose] > │ let v3 : string = "} #[test] fn test_trivial_zero_at_negative_even___() │
00:01:50 #4479 [Verbose] > │ { //" │
00:01:50 #4480 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v3 │
00:01:50 #4481 [Verbose] > │ method28() │
00:01:50 #4482 [Verbose] > │ let v4 : string = "} #[test] fn test_non_trivial_zero___() { //" │
00:01:50 #4483 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v4 │
00:01:50 #4484 [Verbose] > │ method31() │
00:01:50 #4485 [Verbose] > │ let v5 : string = "} #[test] fn test_real_part_greater_than_one___() { │
00:01:50 #4486 [Verbose] > │ //" │
00:01:50 #4487 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v5 │
00:01:50 #4488 [Verbose] > │ method40() │
00:01:50 #4489 [Verbose] > │ let v6 : string = "} #[test] fn test_zeta_at_1___() { //" │
00:01:50 #4490 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v6 │
00:01:50 #4491 [Verbose] > │ method42() │
00:01:50 #4492 [Verbose] > │ let v7 : string = "} #[test] fn test_symmetry_across_real_axis___() { │
00:01:50 #4493 [Verbose] > │ //" │
00:01:50 #4494 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v7 │
00:01:50 #4495 [Verbose] > │ method44() │
00:01:50 #4496 [Verbose] > │ let v8 : string = "} #[test] fn test_behavior_near_origin___() { //" │
00:01:50 #4497 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v8 │
00:01:50 #4498 [Verbose] > │ method46() │
00:01:50 #4499 [Verbose] > │ let v9 : string = "} #[test] fn test_zeta_at_minus_1() { //" │
00:01:50 #4500 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v9 │
00:01:50 #4501 [Verbose] > │ method49() │
00:01:50 #4502 [Verbose] > │ let v10 : string = "} #[test] fn test_imaginary_axis() { //" │
00:01:50 #4503 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v10 │
00:01:50 #4504 [Verbose] > │ method50() │
00:01:50 #4505 [Verbose] > │ let v11 : string = "} #[test] fn test_critical_strip() { //" │
00:01:50 #4506 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v11 │
00:01:50 #4507 [Verbose] > │ method54() │
00:01:50 #4508 [Verbose] > │ let v12 : string = "} #[test] fn │
00:01:50 #4509 [Verbose] > │ test_reflection_formula_for_specific_value() { //" │
00:01:50 #4510 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v12 │
00:01:50 #4511 [Verbose] > │ method62() │
00:01:50 #4512 [Verbose] > │ let v13 : string = "} #[test] fn test_euler_product_formula() { //" │
00:01:50 #4513 [Verbose] > │ Fable.Core.RustInterop.emitRustExpr () v13 │
00:01:50 #4514 [Verbose] > │ method70() │
00:01:50 #4515 [Verbose] > │ and closure1 () (v0 : (string [])) : int32 = │
00:01:50 #4516 [Verbose] > │ let v1 : string = $"value: {1}" │
00:01:50 #4517 [Verbose] > │ System.Console.WriteLine v1 │
00:01:50 #4518 [Verbose] > │ 0 │
00:01:50 #4519 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:01:50 #4520 [Verbose] > │ let tests () = v0 () │
00:01:50 #4521 [Verbose] > │ let v1 : ((string []) -> int32) = closure1() │
00:01:50 #4522 [Verbose] > │ let main args = v1 args │
00:01:50 #4523 [Verbose] > │ () │
00:01:50 #4524 [Verbose] > │ │
00:01:50 #4525 [Verbose] > │ │
00:01:50 #4526 [Verbose] > │ │
00:01:50 #4527 [Verbose] > │ Stopped due to error │
00:01:50 #4528 [Verbose] > │ │
00:01:50 #4529 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:52 #4530 [Verbose] > Exiting...
00:01:52 #4531 [Verbose] >
00:01:52 #4532 [Verbose] > # Invoke-Block / $Retry: 1 / $Location: / $OnError: Stop / $exitcode: -1 / $EnvVars: null / $Error: '' / $ScriptBlock:
00:01:52 #4533 [Verbose] > 'dotnet repl --run $path --output-path "$path.ipynb" --exit-after-run'
00:01:52 #4534 [Verbose] >
00:01:52 #4535 [Debug] executeAsync / exitCode: 0 / output.Length: 332096
00:01:52 #4536 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] writeDibCode / output: Spi / path: math.dib
00:00:00 #2 [Debug] parseDibCode / output: Spi / file: math.dib
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@425-297> }
00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\lib\math
00:00:00 #4 [Verbose] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:01 #5 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:01 #6 [Debug] runWithTimeoutAsync / timeout: 500
00:00:01 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805
00:00:01 #11 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: [] / typeErrorCount: 0
00:00:02 #12 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: [] / typeErrorCount: 0
00:00:02 #13 [Debug] sendJson / port: 13805 / json: {"FileOpen":{"spiText":"// // # math\n\nopen testing\nopen rust_operators\n\ninl types () =\n global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022num_complex::Complex\u003C$0\u003E\\\u0022)\u003E] type num_complex_Complex\u003C\u0027T\u003E = class end\u0022\n global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022pyo3::types::PyModule\\\u0022)\u003E] type pyo3_types_PyModule = class end\u0022\n global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022pyo3::Bound\u003C$0\u003E\\\u0022)\u003E] type pyo3_Bound\u003C\u0027T\u003E = class end\u0022\n global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022pyo3::Python\\\u0022)\u003E] type pyo3_Python = class end\u0022\n global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022pyo3::PyAny\\\u0022)\u003E] type pyo3_PyAny = class end\u0022\n global \u0022[\u003CFable.Core.Erase; Fable.Core.Emit(\\\u0022pyo3::PyErr\\\u0022)\u003E] type pyo3_PyErr = class end\u0022\n\ninl types () =\n rust.types ()\n sm\u0027.types ()\n types ()\n\n// // ## complex\n\nnominal complex t = $\u0022num_complex_Complex\u003C\u0060t\u003E\u0022\nnominal bound t = $\u0022pyo3_Bound\u003C\u0060t\u003E\u0022\nnominal python = $\u0022pyo3_Python\u0022\nnominal pymodule = $\u0022pyo3_types_PyModule\u0022\nnominal pyany = $\u0022pyo3_PyAny\u0022\nnominal pyerr = $\u0022pyo3_PyErr\u0022\n\ninl complex forall t. ((re : t), (im : t)) : complex t =\n inl re = join re\n inl im = join im\n !\\($\u0027\u0022num_complex::Complex::new(!re, !im)\u0022\u0027)\n\n// // ## run_test\n\ninl re forall t. (c : complex t) : t =\n inl c = join c\n !\\($\u0027\u0022!c.re\u0022\u0027)\n\ninl im forall t. (c : complex t) : t =\n inl c = join c\n !\\($\u0027\u0022!c.im\u0022\u0027)\n\ninl complex_unbox forall t. (c : complex t) =\n c |\u003E re, c |\u003E im\n\ninl powc forall t. (s : complex t) (c : complex t) : complex t =\n !\\($\u0027\u0022num_complex::Complex::powc(!c, !s)\u0022\u0027)\n\ninl complex_sub forall t. (a : complex t) (b : complex t) : complex t =\n !\\($\u0027\u0022!a - !b\u0022\u0027)\n\ninl complex_mult forall t. (a : complex t) (b : complex t) : complex t =\n !\\($\u0027\u0022!a * !b\u0022\u0027)\n\ninl complex_div forall t. (a : complex t) (b : complex t) : complex t =\n !\\($\u0027\u0022!a / !b\u0022\u0027)\n\ninl complex_sin forall t. (c : complex t) : complex t =\n !\\($\u0027\u0022!c.sin()\u0022\u0027)\n\ninl conj forall t. (c : complex t) : complex t =\n !\\($\u0027\u0022!c.conj()\u0022\u0027)\n\ninl module_from_code (py : python) (code : string) : resultm.result\u0027 (bound pymodule) pyerr =\n inl py = join py\n inl code = code |\u003E sm\u0027.as_str\n !\\($\u0027\u0022pyo3::types::PyModule::from_code_bound(!py, !code, \\\\\u0022\\\\\u0022, \\\\\u0022\\\\\u0022)\u0022\u0027)\n\ninl use_pyanymethods () =\n global \u0022Fable.Core.RustInterop.emitRustExpr () \\\u0022);\\nuse pyo3::prelude::PyAnyMethods;\\n//\\\u0022\u0022\n\ninl getattr (attr : string) (module : bound pymodule) : resultm.result\u0027 (bound pyany) pyerr =\n inl attr = attr |\u003E sm\u0027.as_str\n inl module = join module\n use_pyanymethods ()\n !\\($\u0027\u0022!module.getattr(!attr)\u0022\u0027)\n\ninl call forall t. (args : t) (module : bound pyany) : resultm.result\u0027 (bound pyany) pyerr =\n inl args = join args\n inl module = join module\n !\\($\u0027\u0022pyo3::prelude::PyAnyMethods::call(\u0026!module, (*(*!args).0, ()), None)\u0022\u0027)\n\ninl extract forall t. (result : bound pyany) : resultm.result\u0027 t pyerr =\n inl result = join result\n use_pyanymethods ()\n !\\($\u0027\u0022!result.extract()\u0022\u0027)\n\ninl eval py code args =\n inl code =\n code\n |\u003E module_from_code py\n |\u003E resultm.unwrap\u0027\n inl fn =\n code\n |\u003E getattr \u0022fn\u0022\n |\u003E fun x =\u003E x : _ _ pyerr\n |\u003E resultm.unwrap\u0027\n\n fn\n |\u003E call args\n |\u003E resultm.unwrap\u0027\n |\u003E extract\n |\u003E fun x =\u003E x : _ _ pyerr\n |\u003E resultm.unwrap\u0027\n |\u003E complex\n |\u003E Ok\n |\u003E fun x =\u003E x : _ _ pyerr\n |\u003E resultm.box\n\ninl gamma_ py s =\n inl code =\n ;[\n \u0022import mpmath\u0022\n \u0022def fn(s, _):\u0022\n \u0022 s = complex(*s)\u0022\n \u0022 s = mpmath.gamma(s)\u0022\n \u0022 return (s.real, s.imag)\u0022\n ]\n inl code = (a code : _ i32 _) |\u003E sm\u0027.concat_array_trailing \u0022\\n\u0022\n\n inl s = new_pair (s |\u003E re) (s |\u003E im)\n inl args = new_pair s ()\n\n eval py code args\n\ninl zeta_ py s =\n inl code =\n ;[\n \u0022import mpmath\u0022\n \u0022def fn(s, _):\u0022\n \u0022 s = complex(*s)\u0022\n \u0022 try:\u0022\n \u0022 s = mpmath.zeta(s)\u0022\n \u0022 except ValueError as e:\u0022\n \u0022 if s.real == 1:\u0022\n \u0022 s = complex(float(\u0027inf\u0027), 0)\u0022\n \u0022 return (s.real, s.imag)\u0022\n ]\n inl code = (a code : _ i32 _) |\u003E sm\u0027.concat_array_trailing \u0022\\n\u0022\n \n inl s = new_pair (s |\u003E re) (s |\u003E im)\n inl args = new_pair s ()\n\n eval py code args\n\ninl run_test closure_fix (fn : (complex f64 -\u003E complex f64) * (complex f64 -\u003E complex f64) -\u003E ()) =\n inl fn_ (py : python) : resultm.result\u0027 () pyerr =\n inl zeta = fun (s : complex f64) =\u003E\n inl s = zeta_ py s |\u003E resultm.unwrap\u0027\n s\n inl gamma = fun (s : complex f64) =\u003E\n inl s = gamma_ py s |\u003E resultm.unwrap\u0027\n s\n fn (zeta, gamma)\n \n Ok ()\n |\u003E resultm.box\n \n join\n !\\($\u0027\u0022pyo3::prepare_freethreaded_python()\u0022\u0027) : ()\n\n !\\($\u0027\u0022let __result = pyo3::Python::with_gil(|py| -\u003E pyo3::PyResult\u003C()\u003E { //\u0022\u0027)\n\n inl x = fn_\n let x\u0027 = x (!\\($\u0027\u0022py\u0022\u0027) : python)\n inl x\u0027 = join x\u0027\n \n x\u0027 |\u003E rust.fix_closure closure_fix\n\n (!\\($\u0027\u0022__result\u0022\u0027) : _ () pyerr)\n |\u003E resultm.unwrap\u0027\n\n// // ## test_zeta_at_known_values_\n\ninl test_zeta_at_known_values_ () = run_test (3u8, 2u8) fun zeta, gamma =\u003E\n ;[\n complex (2, 0), pi ** 2 / 6\n complex (-1, 0), -1 / 12\n ]\n |\u003E fun x =\u003E a x : _ i32 _\n |\u003E am.iter fun s, e =\u003E\n inl result = zeta s\n\n result\n |\u003E im\n |\u003E _assert_eq 0f64\n\n (result |\u003E re) - e |\u003E abs\n |\u003E _assert_lt 0.0001\n\n// // ## test_zeta_at_2_minus2\n\ninl test_zeta_at_2_minus2 () = run_test (5u8, 4u8) fun zeta, gamma =\u003E\n inl s = complex (2f64, -2f64)\n inl result = zeta s\n\n ((result |\u003E re) - 0.8673f64) |\u003E abs\n |\u003E _assert_lt 0.001f64\n\n ((result |\u003E im) - 0.2750f64) |\u003E abs\n |\u003E _assert_lt 0.001f64\n\n// // ## test_trivial_zero_at_negative_even___\n\ninl test_trivial_zero_at_negative_even___ () = run_test (2u8, 1u8) fun zeta, gamma =\u003E\n (join listm\u0027.init_series -2f64 -40 -2)\n |\u003E listm.iter fun n =\u003E\n inl s = complex (n, 0)\n inl result = zeta s\n\n result\n |\u003E re\n |\u003E _assert_eq 0\n\n result\n |\u003E im\n |\u003E _assert_eq 0\n\n// // ## test_non_trivial_zero___\n\ninl test_non_trivial_zero___ () = run_test (3u8, 2u8) fun zeta, gamma =\u003E\n ;[\n complex (0.5, 14.134725)\n complex (0.5, 21.022040)\n complex (0.5, 25.010857)\n complex (0.5, 30.424876)\n complex (0.5, 32.935062)\n complex (0.5, 37.586178)\n ]\n |\u003E fun x =\u003E a x : _ i32 _\n |\u003E am.iter fun x =\u003E\n inl result = zeta x\n result |\u003E re |\u003E abs |\u003E _assert_lt 0.0001\n result |\u003E im |\u003E abs |\u003E _assert_lt 0.0001\n\n// // ## test_real_part_greater_than_one___\n\ninl test_real_part_greater_than_one___ () = run_test (3u8, 2u8) fun zeta, gamma =\u003E\n inl points = ;[2; 3; 4; 5; 10; 20; 50]\n (a points : _ i32 _)\n |\u003E am.iter fun point =\u003E\n inl s = complex (point, 0)\n inl result = zeta s\n result |\u003E re |\u003E _assert_gt 0\n result |\u003E im |\u003E _assert_eq 0\n\n// // ## test_zeta_at_1___\n\ninl test_zeta_at_1___ () = run_test (5u8, 4u8) fun zeta, gamma =\u003E\n inl s = complex (1, 0)\n inl result = zeta s\n result |\u003E re |\u003E _assert_eq limit.max\n result |\u003E im |\u003E _assert_eq 0\n\n// // ## test_symmetry_across_real_axis___\n\ninl test_symmetry_across_real_axis___ () = run_test (6u8, 5u8) fun zeta, gamma =\u003E\n inl s = complex (2, 10)\n inl result_positive_im = zeta s\n inl result_negative_im = complex (s |\u003E re, s |\u003E im |\u003E (~-)) |\u003E zeta\n inl conj = result_negative_im |\u003E conj\n result_positive_im |\u003E re |\u003E _assert_eq (conj |\u003E re)\n result_positive_im |\u003E im |\u003E _assert_eq (conj |\u003E im)\n\n// // ## test_behavior_near_origin___\n\ninl test_behavior_near_origin___ () = run_test (5u8, 4u8) fun zeta, gamma =\u003E\n inl s = complex (0.01, 0.01)\n inl result = zeta s\n result |\u003E re |\u003E _assert_lt limit.max\n result |\u003E im |\u003E _assert_lt limit.max\n\n// // ## test_zeta_at_minus_1\n\ninl test_zeta_at_minus_1 () = run_test (5u8, 4u8) fun zeta, gamma =\u003E\n inl s = complex (-1, 0)\n inl result = zeta s\n (result |\u003E re) \u002B 1f64 / 12f64 |\u003E abs |\u003E _assert_lt 0.0001\n result |\u003E im |\u003E _assert_eq 0\n\n// // ## test_imaginary_axis\n\ninl test_imaginary_axis () = run_test (3u8, 2u8) fun zeta, gamma =\u003E\n (join a ;[10; 20; 30; 40; 50; 60; 70; 80; 90; 100] : _ i32 _)\n |\u003E am.iter fun s =\u003E\n inl s = complex (0, s)\n inl result = zeta s\n result |\u003E re |\u003E _assert_ne 0\n result |\u003E im |\u003E _assert_ne 0\n\n// // ## test_critical_strip\n\ninl test_critical_strip () = run_test (3u8, 2u8) fun zeta, gamma =\u003E\n ;[\n complex (0.5, 14.134725)\n complex (0.75, 20.5)\n complex (1.25, 30.1)\n complex (0.25, 40.0)\n complex (1.0, 50.0)\n ]\n |\u003E fun x =\u003E a x : _ i32 _\n |\u003E am.iter fun s =\u003E\n inl result = zeta s\n result |\u003E re |\u003E _assert_ne 0\n result |\u003E im |\u003E _assert_ne 0\n\n// // ## test_reflection_formula_for_specific_value\n\ninl test_reflection_formula_for_specific_value () = run_test (3u8, 2u8) fun zeta, gamma =\u003E\n ;[\n complex (3, 4)\n complex (2.5, -3.5)\n complex (1.5, 2.5)\n complex (0.5, 14.134725)\n ]\n |\u003E fun x =\u003E a x : _ i32 _\n |\u003E am.iter fun s =\u003E\n inl lhs = zeta s\n inl reflection_coefficient =\n complex_mult\n (complex_mult\n (complex_mult\n (complex (2, 0) |\u003E powc s)\n (complex (pi, 0) |\u003E powc (complex_sub s (complex (1, 0))))\n )\n (\n (complex_div\n (complex_mult\n (complex (pi, 0))\n s\n )\n (complex (2, 0))\n )\n |\u003E complex_sin\n )\n )\n (gamma (complex_sub (complex (1, 0)) s))\n \n inl one_minus_s = complex (1 - (s |\u003E re), -(s |\u003E im))\n inl rhs_calculated = complex_mult reflection_coefficient (zeta one_minus_s)\n\n ((lhs |\u003E re) - (rhs_calculated |\u003E re)) |\u003E abs |\u003E _assert_lt 0.0001\n ((lhs |\u003E im) - (rhs_calculated |\u003E im)) |\u003E abs |\u003E _assert_lt 0.0001\n\n// // ## test_euler_product_formula\n\ninl test_euler_product_formula () = run_test (3u8, 2u8) fun zeta, gamma =\u003E\n inl s_values = ;[2; 2.5; 3; 3.5; 4; 4.5; 5]\n inl primes = ;[2; 3; 5; 7; 11; 13; 17; 19; 23; 29; 31; 37; 41; 43; 47; 53; 59; 61; 67; 71]\n (a s_values : _ i32 _)\n |\u003E am.iter fun s_re =\u003E\n inl s = complex (s_re, 0)\n inl product =\n (1, (a primes : _ i32 _))\n ||\u003E am.fold fun acc x =\u003E\n acc * 1 / (1 - x ** -s_re)\n\n inl result = zeta s\n ((result |\u003E re) - product) |\u003E abs |\u003E _assert_lt 0.01f64\n result |\u003E im |\u003E _assert_lt 0.01f64\n\n// // ## tests\n\ninl tests () =\n !\\($\u0027\u0022}//\u0022\u0027) : ()\n\n !\\($\u0027\u0022#[test] fn test_zeta_at_known_values_() { //\u0022\u0027) : ()\n test_zeta_at_known_values_ ()\n !\\($\u0027\u0022} #[test] fn test_zeta_at_2_minus2() { //\u0022\u0027) : ()\n test_zeta_at_2_minus2 ()\n !\\($\u0027\u0022} #[test] fn test_trivial_zero_at_negative_even___() { //\u0022\u0027) : ()\n test_trivial_zero_at_negative_even___ ()\n !\\($\u0027\u0022} #[test] fn test_non_trivial_zero___() { //\u0022\u0027) : ()\n test_non_trivial_zero___ ()\n !\\($\u0027\u0022} #[test] fn test_real_part_greater_than_one___() { //\u0022\u0027) : ()\n test_real_part_greater_than_one___ ()\n !\\($\u0027\u0022} #[test] fn test_zeta_at_1___() { //\u0022\u0027) : ()\n test_zeta_at_1___ ()\n !\\($\u0027\u0022} #[test] fn test_symmetry_across_real_axis___() { //\u0022\u0027) : ()\n test_symmetry_across_real_axis___ ()\n !\\($\u0027\u0022} #[test] fn test_behavior_near_origin___() { //\u0022\u0027) : ()\n test_behavior_near_origin___ ()\n !\\($\u0027\u0022} #[test] fn test_zeta_at_minus_1() { //\u0022\u0027) : ()\n test_zeta_at_minus_1 ()\n !\\($\u0027\u0022} #[test] fn test_imaginary_axis() { //\u0022\u0027) : ()\n test_imaginary_axis ()\n !\\($\u0027\u0022} #[test] fn test_critical_strip() { //\u0022\u0027) : ()\n test_critical_strip ()\n !\\($\u0027\u0022} #[test] fn test_reflection_formula_for_specific_value() { //\u0022\u0027) : ()\n test_reflection_formula_for_specific_value ()\n !\\($\u0027\u0022} #[test] fn test_euler_product_formula() { //\u0022\u0027) : ()\n test_euler_product_formula ()\n\ninl main\u0027 (_args : array_base string) =\n inl value = 1i32\n console.write_line ($\u0022$\\\u0022value: {!value}\\\u0022\u0022 : string)\n 0i32\n\ninl main\u0027 () =\n types ()\n $\u0022let tests () = !tests ()\u0022 : ()\n $\u0022let main args = !main\u0027 args\u0022 : ()\n\ninl main () =\n main\u0027 ()\n","uri":"file:///c:/home/git/polyglot/lib/math/math.spi"}} / result.Length:
00:00:02 #14 [Debug] sendJson / port: 13805 / json: {"BuildFile":{"backend":"Fsharp","uri":"file:///c:/home/git/polyglot/lib/math/math.spi"}} / result.Length:
00:00:02 #15 [Verbose] > Building c:\home\git\polyglot\lib\math\math.spi
00:00:03 #16 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: [] / typeErrorCount: 0
00:00:04 #17 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: [] / typeErrorCount: 0
00:00:05 #18 [Debug] buildFile / takeWhileInclusive / fsxContent: / errors: [] / typeErrorCount: 0
00:00:05 #19 [Debug] buildFile / takeWhileInclusive / fsxContent: [<Fable.Core.Erase; Fable.Core.Emit("Func0<$0>")>] type Func0<'T> = class end
[<Fable.Core.Erase; Fable.Core.Emit("Func1<$0, $1>")>] type Func0<'T, 'U> = class end
[<Fable.Core.Erase; Fable.Core.Emit("Box<$0>")>] type Box<'T> = class end
[<Fable.Core.Erase; Fable.Core.Emit("dyn $0")>] type Dyn<'T> = class end
[<Fable.Core.Erase; Fable.Core.Emit("Fn() -> $0")>] type Fn<'T> = class end
[<Fable.Core.Erase; Fable.Core.Emit("Fn()")>] type FnUnit = class end
[<Fable.Core.Erase; Fable.Core.Emit("FnOnce() -> $0")>] type FnOnce<'T> = class end
[<Fable.Core.Erase; Fable.Core.Emit("Fn($0, $1)")>] type ActionFn2<'T, 'U> = class end
[<Fable.Core.Erase; Fable.Core.Emit("impl $0")>] type Impl<'T> = class end
[<Fable.Core.Erase; Fable.Core.Emit("mut $0")>]... / errors: [] / typeErrorCount: 0
00:00:05 #20 [Debug] watchWithFilter / Disposing watch stream / filter: FileName, LastWrite
00:00:00 #1 [Debug] persistCodeProject / packages: [Fable.Core] / modules: [lib/fsharp/Common.fs] / name: math / code.Length: 114804
00:00:00 #2 [Debug] buildProject / fullPath: C:\home\git\polyglot\target\polyglot\builder\math\math.fsproj
00:00:00 #3 [Debug] executeAsync / options: { Command =
"dotnet publish "C:\home\git\polyglot\target/polyglot/builder\math\math.fsproj" --configuration Release --output "C:\home\git\polyglot\lib\math\dist" --runtime linux-x64"
WorkingDirectory = Some "C:\home\git\polyglot\target\polyglot\builder\math"
CancellationToken = None
OnLine = None }
00:00:00 #4 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:01 #5 [Verbose] > Determining projects to restore...
00:00:02 #6 [Verbose] > Restored C:\home\git\polyglot\target\polyglot\builder\math\math.fsproj (in 554 ms).
00:00:02 #7 [Verbose] > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\polyglot\builder\math\math.fsproj]
00:00:09 #8 [Verbose] > math -> C:\home\git\polyglot\target\polyglot\builder\math\bin\Release\net9.0\linux-x64\math.dll
00:00:10 #9 [Verbose] > math -> C:\home\git\polyglot\lib\math\dist\
00:00:11 #10 [Debug] executeAsync / exitCode: 0 / output.Length: 664
00:00:11 #11 [Debug] executeAsync / options: { Command =
"dotnet publish "C:\home\git\polyglot\target/polyglot/builder\math\math.fsproj" --configuration Release --output "C:\home\git\polyglot\lib\math\dist" --runtime win-x64"
WorkingDirectory = Some "C:\home\git\polyglot\target\polyglot\builder\math"
CancellationToken = None
OnLine = None }
00:00:11 #12 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:12 #13 [Verbose] > Determining projects to restore...
00:00:13 #14 [Verbose] > Restored C:\home\git\polyglot\target\polyglot\builder\math\math.fsproj (in 573 ms).
00:00:13 #15 [Verbose] > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\polyglot\builder\math\math.fsproj]
00:00:20 #16 [Verbose] > math -> C:\home\git\polyglot\target\polyglot\builder\math\bin\Release\net9.0\win-x64\math.dll
00:00:25 #17 [Verbose] > math -> C:\home\git\polyglot\lib\math\dist\
00:00:25 #18 [Debug] executeAsync / exitCode: 0 / output.Length: 662
Fable 4.14.0: F# to Rust compiler (status: alpha)
Thanks to the contributor! @drk-mtr
Stand with Ukraine! https://standwithukraine.com.ua/
Parsing ..\..\target\polyglot\builder\math\math.fsproj...
Retrieving project options from cache, in case of issues run `dotnet fable clean` or try `--noCache` option.
Project and references (2 source files) parsed in 282ms
Started Fable compilation...
Fable compilation finished in 6022ms
.\..\..\target\polyglot\builder\math\math.fs(35,0): (37,3) warning FABLE: For Rust, support for F# static and module do bindings is disabled by default. It can be enabled with the 'static_do_bindings' feature. Use at your own risk!
Compiling math v0.0.1 (C:\home\git\polyglot\lib\math)
Finished `release` profile [optimized] target(s) in 24.66s
Running unittests math.rs (C:\home\git\polyglot\target\release\deps\math-4e440764aabea1fc.exe)
running 13 tests
test module_b7a9935b::Math::test_euler_product_formula ... ok
test module_b7a9935b::Math::test_symmetry_across_real_axis___ ... ok
test module_b7a9935b::Math::test_trivial_zero_at_negative_even___ ... ok
test module_b7a9935b::Math::test_critical_strip ... ok
test module_b7a9935b::Math::test_zeta_at_2_minus2 ... ok
test module_b7a9935b::Math::test_zeta_at_1___ ... ok
test module_b7a9935b::Math::test_zeta_at_minus_1 ... ok
test module_b7a9935b::Math::test_non_trivial_zero___ ... ok
test module_b7a9935b::Math::test_reflection_formula_for_specific_value ... ok
test module_b7a9935b::Math::test_zeta_at_known_values_ ... ok
test module_b7a9935b::Math::test_behavior_near_origin___ ... ok
test module_b7a9935b::Math::test_real_part_greater_than_one___ ... ok
test module_b7a9935b::Math::test_imaginary_axis ... ok
test result: ok. 13 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.29s
In [ ]:
{ . "$ScriptDir/../apps/chat/build.ps1" } | Invoke-Block
Finished `release` profile [optimized] target(s) in 2.37s Compiling rustix v0.38.32 Compiling which v4.4.2 Compiling tempfile v3.10.1 Compiling xattr v1.3.1 Compiling tar v0.4.40 Compiling prost-build v0.9.0 Compiling binary-install v0.2.0 Compiling near-sandbox-utils v0.7.0 Compiling near-workspaces v0.10.0 Compiling tonic-build v0.6.2 Compiling opentelemetry-otlp v0.10.0 Compiling near-o11y v0.20.1 Compiling near-primitives v0.20.1 Compiling near-chain-configs v0.20.1 Compiling near-jsonrpc-primitives v0.20.1 Compiling near-jsonrpc-client v0.8.0 Compiling chat_contract_tests v0.0.1 (/mnt/c/home/git/polyglot/apps/chat/contract/tests) Finished `release` profile [optimized] target(s) in 5m 53s Running `/mnt/c/home/git/polyglot/target/release/chat_contract_tests` Updated the logging layer according to `log_config.json` new: ExecutionFinalResult { total_gas_burnt: NearGas { inner: 5283260523066, }, transaction: ExecutionOutcome { transaction_hash: ByjepZ6f4x4X7fjxQAX3Tx7ySs2dR4WfW47n8dZMUVSg, block_hash: HodjDe9zbgAFcpg8jBYWuRnHLEdeg9MnbhVWrFyuvLTc, logs: [], receipt_ids: [ 9RAkYoRQM8GehteYtx27Xr7iSYMvUNRAvEc2eMyvko6k, ], gas_burnt: NearGas { inner: 2427927707802, }, tokens_burnt: NearToken { inner: 242792770780200000000, }, executor_id: AccountId( "dev-20240321045346-75183623571011", ), status: SuccessReceiptId(9RAkYoRQM8GehteYtx27Xr7iSYMvUNRAvEc2eMyvko6k), }, receipts: [ ExecutionOutcome { transaction_hash: 9RAkYoRQM8GehteYtx27Xr7iSYMvUNRAvEc2eMyvko6k, block_hash: HodjDe9zbgAFcpg8jBYWuRnHLEdeg9MnbhVWrFyuvLTc, logs: [], receipt_ids: [ J14W4bzWANvndyRQU4qMJ1Px2sHE2pxUP1dj82TpMdjf, ], gas_burnt: NearGas { inner: 2632150252764, }, tokens_burnt: NearToken { inner: 263215025276400000000, }, executor_id: AccountId( "dev-20240321045346-75183623571011", ), status: SuccessValue(''), }, ExecutionOutcome { transaction_hash: J14W4bzWANvndyRQU4qMJ1Px2sHE2pxUP1dj82TpMdjf, block_hash: GX5sUS9yzoPunCZ9FPz3QjpwTJQubA2eUmtt1tA3pxR6, logs: [], receipt_ids: [], gas_burnt: NearGas { inner: 223182562500, }, tokens_burnt: NearToken { inner: 0, }, executor_id: AccountId( "dev-20240321045346-75183623571011", ), status: SuccessValue(''), }, ], status: SuccessValue(''), } total_gas_burnt_usd: 0.0035292180294080877 outcome (success: true): outcome_gas_burnt_usd: 0.001621855708811736 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.0017582763688463521 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00014908595175 outcome_tokens_burnt_usd: 0.0 claim_alias(contract, ''): ExecutionFinalResult { total_gas_burnt: NearGas { inner: 5288055422272, }, transaction: ExecutionOutcome { transaction_hash: CjzKxxPPEk4nMpvN9VsmZ9GmzaBw7NhsEgeYC5P63M9L, block_hash: BPGZ74Mj5vFWwYCbRy28FjaS7ayJmjFmBCBQLvZm8mMZ, logs: [], receipt_ids: [ 7Y75ZdQWjUE7GmyJhXLwgjiQYqzhLHotkh1q9RZegXEX, ], gas_burnt: NearGas { inner: 2427972426482, }, tokens_burnt: NearToken { inner: 242797242648200000000, }, executor_id: AccountId( "dev-20240321045346-75183623571011", ), status: SuccessReceiptId(7Y75ZdQWjUE7GmyJhXLwgjiQYqzhLHotkh1q9RZegXEX), }, receipts: [ ExecutionOutcome { transaction_hash: 7Y75ZdQWjUE7GmyJhXLwgjiQYqzhLHotkh1q9RZegXEX, block_hash: BPGZ74Mj5vFWwYCbRy28FjaS7ayJmjFmBCBQLvZm8mMZ, logs: [ "claim_alias / alias: \"\" / account_id: AccountId(\n \"dev-20240321045346-75183623571011\",\n) / timestamp: 1710996829135863766", ], receipt_ids: [ 3qcL9BoENbeEBiSNmyUdUELFFz8FWMxDGicdozXRm4jk, ], gas_burnt: NearGas { inner: 2636900433290, }, tokens_burnt: NearToken { inner: 263690043329000000000, }, executor_id: AccountId( "dev-20240321045346-75183623571011", ), status: Failure(ActionError(ActionError { index: Some(0), kind: FunctionCallError(ExecutionError("Smart contract panicked: Invalid alias")) })), }, ExecutionOutcome { transaction_hash: 3qcL9BoENbeEBiSNmyUdUELFFz8FWMxDGicdozXRm4jk, block_hash: 7nc1vjrGZWuJN5JdjtVuFcnXRo2n9pU6d7R5D9nirDZZ, logs: [], receipt_ids: [], gas_burnt: NearGas { inner: 223182562500, }, tokens_burnt: NearToken { inner: 0, }, executor_id: AccountId( "dev-20240321045346-75183623571011", ), status: SuccessValue(''), }, ], status: Failure(ActionError(ActionError { index: Some(0), kind: FunctionCallError(ExecutionError("Smart contract panicked: Invalid alias")) })), } total_gas_burnt_usd: 0.003532421022077696 outcome (success: true): outcome_gas_burnt_usd: 0.001621885580889976 outcome_tokens_burnt_usd: 0.0 outcome (success: false): outcome_gas_burnt_usd: 0.00176144948943772 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00014908595175 outcome_tokens_burnt_usd: 0.0 dev_create_account(account1): Account { id: AccountId( "dev-20240321045349-92586215792364", ), } generate_cid_borsh(account1): ViewResultDetails { result: [ 59, 0, 0, 0, 98, 97, 102, 107, 114, 101, 105, 104, 100, 119, 100, 99, 101, 102, 103, 104, 52, 100, 113, 107, 106, 118, 54, 55, 117, 122, 99, 109, 119, 55, 111, 106, 101, 101, 54, 120, 101, 100, 122, 100, 101, 116, 111, 106, 117, 122, 106, 101, 118, 116, 101, 110, 120, 113, 117, 118, 121, 107, 117, ], logs: [], } claim_alias(account1, alias1): ExecutionFinalResult { total_gas_burnt: NearGas { inner: 5709883265113, }, transaction: ExecutionOutcome { transaction_hash: Gcv7Yzc72j2GhEQuwSZSR8WNoevrwtNGGBed8iqccrys, block_hash: Hr1jgAtHSNxBwHHyS6Yzsb5TexzX6YPpxwCG3n1XzTAu, logs: [], receipt_ids: [ 7XUUkruEzAqtMnYCD4TjBav6R9HmZKESSkvJE2jiseJQ, ], gas_burnt: NearGas { inner: 2427985842086, }, tokens_burnt: NearToken { inner: 242798584208600000000, }, executor_id: AccountId( "dev-20240321045349-92586215792364", ), status: SuccessReceiptId(7XUUkruEzAqtMnYCD4TjBav6R9HmZKESSkvJE2jiseJQ), }, receipts: [ ExecutionOutcome { transaction_hash: 7XUUkruEzAqtMnYCD4TjBav6R9HmZKESSkvJE2jiseJQ, block_hash: 9CK6h7GCh3N8a883xgak6BfdWtD7qtNtN7eVmS3TYPgj, logs: [ "claim_alias / alias: \"alias1\" / account_id: AccountId(\n \"dev-20240321045349-92586215792364\",\n) / timestamp: 1710996831390036782", ], receipt_ids: [ EVbtjLercxb8d6F3pfQ7obRQ7o2QCgrjbDKepRAqf2S6, ], gas_burnt: NearGas { inner: 3058714860527, }, tokens_burnt: NearToken { inner: 305871486052700000000, }, executor_id: AccountId( "dev-20240321045346-75183623571011", ), status: SuccessValue(''), }, ExecutionOutcome { transaction_hash: EVbtjLercxb8d6F3pfQ7obRQ7o2QCgrjbDKepRAqf2S6, block_hash: GPqPsuGKQrubQUFEBhcscmEyeGpDDgDPSrHbB144x3Kp, logs: [], receipt_ids: [], gas_burnt: NearGas { inner: 223182562500, }, tokens_burnt: NearToken { inner: 0, }, executor_id: AccountId( "dev-20240321045349-92586215792364", ), status: SuccessValue(''), }, ], status: SuccessValue(''), } total_gas_burnt_usd: 0.003814202021095484 outcome (success: true): outcome_gas_burnt_usd: 0.0016218945425134478 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.002043221526832036 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00014908595175 outcome_tokens_burnt_usd: 0.0 claim_alias(account1, alias1): ExecutionFinalResult { total_gas_burnt: NearGas { inner: 5534210328178, }, transaction: ExecutionOutcome { transaction_hash: 5yusbiPDn76E3rqGVctVwihcjsaf2UaR7sBFAULGZ5Xy, block_hash: U2TXcTB3nYZmrYJUo49WC9hswYs164nwo8eshhHtahw, logs: [], receipt_ids: [ 5DLDdbDBWrgbqSLfdrzHaZtZ8fSGG4wGLWbsCSZDCPHL, ], gas_burnt: NearGas { inner: 2427985842086, }, tokens_burnt: NearToken { inner: 242798584208600000000, }, executor_id: AccountId( "dev-20240321045349-92586215792364", ), status: SuccessReceiptId(5DLDdbDBWrgbqSLfdrzHaZtZ8fSGG4wGLWbsCSZDCPHL), }, receipts: [ ExecutionOutcome { transaction_hash: 5DLDdbDBWrgbqSLfdrzHaZtZ8fSGG4wGLWbsCSZDCPHL, block_hash: 5DhbewKjReCrrPb2UUDyfVP3pqXMRp4qzvM1ziN8jy64, logs: [ "claim_alias / alias: \"alias1\" / account_id: AccountId(\n \"dev-20240321045349-92586215792364\",\n) / timestamp: 1710996832414620845", "Alias already claimed", ], receipt_ids: [ 75Xpdbs2yHxkThp7qnBQ2e1asVK2R5G3cwyKg4F2XNwg, ], gas_burnt: NearGas { inner: 2883041923592, }, tokens_burnt: NearToken { inner: 288304192359200000000, }, executor_id: AccountId( "dev-20240321045346-75183623571011", ), status: SuccessValue(''), }, ExecutionOutcome { transaction_hash: 75Xpdbs2yHxkThp7qnBQ2e1asVK2R5G3cwyKg4F2XNwg, block_hash: 8RSaxA14zCpe2GQXg5192mJgXGdjycv2C1BfQFKSbcga, logs: [], receipt_ids: [], gas_burnt: NearGas { inner: 223182562500, }, tokens_burnt: NearToken { inner: 0, }, executor_id: AccountId( "dev-20240321045349-92586215792364", ), status: SuccessValue(''), }, ], status: SuccessValue(''), } total_gas_burnt_usd: 0.003696852499222904 outcome (success: true): outcome_gas_burnt_usd: 0.0016218945425134478 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.001925872004959456 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00014908595175 outcome_tokens_burnt_usd: 0.0 get_account_info(account1): Some( ( "alias1", ( 1710996831390036782, 0, ), ), ) get_alias_map(account1, alias1): Some( { AccountId( "dev-20240321045349-92586215792364", ): ( 1710996831390036782, 0, ), }, ) dev_create_account(account2): Account { id: AccountId( "dev-20240321045352-29808852545867", ), } claim_alias(alias2): ExecutionFinalResult { total_gas_burnt: NearGas { inner: 5797233044743, }, transaction: ExecutionOutcome { transaction_hash: ERG1QJpHFJ6mGhxRkThvdQUr7rmHii1JNtFcYaV6WtDS, block_hash: AmviqgKk3uTSZvw4UopDKdDybZ4SpxzoMS8xvDakmn1H, logs: [], receipt_ids: [ BR2iW8njmmdwubTqoXgGr818CfPCAp1ViKzzuvoMbswa, ], gas_burnt: NearGas { inner: 2427985842086, }, tokens_burnt: NearToken { inner: 242798584208600000000, }, executor_id: AccountId( "dev-20240321045352-29808852545867", ), status: SuccessReceiptId(BR2iW8njmmdwubTqoXgGr818CfPCAp1ViKzzuvoMbswa), }, receipts: [ ExecutionOutcome { transaction_hash: BR2iW8njmmdwubTqoXgGr818CfPCAp1ViKzzuvoMbswa, block_hash: ELsPpkZe4gG3RKCkAf3ewwzf6W7hWLuLDeyHHX2L94y8, logs: [ "claim_alias / alias: \"alias2\" / account_id: AccountId(\n \"dev-20240321045352-29808852545867\",\n) / timestamp: 1710996834458682284", ], receipt_ids: [ 3J9sVAXfzLUTnpbsNuCPBBZr3LVwnsSzYfE2PrCDdXrV, ], gas_burnt: NearGas { inner: 3146064640157, }, tokens_burnt: NearToken { inner: 314606464015700000000, }, executor_id: AccountId( "dev-20240321045346-75183623571011", ), status: SuccessValue(''), }, ExecutionOutcome { transaction_hash: 3J9sVAXfzLUTnpbsNuCPBBZr3LVwnsSzYfE2PrCDdXrV, block_hash: 7qi6YJUB55MoJ2ZS8JKhw8i3cv5M7xW1FjPjGFodE7ps, logs: [], receipt_ids: [], gas_burnt: NearGas { inner: 223182562500, }, tokens_burnt: NearToken { inner: 0, }, executor_id: AccountId( "dev-20240321045352-29808852545867", ), status: SuccessValue(''), }, ], status: SuccessValue(''), } total_gas_burnt_usd: 0.003872551673888324 outcome (success: true): outcome_gas_burnt_usd: 0.0016218945425134478 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.0021015711796248757 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00014908595175 outcome_tokens_burnt_usd: 0.0 get_account_info(account2): Some( ( "alias2", ( 1710996834458682284, 0, ), ), ) get_alias_map_borsh(alias2): Some( { AccountId( "dev-20240321045352-29808852545867", ): ( 1710996834458682284, 0, ), }, ) claim_alias(account2, alias1): ExecutionFinalResult { total_gas_burnt: NearGas { inner: 6101282590630, }, transaction: ExecutionOutcome { transaction_hash: 9azehGuwWJeNpwv9FogA4aJVeygrUNhUTDfXfojtaXre, block_hash: BMyntRS21vX6UYLBA1WJMSJEQcYaikKBbYmLwqPuL2Nq, logs: [], receipt_ids: [ GF2ycEmZSCMaT8oZgeE5mtZrwbf6nfVP7BveMqeUNfh, ], gas_burnt: NearGas { inner: 2427985842086, }, tokens_burnt: NearToken { inner: 242798584208600000000, }, executor_id: AccountId( "dev-20240321045352-29808852545867", ), status: SuccessReceiptId(GF2ycEmZSCMaT8oZgeE5mtZrwbf6nfVP7BveMqeUNfh), }, receipts: [ ExecutionOutcome { transaction_hash: GF2ycEmZSCMaT8oZgeE5mtZrwbf6nfVP7BveMqeUNfh, block_hash: G3iX5ufPwFMf57pdyGmS5BQoDJfRyGPWWcvHaZ24k2Nk, logs: [ "claim_alias / alias: \"alias1\" / account_id: AccountId(\n \"dev-20240321045352-29808852545867\",\n) / timestamp: 1710996835482314253", ], receipt_ids: [ FdpxHKEorTFT3RArZ1XbJTGi2ax6LnY69HdNgvkzgWc, ], gas_burnt: NearGas { inner: 3450114186044, }, tokens_burnt: NearToken { inner: 345011418604400000000, }, executor_id: AccountId( "dev-20240321045346-75183623571011", ), status: SuccessValue(''), }, ExecutionOutcome { transaction_hash: FdpxHKEorTFT3RArZ1XbJTGi2ax6LnY69HdNgvkzgWc, block_hash: VK8aBYu25GGULDT3LPTfhpvd9DazQV4FaHMVRpQaZxs, logs: [], receipt_ids: [], gas_burnt: NearGas { inner: 223182562500, }, tokens_burnt: NearToken { inner: 0, }, executor_id: AccountId( "dev-20240321045352-29808852545867", ), status: SuccessValue(''), }, ], status: SuccessValue(''), } total_gas_burnt_usd: 0.00407565677054084 outcome (success: true): outcome_gas_burnt_usd: 0.0016218945425134478 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.002304676276277392 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00014908595175 outcome_tokens_burnt_usd: 0.0 get_account_info(account2): Some( ( "alias1", ( 1710996835482314253, 1, ), ), ) get_alias_map(account2, alias1): Some( { AccountId( "dev-20240321045352-29808852545867", ): ( 1710996835482314253, 1, ), AccountId( "dev-20240321045349-92586215792364", ): ( 1710996831390036782, 0, ), }, ) get_alias_map(account2, alias2): Some( {}, ) claim_alias(account1, alias2): ExecutionFinalResult { total_gas_burnt: NearGas { inner: 6095976637186, }, transaction: ExecutionOutcome { transaction_hash: E7vNaoud4LToCw9qSesih4d6DYKWCSEhsGwJabqEuXzu, block_hash: 8BZVNGBn5Cqh7kLcGQK9mRBKzgYcYCdm9LNuohUaC3Ne, logs: [], receipt_ids: [ BwQht2LiGi2dtFzmyTpTVYQdbCQBYZaLBEEe8fXVaKjX, ], gas_burnt: NearGas { inner: 2427985842086, }, tokens_burnt: NearToken { inner: 242798584208600000000, }, executor_id: AccountId( "dev-20240321045349-92586215792364", ), status: SuccessReceiptId(BwQht2LiGi2dtFzmyTpTVYQdbCQBYZaLBEEe8fXVaKjX), }, receipts: [ ExecutionOutcome { transaction_hash: BwQht2LiGi2dtFzmyTpTVYQdbCQBYZaLBEEe8fXVaKjX, block_hash: 41g2WsRk5mVomu5wHtoZjQZ3XS78XZYqYMsjxZb3mTAZ, logs: [ "claim_alias / alias: \"alias2\" / account_id: AccountId(\n \"dev-20240321045349-92586215792364\",\n) / timestamp: 1710996836505059823", ], receipt_ids: [ 5Gkf2tvNXHq4xvGLo7uouNoqLifEBvdPLw38b4Gp4VuC, ], gas_burnt: NearGas { inner: 3444808232600, }, tokens_burnt: NearToken { inner: 344480823260000000000, }, executor_id: AccountId( "dev-20240321045346-75183623571011", ), status: SuccessValue(''), }, ExecutionOutcome { transaction_hash: 5Gkf2tvNXHq4xvGLo7uouNoqLifEBvdPLw38b4Gp4VuC, block_hash: FTGp8kdMHkuowP1Vs1Pbgxo9rwtkrL3qLyXHojkHjype, logs: [], receipt_ids: [], gas_burnt: NearGas { inner: 223182562500, }, tokens_burnt: NearToken { inner: 0, }, executor_id: AccountId( "dev-20240321045349-92586215792364", ), status: SuccessValue(''), }, ], status: SuccessValue(''), } total_gas_burnt_usd: 0.004072112393640247 outcome (success: true): outcome_gas_burnt_usd: 0.0016218945425134478 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.0023011318993767997 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00014908595175 outcome_tokens_burnt_usd: 0.0 get_account_info(account1): Some( ( "alias2", ( 1710996836505059823, 0, ), ), ) get_alias_map(account1, alias2): Some( { AccountId( "dev-20240321045349-92586215792364", ): ( 1710996836505059823, 0, ), }, ) get_alias_map(account1, alias1): Some( { AccountId( "dev-20240321045352-29808852545867", ): ( 1710996835482314253, 1, ), }, ) claim_alias(account1, alias1): ExecutionFinalResult { total_gas_burnt: NearGas { inner: 6101305627798, }, transaction: ExecutionOutcome { transaction_hash: BEc2iYSJ5nUYhXAr3Da1nLJTbF6PkrPcdsgxV1X6St57, block_hash: 7qoDi9AKJK65XhehggW7J6jP5nnExSVQuu6Mc5Zyc7TS, logs: [], receipt_ids: [ D7PR4F6nrzsuGKqXtRN3YCWCLYTWCW6NtNiPsGD8G9X3, ], gas_burnt: NearGas { inner: 2427985842086, }, tokens_burnt: NearToken { inner: 242798584208600000000, }, executor_id: AccountId( "dev-20240321045349-92586215792364", ), status: SuccessReceiptId(D7PR4F6nrzsuGKqXtRN3YCWCLYTWCW6NtNiPsGD8G9X3), }, receipts: [ ExecutionOutcome { transaction_hash: D7PR4F6nrzsuGKqXtRN3YCWCLYTWCW6NtNiPsGD8G9X3, block_hash: F4uHgVBRWqvDpsBfzZjnYx1JFtzmF2YhpuSi2eun5eLD, logs: [ "claim_alias / alias: \"alias1\" / account_id: AccountId(\n \"dev-20240321045349-92586215792364\",\n) / timestamp: 1710996837518828991", ], receipt_ids: [ 9pQ2hv7CqKuU375EWirTQ99wH59yFrZx2AisezvDHiAo, ], gas_burnt: NearGas { inner: 3450137223212, }, tokens_burnt: NearToken { inner: 345013722321200000000, }, executor_id: AccountId( "dev-20240321045346-75183623571011", ), status: SuccessValue(''), }, ExecutionOutcome { transaction_hash: 9pQ2hv7CqKuU375EWirTQ99wH59yFrZx2AisezvDHiAo, block_hash: 94GxAKwecKdQYpQAbpzFTfRTXEEcknLAn8E2a6Z7ZrMD, logs: [], receipt_ids: [], gas_burnt: NearGas { inner: 223182562500, }, tokens_burnt: NearToken { inner: 0, }, executor_id: AccountId( "dev-20240321045349-92586215792364", ), status: SuccessValue(''), }, ], status: SuccessValue(''), } total_gas_burnt_usd: 0.004075672159369064 outcome (success: true): outcome_gas_burnt_usd: 0.0016218945425134478 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.0023046916651056158 outcome_tokens_burnt_usd: 0.0 outcome (success: true): outcome_gas_burnt_usd: 0.00014908595175 outcome_tokens_burnt_usd: 0.0 get_account_info(account1): Some( ( "alias1", ( 1710996837518828991, 1, ), ), ) get_alias_map(account1, alias1): Some( { AccountId( "dev-20240321045352-29808852545867", ): ( 1710996835482314253, 0, ), AccountId( "dev-20240321045349-92586215792364", ): ( 1710996837518828991, 1, ), }, ) get_alias_map(account1, alias2): Some( {}, )
In [ ]:
{ . "$ScriptDir/../apps/spiral/temp/extension/build.ps1" } | Invoke-Block
Lockfile is up to date, resolution step is skipped Already up to date ╭──────────────────────────────────────────────────────────────────╮ │ │ │ Update available! 8.15.4 → 8.15.5. │ │ Changelog: https://github.com/pnpm/pnpm/releases/tag/v8.15.5 │ │ Run "pnpm add -g pnpm" to update. │ │ │ │ Follow @pnpmjs for updates: https://twitter.com/pnpmjs │ │ │ ╰──────────────────────────────────────────────────────────────────╯ Done in 3.3s [INFO]: 🎯 Checking for the Wasm target... [INFO]: 🌀 Compiling to Wasm... Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.81s [INFO]: ⬇️ Installing wasm-bindgen... [INFO]: origin crate has no LICENSE [INFO]: ✨ Done in 6.77s [INFO]: 📦 Your wasm pkg is ready to publish at C:\home\git\polyglot\apps\spiral\temp\extension\pkg. ▲ [WARNING] "import.meta" is not available with the "iife" output format and will be empty [empty-import-meta] pkg/spiral_temp_extension.js:1495:57: 1495 │ ...put = new URL('spiral_temp_extension_bg.wasm', import.meta.url); ╵ ~~~~~~~~~~~ You need to set the output format to "esm" for "import.meta" to work correctly. 1 warning dist\spiral_temp_extension_bg-TTKGHSXL.wasm 4.6mb ⚠️ dist\devtools.js 29.0kb dist\content_script.js 27.2kb dist\service_worker.js 2.2kb ⚡ Done in 140ms > polyglot@ test:e2e C:\home\git\polyglot\apps\spiral\temp\extension > playwright test [WebServer] (node:43732) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead. (Use `node --trace-deprecation ...` to show where the warning was created) Running 3 tests using 3 workers [1/3] [Desktop Chrome] › extension.spec.ts:13:5 › libgen [2/3] [Desktop Chrome] › extension.spec.ts:8:5 › popup extension [3/3] [Desktop Chrome] › extension.spec.ts:3:5 › popup localhost 3 passed (24.3s) To open last HTML report run: pnpm exec playwright show-report
In [ ]:
{ . "$ScriptDir/../apps/perf/build.ps1" } | Invoke-Block
00:00:00 #1 [Debug] runWithTimeoutAsync / timeout: 60
00:00:00 #2 [Debug] executeAsync / options: { Command =
"dotnet "C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release\Spiral.dll" --port 13805 --default-int i32 --default-float f64"
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = Some <fun:main@464-1020> }
00:00:00 #3 [Verbose] > pwd: C:\home\git\polyglot\apps\perf
00:00:00 #4 [Verbose] > dll_path: C:\home\git\polyglot\deps\The-Spiral-Language\The Spiral Language 2\artifacts\bin\The Spiral Language 2\release
00:00:00 #5 [Verbose] > Starting the Spiral Server. It is bound to: http://localhost:13805
00:00:00 #6 [Debug] runWithTimeoutAsync / timeout: 500
00:00:00 #7 [Verbose] waitForPortAccess / port: 13805 / retry: 0
00:00:01 #8 [Debug] sendJson / port: 13805 / json: {"Ping":true} / result.Length:
00:00:01 #9 [Verbose] awaitCompiler / Ping / result: Some(null) / port: 13805 / retry: 0
00:00:01 #10 [Verbose] > Server bound to: http://localhost:13805
00:00:01 #11 [Debug] executeAsync / options: { Command = "pwsh -c "../../scripts/invoke-dib.ps1 Perf.dib""
WorkingDirectory = None
CancellationToken = Some System.Threading.CancellationToken
OnLine = None }
00:00:04 #12 [Verbose] >
00:00:04 #13 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:04 #14 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:04 #15 [Verbose] > │ ## Perf (Polyglot) │
00:00:04 #16 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:04 #17 [Verbose] >
00:00:04 #18 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:04 #19 [Verbose] > // // test
00:00:04 #20 [Verbose] >
00:00:04 #21 [Verbose] > open testing
00:00:04 #22 [Verbose] > open benchmark
00:00:08 #23 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0054-5175-7567-7da37e4189d1\main.spi
00:00:11 #24 [Verbose] >
00:00:11 #25 [Verbose] > ╭─[ 6.76s - stdout ]───────────────────────────────────────────────────────────╮
00:00:11 #26 [Verbose] > │ () │
00:00:11 #27 [Verbose] > │ │
00:00:11 #28 [Verbose] > │ │
00:00:11 #29 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #30 [Verbose] >
00:00:11 #31 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:11 #32 [Verbose] > inl (/@) x = listm'.(/@) x
00:00:11 #33 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0054-5547-4757-45ae5238d0e3\main.spi
00:00:11 #34 [Verbose] >
00:00:11 #35 [Verbose] > ╭─[ 274.97ms - stdout ]────────────────────────────────────────────────────────╮
00:00:11 #36 [Verbose] > │ () │
00:00:11 #37 [Verbose] > │ │
00:00:11 #38 [Verbose] > │ │
00:00:11 #39 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #40 [Verbose] >
00:00:11 #41 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:11 #42 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:11 #43 [Verbose] > │ ## TestCaseResult │
00:00:11 #44 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:11 #45 [Verbose] >
00:00:11 #46 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:11 #47 [Verbose] > type TestCaseResult =
00:00:11 #48 [Verbose] > {
00:00:11 #49 [Verbose] > Input: string
00:00:11 #50 [Verbose] > Expected: string
00:00:11 #51 [Verbose] > Result: string
00:00:11 #52 [Verbose] > TimeList: int64 list
00:00:11 #53 [Verbose] > }
00:00:11 #54 [Verbose] >
00:00:11 #55 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:11 #56 [Verbose] > #r
00:00:11 #57 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
00:00:11 #58 [Verbose] > spNetCore.Html.Abstractions.dll"
00:00:11 #59 [Verbose] > #r
00:00:11 #60 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:11 #61 [Verbose] > otNet.Interactive.dll"
00:00:11 #62 [Verbose] > #r
00:00:11 #63 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:11 #64 [Verbose] > otNet.Interactive.FSharp.dll"
00:00:11 #65 [Verbose] > #r
00:00:11 #66 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:11 #67 [Verbose] > otNet.Interactive.Formatting.dll"
00:00:11 #68 [Verbose] > open System
00:00:11 #69 [Verbose] > open System.IO
00:00:11 #70 [Verbose] > open System.Text
00:00:11 #71 [Verbose] > open Microsoft.DotNet.Interactive.Formatting
00:00:12 #72 [Verbose] >
00:00:12 #73 [Verbose] > ── fsharp - import ─────────────────────────────────────────────────────────────
00:00:12 #74 [Verbose] > #r
00:00:12 #75 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:12 #76 [Verbose] > otNet.Interactive.FSharp.dll"
00:00:12 #77 [Verbose] > open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
00:00:12 #78 [Verbose] > #r
00:00:12 #79 [Verbose] > "C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
00:00:12 #80 [Verbose] > otNet.Interactive.dll"
00:00:12 #81 [Verbose] > open type Microsoft.DotNet.Interactive.Kernel
00:00:13 #82 [Verbose] >
00:00:13 #83 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:13 #84 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:13 #85 [Verbose] > │ ## run │
00:00:13 #86 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:13 #87 [Verbose] >
00:00:13 #88 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:13 #89 [Verbose] > let run count (solutions: (string * ('TInput -> 'TExpected)) list) (input,
00:00:13 #90 [Verbose] > expected) =
00:00:13 #91 [Verbose] > let inputStr =
00:00:13 #92 [Verbose] > match box input with
00:00:13 #93 [Verbose] > | :? System.Collections.ICollection as input ->
00:00:13 #94 [Verbose] > System.Linq.Enumerable.Cast<obj> input
00:00:13 #95 [Verbose] > |> Seq.map string
00:00:13 #96 [Verbose] > |> String.concat ","
00:00:13 #97 [Verbose] > | _ -> input.ToString ()
00:00:13 #98 [Verbose] >
00:00:13 #99 [Verbose] > printfn ""
00:00:13 #100 [Verbose] > printfn $"Solution: {inputStr} "
00:00:13 #101 [Verbose] >
00:00:13 #102 [Verbose] > let performanceInvoke (fn: unit -> 'T) =
00:00:13 #103 [Verbose] > GC.Collect ()
00:00:13 #104 [Verbose] > let stopwatch = System.Diagnostics.Stopwatch ()
00:00:13 #105 [Verbose] > stopwatch.Start ()
00:00:13 #106 [Verbose] > let time1 = stopwatch.ElapsedMilliseconds
00:00:13 #107 [Verbose] >
00:00:13 #108 [Verbose] > let result =
00:00:13 #109 [Verbose] > [[| 0 .. count |]]
00:00:13 #110 [Verbose] > |> Array.Parallel.map (fun _ ->
00:00:13 #111 [Verbose] > fn ()
00:00:13 #112 [Verbose] > )
00:00:13 #113 [Verbose] > |> Array.last
00:00:13 #114 [Verbose] >
00:00:13 #115 [Verbose] > let time2 = stopwatch.ElapsedMilliseconds - time1
00:00:13 #116 [Verbose] >
00:00:13 #117 [Verbose] > result, time2
00:00:13 #118 [Verbose] >
00:00:13 #119 [Verbose] > let resultsWithTime =
00:00:13 #120 [Verbose] > solutions
00:00:13 #121 [Verbose] > |> List.mapi (fun i (testName, solution) ->
00:00:13 #122 [Verbose] > let result, time = performanceInvoke (fun () -> solution input)
00:00:13 #123 [Verbose] > printfn $"Test case %d{i + 1}. %s{testName}. Time: %A{time} "
00:00:13 #124 [Verbose] > result, time
00:00:13 #125 [Verbose] > )
00:00:13 #126 [Verbose] >
00:00:13 #127 [Verbose] >
00:00:13 #128 [Verbose] > match resultsWithTime |> List.map fst with
00:00:13 #129 [Verbose] > | ([[]] | [[ _ ]]) -> ()
00:00:13 #130 [Verbose] > | (head :: tail) when tail |> List.forall ((=) head) -> ()
00:00:13 #131 [Verbose] > | results -> failwithf $"Challenge error: %A{results}"
00:00:13 #132 [Verbose] >
00:00:13 #133 [Verbose] > {
00:00:13 #134 [Verbose] > Input = inputStr
00:00:13 #135 [Verbose] > Expected = expected.ToString ()
00:00:13 #136 [Verbose] > Result = resultsWithTime |> Seq.map fst |> Seq.head |> _.ToString()
00:00:13 #137 [Verbose] > TimeList = resultsWithTime |> List.map snd
00:00:13 #138 [Verbose] > }
00:00:14 #139 [Verbose] >
00:00:14 #140 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #141 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #142 [Verbose] > │ ## runAll │
00:00:14 #143 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #144 [Verbose] >
00:00:14 #145 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:14 #146 [Verbose] > let runAll testName count (solutions: (string * ('TInput -> 'TExpected)) list)
00:00:14 #147 [Verbose] > testCases =
00:00:14 #148 [Verbose] > printfn ""
00:00:14 #149 [Verbose] > printfn ""
00:00:14 #150 [Verbose] > printfn $"Test: {testName}"
00:00:14 #151 [Verbose] > testCases
00:00:14 #152 [Verbose] > |> Seq.map (run count solutions)
00:00:14 #153 [Verbose] > |> Seq.toList
00:00:14 #154 [Verbose] >
00:00:14 #155 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #156 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #157 [Verbose] > │ ## sortResultList │
00:00:14 #158 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #159 [Verbose] >
00:00:14 #160 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:14 #161 [Verbose] > let sortResultList resultList =
00:00:14 #162 [Verbose] > let table =
00:00:14 #163 [Verbose] > let rows =
00:00:14 #164 [Verbose] > resultList
00:00:14 #165 [Verbose] > |> List.map (fun result ->
00:00:14 #166 [Verbose] > let best =
00:00:14 #167 [Verbose] > result.TimeList
00:00:14 #168 [Verbose] > |> List.mapi (fun i time ->
00:00:14 #169 [Verbose] > i + 1, time
00:00:14 #170 [Verbose] > )
00:00:14 #171 [Verbose] > |> List.sortBy snd
00:00:14 #172 [Verbose] > |> List.head
00:00:14 #173 [Verbose] > |> _.ToString()
00:00:14 #174 [Verbose] > let row =
00:00:14 #175 [Verbose] > [[
00:00:14 #176 [Verbose] > result.Input
00:00:14 #177 [Verbose] > result.Expected
00:00:14 #178 [Verbose] > result.Result
00:00:14 #179 [Verbose] > best
00:00:14 #180 [Verbose] > ]]
00:00:14 #181 [Verbose] > let color =
00:00:14 #182 [Verbose] > match result.Expected = result.Result with
00:00:14 #183 [Verbose] > | true -> Some ConsoleColor.DarkGreen
00:00:14 #184 [Verbose] > | false -> Some ConsoleColor.DarkRed
00:00:14 #185 [Verbose] > row, color
00:00:14 #186 [Verbose] > )
00:00:14 #187 [Verbose] > let header =
00:00:14 #188 [Verbose] > [[
00:00:14 #189 [Verbose] > [[
00:00:14 #190 [Verbose] > "Input"
00:00:14 #191 [Verbose] > "Expected"
00:00:14 #192 [Verbose] > "Result"
00:00:14 #193 [Verbose] > "Best"
00:00:14 #194 [Verbose] > ]]
00:00:14 #195 [Verbose] > [[
00:00:14 #196 [Verbose] > "---"
00:00:14 #197 [Verbose] > "---"
00:00:14 #198 [Verbose] > "---"
00:00:14 #199 [Verbose] > "---"
00:00:14 #200 [Verbose] > ]]
00:00:14 #201 [Verbose] > ]]
00:00:14 #202 [Verbose] > |> List.map (fun row -> row, None)
00:00:14 #203 [Verbose] > header @ rows
00:00:14 #204 [Verbose] >
00:00:14 #205 [Verbose] > let formattedTable =
00:00:14 #206 [Verbose] > let lengthMap =
00:00:14 #207 [Verbose] > table
00:00:14 #208 [Verbose] > |> List.map fst
00:00:14 #209 [Verbose] > |> List.transpose
00:00:14 #210 [Verbose] > |> List.map (fun column ->
00:00:14 #211 [Verbose] > column
00:00:14 #212 [Verbose] > |> List.map String.length
00:00:14 #213 [Verbose] > |> List.sortDescending
00:00:14 #214 [Verbose] > |> List.tryHead
00:00:14 #215 [Verbose] > |> Option.defaultValue 0
00:00:14 #216 [Verbose] > )
00:00:14 #217 [Verbose] > |> List.indexed
00:00:14 #218 [Verbose] > |> Map.ofList
00:00:14 #219 [Verbose] > table
00:00:14 #220 [Verbose] > |> List.map (fun (row, color) ->
00:00:14 #221 [Verbose] > let newRow =
00:00:14 #222 [Verbose] > row
00:00:14 #223 [Verbose] > |> List.mapi (fun i cell ->
00:00:14 #224 [Verbose] > cell.PadRight lengthMap.[[i]]
00:00:14 #225 [Verbose] > )
00:00:14 #226 [Verbose] > newRow, color
00:00:14 #227 [Verbose] > )
00:00:14 #228 [Verbose] >
00:00:14 #229 [Verbose] > printfn ""
00:00:14 #230 [Verbose] > formattedTable
00:00:14 #231 [Verbose] > |> List.iter (fun (row, color) ->
00:00:14 #232 [Verbose] > match color with
00:00:14 #233 [Verbose] > | Some color -> Console.ForegroundColor <- color
00:00:14 #234 [Verbose] > | None -> Console.ResetColor ()
00:00:14 #235 [Verbose] >
00:00:14 #236 [Verbose] > printfn "%s" (String.Join ("\t| ", row))
00:00:14 #237 [Verbose] >
00:00:14 #238 [Verbose] > Console.ResetColor ()
00:00:14 #239 [Verbose] > )
00:00:14 #240 [Verbose] >
00:00:14 #241 [Verbose] > let averages =
00:00:14 #242 [Verbose] > resultList
00:00:14 #243 [Verbose] > |> List.map (fun result -> result.TimeList |> List.map float)
00:00:14 #244 [Verbose] > |> List.transpose
00:00:14 #245 [Verbose] > |> List.map List.average
00:00:14 #246 [Verbose] > |> List.map int64
00:00:14 #247 [Verbose] > |> List.indexed
00:00:14 #248 [Verbose] >
00:00:14 #249 [Verbose] > printfn ""
00:00:14 #250 [Verbose] > printfn "Average Ranking "
00:00:14 #251 [Verbose] > averages
00:00:14 #252 [Verbose] > |> List.sortBy snd
00:00:14 #253 [Verbose] > |> List.iter (fun (i, avg) ->
00:00:14 #254 [Verbose] > printfn $"Test case %d{i + 1}. Average Time: %A{avg} "
00:00:14 #255 [Verbose] > )
00:00:14 #256 [Verbose] >
00:00:14 #257 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:14 #258 [Verbose] > let mutable _count =
00:00:14 #259 [Verbose] > if ("CI" |> System.Environment.GetEnvironmentVariable |> fun x -> $"%A{x}")
00:00:14 #260 [Verbose] > <> "<null>"
00:00:14 #261 [Verbose] > then 2000000
00:00:14 #262 [Verbose] > else 2000
00:00:14 #263 [Verbose] >
00:00:14 #264 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:14 #265 [Verbose] > inl is_fast () =
00:00:14 #266 [Verbose] > false
00:00:14 #267 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0054-5891-9149-948a3fc380d1\main.spi
00:00:14 #268 [Verbose] >
00:00:14 #269 [Verbose] > ╭─[ 235.60ms - stdout ]────────────────────────────────────────────────────────╮
00:00:14 #270 [Verbose] > │ () │
00:00:14 #271 [Verbose] > │ │
00:00:14 #272 [Verbose] > │ │
00:00:14 #273 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #274 [Verbose] >
00:00:14 #275 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #276 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #277 [Verbose] > │ ## empty3Tests │
00:00:14 #278 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #279 [Verbose] >
00:00:14 #280 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:14 #281 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:14 #282 [Verbose] > │ Test: Empty3 │
00:00:14 #283 [Verbose] > │ │
00:00:14 #284 [Verbose] > │ Solution: (a, a) │
00:00:14 #285 [Verbose] > │ Test case 1. A. Time: 91L │
00:00:14 #286 [Verbose] > │ │
00:00:14 #287 [Verbose] > │ Solution: (a, a) │
00:00:14 #288 [Verbose] > │ Test case 1. A. Time: 56L │
00:00:14 #289 [Verbose] > │ │
00:00:14 #290 [Verbose] > │ Input | Expected | Result | Best │
00:00:14 #291 [Verbose] > │ --- | --- | --- | --- │
00:00:14 #292 [Verbose] > │ (a, a) | a | a | (1, 91) │
00:00:14 #293 [Verbose] > │ (a, a) | a | a | (1, 56) │
00:00:14 #294 [Verbose] > │ │
00:00:14 #295 [Verbose] > │ Averages │
00:00:14 #296 [Verbose] > │ Test case 1. Average Time: 73L │
00:00:14 #297 [Verbose] > │ │
00:00:14 #298 [Verbose] > │ Ranking │
00:00:14 #299 [Verbose] > │ Test case 1. Average Time: 73L │
00:00:14 #300 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:14 #301 [Verbose] >
00:00:14 #302 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:14 #303 [Verbose] > //// test
00:00:14 #304 [Verbose] >
00:00:14 #305 [Verbose] > let solutions = [[
00:00:14 #306 [Verbose] > "A",
00:00:14 #307 [Verbose] > fun (a, _b) ->
00:00:14 #308 [Verbose] > a
00:00:14 #309 [Verbose] > ]]
00:00:14 #310 [Verbose] > let testCases = seq {
00:00:14 #311 [Verbose] > ("a", "a"), "a"
00:00:14 #312 [Verbose] > ("a", "a"), "a"
00:00:14 #313 [Verbose] > }
00:00:14 #314 [Verbose] > let rec empty3Tests = runAll (nameof empty3Tests) _count solutions testCases
00:00:14 #315 [Verbose] > empty3Tests
00:00:14 #316 [Verbose] > |> sortResultList
00:00:15 #317 [Verbose] >
00:00:15 #318 [Verbose] > ╭─[ 405.88ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #319 [Verbose] > │ │
00:00:15 #320 [Verbose] > │ │
00:00:15 #321 [Verbose] > │ Test: empty3Tests │
00:00:15 #322 [Verbose] > │ │
00:00:15 #323 [Verbose] > │ Solution: (a, a) │
00:00:15 #324 [Verbose] > │ Test case 1. A. Time: 1L │
00:00:15 #325 [Verbose] > │ │
00:00:15 #326 [Verbose] > │ Solution: (a, a) │
00:00:15 #327 [Verbose] > │ Test case 1. A. Time: 0L │
00:00:15 #328 [Verbose] > │ │
00:00:15 #329 [Verbose] > │ Input | Expected | Result | Best │
00:00:15 #330 [Verbose] > │ --- | --- | --- | --- │
00:00:15 #331 [Verbose] > │ (a, a) | a | a | (1, 1) │
00:00:15 #332 [Verbose] > │ (a, a) | a | a | (1, 0) │
00:00:15 #333 [Verbose] > │ │
00:00:15 #334 [Verbose] > │ Average Ranking │
00:00:15 #335 [Verbose] > │ Test case 1. Average Time: 0L │
00:00:15 #336 [Verbose] > │ │
00:00:15 #337 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #338 [Verbose] >
00:00:15 #339 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #340 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #341 [Verbose] > │ ## empty2Tests │
00:00:15 #342 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #343 [Verbose] >
00:00:15 #344 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #345 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #346 [Verbose] > │ Test: Empty2 │
00:00:15 #347 [Verbose] > │ │
00:00:15 #348 [Verbose] > │ Solution: (a, a) │
00:00:15 #349 [Verbose] > │ Test case 1. A. Time: 59L │
00:00:15 #350 [Verbose] > │ │
00:00:15 #351 [Verbose] > │ Solution: (a, a) │
00:00:15 #352 [Verbose] > │ Test case 1. A. Time: 53L │
00:00:15 #353 [Verbose] > │ │
00:00:15 #354 [Verbose] > │ Input | Expected | Result | Best │
00:00:15 #355 [Verbose] > │ --- | --- | --- | --- │
00:00:15 #356 [Verbose] > │ (a, a) | a | a | (1, 59) │
00:00:15 #357 [Verbose] > │ (a, a) | a | a | (1, 53) │
00:00:15 #358 [Verbose] > │ │
00:00:15 #359 [Verbose] > │ Averages │
00:00:15 #360 [Verbose] > │ Test case 1. Average Time: 56L │
00:00:15 #361 [Verbose] > │ │
00:00:15 #362 [Verbose] > │ Ranking │
00:00:15 #363 [Verbose] > │ Test case 1. Average Time: 56L │
00:00:15 #364 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #365 [Verbose] >
00:00:15 #366 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:15 #367 [Verbose] > //// test
00:00:15 #368 [Verbose] >
00:00:15 #369 [Verbose] > let solutions = [[
00:00:15 #370 [Verbose] > "A",
00:00:15 #371 [Verbose] > fun (a, _b) ->
00:00:15 #372 [Verbose] > a
00:00:15 #373 [Verbose] > ]]
00:00:15 #374 [Verbose] > let testCases = seq {
00:00:15 #375 [Verbose] > ("a", "a"), "a"
00:00:15 #376 [Verbose] > ("a", "a"), "a"
00:00:15 #377 [Verbose] > }
00:00:15 #378 [Verbose] > let rec empty2Tests = runAll (nameof empty2Tests) _count solutions testCases
00:00:15 #379 [Verbose] > empty2Tests
00:00:15 #380 [Verbose] > |> sortResultList
00:00:15 #381 [Verbose] >
00:00:15 #382 [Verbose] > ╭─[ 333.66ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #383 [Verbose] > │ │
00:00:15 #384 [Verbose] > │ │
00:00:15 #385 [Verbose] > │ Test: empty2Tests │
00:00:15 #386 [Verbose] > │ │
00:00:15 #387 [Verbose] > │ Solution: (a, a) │
00:00:15 #388 [Verbose] > │ Test case 1. A. Time: 0L │
00:00:15 #389 [Verbose] > │ │
00:00:15 #390 [Verbose] > │ Solution: (a, a) │
00:00:15 #391 [Verbose] > │ Test case 1. A. Time: 0L │
00:00:15 #392 [Verbose] > │ │
00:00:15 #393 [Verbose] > │ Input | Expected | Result | Best │
00:00:15 #394 [Verbose] > │ --- | --- | --- | --- │
00:00:15 #395 [Verbose] > │ (a, a) | a | a | (1, 0) │
00:00:15 #396 [Verbose] > │ (a, a) | a | a | (1, 0) │
00:00:15 #397 [Verbose] > │ │
00:00:15 #398 [Verbose] > │ Average Ranking │
00:00:15 #399 [Verbose] > │ Test case 1. Average Time: 0L │
00:00:15 #400 [Verbose] > │ │
00:00:15 #401 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #402 [Verbose] >
00:00:15 #403 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #404 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #405 [Verbose] > │ ## emptyTests │
00:00:15 #406 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #407 [Verbose] >
00:00:15 #408 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #409 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #410 [Verbose] > │ Test: Empty │
00:00:15 #411 [Verbose] > │ │
00:00:15 #412 [Verbose] > │ Solution: 0 │
00:00:15 #413 [Verbose] > │ Test case 1. A. Time: 61L │
00:00:15 #414 [Verbose] > │ │
00:00:15 #415 [Verbose] > │ Solution: 2 │
00:00:15 #416 [Verbose] > │ Test case 1. A. Time: 62L │
00:00:15 #417 [Verbose] > │ │
00:00:15 #418 [Verbose] > │ Solution: 5 │
00:00:15 #419 [Verbose] > │ Test case 1. A. Time: 70L │
00:00:15 #420 [Verbose] > │ │
00:00:15 #421 [Verbose] > │ Input | Expected | Result | Best │
00:00:15 #422 [Verbose] > │ --- | --- | --- | --- │
00:00:15 #423 [Verbose] > │ 0 | 0 | 0 | (1, 61) │
00:00:15 #424 [Verbose] > │ 2 | 2 | 2 | (1, 62) │
00:00:15 #425 [Verbose] > │ 5 | 5 | 5 | (1, 70) │
00:00:15 #426 [Verbose] > │ │
00:00:15 #427 [Verbose] > │ Averages │
00:00:15 #428 [Verbose] > │ Test case 1. Average Time: 64L │
00:00:15 #429 [Verbose] > │ │
00:00:15 #430 [Verbose] > │ Ranking │
00:00:15 #431 [Verbose] > │ Test case 1. Average Time: 64L │
00:00:15 #432 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #433 [Verbose] >
00:00:15 #434 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:15 #435 [Verbose] > //// test
00:00:15 #436 [Verbose] >
00:00:15 #437 [Verbose] > let solutions = [[
00:00:15 #438 [Verbose] > "A",
00:00:15 #439 [Verbose] > fun n ->
00:00:15 #440 [Verbose] > n + 0
00:00:15 #441 [Verbose] > ]]
00:00:15 #442 [Verbose] > let testCases = seq {
00:00:15 #443 [Verbose] > 0, 0
00:00:15 #444 [Verbose] > 2, 2
00:00:15 #445 [Verbose] > 5, 5
00:00:15 #446 [Verbose] > }
00:00:15 #447 [Verbose] > let rec emptyTests = runAll (nameof emptyTests) _count solutions testCases
00:00:15 #448 [Verbose] > emptyTests
00:00:15 #449 [Verbose] > |> sortResultList
00:00:15 #450 [Verbose] >
00:00:15 #451 [Verbose] > ╭─[ 410.02ms - stdout ]────────────────────────────────────────────────────────╮
00:00:15 #452 [Verbose] > │ │
00:00:15 #453 [Verbose] > │ │
00:00:15 #454 [Verbose] > │ Test: emptyTests │
00:00:15 #455 [Verbose] > │ │
00:00:15 #456 [Verbose] > │ Solution: 0 │
00:00:15 #457 [Verbose] > │ Test case 1. A. Time: 2L │
00:00:15 #458 [Verbose] > │ │
00:00:15 #459 [Verbose] > │ Solution: 2 │
00:00:15 #460 [Verbose] > │ Test case 1. A. Time: 0L │
00:00:15 #461 [Verbose] > │ │
00:00:15 #462 [Verbose] > │ Solution: 5 │
00:00:15 #463 [Verbose] > │ Test case 1. A. Time: 0L │
00:00:15 #464 [Verbose] > │ │
00:00:15 #465 [Verbose] > │ Input | Expected | Result | Best │
00:00:15 #466 [Verbose] > │ --- | --- | --- | --- │
00:00:15 #467 [Verbose] > │ 0 | 0 | 0 | (1, 2) │
00:00:15 #468 [Verbose] > │ 2 | 2 | 2 | (1, 0) │
00:00:15 #469 [Verbose] > │ 5 | 5 | 5 | (1, 0) │
00:00:15 #470 [Verbose] > │ │
00:00:15 #471 [Verbose] > │ Average Ranking │
00:00:15 #472 [Verbose] > │ Test case 1. Average Time: 0L │
00:00:15 #473 [Verbose] > │ │
00:00:15 #474 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #475 [Verbose] >
00:00:15 #476 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #477 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #478 [Verbose] > │ ## uniqueLettersTests │
00:00:15 #479 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #480 [Verbose] >
00:00:15 #481 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:15 #482 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:15 #483 [Verbose] > │ Test: UniqueLetters │
00:00:15 #484 [Verbose] > │ │
00:00:15 #485 [Verbose] > │ Solution: abc │
00:00:15 #486 [Verbose] > │ Test case 1. A. Time: 1512L │
00:00:15 #487 [Verbose] > │ Test case 2. B. Time: 1947L │
00:00:15 #488 [Verbose] > │ Test case 3. C. Time: 2023L │
00:00:15 #489 [Verbose] > │ Test case 4. D. Time: 1358L │
00:00:15 #490 [Verbose] > │ Test case 5. E. Time: 1321L │
00:00:15 #491 [Verbose] > │ Test case 6. F. Time: 1346L │
00:00:15 #492 [Verbose] > │ Test case 7. G. Time: 1304L │
00:00:15 #493 [Verbose] > │ Test case 8. H. Time: 1383L │
00:00:15 #494 [Verbose] > │ Test case 9. I. Time: 1495L │
00:00:15 #495 [Verbose] > │ Test case 10. J. Time: 1245L │
00:00:15 #496 [Verbose] > │ Test case 11. K. Time: 1219L │
00:00:15 #497 [Verbose] > │ │
00:00:15 #498 [Verbose] > │ Solution: accabb │
00:00:15 #499 [Verbose] > │ Test case 1. A. Time: 1648L │
00:00:15 #500 [Verbose] > │ Test case 2. B. Time: 2061L │
00:00:15 #501 [Verbose] > │ Test case 3. C. Time: 2413L │
00:00:15 #502 [Verbose] > │ Test case 4. D. Time: 1561L │
00:00:15 #503 [Verbose] > │ Test case 5. E. Time: 1593L │
00:00:15 #504 [Verbose] > │ Test case 6. F. Time: 1518L │
00:00:15 #505 [Verbose] > │ Test case 7. G. Time: 1415L │
00:00:15 #506 [Verbose] > │ Test case 8. H. Time: 1510L │
00:00:15 #507 [Verbose] > │ Test case 9. I. Time: 1445L │
00:00:15 #508 [Verbose] > │ Test case 10. J. Time: 1636L │
00:00:15 #509 [Verbose] > │ Test case 11. K. Time: 1317L │
00:00:15 #510 [Verbose] > │ │
00:00:15 #511 [Verbose] > │ Solution: pprrqqpp │
00:00:15 #512 [Verbose] > │ Test case 1. A. Time: 2255L │
00:00:15 #513 [Verbose] > │ Test case 2. B. Time: 2408L │
00:00:15 #514 [Verbose] > │ Test case 3. C. Time: 2393L │
00:00:15 #515 [Verbose] > │ Test case 4. D. Time: 1675L │
00:00:15 #516 [Verbose] > │ Test case 5. E. Time: 1911L │
00:00:15 #517 [Verbose] > │ Test case 6. F. Time: 2126L │
00:00:15 #518 [Verbose] > │ Test case 7. G. Time: 1504L │
00:00:15 #519 [Verbose] > │ Test case 8. H. Time: 1715L │
00:00:15 #520 [Verbose] > │ Test case 9. I. Time: 1537L │
00:00:15 #521 [Verbose] > │ Test case 10. J. Time: 1522L │
00:00:15 #522 [Verbose] > │ Test case 11. K. Time: 1322L │
00:00:15 #523 [Verbose] > │ │
00:00:15 #524 [Verbose] > │ Solution: │
00:00:15 #525 [Verbose] > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:15 #526 [Verbose] > │ bbb │
00:00:15 #527 [Verbose] > │ Test case 1. A. Time: 13073L │
00:00:15 #528 [Verbose] > │ Test case 2. B. Time: 11519L │
00:00:15 #529 [Verbose] > │ Test case 3. C. Time: 8373L │
00:00:15 #530 [Verbose] > │ Test case 4. D. Time: 5860L │
00:00:15 #531 [Verbose] > │ Test case 5. E. Time: 6490L │
00:00:15 #532 [Verbose] > │ Test case 6. F. Time: 6325L │
00:00:15 #533 [Verbose] > │ Test case 7. G. Time: 5799L │
00:00:15 #534 [Verbose] > │ Test case 8. H. Time: 7099L │
00:00:15 #535 [Verbose] > │ Test case 9. I. Time: 6133L │
00:00:15 #536 [Verbose] > │ Test case 10. J. Time: 5993L │
00:00:15 #537 [Verbose] > │ Test case 11. K. Time: 2040L │
00:00:15 #538 [Verbose] > │ │
00:00:15 #539 [Verbose] > │ Input │
00:00:15 #540 [Verbose] > │ | Expected | Result | Best │
00:00:15 #541 [Verbose] > │ --- │
00:00:15 #542 [Verbose] > │ │
00:00:15 #543 [Verbose] > │ | --- | --- | --- │
00:00:15 #544 [Verbose] > │ abc │
00:00:15 #545 [Verbose] > │ │
00:00:15 #546 [Verbose] > │ | abc | abc | (11, 1219) │
00:00:15 #547 [Verbose] > │ accabb │
00:00:15 #548 [Verbose] > │ | acb | acb | (11, 1317) │
00:00:15 #549 [Verbose] > │ pprrqqpp │
00:00:15 #550 [Verbose] > │ | prq | prq | (11, 1322) │
00:00:15 #551 [Verbose] > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:15 #552 [Verbose] > │ bbb | acb | acb | (11, 2040) │
00:00:15 #553 [Verbose] > │ │
00:00:15 #554 [Verbose] > │ Averages │
00:00:15 #555 [Verbose] > │ Test case 1. Average Time: 4622L │
00:00:15 #556 [Verbose] > │ Test case 2. Average Time: 4483L │
00:00:15 #557 [Verbose] > │ Test case 3. Average Time: 3800L │
00:00:15 #558 [Verbose] > │ Test case 4. Average Time: 2613L │
00:00:15 #559 [Verbose] > │ Test case 5. Average Time: 2828L │
00:00:15 #560 [Verbose] > │ Test case 6. Average Time: 2828L │
00:00:15 #561 [Verbose] > │ Test case 7. Average Time: 2505L │
00:00:15 #562 [Verbose] > │ Test case 8. Average Time: 2926L │
00:00:15 #563 [Verbose] > │ Test case 9. Average Time: 2652L │
00:00:15 #564 [Verbose] > │ Test case 10. Average Time: 2599L │
00:00:15 #565 [Verbose] > │ Test case 11. Average Time: 1474L │
00:00:15 #566 [Verbose] > │ │
00:00:15 #567 [Verbose] > │ Ranking │
00:00:15 #568 [Verbose] > │ Test case 1. Average Time: 4622L │
00:00:15 #569 [Verbose] > │ Test case 2. Average Time: 4483L │
00:00:15 #570 [Verbose] > │ Test case 3. Average Time: 3800L │
00:00:15 #571 [Verbose] > │ Test case 8. Average Time: 2926L │
00:00:15 #572 [Verbose] > │ Test case 5. Average Time: 2828L │
00:00:15 #573 [Verbose] > │ Test case 6. Average Time: 2828L │
00:00:15 #574 [Verbose] > │ Test case 9. Average Time: 2652L │
00:00:15 #575 [Verbose] > │ Test case 4. Average Time: 2613L │
00:00:15 #576 [Verbose] > │ Test case 10. Average Time: 2599L │
00:00:15 #577 [Verbose] > │ Test case 7. Average Time: 2505L │
00:00:15 #578 [Verbose] > │ Test case 11. Average Time: 1474L │
00:00:15 #579 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:15 #580 [Verbose] >
00:00:15 #581 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:15 #582 [Verbose] > //// test
00:00:15 #583 [Verbose] >
00:00:15 #584 [Verbose] > let solutions = [[
00:00:15 #585 [Verbose] > "A",
00:00:15 #586 [Verbose] > fun input ->
00:00:15 #587 [Verbose] > input
00:00:15 #588 [Verbose] > |> Seq.toList
00:00:15 #589 [Verbose] > |> List.fold (fun acc x -> if List.contains x acc then acc else acc @ [[
00:00:15 #590 [Verbose] > x ]]) [[]]
00:00:15 #591 [Verbose] > |> Seq.toArray
00:00:15 #592 [Verbose] > |> String
00:00:15 #593 [Verbose] >
00:00:15 #594 [Verbose] > "B",
00:00:15 #595 [Verbose] > fun input ->
00:00:15 #596 [Verbose] > input
00:00:15 #597 [Verbose] > |> Seq.rev
00:00:15 #598 [Verbose] > |> fun list -> Seq.foldBack (fun x acc -> if List.contains x acc then
00:00:15 #599 [Verbose] > acc else x :: acc) list [[]]
00:00:15 #600 [Verbose] > |> Seq.rev
00:00:15 #601 [Verbose] > |> Seq.toArray
00:00:15 #602 [Verbose] > |> String
00:00:15 #603 [Verbose] >
00:00:15 #604 [Verbose] > "C",
00:00:15 #605 [Verbose] > fun input ->
00:00:15 #606 [Verbose] > input
00:00:15 #607 [Verbose] > |> Seq.rev
00:00:15 #608 [Verbose] > |> fun list -> Seq.foldBack (fun x (set, acc) -> if Set.contains x set
00:00:15 #609 [Verbose] > then set, acc else set.Add x, x :: acc) list (Set.empty, [[]])
00:00:15 #610 [Verbose] > |> snd
00:00:15 #611 [Verbose] > |> Seq.rev
00:00:15 #612 [Verbose] > |> Seq.toArray
00:00:15 #613 [Verbose] > |> String
00:00:15 #614 [Verbose] >
00:00:15 #615 [Verbose] > "D",
00:00:15 #616 [Verbose] > fun input ->
00:00:15 #617 [Verbose] > input
00:00:15 #618 [Verbose] > |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:15 #619 [Verbose] > else set.Add x, Array.append acc [[| x |]]) (Set.empty, [[||]])
00:00:15 #620 [Verbose] > |> snd
00:00:15 #621 [Verbose] > |> String
00:00:15 #622 [Verbose] >
00:00:15 #623 [Verbose] > "E",
00:00:15 #624 [Verbose] > fun input ->
00:00:15 #625 [Verbose] > input
00:00:15 #626 [Verbose] > |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:15 #627 [Verbose] > else set.Add x, x :: acc) (Set.empty, [[]])
00:00:15 #628 [Verbose] > |> snd
00:00:15 #629 [Verbose] > |> List.rev
00:00:15 #630 [Verbose] > |> List.toArray
00:00:15 #631 [Verbose] > |> String
00:00:15 #632 [Verbose] >
00:00:15 #633 [Verbose] > "F",
00:00:15 #634 [Verbose] > fun input ->
00:00:15 #635 [Verbose] > input
00:00:15 #636 [Verbose] > |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:15 #637 [Verbose] > else set.Add x, acc @ [[ x ]]) (Set.empty, [[]])
00:00:16 #638 [Verbose] > |> snd
00:00:16 #639 [Verbose] > |> List.toArray
00:00:16 #640 [Verbose] > |> String
00:00:16 #641 [Verbose] >
00:00:16 #642 [Verbose] > "G",
00:00:16 #643 [Verbose] > fun input ->
00:00:16 #644 [Verbose] > input
00:00:16 #645 [Verbose] > |> Seq.fold (fun (set, acc) x -> if Set.contains x set then set, acc
00:00:16 #646 [Verbose] > else set.Add x, x :: acc) (Set.empty, [[]])
00:00:16 #647 [Verbose] > |> snd
00:00:16 #648 [Verbose] > |> List.toArray
00:00:16 #649 [Verbose] > |> Array.rev
00:00:16 #650 [Verbose] > |> String
00:00:16 #651 [Verbose] >
00:00:16 #652 [Verbose] > "H",
00:00:16 #653 [Verbose] > fun input ->
00:00:16 #654 [Verbose] > input
00:00:16 #655 [Verbose] > |> Seq.toList
00:00:16 #656 [Verbose] > |> fun list ->
00:00:16 #657 [Verbose] > let rec loop set = function
00:00:16 #658 [Verbose] > | head :: tail when Set.contains head set -> loop set tail
00:00:16 #659 [Verbose] > | head :: tail -> (loop (set.Add head) tail) @ [[ head ]]
00:00:16 #660 [Verbose] > | [[]] -> [[]]
00:00:16 #661 [Verbose] > loop Set.empty list
00:00:16 #662 [Verbose] > |> List.rev
00:00:16 #663 [Verbose] > |> List.toArray
00:00:16 #664 [Verbose] > |> String
00:00:16 #665 [Verbose] >
00:00:16 #666 [Verbose] > "I",
00:00:16 #667 [Verbose] > fun input ->
00:00:16 #668 [Verbose] > input
00:00:16 #669 [Verbose] > |> Seq.toList
00:00:16 #670 [Verbose] > |> fun list ->
00:00:16 #671 [Verbose] > let rec loop set = function
00:00:16 #672 [Verbose] > | head :: tail when Set.contains head set -> loop set tail
00:00:16 #673 [Verbose] > | head :: tail -> loop (set.Add head) tail |> Array.append [[|
00:00:16 #674 [Verbose] > head |]]
00:00:16 #675 [Verbose] > | [[]] -> [[||]]
00:00:16 #676 [Verbose] > loop Set.empty list
00:00:16 #677 [Verbose] > |> String
00:00:16 #678 [Verbose] >
00:00:16 #679 [Verbose] > "J",
00:00:16 #680 [Verbose] > fun input ->
00:00:16 #681 [Verbose] > input
00:00:16 #682 [Verbose] > |> Seq.toList
00:00:16 #683 [Verbose] > |> fun list ->
00:00:16 #684 [Verbose] > let rec loop set = function
00:00:16 #685 [Verbose] > | head :: tail when Set.contains head set -> loop set tail
00:00:16 #686 [Verbose] > | head :: tail -> head :: loop (set.Add head) tail
00:00:16 #687 [Verbose] > | [[]] -> [[]]
00:00:16 #688 [Verbose] > loop Set.empty list
00:00:16 #689 [Verbose] > |> List.toArray
00:00:16 #690 [Verbose] > |> String
00:00:16 #691 [Verbose] >
00:00:16 #692 [Verbose] > "K",
00:00:16 #693 [Verbose] > fun input ->
00:00:16 #694 [Verbose] > input
00:00:16 #695 [Verbose] > |> Seq.distinct
00:00:16 #696 [Verbose] > |> Seq.toArray
00:00:16 #697 [Verbose] > |> String
00:00:16 #698 [Verbose] > ]]
00:00:16 #699 [Verbose] > let testCases = seq {
00:00:16 #700 [Verbose] > "abc", "abc"
00:00:16 #701 [Verbose] > "accabb", "acb"
00:00:16 #702 [Verbose] > "pprrqqpp", "prq"
00:00:16 #703 [Verbose] >
00:00:16 #704 [Verbose] > "aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbbbbb
00:00:16 #705 [Verbose] > ", "acb"
00:00:16 #706 [Verbose] > }
00:00:16 #707 [Verbose] > let rec uniqueLettersTests = runAll (nameof uniqueLettersTests) _count solutions
00:00:16 #708 [Verbose] > testCases
00:00:16 #709 [Verbose] > uniqueLettersTests
00:00:16 #710 [Verbose] > |> sortResultList
00:00:22 #711 [Verbose] >
00:00:22 #712 [Verbose] > ╭─[ 6.51s - stdout ]───────────────────────────────────────────────────────────╮
00:00:22 #713 [Verbose] > │ │
00:00:22 #714 [Verbose] > │ │
00:00:22 #715 [Verbose] > │ Test: uniqueLettersTests │
00:00:22 #716 [Verbose] > │ │
00:00:22 #717 [Verbose] > │ Solution: abc │
00:00:22 #718 [Verbose] > │ Test case 1. A. Time: 3L │
00:00:22 #719 [Verbose] > │ Test case 2. B. Time: 5L │
00:00:22 #720 [Verbose] > │ Test case 3. C. Time: 4L │
00:00:22 #721 [Verbose] > │ Test case 4. D. Time: 1L │
00:00:22 #722 [Verbose] > │ Test case 5. E. Time: 2L │
00:00:22 #723 [Verbose] > │ Test case 6. F. Time: 1L │
00:00:22 #724 [Verbose] > │ Test case 7. G. Time: 2L │
00:00:22 #725 [Verbose] > │ Test case 8. H. Time: 3L │
00:00:22 #726 [Verbose] > │ Test case 9. I. Time: 2L │
00:00:22 #727 [Verbose] > │ Test case 10. J. Time: 2L │
00:00:22 #728 [Verbose] > │ Test case 11. K. Time: 3L │
00:00:22 #729 [Verbose] > │ │
00:00:22 #730 [Verbose] > │ Solution: accabb │
00:00:22 #731 [Verbose] > │ Test case 1. A. Time: 1L │
00:00:22 #732 [Verbose] > │ Test case 2. B. Time: 2L │
00:00:22 #733 [Verbose] > │ Test case 3. C. Time: 2L │
00:00:22 #734 [Verbose] > │ Test case 4. D. Time: 1L │
00:00:22 #735 [Verbose] > │ Test case 5. E. Time: 1L │
00:00:22 #736 [Verbose] > │ Test case 6. F. Time: 1L │
00:00:22 #737 [Verbose] > │ Test case 7. G. Time: 1L │
00:00:22 #738 [Verbose] > │ Test case 8. H. Time: 1L │
00:00:22 #739 [Verbose] > │ Test case 9. I. Time: 0L │
00:00:22 #740 [Verbose] > │ Test case 10. J. Time: 1L │
00:00:22 #741 [Verbose] > │ Test case 11. K. Time: 1L │
00:00:22 #742 [Verbose] > │ │
00:00:22 #743 [Verbose] > │ Solution: pprrqqpp │
00:00:22 #744 [Verbose] > │ Test case 1. A. Time: 1L │
00:00:22 #745 [Verbose] > │ Test case 2. B. Time: 1L │
00:00:22 #746 [Verbose] > │ Test case 3. C. Time: 1L │
00:00:22 #747 [Verbose] > │ Test case 4. D. Time: 1L │
00:00:22 #748 [Verbose] > │ Test case 5. E. Time: 0L │
00:00:22 #749 [Verbose] > │ Test case 6. F. Time: 1L │
00:00:22 #750 [Verbose] > │ Test case 7. G. Time: 1L │
00:00:22 #751 [Verbose] > │ Test case 8. H. Time: 1L │
00:00:22 #752 [Verbose] > │ Test case 9. I. Time: 0L │
00:00:22 #753 [Verbose] > │ Test case 10. J. Time: 1L │
00:00:22 #754 [Verbose] > │ Test case 11. K. Time: 0L │
00:00:22 #755 [Verbose] > │ │
00:00:22 #756 [Verbose] > │ Solution: │
00:00:22 #757 [Verbose] > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:22 #758 [Verbose] > │ bbb │
00:00:22 #759 [Verbose] > │ Test case 1. A. Time: 12L │
00:00:22 #760 [Verbose] > │ Test case 2. B. Time: 9L │
00:00:22 #761 [Verbose] > │ Test case 3. C. Time: 13L │
00:00:22 #762 [Verbose] > │ Test case 4. D. Time: 9L │
00:00:22 #763 [Verbose] > │ Test case 5. E. Time: 10L │
00:00:22 #764 [Verbose] > │ Test case 6. F. Time: 11L │
00:00:22 #765 [Verbose] > │ Test case 7. G. Time: 10L │
00:00:22 #766 [Verbose] > │ Test case 8. H. Time: 10L │
00:00:22 #767 [Verbose] > │ Test case 9. I. Time: 10L │
00:00:22 #768 [Verbose] > │ Test case 10. J. Time: 8L │
00:00:22 #769 [Verbose] > │ Test case 11. K. Time: 3L │
00:00:22 #770 [Verbose] > │ │
00:00:22 #771 [Verbose] > │ Input │
00:00:22 #772 [Verbose] > │ | Expected | Result | Best │
00:00:22 #773 [Verbose] > │ --- │
00:00:22 #774 [Verbose] > │ | --- | --- | --- │
00:00:22 #775 [Verbose] > │ abc │
00:00:22 #776 [Verbose] > │ | abc | abc | (4, 1) │
00:00:22 #777 [Verbose] > │ accabb │
00:00:22 #778 [Verbose] > │ | acb | acb | (9, 0) │
00:00:22 #779 [Verbose] > │ pprrqqpp │
00:00:22 #780 [Verbose] > │ | prq | prq | (5, 0) │
00:00:22 #781 [Verbose] > │ aaaaaaaaaaaaaaccccccabbbbbbbaaacccbbbaaccccccccccacbbbbbbbbbbbbbcccccccbbbbb │
00:00:22 #782 [Verbose] > │ bbb | acb | acb | (11, 3) │
00:00:22 #783 [Verbose] > │ │
00:00:22 #784 [Verbose] > │ Average Ranking │
00:00:22 #785 [Verbose] > │ Test case 11. Average Time: 1L │
00:00:22 #786 [Verbose] > │ Test case 4. Average Time: 3L │
00:00:22 #787 [Verbose] > │ Test case 5. Average Time: 3L │
00:00:22 #788 [Verbose] > │ Test case 6. Average Time: 3L │
00:00:22 #789 [Verbose] > │ Test case 7. Average Time: 3L │
00:00:22 #790 [Verbose] > │ Test case 8. Average Time: 3L │
00:00:22 #791 [Verbose] > │ Test case 9. Average Time: 3L │
00:00:22 #792 [Verbose] > │ Test case 10. Average Time: 3L │
00:00:22 #793 [Verbose] > │ Test case 1. Average Time: 4L │
00:00:22 #794 [Verbose] > │ Test case 2. Average Time: 4L │
00:00:22 #795 [Verbose] > │ Test case 3. Average Time: 5L │
00:00:22 #796 [Verbose] > │ │
00:00:22 #797 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #798 [Verbose] >
00:00:22 #799 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 #800 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 #801 [Verbose] > │ ## rotateStringsTests │
00:00:22 #802 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #803 [Verbose] >
00:00:22 #804 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:22 #805 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:22 #806 [Verbose] > │ https://www.hackerrank.com/challenges/rotate-string/forum │
00:00:22 #807 [Verbose] > │ │
00:00:22 #808 [Verbose] > │ Test: RotateStrings │
00:00:22 #809 [Verbose] > │ │
00:00:22 #810 [Verbose] > │ Solution: abc │
00:00:22 #811 [Verbose] > │ Test case 1. A. Time: 1842L │
00:00:22 #812 [Verbose] > │ Test case 2. B. Time: 1846L │
00:00:22 #813 [Verbose] > │ Test case 3. C. Time: 1936L │
00:00:22 #814 [Verbose] > │ Test case 4. CA. Time: 2224L │
00:00:22 #815 [Verbose] > │ Test case 5. CB. Time: 2329L │
00:00:22 #816 [Verbose] > │ Test case 6. D. Time: 2474L │
00:00:22 #817 [Verbose] > │ Test case 7. E. Time: 1664L │
00:00:22 #818 [Verbose] > │ Test case 8. F. Time: 1517L │
00:00:22 #819 [Verbose] > │ Test case 9. FA. Time: 1651L │
00:00:22 #820 [Verbose] > │ Test case 10. FB. Time: 3764L │
00:00:22 #821 [Verbose] > │ Test case 11. FC. Time: 5415L │
00:00:22 #822 [Verbose] > │ │
00:00:22 #823 [Verbose] > │ Solution: abcde │
00:00:22 #824 [Verbose] > │ Test case 1. A. Time: 3356L │
00:00:22 #825 [Verbose] > │ Test case 2. B. Time: 2592L │
00:00:22 #826 [Verbose] > │ Test case 3. C. Time: 2346L │
00:00:22 #827 [Verbose] > │ Test case 4. CA. Time: 2997L │
00:00:22 #828 [Verbose] > │ Test case 5. CB. Time: 3061L │
00:00:22 #829 [Verbose] > │ Test case 6. D. Time: 4051L │
00:00:22 #830 [Verbose] > │ Test case 7. E. Time: 1905L │
00:00:22 #831 [Verbose] > │ Test case 8. F. Time: 1771L │
00:00:22 #832 [Verbose] > │ Test case 9. FA. Time: 2175L │
00:00:22 #833 [Verbose] > │ Test case 10. FB. Time: 3275L │
00:00:22 #834 [Verbose] > │ Test case 11. FC. Time: 5266L │
00:00:22 #835 [Verbose] > │ │
00:00:22 #836 [Verbose] > │ Solution: abcdefghi │
00:00:22 #837 [Verbose] > │ Test case 1. A. Time: 4492L │
00:00:22 #838 [Verbose] > │ Test case 2. B. Time: 3526L │
00:00:22 #839 [Verbose] > │ Test case 3. C. Time: 3583L │
00:00:22 #840 [Verbose] > │ Test case 4. CA. Time: 3711L │
00:00:22 #841 [Verbose] > │ Test case 5. CB. Time: 4783L │
00:00:22 #842 [Verbose] > │ Test case 6. D. Time: 7557L │
00:00:22 #843 [Verbose] > │ Test case 7. E. Time: 3452L │
00:00:22 #844 [Verbose] > │ Test case 8. F. Time: 3050L │
00:00:22 #845 [Verbose] > │ Test case 9. FA. Time: 3275L │
00:00:22 #846 [Verbose] > │ Test case 10. FB. Time: 4635L │
00:00:22 #847 [Verbose] > │ Test case 11. FC. Time: 5616L │
00:00:22 #848 [Verbose] > │ │
00:00:22 #849 [Verbose] > │ Solution: abab │
00:00:22 #850 [Verbose] > │ Test case 1. A. Time: 2093L │
00:00:22 #851 [Verbose] > │ Test case 2. B. Time: 1843L │
00:00:22 #852 [Verbose] > │ Test case 3. C. Time: 1746L │
00:00:22 #853 [Verbose] > │ Test case 4. CA. Time: 2085L │
00:00:22 #854 [Verbose] > │ Test case 5. CB. Time: 2139L │
00:00:22 #855 [Verbose] > │ Test case 6. D. Time: 2095L │
00:00:22 #856 [Verbose] > │ Test case 7. E. Time: 1723L │
00:00:22 #857 [Verbose] > │ Test case 8. F. Time: 1558L │
00:00:22 #858 [Verbose] > │ Test case 9. FA. Time: 1620L │
00:00:22 #859 [Verbose] > │ Test case 10. FB. Time: 2319L │
00:00:22 #860 [Verbose] > │ Test case 11. FC. Time: 3918L │
00:00:22 #861 [Verbose] > │ │
00:00:22 #862 [Verbose] > │ Solution: aa │
00:00:22 #863 [Verbose] > │ Test case 1. A. Time: 1107L │
00:00:22 #864 [Verbose] > │ Test case 2. B. Time: 1241L │
00:00:22 #865 [Verbose] > │ Test case 3. C. Time: 1183L │
00:00:22 #866 [Verbose] > │ Test case 4. CA. Time: 1563L │
00:00:22 #867 [Verbose] > │ Test case 5. CB. Time: 1525L │
00:00:22 #868 [Verbose] > │ Test case 6. D. Time: 1591L │
00:00:22 #869 [Verbose] > │ Test case 7. E. Time: 1327L │
00:00:22 #870 [Verbose] > │ Test case 8. F. Time: 1151L │
00:00:22 #871 [Verbose] > │ Test case 9. FA. Time: 1180L │
00:00:22 #872 [Verbose] > │ Test case 10. FB. Time: 1733L │
00:00:22 #873 [Verbose] > │ Test case 11. FC. Time: 2817L │
00:00:22 #874 [Verbose] > │ │
00:00:22 #875 [Verbose] > │ Solution: z │
00:00:22 #876 [Verbose] > │ Test case 1. A. Time: 816L │
00:00:22 #877 [Verbose] > │ Test case 2. B. Time: 745L │
00:00:22 #878 [Verbose] > │ Test case 3. C. Time: 928L │
00:00:22 #879 [Verbose] > │ Test case 4. CA. Time: 1375L │
00:00:22 #880 [Verbose] > │ Test case 5. CB. Time: 1029L │
00:00:22 #881 [Verbose] > │ Test case 6. D. Time: 852L │
00:00:22 #882 [Verbose] > │ Test case 7. E. Time: 712L │
00:00:22 #883 [Verbose] > │ Test case 8. F. Time: 263L │
00:00:22 #884 [Verbose] > │ Test case 9. FA. Time: 232L │
00:00:22 #885 [Verbose] > │ Test case 10. FB. Time: 773L │
00:00:22 #886 [Verbose] > │ Test case 11. FC. Time: 1789L │
00:00:22 #887 [Verbose] > │ │
00:00:22 #888 [Verbose] > │ Input | Expected │
00:00:22 #889 [Verbose] > │ │
00:00:22 #890 [Verbose] > │ | Result │
00:00:22 #891 [Verbose] > │ │
00:00:22 #892 [Verbose] > │ | Best │
00:00:22 #893 [Verbose] > │ --- | --- │
00:00:22 #894 [Verbose] > │ │
00:00:22 #895 [Verbose] > │ | --- │
00:00:22 #896 [Verbose] > │ │
00:00:22 #897 [Verbose] > │ | --- │
00:00:22 #898 [Verbose] > │ abc | bca cab abc │
00:00:22 #899 [Verbose] > │ │
00:00:22 #900 [Verbose] > │ | bca cab abc │
00:00:22 #901 [Verbose] > │ │
00:00:22 #902 [Verbose] > │ | (8, 1517) │
00:00:22 #903 [Verbose] > │ abcde | bcdea cdeab deabc eabcd abcde │
00:00:22 #904 [Verbose] > │ | bcdea cdeab deabc eabcd abcde │
00:00:22 #905 [Verbose] > │ | (8, 1771) │
00:00:22 #906 [Verbose] > │ abcdefghi | bcdefghia cdefghiab defghiabc efghiabcd fghiabcde │
00:00:22 #907 [Verbose] > │ ghiabcdef hiabcdefg iabcdefgh abcdefghi | bcdefghia cdefghiab │
00:00:22 #908 [Verbose] > │ defghiabc efghiabcd fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi │
00:00:22 #909 [Verbose] > │ | (8, 3050) │
00:00:22 #910 [Verbose] > │ abab | baba abab baba abab │
00:00:22 #911 [Verbose] > │ │
00:00:22 #912 [Verbose] > │ | baba abab baba abab │
00:00:22 #913 [Verbose] > │ │
00:00:22 #914 [Verbose] > │ | (8, 1558) │
00:00:22 #915 [Verbose] > │ aa | aa aa │
00:00:22 #916 [Verbose] > │ │
00:00:22 #917 [Verbose] > │ | aa aa │
00:00:22 #918 [Verbose] > │ │
00:00:22 #919 [Verbose] > │ | (1, 1107) │
00:00:22 #920 [Verbose] > │ z | z │
00:00:22 #921 [Verbose] > │ │
00:00:22 #922 [Verbose] > │ | z │
00:00:22 #923 [Verbose] > │ │
00:00:22 #924 [Verbose] > │ | (9, 232) │
00:00:22 #925 [Verbose] > │ │
00:00:22 #926 [Verbose] > │ Averages │
00:00:22 #927 [Verbose] > │ Test case 1. Average Time: 2284L │
00:00:22 #928 [Verbose] > │ Test case 2. Average Time: 1965L │
00:00:22 #929 [Verbose] > │ Test case 3. Average Time: 1953L │
00:00:22 #930 [Verbose] > │ Test case 4. Average Time: 2325L │
00:00:22 #931 [Verbose] > │ Test case 5. Average Time: 2477L │
00:00:22 #932 [Verbose] > │ Test case 6. Average Time: 3103L │
00:00:22 #933 [Verbose] > │ Test case 7. Average Time: 1797L │
00:00:22 #934 [Verbose] > │ Test case 8. Average Time: 1551L │
00:00:22 #935 [Verbose] > │ Test case 9. Average Time: 1688L │
00:00:22 #936 [Verbose] > │ Test case 10. Average Time: 2749L │
00:00:22 #937 [Verbose] > │ Test case 11. Average Time: 4136L │
00:00:22 #938 [Verbose] > │ │
00:00:22 #939 [Verbose] > │ Ranking │
00:00:22 #940 [Verbose] > │ Test case 11. Average Time: 4136L │
00:00:22 #941 [Verbose] > │ Test case 6. Average Time: 3103L │
00:00:22 #942 [Verbose] > │ Test case 10. Average Time: 2749L │
00:00:22 #943 [Verbose] > │ Test case 5. Average Time: 2477L │
00:00:22 #944 [Verbose] > │ Test case 4. Average Time: 2325L │
00:00:22 #945 [Verbose] > │ Test case 1. Average Time: 2284L │
00:00:22 #946 [Verbose] > │ Test case 2. Average Time: 1965L │
00:00:22 #947 [Verbose] > │ Test case 3. Average Time: 1953L │
00:00:22 #948 [Verbose] > │ Test case 7. Average Time: 1797L │
00:00:22 #949 [Verbose] > │ Test case 9. Average Time: 1688L │
00:00:22 #950 [Verbose] > │ Test case 8. Average Time: 1551L │
00:00:22 #951 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:22 #952 [Verbose] >
00:00:22 #953 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:00:22 #954 [Verbose] > //// test
00:00:22 #955 [Verbose] >
00:00:22 #956 [Verbose] > let solutions = [[
00:00:22 #957 [Verbose] > "A",
00:00:22 #958 [Verbose] > fun (input: string) ->
00:00:22 #959 [Verbose] > let resultList =
00:00:22 #960 [Verbose] > List.fold (fun acc x ->
00:00:22 #961 [Verbose] > let rotate (text: string) (letter: string) = text.Substring (1,
00:00:22 #962 [Verbose] > input.Length - 1) + letter
00:00:22 #963 [Verbose] > [[ rotate (if acc.IsEmpty then input else acc.Head) (string x)
00:00:22 #964 [Verbose] > ]] @ acc
00:00:22 #965 [Verbose] > ) [[]] (Seq.toList input)
00:00:22 #966 [Verbose] >
00:00:22 #967 [Verbose] > (resultList, "")
00:00:22 #968 [Verbose] > ||> List.foldBack (fun acc x -> x + acc + " ")
00:00:22 #969 [Verbose] > |> _.TrimEnd()
00:00:22 #970 [Verbose] >
00:00:22 #971 [Verbose] > "B",
00:00:22 #972 [Verbose] > fun input ->
00:00:22 #973 [Verbose] > input
00:00:22 #974 [Verbose] > |> Seq.toList
00:00:22 #975 [Verbose] > |> List.fold (fun (acc: string list) letter ->
00:00:22 #976 [Verbose] > let last =
00:00:22 #977 [Verbose] > if acc.IsEmpty
00:00:22 #978 [Verbose] > then input
00:00:22 #979 [Verbose] > else acc.Head
00:00:22 #980 [Verbose] >
00:00:22 #981 [Verbose] > let item = last.[[1 .. input.Length - 1]] + string letter
00:00:22 #982 [Verbose] >
00:00:22 #983 [Verbose] > item :: acc
00:00:22 #984 [Verbose] > ) [[]]
00:00:22 #985 [Verbose] > |> List.rev
00:00:22 #986 [Verbose] > |> String.concat " "
00:00:22 #987 [Verbose] >
00:00:22 #988 [Verbose] > "C",
00:00:22 #989 [Verbose] > fun input ->
00:00:22 #990 [Verbose] > input
00:00:22 #991 [Verbose] > |> Seq.toList
00:00:22 #992 [Verbose] > |> List.fold (fun (acc: string list) letter -> acc.Head.[[ 1 ..
00:00:22 #993 [Verbose] > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:00:22 #994 [Verbose] > |> List.rev
00:00:22 #995 [Verbose] > |> List.skip 1
00:00:22 #996 [Verbose] > |> String.concat " "
00:00:22 #997 [Verbose] >
00:00:22 #998 [Verbose] > "CA",
00:00:22 #999 [Verbose] > fun input ->
00:00:22 #1000 [Verbose] > input
00:00:22 #1001 [Verbose] > |> Seq.fold (fun (acc: string list) letter -> acc.Head.[[ 1 ..
00:00:22 #1002 [Verbose] > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:00:22 #1003 [Verbose] > |> Seq.rev
00:00:22 #1004 [Verbose] > |> Seq.skip 1
00:00:22 #1005 [Verbose] > |> String.concat " "
00:00:22 #1006 [Verbose] >
00:00:22 #1007 [Verbose] > "CB",
00:00:22 #1008 [Verbose] > fun input ->
00:00:22 #1009 [Verbose] > input
00:00:22 #1010 [Verbose] > |> Seq.toArray
00:00:22 #1011 [Verbose] > |> Array.fold (fun (acc: string[[]]) letter -> acc |> Array.append [[|
00:00:22 #1012 [Verbose] > acc.[[0]].[[ 1 .. input.Length - 1 ]] + string letter |]]) [[| input |]]
00:00:22 #1013 [Verbose] > |> Array.rev
00:00:22 #1014 [Verbose] > |> Array.skip 1
00:00:22 #1015 [Verbose] > |> String.concat " "
00:00:22 #1016 [Verbose] >
00:00:22 #1017 [Verbose] > "D",
00:00:22 #1018 [Verbose] > fun input ->
00:00:22 #1019 [Verbose] > input
00:00:22 #1020 [Verbose] > |> Seq.toList
00:00:22 #1021 [Verbose] > |> fun list ->
00:00:22 #1022 [Verbose] > let rec loop (acc: char list list) = function
00:00:22 #1023 [Verbose] > | _ when acc.Length = list.Length -> acc
00:00:22 #1024 [Verbose] > | head :: tail ->
00:00:22 #1025 [Verbose] > let item = tail @ [[ head ]]
00:00:22 #1026 [Verbose] > loop (item :: acc) item
00:00:22 #1027 [Verbose] > | [[]] -> [[]]
00:00:22 #1028 [Verbose] > loop [[]] list
00:00:22 #1029 [Verbose] > |> List.rev
00:00:22 #1030 [Verbose] > |> List.map (List.toArray >> String)
00:00:22 #1031 [Verbose] > |> String.concat " "
00:00:22 #1032 [Verbose] >
00:00:22 #1033 [Verbose] > "E",
00:00:22 #1034 [Verbose] > fun input ->
00:00:22 #1035 [Verbose] > input
00:00:22 #1036 [Verbose] > |> Seq.toList
00:00:22 #1037 [Verbose] > |> fun list ->
00:00:22 #1038 [Verbose] > let rec loop (last: string) = function
00:00:22 #1039 [Verbose] > | head :: tail ->
00:00:22 #1040 [Verbose] > let item = last.[[1 .. input.Length - 1]] + string head
00:00:22 #1041 [Verbose] > item :: loop item tail
00:00:22 #1042 [Verbose] > | [[]] -> [[]]
00:00:22 #1043 [Verbose] > loop input list
00:00:22 #1044 [Verbose] > |> String.concat " "
00:00:22 #1045 [Verbose] >
00:00:22 #1046 [Verbose] > "F",
00:00:22 #1047 [Verbose] > fun input ->
00:00:22 #1048 [Verbose] > Array.singleton 0
00:00:22 #1049 [Verbose] > |> Array.append [[| 1 .. input.Length - 1 |]]
00:00:22 #1050 [Verbose] > |> Array.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:22 #1051 [Verbose] > |> String.concat " "
00:00:22 #1052 [Verbose] >
00:00:22 #1053 [Verbose] > "FA",
00:00:22 #1054 [Verbose] > fun input ->
00:00:22 #1055 [Verbose] > List.singleton 0
00:00:22 #1056 [Verbose] > |> List.append [[ 1 .. input.Length - 1 ]]
00:00:22 #1057 [Verbose] > |> List.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:22 #1058 [Verbose] > |> String.concat " "
00:00:22 #1059 [Verbose] >
00:00:22 #1060 [Verbose] > "FB",
00:00:22 #1061 [Verbose] > fun input ->
00:00:22 #1062 [Verbose] > Seq.singleton 0
00:00:22 #1063 [Verbose] > |> Seq.append (seq { 1 .. input.Length - 1 })
00:00:22 #1064 [Verbose] > |> Seq.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:22 #1065 [Verbose] > |> String.concat " "
00:00:22 #1066 [Verbose] >
00:00:22 #1067 [Verbose] > "FC",
00:00:22 #1068 [Verbose] > fun input ->
00:00:22 #1069 [Verbose] > Array.singleton 0
00:00:22 #1070 [Verbose] > |> Array.append [[| 1 .. input.Length - 1 |]]
00:00:22 #1071 [Verbose] > |> Array.Parallel.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:22 #1072 [Verbose] > |> String.concat " "
00:00:22 #1073 [Verbose] > ]]
00:00:22 #1074 [Verbose] > let testCases = seq {
00:00:22 #1075 [Verbose] > "abc", "bca cab abc"
00:00:22 #1076 [Verbose] > "abcde", "bcdea cdeab deabc eabcd abcde"
00:00:22 #1077 [Verbose] > "abcdefghi", "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef
00:00:22 #1078 [Verbose] > hiabcdefg iabcdefgh abcdefghi"
00:00:22 #1079 [Verbose] > "abab", "baba abab baba abab"
00:00:22 #1080 [Verbose] > "aa", "aa aa"
00:00:22 #1081 [Verbose] > "z", "z"
00:00:22 #1082 [Verbose] > }
00:00:22 #1083 [Verbose] > let rec rotateStringsTests = runAll (nameof rotateStringsTests) _count solutions
00:00:22 #1084 [Verbose] > testCases
00:00:22 #1085 [Verbose] > rotateStringsTests
00:00:22 #1086 [Verbose] > |> sortResultList
00:00:32 #1087 [Verbose] >
00:00:32 #1088 [Verbose] > ╭─[ 10.35s - stdout ]──────────────────────────────────────────────────────────╮
00:00:32 #1089 [Verbose] > │ │
00:00:32 #1090 [Verbose] > │ │
00:00:32 #1091 [Verbose] > │ Test: rotateStringsTests │
00:00:32 #1092 [Verbose] > │ │
00:00:32 #1093 [Verbose] > │ Solution: abc │
00:00:32 #1094 [Verbose] > │ Test case 1. A. Time: 3L │
00:00:32 #1095 [Verbose] > │ Test case 2. B. Time: 1L │
00:00:32 #1096 [Verbose] > │ Test case 3. C. Time: 1L │
00:00:32 #1097 [Verbose] > │ Test case 4. CA. Time: 4L │
00:00:32 #1098 [Verbose] > │ Test case 5. CB. Time: 2L │
00:00:32 #1099 [Verbose] > │ Test case 6. D. Time: 3L │
00:00:32 #1100 [Verbose] > │ Test case 7. E. Time: 1L │
00:00:32 #1101 [Verbose] > │ Test case 8. F. Time: 1L │
00:00:32 #1102 [Verbose] > │ Test case 9. FA. Time: 2L │
00:00:32 #1103 [Verbose] > │ Test case 10. FB. Time: 8L │
00:00:32 #1104 [Verbose] > │ Test case 11. FC. Time: 11L │
00:00:32 #1105 [Verbose] > │ │
00:00:32 #1106 [Verbose] > │ Solution: abcde │
00:00:32 #1107 [Verbose] > │ Test case 1. A. Time: 0L │
00:00:32 #1108 [Verbose] > │ Test case 2. B. Time: 0L │
00:00:32 #1109 [Verbose] > │ Test case 3. C. Time: 1L │
00:00:32 #1110 [Verbose] > │ Test case 4. CA. Time: 1L │
00:00:32 #1111 [Verbose] > │ Test case 5. CB. Time: 1L │
00:00:32 #1112 [Verbose] > │ Test case 6. D. Time: 4L │
00:00:32 #1113 [Verbose] > │ Test case 7. E. Time: 1L │
00:00:32 #1114 [Verbose] > │ Test case 8. F. Time: 0L │
00:00:32 #1115 [Verbose] > │ Test case 9. FA. Time: 1L │
00:00:32 #1116 [Verbose] > │ Test case 10. FB. Time: 4L │
00:00:32 #1117 [Verbose] > │ Test case 11. FC. Time: 4L │
00:00:32 #1118 [Verbose] > │ │
00:00:32 #1119 [Verbose] > │ Solution: abcdefghi │
00:00:32 #1120 [Verbose] > │ Test case 1. A. Time: 4L │
00:00:33 #1121 [Verbose] > │ Test case 2. B. Time: 3L │
00:00:33 #1122 [Verbose] > │ Test case 3. C. Time: 1L │
00:00:33 #1123 [Verbose] > │ Test case 4. CA. Time: 5L │
00:00:33 #1124 [Verbose] > │ Test case 5. CB. Time: 2L │
00:00:33 #1125 [Verbose] > │ Test case 6. D. Time: 6L │
00:00:33 #1126 [Verbose] > │ Test case 7. E. Time: 1L │
00:00:33 #1127 [Verbose] > │ Test case 8. F. Time: 1L │
00:00:33 #1128 [Verbose] > │ Test case 9. FA. Time: 4L │
00:00:33 #1129 [Verbose] > │ Test case 10. FB. Time: 3L │
00:00:33 #1130 [Verbose] > │ Test case 11. FC. Time: 7L │
00:00:33 #1131 [Verbose] > │ │
00:00:33 #1132 [Verbose] > │ Solution: abab │
00:00:33 #1133 [Verbose] > │ Test case 1. A. Time: 0L │
00:00:33 #1134 [Verbose] > │ Test case 2. B. Time: 1L │
00:00:33 #1135 [Verbose] > │ Test case 3. C. Time: 1L │
00:00:33 #1136 [Verbose] > │ Test case 4. CA. Time: 1L │
00:00:33 #1137 [Verbose] > │ Test case 5. CB. Time: 2L │
00:00:33 #1138 [Verbose] > │ Test case 6. D. Time: 2L │
00:00:33 #1139 [Verbose] > │ Test case 7. E. Time: 0L │
00:00:33 #1140 [Verbose] > │ Test case 8. F. Time: 1L │
00:00:33 #1141 [Verbose] > │ Test case 9. FA. Time: 1L │
00:00:33 #1142 [Verbose] > │ Test case 10. FB. Time: 1L │
00:00:33 #1143 [Verbose] > │ Test case 11. FC. Time: 5L │
00:00:33 #1144 [Verbose] > │ │
00:00:33 #1145 [Verbose] > │ Solution: aa │
00:00:33 #1146 [Verbose] > │ Test case 1. A. Time: 0L │
00:00:33 #1147 [Verbose] > │ Test case 2. B. Time: 0L │
00:00:33 #1148 [Verbose] > │ Test case 3. C. Time: 0L │
00:00:33 #1149 [Verbose] > │ Test case 4. CA. Time: 0L │
00:00:33 #1150 [Verbose] > │ Test case 5. CB. Time: 1L │
00:00:33 #1151 [Verbose] > │ Test case 6. D. Time: 1L │
00:00:33 #1152 [Verbose] > │ Test case 7. E. Time: 0L │
00:00:33 #1153 [Verbose] > │ Test case 8. F. Time: 0L │
00:00:33 #1154 [Verbose] > │ Test case 9. FA. Time: 1L │
00:00:33 #1155 [Verbose] > │ Test case 10. FB. Time: 1L │
00:00:33 #1156 [Verbose] > │ Test case 11. FC. Time: 6L │
00:00:33 #1157 [Verbose] > │ │
00:00:33 #1158 [Verbose] > │ Solution: z │
00:00:33 #1159 [Verbose] > │ Test case 1. A. Time: 0L │
00:00:33 #1160 [Verbose] > │ Test case 2. B. Time: 0L │
00:00:33 #1161 [Verbose] > │ Test case 3. C. Time: 0L │
00:00:33 #1162 [Verbose] > │ Test case 4. CA. Time: 2L │
00:00:33 #1163 [Verbose] > │ Test case 5. CB. Time: 2L │
00:00:33 #1164 [Verbose] > │ Test case 6. D. Time: 0L │
00:00:33 #1165 [Verbose] > │ Test case 7. E. Time: 1L │
00:00:33 #1166 [Verbose] > │ Test case 8. F. Time: 0L │
00:00:33 #1167 [Verbose] > │ Test case 9. FA. Time: 3L │
00:00:33 #1168 [Verbose] > │ Test case 10. FB. Time: 1L │
00:00:33 #1169 [Verbose] > │ Test case 11. FC. Time: 4L │
00:00:33 #1170 [Verbose] > │ │
00:00:33 #1171 [Verbose] > │ Input | Expected │
00:00:33 #1172 [Verbose] > │ │
00:00:33 #1173 [Verbose] > │ | Result │
00:00:33 #1174 [Verbose] > │ │
00:00:33 #1175 [Verbose] > │ | Best │
00:00:33 #1176 [Verbose] > │ --- | --- │
00:00:33 #1177 [Verbose] > │ │
00:00:33 #1178 [Verbose] > │ | --- │
00:00:33 #1179 [Verbose] > │ │
00:00:33 #1180 [Verbose] > │ | --- │
00:00:33 #1181 [Verbose] > │ abc | bca cab abc │
00:00:33 #1182 [Verbose] > │ │
00:00:33 #1183 [Verbose] > │ | bca cab abc │
00:00:33 #1184 [Verbose] > │ │
00:00:33 #1185 [Verbose] > │ | (2, 1) │
00:00:33 #1186 [Verbose] > │ abcde | bcdea cdeab deabc eabcd abcde │
00:00:33 #1187 [Verbose] > │ | bcdea cdeab deabc eabcd abcde │
00:00:33 #1188 [Verbose] > │ | (1, 0) │
00:00:33 #1189 [Verbose] > │ abcdefghi | bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef │
00:00:33 #1190 [Verbose] > │ hiabcdefg iabcdefgh abcdefghi | bcdefghia cdefghiab defghiabc efghiabcd │
00:00:33 #1191 [Verbose] > │ fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi | (3, 1) │
00:00:33 #1192 [Verbose] > │ abab | baba abab baba abab │
00:00:33 #1193 [Verbose] > │ | baba abab baba abab │
00:00:33 #1194 [Verbose] > │ | (1, 0) │
00:00:33 #1195 [Verbose] > │ aa | aa aa │
00:00:33 #1196 [Verbose] > │ │
00:00:33 #1197 [Verbose] > │ | aa aa │
00:00:33 #1198 [Verbose] > │ │
00:00:33 #1199 [Verbose] > │ | (1, 0) │
00:00:33 #1200 [Verbose] > │ z | z │
00:00:33 #1201 [Verbose] > │ │
00:00:33 #1202 [Verbose] > │ | z │
00:00:33 #1203 [Verbose] > │ │
00:00:33 #1204 [Verbose] > │ | (1, 0) │
00:00:33 #1205 [Verbose] > │ │
00:00:33 #1206 [Verbose] > │ Average Ranking │
00:00:33 #1207 [Verbose] > │ Test case 2. Average Time: 0L │
00:00:33 #1208 [Verbose] > │ Test case 3. Average Time: 0L │
00:00:33 #1209 [Verbose] > │ Test case 7. Average Time: 0L │
00:00:33 #1210 [Verbose] > │ Test case 8. Average Time: 0L │
00:00:33 #1211 [Verbose] > │ Test case 1. Average Time: 1L │
00:00:33 #1212 [Verbose] > │ Test case 5. Average Time: 1L │
00:00:33 #1213 [Verbose] > │ Test case 4. Average Time: 2L │
00:00:33 #1214 [Verbose] > │ Test case 6. Average Time: 2L │
00:00:33 #1215 [Verbose] > │ Test case 9. Average Time: 2L │
00:00:33 #1216 [Verbose] > │ Test case 10. Average Time: 3L │
00:00:33 #1217 [Verbose] > │ Test case 11. Average Time: 6L │
00:00:33 #1218 [Verbose] > │ │
00:00:33 #1219 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 #1220 [Verbose] >
00:00:33 #1221 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:00:33 #1222 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:00:33 #1223 [Verbose] > │ ## rotate_strings_tests │
00:00:33 #1224 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:00:33 #1225 [Verbose] >
00:00:33 #1226 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:00:33 #1227 [Verbose] > // // test
00:00:33 #1228 [Verbose] > // // timeout=60000
00:00:33 #1229 [Verbose] > // // print_code=true
00:00:33 #1230 [Verbose] >
00:00:33 #1231 [Verbose] > inl get_solutions () =
00:00:33 #1232 [Verbose] > [[
00:00:33 #1233 [Verbose] > // "A",
00:00:33 #1234 [Verbose] > // fun (input : string) =>
00:00:33 #1235 [Verbose] > // let resultList =
00:00:33 #1236 [Verbose] > // List.fold (fun acc x =>
00:00:33 #1237 [Verbose] > // let rotate (text : string) (letter : string) =
00:00:33 #1238 [Verbose] > text.Substring (1, input.Length - 1) + letter
00:00:33 #1239 [Verbose] > // [[ rotate (if acc.IsEmpty then input else acc.Head)
00:00:33 #1240 [Verbose] > (string x) ]] /@ acc
00:00:33 #1241 [Verbose] > // ) [[]] (Seq.toList input)
00:00:33 #1242 [Verbose] >
00:00:33 #1243 [Verbose] > // List.foldBack (fun acc x => x + acc + " ") resultList ""
00:00:33 #1244 [Verbose] > // |> fun x => x.TrimEnd ()
00:00:33 #1245 [Verbose] >
00:00:33 #1246 [Verbose] > // "B",
00:00:33 #1247 [Verbose] > // fun input =>
00:00:33 #1248 [Verbose] > // input
00:00:33 #1249 [Verbose] > // |> Seq.toList
00:00:33 #1250 [Verbose] > // |> List.fold (fun (acc : string list) letter =>
00:00:33 #1251 [Verbose] > // let last =
00:00:33 #1252 [Verbose] > // if acc.IsEmpty
00:00:33 #1253 [Verbose] > // then input
00:00:33 #1254 [Verbose] > // else acc.Head
00:00:33 #1255 [Verbose] >
00:00:33 #1256 [Verbose] > // let item = last.[[1 .. input.Length - 1]] + string letter
00:00:33 #1257 [Verbose] >
00:00:33 #1258 [Verbose] > // item :: acc
00:00:33 #1259 [Verbose] > // ) [[]]
00:00:33 #1260 [Verbose] > // |> List.rev
00:00:33 #1261 [Verbose] > // |> String.concat " "
00:00:33 #1262 [Verbose] >
00:00:33 #1263 [Verbose] > // "C",
00:00:33 #1264 [Verbose] > // fun input =>
00:00:33 #1265 [Verbose] > // input
00:00:33 #1266 [Verbose] > // |> Seq.toList
00:00:33 #1267 [Verbose] > // |> List.fold (fun (acc : list string) letter => acc.Head.[[ 1 ..
00:00:33 #1268 [Verbose] > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:00:33 #1269 [Verbose] > // |> List.rev
00:00:33 #1270 [Verbose] > // |> List.skip 1
00:00:33 #1271 [Verbose] > // |> String.concat " "
00:00:33 #1272 [Verbose] >
00:00:33 #1273 [Verbose] > // "CA",
00:00:33 #1274 [Verbose] > // fun input =>
00:00:33 #1275 [Verbose] > // input
00:00:33 #1276 [Verbose] > // |> Seq.fold (fun (acc : list string) letter => acc.Head.[[ 1 ..
00:00:33 #1277 [Verbose] > input.Length - 1 ]] + string letter :: acc) [[ input ]]
00:00:33 #1278 [Verbose] > // |> Seq.rev
00:00:33 #1279 [Verbose] > // |> Seq.skip 1
00:00:33 #1280 [Verbose] > // |> String.concat " "
00:00:33 #1281 [Verbose] >
00:00:33 #1282 [Verbose] > // "CB",
00:00:33 #1283 [Verbose] > // fun input =>
00:00:33 #1284 [Verbose] > // input
00:00:33 #1285 [Verbose] > // |> Seq.toArray
00:00:33 #1286 [Verbose] > // |> Array.fold (fun (acc : a _ string) letter => acc |>
00:00:33 #1287 [Verbose] > Array.append (a ;[[ acc.[[0]].[[ 1 .. input.Length - 1 ]] + string letter ]]))
00:00:33 #1288 [Verbose] > (a ;[[ input ]])
00:00:33 #1289 [Verbose] > // |> Array.rev
00:00:33 #1290 [Verbose] > // |> Array.skip 1
00:00:33 #1291 [Verbose] > // |> String.concat " "
00:00:33 #1292 [Verbose] >
00:00:33 #1293 [Verbose] > // "D",
00:00:33 #1294 [Verbose] > // fun input =>
00:00:33 #1295 [Verbose] > // input
00:00:33 #1296 [Verbose] > // |> Seq.toList
00:00:33 #1297 [Verbose] > // |> fun list =>
00:00:33 #1298 [Verbose] > // let rec loop (acc : list (list char)) = function
00:00:33 #1299 [Verbose] > // | _ when acc.Length = list.Length => acc
00:00:33 #1300 [Verbose] > // | head :: tail =>
00:00:33 #1301 [Verbose] > // let item = tail /@ [[ head ]]
00:00:33 #1302 [Verbose] > // loop (item :: acc) item
00:00:33 #1303 [Verbose] > // | [[]] => [[]]
00:00:33 #1304 [Verbose] > // loop [[]] list
00:00:33 #1305 [Verbose] > // |> List.rev
00:00:33 #1306 [Verbose] > // |> List.map (List.toArray >> String)
00:00:33 #1307 [Verbose] > // |> String.concat " "
00:00:33 #1308 [Verbose] >
00:00:33 #1309 [Verbose] > // "E",
00:00:33 #1310 [Verbose] > // fun input =>
00:00:33 #1311 [Verbose] > // input
00:00:33 #1312 [Verbose] > // |> Seq.toList
00:00:33 #1313 [Verbose] > // |> fun list =>
00:00:33 #1314 [Verbose] > // let rec loop (last : string) = function
00:00:33 #1315 [Verbose] > // | head :: tail =>
00:00:33 #1316 [Verbose] > // let item = last.[[1 .. input.Length - 1]] + string
00:00:33 #1317 [Verbose] > head
00:00:33 #1318 [Verbose] > // item :: loop item tail
00:00:33 #1319 [Verbose] > // | [[]] => [[]]
00:00:33 #1320 [Verbose] > // loop input list
00:00:33 #1321 [Verbose] > // |> String.concat " "
00:00:33 #1322 [Verbose] >
00:00:33 #1323 [Verbose] > "F",
00:00:33 #1324 [Verbose] > fun input =>
00:00:33 #1325 [Verbose] > // Array.singleton 0
00:00:33 #1326 [Verbose] > // |> Array.append [[| 1 .. input.Length - 1 |]]
00:00:33 #1327 [Verbose] > // |> Array.map (fun i -> input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:33 #1328 [Verbose] > // |> String.concat " "
00:00:33 #1329 [Verbose] > inl input_length = input |> sm.length
00:00:33 #1330 [Verbose] > am.singleton 0i32
00:00:33 #1331 [Verbose] > |> am.append (am'.init_series 1 (input_length - 1) 1)
00:00:33 #1332 [Verbose] > |> am.map (fun i =>
00:00:33 #1333 [Verbose] > inl a = sm.slice input { from = i; to = input_length - 1 } :
00:00:33 #1334 [Verbose] > string
00:00:33 #1335 [Verbose] > inl b = sm.slice input { from = 0; to = i - 1 } : string
00:00:33 #1336 [Verbose] > $"!a + !b" : string
00:00:33 #1337 [Verbose] > )
00:00:33 #1338 [Verbose] > |> sm'.concat " "
00:00:33 #1339 [Verbose] >
00:00:33 #1340 [Verbose] > "FA",
00:00:33 #1341 [Verbose] > fun input =>
00:00:33 #1342 [Verbose] > // List.singleton 0
00:00:33 #1343 [Verbose] > // |> List.append [[ 1 .. input.Length - 1 ]]
00:00:33 #1344 [Verbose] > // // |> List.map (fun i => input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:33 #1345 [Verbose] > // |> String.concat " "
00:00:33 #1346 [Verbose] > inl input_length = input |> sm.length
00:00:33 #1347 [Verbose] > listm.singleton 0i32
00:00:33 #1348 [Verbose] > |> listm.append (listm'.init_series 1 (input_length - 1) 1)
00:00:33 #1349 [Verbose] > |> listm.map (fun i =>
00:00:33 #1350 [Verbose] > inl a = sm.slice input { from = i; to = input_length - 1 } :
00:00:33 #1351 [Verbose] > string
00:00:33 #1352 [Verbose] > inl b = if i = 0 then "" else sm.slice input { from = 0; to = i
00:00:33 #1353 [Verbose] > - 1 } : string
00:00:33 #1354 [Verbose] > $"!a + !b" : string
00:00:33 #1355 [Verbose] > )
00:00:33 #1356 [Verbose] > |> listm.toArray
00:00:33 #1357 [Verbose] > |> fun x => x : a i32 _
00:00:33 #1358 [Verbose] > |> sm'.concat " "
00:00:33 #1359 [Verbose] >
00:00:33 #1360 [Verbose] > // "FB",
00:00:33 #1361 [Verbose] > // fun input =>
00:00:33 #1362 [Verbose] > // Seq.singleton 0
00:00:33 #1363 [Verbose] > // // |> Seq.append (seq { 1 .. input.Length - 1 })
00:00:33 #1364 [Verbose] > // // |> Seq.map (fun i => input.[[ i .. ]] + input.[[ .. i - 1 ]])
00:00:33 #1365 [Verbose] > // |> String.concat " "
00:00:33 #1366 [Verbose] >
00:00:33 #1367 [Verbose] > // "FC",
00:00:33 #1368 [Verbose] > // fun input =>
00:00:33 #1369 [Verbose] > // Array.singleton 0
00:00:33 #1370 [Verbose] > // |> Array.append (a ;[[ 1 .. input.Length - 1 ]])
00:00:33 #1371 [Verbose] > // // |> Array.Parallel.map (fun i => input.[[ i .. ]] + input.[[ ..
00:00:33 #1372 [Verbose] > i - 1 ]])
00:00:33 #1373 [Verbose] > // |> String.concat " "
00:00:33 #1374 [Verbose] > ]]
00:00:33 #1375 [Verbose] >
00:00:33 #1376 [Verbose] > inl rec rotate_strings_tests () =
00:00:33 #1377 [Verbose] > inl test_cases = [[
00:00:33 #1378 [Verbose] > "abc", "bca cab abc"
00:00:33 #1379 [Verbose] > "abcde", "bcdea cdeab deabc eabcd abcde"
00:00:33 #1380 [Verbose] > "abcdefghi", "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde
00:00:33 #1381 [Verbose] > ghiabcdef hiabcdefg iabcdefgh abcdefghi"
00:00:33 #1382 [Verbose] > "abab", "baba abab baba abab"
00:00:33 #1383 [Verbose] > "aa", "aa aa"
00:00:33 #1384 [Verbose] > "z", "z"
00:00:33 #1385 [Verbose] > ]]
00:00:33 #1386 [Verbose] >
00:00:33 #1387 [Verbose] > inl solutions = get_solutions ()
00:00:33 #1388 [Verbose] >
00:00:33 #1389 [Verbose] > // inl is_fast () = true
00:00:33 #1390 [Verbose] >
00:00:33 #1391 [Verbose] > inl count =
00:00:33 #1392 [Verbose] > if is_fast ()
00:00:33 #1393 [Verbose] > then 1000i32
00:00:33 #1394 [Verbose] > else 2000000i32
00:00:33 #1395 [Verbose] >
00:00:33 #1396 [Verbose] > run_all (nameof rotate_strings_tests) count solutions test_cases
00:00:33 #1397 [Verbose] > |> sort_result_list
00:00:33 #1398 [Verbose] >
00:00:33 #1399 [Verbose] > rotate_strings_tests ()
00:00:33 #1400 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0055-1753-5324-519e0f32967d\main.spi
00:01:01 #1401 [Verbose] >
00:01:01 #1402 [Verbose] > ╭─[ 28.41s - stdout ]──────────────────────────────────────────────────────────╮
00:01:01 #1403 [Verbose] > │ type UH0 = │
00:01:01 #1404 [Verbose] > │ | UH0_0 of string * string * UH0 │
00:01:01 #1405 [Verbose] > │ | UH0_1 │
00:01:01 #1406 [Verbose] > │ and Mut0 = {mutable l0 : uint64} │
00:01:01 #1407 [Verbose] > │ and Mut1 = {mutable l0 : int32} │
00:01:01 #1408 [Verbose] > │ and UH1 = │
00:01:01 #1409 [Verbose] > │ | UH1_0 of int32 * UH1 │
00:01:01 #1410 [Verbose] > │ | UH1_1 │
00:01:01 #1411 [Verbose] > │ and UH2 = │
00:01:01 #1412 [Verbose] > │ | UH2_0 of string * UH2 │
00:01:01 #1413 [Verbose] > │ | UH2_1 │
00:01:01 #1414 [Verbose] > │ and UH3 = │
00:01:01 #1415 [Verbose] > │ | UH3_0 of int32 * string * (string -> string) * UH3 │
00:01:01 #1416 [Verbose] > │ | UH3_1 │
00:01:01 #1417 [Verbose] > │ and [<Struct>] US0 = │
00:01:01 #1418 [Verbose] > │ | US0_0 │
00:01:01 #1419 [Verbose] > │ | US0_1 of f1_0 : System.ConsoleColor │
00:01:01 #1420 [Verbose] > │ and UH4 = │
00:01:01 #1421 [Verbose] > │ | UH4_0 of int64 * int64 * UH4 │
00:01:01 #1422 [Verbose] > │ | UH4_1 │
00:01:01 #1423 [Verbose] > │ and Mut2 = {mutable l0 : uint64; mutable l1 : UH4; mutable l2 : int64} │
00:01:01 #1424 [Verbose] > │ and UH5 = │
00:01:01 #1425 [Verbose] > │ | UH5_0 of UH2 * US0 * UH5 │
00:01:01 #1426 [Verbose] > │ | UH5_1 │
00:01:01 #1427 [Verbose] > │ and [<Struct>] US1 = │
00:01:01 #1428 [Verbose] > │ | US1_0 │
00:01:01 #1429 [Verbose] > │ | US1_1 of f1_0 : int64 │
00:01:01 #1430 [Verbose] > │ and UH6 = │
00:01:01 #1431 [Verbose] > │ | UH6_0 of int32 * int64 * UH6 │
00:01:01 #1432 [Verbose] > │ | UH6_1 │
00:01:01 #1433 [Verbose] > │ and Mut3 = {mutable l0 : uint64; mutable l1 : UH6; mutable l2 : int32} │
00:01:01 #1434 [Verbose] > │ and UH7 = │
00:01:01 #1435 [Verbose] > │ | UH7_0 of int32 * string * UH7 │
00:01:01 #1436 [Verbose] > │ | UH7_1 │
00:01:01 #1437 [Verbose] > │ let rec method2 (v0 : UH0, v1 : uint64) : uint64 = │
00:01:01 #1438 [Verbose] > │ match v0 with │
00:01:01 #1439 [Verbose] > │ | UH0_0(v2, v3, v4) -> (* Cons *) │
00:01:01 #1440 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:01:01 #1441 [Verbose] > │ method2(v4, v5) │
00:01:01 #1442 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:01:01 #1443 [Verbose] > │ v1 │
00:01:01 #1444 [Verbose] > │ and method3 (v0 : (struct (string * string) []), v1 : UH0, v2 : uint64) : │
00:01:01 #1445 [Verbose] > │ uint64 = │
00:01:01 #1446 [Verbose] > │ match v1 with │
00:01:01 #1447 [Verbose] > │ | UH0_0(v3, v4, v5) -> (* Cons *) │
00:01:01 #1448 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:01:01 #1449 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:01:01 #1450 [Verbose] > │ method3(v0, v5, v6) │
00:01:01 #1451 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:01:01 #1452 [Verbose] > │ v2 │
00:01:01 #1453 [Verbose] > │ and method1 (v0 : UH0) : (struct (string * string) []) = │
00:01:01 #1454 [Verbose] > │ let v1 : uint64 = 0UL │
00:01:01 #1455 [Verbose] > │ let v2 : uint64 = method2(v0, v1) │
00:01:01 #1456 [Verbose] > │ let v3 : (struct (string * string) []) = Array.zeroCreate<struct (string │
00:01:01 #1457 [Verbose] > │ * string)> (System.Convert.ToInt32(v2)) │
00:01:01 #1458 [Verbose] > │ let v4 : uint64 = 0UL │
00:01:01 #1459 [Verbose] > │ let v5 : uint64 = method3(v3, v0, v4) │
00:01:01 #1460 [Verbose] > │ v3 │
00:01:01 #1461 [Verbose] > │ and method4 (v0 : uint64, v1 : Mut0) : bool = │
00:01:01 #1462 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:01:01 #1463 [Verbose] > │ let v3 : bool = v2 < v0 │
00:01:01 #1464 [Verbose] > │ v3 │
00:01:01 #1465 [Verbose] > │ and method5 (v0 : int32, v1 : Mut1) : bool = │
00:01:01 #1466 [Verbose] > │ let v2 : int32 = v1.l0 │
00:01:01 #1467 [Verbose] > │ let v3 : bool = v2 < v0 │
00:01:01 #1468 [Verbose] > │ v3 │
00:01:01 #1469 [Verbose] > │ and closure1 () (v0 : string) : string = │
00:01:01 #1470 [Verbose] > │ let v1 : int32 = v0.Length │
00:01:01 #1471 [Verbose] > │ let v2 : (int32 []) = Array.zeroCreate<int32> (1) │
00:01:01 #1472 [Verbose] > │ v2.[int 0] <- 0 │
00:01:01 #1473 [Verbose] > │ let v3 : int32 = v1 - 1 │
00:01:01 #1474 [Verbose] > │ let v4 : int32 = v3 - 1 │
00:01:01 #1475 [Verbose] > │ let v5 : int32 = v4 + 1 │
00:01:01 #1476 [Verbose] > │ let v6 : (int32 []) = Array.zeroCreate<int32> (v5) │
00:01:01 #1477 [Verbose] > │ let v7 : Mut1 = {l0 = 0} : Mut1 │
00:01:01 #1478 [Verbose] > │ while method5(v5, v7) do │
00:01:01 #1479 [Verbose] > │ let v9 : int32 = v7.l0 │
00:01:01 #1480 [Verbose] > │ let v10 : int32 = 1 + v9 │
00:01:01 #1481 [Verbose] > │ v6.[int v9] <- v10 │
00:01:01 #1482 [Verbose] > │ let v11 : int32 = v9 + 1 │
00:01:01 #1483 [Verbose] > │ v7.l0 <- v11 │
00:01:01 #1484 [Verbose] > │ () │
00:01:01 #1485 [Verbose] > │ let v12 : int32 = v6.Length │
00:01:01 #1486 [Verbose] > │ let v13 : int32 = v2.Length │
00:01:01 #1487 [Verbose] > │ let v14 : int32 = v12 + v13 │
00:01:01 #1488 [Verbose] > │ let v15 : (int32 []) = Array.zeroCreate<int32> (v14) │
00:01:01 #1489 [Verbose] > │ let v16 : Mut1 = {l0 = 0} : Mut1 │
00:01:01 #1490 [Verbose] > │ while method5(v14, v16) do │
00:01:01 #1491 [Verbose] > │ let v18 : int32 = v16.l0 │
00:01:01 #1492 [Verbose] > │ let v19 : bool = v18 < v12 │
00:01:01 #1493 [Verbose] > │ let v23 : int32 = │
00:01:01 #1494 [Verbose] > │ if v19 then │
00:01:01 #1495 [Verbose] > │ let v20 : int32 = v6.[int v18] │
00:01:01 #1496 [Verbose] > │ v20 │
00:01:01 #1497 [Verbose] > │ else │
00:01:01 #1498 [Verbose] > │ let v21 : int32 = v18 - v12 │
00:01:01 #1499 [Verbose] > │ let v22 : int32 = v2.[int v21] │
00:01:01 #1500 [Verbose] > │ v22 │
00:01:01 #1501 [Verbose] > │ v15.[int v18] <- v23 │
00:01:01 #1502 [Verbose] > │ let v24 : int32 = v18 + 1 │
00:01:01 #1503 [Verbose] > │ v16.l0 <- v24 │
00:01:01 #1504 [Verbose] > │ () │
00:01:01 #1505 [Verbose] > │ let v25 : int32 = v15.Length │
00:01:01 #1506 [Verbose] > │ let v26 : (string []) = Array.zeroCreate<string> (v25) │
00:01:01 #1507 [Verbose] > │ let v27 : Mut1 = {l0 = 0} : Mut1 │
00:01:01 #1508 [Verbose] > │ while method5(v25, v27) do │
00:01:01 #1509 [Verbose] > │ let v29 : int32 = v27.l0 │
00:01:01 #1510 [Verbose] > │ let v30 : int32 = v15.[int v29] │
00:01:01 #1511 [Verbose] > │ let v31 : string = v0.[int v30..int v3] │
00:01:01 #1512 [Verbose] > │ let v32 : int32 = v30 - 1 │
00:01:01 #1513 [Verbose] > │ let v33 : string = v0.[int 0..int v32] │
00:01:01 #1514 [Verbose] > │ let v34 : string = v31 + v33 │
00:01:01 #1515 [Verbose] > │ v26.[int v29] <- v34 │
00:01:01 #1516 [Verbose] > │ let v35 : int32 = v29 + 1 │
00:01:01 #1517 [Verbose] > │ v27.l0 <- v35 │
00:01:01 #1518 [Verbose] > │ () │
00:01:01 #1519 [Verbose] > │ let v36 : string = " " │
00:01:01 #1520 [Verbose] > │ let v37 : string = v26 |> String.concat v36 │
00:01:01 #1521 [Verbose] > │ v37 │
00:01:01 #1522 [Verbose] > │ and method6 (v0 : float, v1 : float) : UH1 = │
00:01:01 #1523 [Verbose] > │ let v2 : bool = v1 < v0 │
00:01:01 #1524 [Verbose] > │ if v2 then │
00:01:01 #1525 [Verbose] > │ let v3 : int32 = int32 v1 │
00:01:01 #1526 [Verbose] > │ let v4 : int32 = 1 + v3 │
00:01:01 #1527 [Verbose] > │ let v5 : float = v1 + 1.0 │
00:01:01 #1528 [Verbose] > │ let v6 : UH1 = method6(v0, v5) │
00:01:01 #1529 [Verbose] > │ UH1_0(v4, v6) │
00:01:01 #1530 [Verbose] > │ else │
00:01:01 #1531 [Verbose] > │ UH1_1 │
00:01:01 #1532 [Verbose] > │ and method7 (v0 : UH1, v1 : UH1) : UH1 = │
00:01:01 #1533 [Verbose] > │ match v0 with │
00:01:01 #1534 [Verbose] > │ | UH1_0(v2, v3) -> (* Cons *) │
00:01:01 #1535 [Verbose] > │ let v4 : UH1 = method7(v3, v1) │
00:01:01 #1536 [Verbose] > │ UH1_0(v2, v4) │
00:01:01 #1537 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:01:01 #1538 [Verbose] > │ v1 │
00:01:01 #1539 [Verbose] > │ and method8 (v0 : string, v1 : int32, v2 : UH1, v3 : UH2) : UH2 = │
00:01:01 #1540 [Verbose] > │ match v2 with │
00:01:01 #1541 [Verbose] > │ | UH1_0(v4, v5) -> (* Cons *) │
00:01:01 #1542 [Verbose] > │ let v6 : UH2 = method8(v0, v1, v5, v3) │
00:01:01 #1543 [Verbose] > │ let v7 : int32 = v1 - 1 │
00:01:01 #1544 [Verbose] > │ let v8 : string = v0.[int v4..int v7] │
00:01:01 #1545 [Verbose] > │ let v9 : bool = v4 = 0 │
00:01:01 #1546 [Verbose] > │ let v13 : string = │
00:01:01 #1547 [Verbose] > │ if v9 then │
00:01:01 #1548 [Verbose] > │ let v10 : string = "" │
00:01:01 #1549 [Verbose] > │ v10 │
00:01:01 #1550 [Verbose] > │ else │
00:01:01 #1551 [Verbose] > │ let v11 : int32 = v4 - 1 │
00:01:01 #1552 [Verbose] > │ let v12 : string = v0.[int 0..int v11] │
00:01:01 #1553 [Verbose] > │ v12 │
00:01:01 #1554 [Verbose] > │ let v14 : string = v8 + v13 │
00:01:01 #1555 [Verbose] > │ UH2_0(v14, v6) │
00:01:01 #1556 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:01:01 #1557 [Verbose] > │ v3 │
00:01:01 #1558 [Verbose] > │ and method10 (v0 : UH2, v1 : int32) : int32 = │
00:01:01 #1559 [Verbose] > │ match v0 with │
00:01:01 #1560 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:01:01 #1561 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:01:01 #1562 [Verbose] > │ method10(v3, v4) │
00:01:01 #1563 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:01:01 #1564 [Verbose] > │ v1 │
00:01:01 #1565 [Verbose] > │ and method11 (v0 : (string []), v1 : UH2, v2 : int32) : int32 = │
00:01:01 #1566 [Verbose] > │ match v1 with │
00:01:01 #1567 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:01:01 #1568 [Verbose] > │ v0.[int v2] <- v3 │
00:01:01 #1569 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:01:01 #1570 [Verbose] > │ method11(v0, v4, v5) │
00:01:01 #1571 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:01:01 #1572 [Verbose] > │ v2 │
00:01:01 #1573 [Verbose] > │ and method9 (v0 : UH2) : (string []) = │
00:01:01 #1574 [Verbose] > │ let v1 : int32 = 0 │
00:01:01 #1575 [Verbose] > │ let v2 : int32 = method10(v0, v1) │
00:01:01 #1576 [Verbose] > │ let v3 : (string []) = Array.zeroCreate<string> (v2) │
00:01:01 #1577 [Verbose] > │ let v4 : int32 = 0 │
00:01:01 #1578 [Verbose] > │ let v5 : int32 = method11(v3, v0, v4) │
00:01:01 #1579 [Verbose] > │ v3 │
00:01:01 #1580 [Verbose] > │ and closure2 () (v0 : string) : string = │
00:01:01 #1581 [Verbose] > │ let v1 : int32 = v0.Length │
00:01:01 #1582 [Verbose] > │ let v2 : int32 = v1 - 1 │
00:01:01 #1583 [Verbose] > │ let v3 : int32 = v2 - 1 │
00:01:01 #1584 [Verbose] > │ let v4 : float = float v3 │
00:01:01 #1585 [Verbose] > │ let v5 : float = v4 + 1.0 │
00:01:01 #1586 [Verbose] > │ let v6 : float = 0.0 │
00:01:01 #1587 [Verbose] > │ let v7 : UH1 = method6(v5, v6) │
00:01:01 #1588 [Verbose] > │ let v8 : int32 = 0 │
00:01:01 #1589 [Verbose] > │ let v9 : UH1 = UH1_1 │
00:01:01 #1590 [Verbose] > │ let v10 : UH1 = UH1_0(v8, v9) │
00:01:01 #1591 [Verbose] > │ let v11 : UH1 = method7(v7, v10) │
00:01:01 #1592 [Verbose] > │ let v12 : UH2 = UH2_1 │
00:01:01 #1593 [Verbose] > │ let v13 : UH2 = method8(v0, v1, v11, v12) │
00:01:01 #1594 [Verbose] > │ let v14 : (string []) = method9(v13) │
00:01:01 #1595 [Verbose] > │ let v15 : string = " " │
00:01:01 #1596 [Verbose] > │ let v16 : string = v14 |> String.concat v15 │
00:01:01 #1597 [Verbose] > │ v16 │
00:01:01 #1598 [Verbose] > │ and method13 (v0 : UH3, v1 : uint64) : uint64 = │
00:01:01 #1599 [Verbose] > │ match v0 with │
00:01:01 #1600 [Verbose] > │ | UH3_0(v2, v3, v4, v5) -> (* Cons *) │
00:01:01 #1601 [Verbose] > │ let v6 : uint64 = v1 + 1UL │
00:01:01 #1602 [Verbose] > │ method13(v5, v6) │
00:01:01 #1603 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:01:01 #1604 [Verbose] > │ v1 │
00:01:01 #1605 [Verbose] > │ and method14 (v0 : (struct (int32 * string * (string -> string)) []), v1 : │
00:01:01 #1606 [Verbose] > │ UH3, v2 : uint64) : uint64 = │
00:01:01 #1607 [Verbose] > │ match v1 with │
00:01:01 #1608 [Verbose] > │ | UH3_0(v3, v4, v5, v6) -> (* Cons *) │
00:01:01 #1609 [Verbose] > │ v0.[int v2] <- struct (v3, v4, v5) │
00:01:01 #1610 [Verbose] > │ let v7 : uint64 = v2 + 1UL │
00:01:01 #1611 [Verbose] > │ method14(v0, v6, v7) │
00:01:01 #1612 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:01:01 #1613 [Verbose] > │ v2 │
00:01:01 #1614 [Verbose] > │ and method12 (v0 : UH3) : (struct (int32 * string * (string -> string)) []) │
00:01:01 #1615 [Verbose] > │ = │
00:01:01 #1616 [Verbose] > │ let v1 : uint64 = 0UL │
00:01:01 #1617 [Verbose] > │ let v2 : uint64 = method13(v0, v1) │
00:01:01 #1618 [Verbose] > │ let v3 : (struct (int32 * string * (string -> string)) []) = │
00:01:01 #1619 [Verbose] > │ Array.zeroCreate<struct (int32 * string * (string -> string))> │
00:01:01 #1620 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:01:01 #1621 [Verbose] > │ let v4 : uint64 = 0UL │
00:01:01 #1622 [Verbose] > │ let v5 : uint64 = method14(v3, v0, v4) │
00:01:01 #1623 [Verbose] > │ v3 │
00:01:01 #1624 [Verbose] > │ and method15 (v0 : Mut1) : bool = │
00:01:01 #1625 [Verbose] > │ let v1 : int32 = v0.l0 │
00:01:01 #1626 [Verbose] > │ let v2 : bool = v1 < 2000001 │
00:01:01 #1627 [Verbose] > │ v2 │
00:01:01 #1628 [Verbose] > │ and closure3 (v0 : string, v1 : (string -> string)) (v2 : int32) : string = │
00:01:01 #1629 [Verbose] > │ v1 v0 │
00:01:01 #1630 [Verbose] > │ and method16 (v0 : string, v1 : (string []), v2 : uint64) : bool = │
00:01:01 #1631 [Verbose] > │ let v3 : uint64 = System.Convert.ToUInt64 v1.Length │
00:01:01 #1632 [Verbose] > │ let v4 : bool = v2 < v3 │
00:01:01 #1633 [Verbose] > │ if v4 then │
00:01:01 #1634 [Verbose] > │ let v5 : string = v1.[int v2] │
00:01:01 #1635 [Verbose] > │ let v6 : bool = v0 = v5 │
00:01:01 #1636 [Verbose] > │ if v6 then │
00:01:01 #1637 [Verbose] > │ let v7 : uint64 = v2 + 1UL │
00:01:01 #1638 [Verbose] > │ method16(v0, v1, v7) │
00:01:01 #1639 [Verbose] > │ else │
00:01:01 #1640 [Verbose] > │ false │
00:01:01 #1641 [Verbose] > │ else │
00:01:01 #1642 [Verbose] > │ true │
00:01:01 #1643 [Verbose] > │ and method17 (v0 : uint64, v1 : Mut2) : bool = │
00:01:01 #1644 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:01:01 #1645 [Verbose] > │ let v3 : bool = v2 < v0 │
00:01:01 #1646 [Verbose] > │ v3 │
00:01:01 #1647 [Verbose] > │ and method18 (v0 : UH4, v1 : UH4) : UH4 = │
00:01:01 #1648 [Verbose] > │ match v0 with │
00:01:01 #1649 [Verbose] > │ | UH4_0(v2, v3, v4) -> (* Cons *) │
00:01:01 #1650 [Verbose] > │ let v5 : UH4 = UH4_0(v2, v3, v1) │
00:01:01 #1651 [Verbose] > │ method18(v4, v5) │
00:01:01 #1652 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:01:01 #1653 [Verbose] > │ v1 │
00:01:01 #1654 [Verbose] > │ and method20 (v0 : UH4, v1 : int32) : int32 = │
00:01:01 #1655 [Verbose] > │ match v0 with │
00:01:01 #1656 [Verbose] > │ | UH4_0(v2, v3, v4) -> (* Cons *) │
00:01:01 #1657 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:01:01 #1658 [Verbose] > │ method20(v4, v5) │
00:01:01 #1659 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:01:01 #1660 [Verbose] > │ v1 │
00:01:01 #1661 [Verbose] > │ and method21 (v0 : (struct (int64 * int64) []), v1 : UH4, v2 : int32) : │
00:01:01 #1662 [Verbose] > │ int32 = │
00:01:01 #1663 [Verbose] > │ match v1 with │
00:01:01 #1664 [Verbose] > │ | UH4_0(v3, v4, v5) -> (* Cons *) │
00:01:01 #1665 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:01:01 #1666 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:01:01 #1667 [Verbose] > │ method21(v0, v5, v6) │
00:01:01 #1668 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:01:01 #1669 [Verbose] > │ v2 │
00:01:01 #1670 [Verbose] > │ and method19 (v0 : UH4) : (struct (int64 * int64) []) = │
00:01:01 #1671 [Verbose] > │ let v1 : int32 = 0 │
00:01:01 #1672 [Verbose] > │ let v2 : int32 = method20(v0, v1) │
00:01:01 #1673 [Verbose] > │ let v3 : (struct (int64 * int64) []) = Array.zeroCreate<struct (int64 * │
00:01:01 #1674 [Verbose] > │ int64)> (v2) │
00:01:01 #1675 [Verbose] > │ let v4 : int32 = 0 │
00:01:01 #1676 [Verbose] > │ let v5 : int32 = method21(v3, v0, v4) │
00:01:01 #1677 [Verbose] > │ v3 │
00:01:01 #1678 [Verbose] > │ and closure4 () struct (v0 : int64, v1 : int64) : int64 = │
00:01:01 #1679 [Verbose] > │ v1 │
00:01:01 #1680 [Verbose] > │ and method23 (v0 : UH5, v1 : uint64) : uint64 = │
00:01:01 #1681 [Verbose] > │ match v0 with │
00:01:01 #1682 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:01:01 #1683 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:01:01 #1684 [Verbose] > │ method23(v4, v5) │
00:01:01 #1685 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:01:01 #1686 [Verbose] > │ v1 │
00:01:01 #1687 [Verbose] > │ and method24 (v0 : (struct (UH2 * US0) []), v1 : UH5, v2 : uint64) : uint64 │
00:01:01 #1688 [Verbose] > │ = │
00:01:01 #1689 [Verbose] > │ match v1 with │
00:01:01 #1690 [Verbose] > │ | UH5_0(v3, v4, v5) -> (* Cons *) │
00:01:01 #1691 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:01:01 #1692 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:01:01 #1693 [Verbose] > │ method24(v0, v5, v6) │
00:01:01 #1694 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:01:01 #1695 [Verbose] > │ v2 │
00:01:01 #1696 [Verbose] > │ and method22 (v0 : UH5) : (struct (UH2 * US0) []) = │
00:01:01 #1697 [Verbose] > │ let v1 : uint64 = 0UL │
00:01:01 #1698 [Verbose] > │ let v2 : uint64 = method23(v0, v1) │
00:01:01 #1699 [Verbose] > │ let v3 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * US0)> │
00:01:01 #1700 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:01:01 #1701 [Verbose] > │ let v4 : uint64 = 0UL │
00:01:01 #1702 [Verbose] > │ let v5 : uint64 = method24(v3, v0, v4) │
00:01:01 #1703 [Verbose] > │ v3 │
00:01:01 #1704 [Verbose] > │ and method26 (v0 : UH2, v1 : uint64) : uint64 = │
00:01:01 #1705 [Verbose] > │ match v0 with │
00:01:01 #1706 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:01:01 #1707 [Verbose] > │ let v4 : uint64 = v1 + 1UL │
00:01:01 #1708 [Verbose] > │ method26(v3, v4) │
00:01:01 #1709 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:01:01 #1710 [Verbose] > │ v1 │
00:01:01 #1711 [Verbose] > │ and method27 (v0 : (string []), v1 : UH2, v2 : uint64) : uint64 = │
00:01:01 #1712 [Verbose] > │ match v1 with │
00:01:01 #1713 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:01:01 #1714 [Verbose] > │ v0.[int v2] <- v3 │
00:01:01 #1715 [Verbose] > │ let v5 : uint64 = v2 + 1UL │
00:01:01 #1716 [Verbose] > │ method27(v0, v4, v5) │
00:01:01 #1717 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:01:01 #1718 [Verbose] > │ v2 │
00:01:01 #1719 [Verbose] > │ and method25 (v0 : UH2) : (string []) = │
00:01:01 #1720 [Verbose] > │ let v1 : uint64 = 0UL │
00:01:01 #1721 [Verbose] > │ let v2 : uint64 = method26(v0, v1) │
00:01:01 #1722 [Verbose] > │ let v3 : (string []) = Array.zeroCreate<string> │
00:01:01 #1723 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:01:01 #1724 [Verbose] > │ let v4 : uint64 = 0UL │
00:01:01 #1725 [Verbose] > │ let v5 : uint64 = method27(v3, v0, v4) │
00:01:01 #1726 [Verbose] > │ v3 │
00:01:01 #1727 [Verbose] > │ and closure5 () (v0 : int64) : US1 = │
00:01:01 #1728 [Verbose] > │ US1_1(v0) │
00:01:01 #1729 [Verbose] > │ and method28 (v0 : uint64, v1 : Mut3) : bool = │
00:01:01 #1730 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:01:01 #1731 [Verbose] > │ let v3 : bool = v2 < v0 │
00:01:01 #1732 [Verbose] > │ v3 │
00:01:01 #1733 [Verbose] > │ and method29 (v0 : UH6, v1 : UH6) : UH6 = │
00:01:01 #1734 [Verbose] > │ match v0 with │
00:01:01 #1735 [Verbose] > │ | UH6_0(v2, v3, v4) -> (* Cons *) │
00:01:01 #1736 [Verbose] > │ let v5 : UH6 = UH6_0(v2, v3, v1) │
00:01:01 #1737 [Verbose] > │ method29(v4, v5) │
00:01:01 #1738 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:01:01 #1739 [Verbose] > │ v1 │
00:01:01 #1740 [Verbose] > │ and method31 (v0 : UH6, v1 : int32) : int32 = │
00:01:01 #1741 [Verbose] > │ match v0 with │
00:01:01 #1742 [Verbose] > │ | UH6_0(v2, v3, v4) -> (* Cons *) │
00:01:01 #1743 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:01:01 #1744 [Verbose] > │ method31(v4, v5) │
00:01:01 #1745 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:01:01 #1746 [Verbose] > │ v1 │
00:01:01 #1747 [Verbose] > │ and method32 (v0 : (struct (int32 * int64) []), v1 : UH6, v2 : int32) : │
00:01:01 #1748 [Verbose] > │ int32 = │
00:01:01 #1749 [Verbose] > │ match v1 with │
00:01:01 #1750 [Verbose] > │ | UH6_0(v3, v4, v5) -> (* Cons *) │
00:01:01 #1751 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:01:01 #1752 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:01:01 #1753 [Verbose] > │ method32(v0, v5, v6) │
00:01:01 #1754 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:01:01 #1755 [Verbose] > │ v2 │
00:01:01 #1756 [Verbose] > │ and method30 (v0 : UH6) : (struct (int32 * int64) []) = │
00:01:01 #1757 [Verbose] > │ let v1 : int32 = 0 │
00:01:01 #1758 [Verbose] > │ let v2 : int32 = method31(v0, v1) │
00:01:01 #1759 [Verbose] > │ let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 * │
00:01:01 #1760 [Verbose] > │ int64)> (v2) │
00:01:01 #1761 [Verbose] > │ let v4 : int32 = 0 │
00:01:01 #1762 [Verbose] > │ let v5 : int32 = method32(v3, v0, v4) │
00:01:01 #1763 [Verbose] > │ v3 │
00:01:01 #1764 [Verbose] > │ and method33 (v0 : UH2, v1 : UH7, v2 : int32) : struct (UH7 * int32) = │
00:01:01 #1765 [Verbose] > │ match v0 with │
00:01:01 #1766 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:01:01 #1767 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:01:01 #1768 [Verbose] > │ let v6 : UH7 = UH7_0(v2, v3, v1) │
00:01:01 #1769 [Verbose] > │ method33(v4, v6, v5) │
00:01:01 #1770 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:01:01 #1771 [Verbose] > │ struct (v1, v2) │
00:01:01 #1772 [Verbose] > │ and method34 (v0 : UH7, v1 : UH7) : UH7 = │
00:01:01 #1773 [Verbose] > │ match v0 with │
00:01:01 #1774 [Verbose] > │ | UH7_0(v2, v3, v4) -> (* Cons *) │
00:01:01 #1775 [Verbose] > │ let v5 : UH7 = UH7_0(v2, v3, v1) │
00:01:01 #1776 [Verbose] > │ method34(v4, v5) │
00:01:01 #1777 [Verbose] > │ | UH7_1 -> (* Nil *) │
00:01:01 #1778 [Verbose] > │ v1 │
00:01:01 #1779 [Verbose] > │ and method35 (v0 : Map<int32, int64>, v1 : UH7, v2 : UH2) : UH2 = │
00:01:01 #1780 [Verbose] > │ match v1 with │
00:01:01 #1781 [Verbose] > │ | UH7_0(v3, v4, v5) -> (* Cons *) │
00:01:01 #1782 [Verbose] > │ let v6 : UH2 = method35(v0, v5, v2) │
00:01:01 #1783 [Verbose] > │ let v7 : int64 = v0.[v3] │
00:01:01 #1784 [Verbose] > │ let v8 : int32 = int32 v7 │
00:01:01 #1785 [Verbose] > │ let v9 : string = v4.PadRight v8 │
00:01:01 #1786 [Verbose] > │ UH2_0(v9, v6) │
00:01:01 #1787 [Verbose] > │ | UH7_1 -> (* Nil *) │
00:01:01 #1788 [Verbose] > │ v2 │
00:01:01 #1789 [Verbose] > │ and method37 (v0 : UH6, v1 : uint64) : uint64 = │
00:01:01 #1790 [Verbose] > │ match v0 with │
00:01:01 #1791 [Verbose] > │ | UH6_0(v2, v3, v4) -> (* Cons *) │
00:01:01 #1792 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:01:01 #1793 [Verbose] > │ method37(v4, v5) │
00:01:01 #1794 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:01:01 #1795 [Verbose] > │ v1 │
00:01:01 #1796 [Verbose] > │ and method38 (v0 : (struct (int32 * int64) []), v1 : UH6, v2 : uint64) : │
00:01:01 #1797 [Verbose] > │ uint64 = │
00:01:01 #1798 [Verbose] > │ match v1 with │
00:01:01 #1799 [Verbose] > │ | UH6_0(v3, v4, v5) -> (* Cons *) │
00:01:01 #1800 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:01:01 #1801 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:01:01 #1802 [Verbose] > │ method38(v0, v5, v6) │
00:01:01 #1803 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:01:01 #1804 [Verbose] > │ v2 │
00:01:01 #1805 [Verbose] > │ and method36 (v0 : UH6) : (struct (int32 * int64) []) = │
00:01:01 #1806 [Verbose] > │ let v1 : uint64 = 0UL │
00:01:01 #1807 [Verbose] > │ let v2 : uint64 = method37(v0, v1) │
00:01:01 #1808 [Verbose] > │ let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 * │
00:01:01 #1809 [Verbose] > │ int64)> (System.Convert.ToInt32(v2)) │
00:01:01 #1810 [Verbose] > │ let v4 : uint64 = 0UL │
00:01:01 #1811 [Verbose] > │ let v5 : uint64 = method38(v3, v0, v4) │
00:01:01 #1812 [Verbose] > │ v3 │
00:01:01 #1813 [Verbose] > │ and closure6 () struct (v0 : int32, v1 : int64) : int64 = │
00:01:01 #1814 [Verbose] > │ v1 │
00:01:01 #1815 [Verbose] > │ and closure0 () () : unit = │
00:01:01 #1816 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:01:01 #1817 [Verbose] > │ let v1 : string = nameof v0 │
00:01:01 #1818 [Verbose] > │ let v2 : string = "" │
00:01:01 #1819 [Verbose] > │ System.Console.WriteLine v2 │
00:01:01 #1820 [Verbose] > │ System.Console.WriteLine v2 │
00:01:01 #1821 [Verbose] > │ let v3 : string = $"Test: {v1}" │
00:01:01 #1822 [Verbose] > │ System.Console.WriteLine v3 │
00:01:01 #1823 [Verbose] > │ let v4 : string = "abc" │
00:01:01 #1824 [Verbose] > │ let v5 : string = "bca cab abc" │
00:01:01 #1825 [Verbose] > │ let v6 : string = "abcde" │
00:01:01 #1826 [Verbose] > │ let v7 : string = "bcdea cdeab deabc eabcd abcde" │
00:01:01 #1827 [Verbose] > │ let v8 : string = "abcdefghi" │
00:01:01 #1828 [Verbose] > │ let v9 : string = "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde │
00:01:01 #1829 [Verbose] > │ ghiabcdef hiabcdefg iabcdefgh abcdefghi" │
00:01:01 #1830 [Verbose] > │ let v10 : string = "abab" │
00:01:01 #1831 [Verbose] > │ let v11 : string = "baba abab baba abab" │
00:01:01 #1832 [Verbose] > │ let v12 : string = "aa" │
00:01:01 #1833 [Verbose] > │ let v13 : string = "aa aa" │
00:01:01 #1834 [Verbose] > │ let v14 : string = "z" │
00:01:01 #1835 [Verbose] > │ let v15 : UH0 = UH0_1 │
00:01:01 #1836 [Verbose] > │ let v16 : UH0 = UH0_0(v14, v14, v15) │
00:01:01 #1837 [Verbose] > │ let v17 : UH0 = UH0_0(v12, v13, v16) │
00:01:01 #1838 [Verbose] > │ let v18 : UH0 = UH0_0(v10, v11, v17) │
00:01:01 #1839 [Verbose] > │ let v19 : UH0 = UH0_0(v8, v9, v18) │
00:01:01 #1840 [Verbose] > │ let v20 : UH0 = UH0_0(v6, v7, v19) │
00:01:01 #1841 [Verbose] > │ let v21 : UH0 = UH0_0(v4, v5, v20) │
00:01:01 #1842 [Verbose] > │ let v22 : (struct (string * string) []) = method1(v21) │
00:01:01 #1843 [Verbose] > │ let v23 : uint64 = System.Convert.ToUInt64 v22.Length │
00:01:01 #1844 [Verbose] > │ let v24 : (struct (string * string * string * (int64 [])) []) = │
00:01:01 #1845 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))> │
00:01:01 #1846 [Verbose] > │ (System.Convert.ToInt32(v23)) │
00:01:01 #1847 [Verbose] > │ let v25 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:01 #1848 [Verbose] > │ while method4(v23, v25) do │
00:01:01 #1849 [Verbose] > │ let v27 : uint64 = v25.l0 │
00:01:01 #1850 [Verbose] > │ let struct (v28 : string, v29 : string) = v22.[int v27] │
00:01:01 #1851 [Verbose] > │ let v30 : string = $"%A{v28}" │
00:01:01 #1852 [Verbose] > │ System.Console.WriteLine v2 │
00:01:01 #1853 [Verbose] > │ let v31 : string = $"Solution: {v30} " │
00:01:01 #1854 [Verbose] > │ System.Console.WriteLine v31 │
00:01:01 #1855 [Verbose] > │ let v32 : int32 = 0 │
00:01:01 #1856 [Verbose] > │ let v33 : string = "F" │
00:01:01 #1857 [Verbose] > │ let v34 : (string -> string) = closure1() │
00:01:01 #1858 [Verbose] > │ let v35 : int32 = 1 │
00:01:01 #1859 [Verbose] > │ let v36 : string = "FA" │
00:01:01 #1860 [Verbose] > │ let v37 : (string -> string) = closure2() │
00:01:01 #1861 [Verbose] > │ let v38 : UH3 = UH3_1 │
00:01:01 #1862 [Verbose] > │ let v39 : UH3 = UH3_0(v35, v36, v37, v38) │
00:01:01 #1863 [Verbose] > │ let v40 : UH3 = UH3_0(v32, v33, v34, v39) │
00:01:01 #1864 [Verbose] > │ let v41 : (struct (int32 * string * (string -> string)) []) = │
00:01:01 #1865 [Verbose] > │ method12(v40) │
00:01:01 #1866 [Verbose] > │ let v42 : uint64 = System.Convert.ToUInt64 v41.Length │
00:01:01 #1867 [Verbose] > │ let v43 : (struct (string * int64) []) = Array.zeroCreate<struct │
00:01:01 #1868 [Verbose] > │ (string * int64)> (System.Convert.ToInt32(v42)) │
00:01:01 #1869 [Verbose] > │ let v44 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:01 #1870 [Verbose] > │ while method4(v42, v44) do │
00:01:01 #1871 [Verbose] > │ let v46 : uint64 = v44.l0 │
00:01:01 #1872 [Verbose] > │ let struct (v47 : int32, v48 : string, v49 : (string -> string)) │
00:01:01 #1873 [Verbose] > │ = v41.[int v46] │
00:01:01 #1874 [Verbose] > │ let mutable result = None │
00:01:01 #1875 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:01:01 #1876 [Verbose] > │ #if !WASM │
00:01:01 #1877 [Verbose] > │ () │
00:01:01 #1878 [Verbose] > │ #else │
00:01:01 #1879 [Verbose] > │ () │
00:01:01 #1880 [Verbose] > │ #endif │
00:01:01 #1881 [Verbose] > │ #else │
00:01:01 #1882 [Verbose] > │ System.GC.Collect () │
00:01:01 #1883 [Verbose] > │ () │
00:01:01 #1884 [Verbose] > │ #endif │
00:01:01 #1885 [Verbose] > │ |> fun x -> result <- Some x │
00:01:01 #1886 [Verbose] > │ result |> Option.get │
00:01:01 #1887 [Verbose] > │ let v50 : (unit -> System.Diagnostics.Stopwatch) = │
00:01:01 #1888 [Verbose] > │ System.Diagnostics.Stopwatch │
00:01:01 #1889 [Verbose] > │ let v51 : System.Diagnostics.Stopwatch = v50 () │
00:01:01 #1890 [Verbose] > │ v51.Start () │
00:01:01 #1891 [Verbose] > │ let v52 : int64 = v51.ElapsedMilliseconds │
00:01:01 #1892 [Verbose] > │ let v53 : (int32 []) = Array.zeroCreate<int32> (2000001) │
00:01:01 #1893 [Verbose] > │ let v54 : Mut1 = {l0 = 0} : Mut1 │
00:01:01 #1894 [Verbose] > │ while method15(v54) do │
00:01:01 #1895 [Verbose] > │ let v56 : int32 = v54.l0 │
00:01:01 #1896 [Verbose] > │ v53.[int v56] <- v56 │
00:01:01 #1897 [Verbose] > │ let v57 : int32 = v56 + 1 │
00:01:01 #1898 [Verbose] > │ v54.l0 <- v57 │
00:01:01 #1899 [Verbose] > │ () │
00:01:01 #1900 [Verbose] > │ let v58 : (int32 -> string) = closure3(v28, v49) │
00:01:01 #1901 [Verbose] > │ let v59 : (string []) = v53 |> Array.Parallel.map v58 │
00:01:01 #1902 [Verbose] > │ let v60 : int32 = v59.Length │
00:01:01 #1903 [Verbose] > │ let v61 : int32 = v60 - 1 │
00:01:01 #1904 [Verbose] > │ let v62 : string = v59.[int v61] │
00:01:01 #1905 [Verbose] > │ let v63 : int64 = v51.ElapsedMilliseconds │
00:01:01 #1906 [Verbose] > │ let v64 : int64 = v63 - v52 │
00:01:01 #1907 [Verbose] > │ let v65 : string = $"Test case {v47 + 1}. {v48}. Time: {v64} " │
00:01:01 #1908 [Verbose] > │ System.Console.WriteLine v65 │
00:01:01 #1909 [Verbose] > │ v43.[int v46] <- struct (v62, v64) │
00:01:01 #1910 [Verbose] > │ let v66 : uint64 = v46 + 1UL │
00:01:01 #1911 [Verbose] > │ v44.l0 <- v66 │
00:01:01 #1912 [Verbose] > │ () │
00:01:01 #1913 [Verbose] > │ let v67 : uint64 = System.Convert.ToUInt64 v43.Length │
00:01:01 #1914 [Verbose] > │ let v68 : (string []) = Array.zeroCreate<string> │
00:01:01 #1915 [Verbose] > │ (System.Convert.ToInt32(v67)) │
00:01:01 #1916 [Verbose] > │ let v69 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:01 #1917 [Verbose] > │ while method4(v67, v69) do │
00:01:01 #1918 [Verbose] > │ let v71 : uint64 = v69.l0 │
00:01:01 #1919 [Verbose] > │ let struct (v72 : string, v73 : int64) = v43.[int v71] │
00:01:01 #1920 [Verbose] > │ v68.[int v71] <- v72 │
00:01:01 #1921 [Verbose] > │ let v74 : uint64 = v71 + 1UL │
00:01:01 #1922 [Verbose] > │ v69.l0 <- v74 │
00:01:01 #1923 [Verbose] > │ () │
00:01:01 #1924 [Verbose] > │ let v75 : uint64 = System.Convert.ToUInt64 v68.Length │
00:01:01 #1925 [Verbose] > │ let v76 : bool = v75 <= 1UL │
00:01:01 #1926 [Verbose] > │ if v76 then │
00:01:01 #1927 [Verbose] > │ () │
00:01:01 #1928 [Verbose] > │ else │
00:01:01 #1929 [Verbose] > │ let v77 : string = v68.[int 0UL] │
00:01:01 #1930 [Verbose] > │ let v78 : uint64 = 0UL │
00:01:01 #1931 [Verbose] > │ let v79 : bool = method16(v77, v68, v78) │
00:01:01 #1932 [Verbose] > │ if v79 then │
00:01:01 #1933 [Verbose] > │ () │
00:01:01 #1934 [Verbose] > │ else │
00:01:01 #1935 [Verbose] > │ let v80 : string = $"Challenge error: {v68}" │
00:01:01 #1936 [Verbose] > │ failwith<unit> v80 │
00:01:01 #1937 [Verbose] > │ let v81 : string = $"%A{v29}" │
00:01:01 #1938 [Verbose] > │ let v82 : (string []) = Array.zeroCreate<string> │
00:01:01 #1939 [Verbose] > │ (System.Convert.ToInt32(v67)) │
00:01:01 #1940 [Verbose] > │ let v83 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:01 #1941 [Verbose] > │ while method4(v67, v83) do │
00:01:01 #1942 [Verbose] > │ let v85 : uint64 = v83.l0 │
00:01:01 #1943 [Verbose] > │ let struct (v86 : string, v87 : int64) = v43.[int v85] │
00:01:01 #1944 [Verbose] > │ v82.[int v85] <- v86 │
00:01:01 #1945 [Verbose] > │ let v88 : uint64 = v85 + 1UL │
00:01:01 #1946 [Verbose] > │ v83.l0 <- v88 │
00:01:01 #1947 [Verbose] > │ () │
00:01:01 #1948 [Verbose] > │ let v89 : string = v82.[int 0UL] │
00:01:01 #1949 [Verbose] > │ let v90 : string = $"%A{v89}" │
00:01:01 #1950 [Verbose] > │ let v91 : (int64 []) = Array.zeroCreate<int64> │
00:01:01 #1951 [Verbose] > │ (System.Convert.ToInt32(v67)) │
00:01:01 #1952 [Verbose] > │ let v92 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:01 #1953 [Verbose] > │ while method4(v67, v92) do │
00:01:01 #1954 [Verbose] > │ let v94 : uint64 = v92.l0 │
00:01:01 #1955 [Verbose] > │ let struct (v95 : string, v96 : int64) = v43.[int v94] │
00:01:01 #1956 [Verbose] > │ v91.[int v94] <- v96 │
00:01:01 #1957 [Verbose] > │ let v97 : uint64 = v94 + 1UL │
00:01:01 #1958 [Verbose] > │ v92.l0 <- v97 │
00:01:01 #1959 [Verbose] > │ () │
00:01:01 #1960 [Verbose] > │ v24.[int v27] <- struct (v81, v30, v90, v91) │
00:01:01 #1961 [Verbose] > │ let v98 : uint64 = v27 + 1UL │
00:01:01 #1962 [Verbose] > │ v25.l0 <- v98 │
00:01:01 #1963 [Verbose] > │ () │
00:01:01 #1964 [Verbose] > │ let v99 : uint64 = System.Convert.ToUInt64 v24.Length │
00:01:01 #1965 [Verbose] > │ let v100 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * │
00:01:01 #1966 [Verbose] > │ US0)> (System.Convert.ToInt32(v99)) │
00:01:01 #1967 [Verbose] > │ let v101 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:01 #1968 [Verbose] > │ while method4(v99, v101) do │
00:01:01 #1969 [Verbose] > │ let v103 : uint64 = v101.l0 │
00:01:01 #1970 [Verbose] > │ let struct (v104 : string, v105 : string, v106 : string, v107 : │
00:01:01 #1971 [Verbose] > │ (int64 [])) = v24.[int v103] │
00:01:01 #1972 [Verbose] > │ let v108 : uint64 = System.Convert.ToUInt64 v107.Length │
00:01:01 #1973 [Verbose] > │ let v109 : UH4 = UH4_1 │
00:01:01 #1974 [Verbose] > │ let v110 : Mut2 = {l0 = 0UL; l1 = v109; l2 = 0L} : Mut2 │
00:01:01 #1975 [Verbose] > │ while method17(v108, v110) do │
00:01:01 #1976 [Verbose] > │ let v112 : uint64 = v110.l0 │
00:01:01 #1977 [Verbose] > │ let struct (v113 : UH4, v114 : int64) = v110.l1, v110.l2 │
00:01:01 #1978 [Verbose] > │ let v115 : int64 = v107.[int v112] │
00:01:01 #1979 [Verbose] > │ let v116 : int64 = v114 + 1L │
00:01:01 #1980 [Verbose] > │ let v117 : uint64 = v112 + 1UL │
00:01:01 #1981 [Verbose] > │ let v118 : UH4 = UH4_0(v114, v115, v113) │
00:01:01 #1982 [Verbose] > │ v110.l0 <- v117 │
00:01:01 #1983 [Verbose] > │ v110.l1 <- v118 │
00:01:01 #1984 [Verbose] > │ v110.l2 <- v116 │
00:01:01 #1985 [Verbose] > │ () │
00:01:01 #1986 [Verbose] > │ let struct (v119 : UH4, v120 : int64) = v110.l1, v110.l2 │
00:01:01 #1987 [Verbose] > │ let v121 : UH4 = UH4_1 │
00:01:01 #1988 [Verbose] > │ let v122 : UH4 = method18(v119, v121) │
00:01:01 #1989 [Verbose] > │ let v123 : (struct (int64 * int64) []) = method19(v122) │
00:01:01 #1990 [Verbose] > │ let v124 : int32 = v123.Length │
00:01:01 #1991 [Verbose] > │ let v125 : (struct (int64 * int64) []) = Array.zeroCreate<struct │
00:01:01 #1992 [Verbose] > │ (int64 * int64)> (v124) │
00:01:01 #1993 [Verbose] > │ let v126 : Mut1 = {l0 = 0} : Mut1 │
00:01:01 #1994 [Verbose] > │ while method5(v124, v126) do │
00:01:01 #1995 [Verbose] > │ let v128 : int32 = v126.l0 │
00:01:01 #1996 [Verbose] > │ let struct (v129 : int64, v130 : int64) = v123.[int v128] │
00:01:01 #1997 [Verbose] > │ let v131 : int64 = v129 + 1L │
00:01:01 #1998 [Verbose] > │ v125.[int v128] <- struct (v131, v130) │
00:01:01 #1999 [Verbose] > │ let v132 : int32 = v128 + 1 │
00:01:01 #2000 [Verbose] > │ v126.l0 <- v132 │
00:01:01 #2001 [Verbose] > │ () │
00:01:01 #2002 [Verbose] > │ let v133 : (struct (int64 * int64) -> int64) = closure4() │
00:01:01 #2003 [Verbose] > │ let v134 : (struct (int64 * int64) []) = v125 |> Array.sortBy v133 │
00:01:01 #2004 [Verbose] > │ let struct (v135 : int64, v136 : int64) = v134.[int 0] │
00:01:01 #2005 [Verbose] > │ let v137 : string = $"%A{struct (v135, v136)}" │
00:01:01 #2006 [Verbose] > │ let v138 : bool = v104 = v106 │
00:01:01 #2007 [Verbose] > │ let v143 : US0 = │
00:01:01 #2008 [Verbose] > │ if v138 then │
00:01:01 #2009 [Verbose] > │ let v139 : System.ConsoleColor = │
00:01:01 #2010 [Verbose] > │ System.ConsoleColor.DarkGreen │
00:01:01 #2011 [Verbose] > │ US0_1(v139) │
00:01:01 #2012 [Verbose] > │ else │
00:01:01 #2013 [Verbose] > │ let v141 : System.ConsoleColor = System.ConsoleColor.DarkRed │
00:01:01 #2014 [Verbose] > │ US0_1(v141) │
00:01:01 #2015 [Verbose] > │ let v144 : UH2 = UH2_1 │
00:01:01 #2016 [Verbose] > │ let v145 : UH2 = UH2_0(v137, v144) │
00:01:01 #2017 [Verbose] > │ let v146 : UH2 = UH2_0(v106, v145) │
00:01:01 #2018 [Verbose] > │ let v147 : UH2 = UH2_0(v104, v146) │
00:01:01 #2019 [Verbose] > │ let v148 : UH2 = UH2_0(v105, v147) │
00:01:01 #2020 [Verbose] > │ v100.[int v103] <- struct (v148, v143) │
00:01:01 #2021 [Verbose] > │ let v149 : uint64 = v103 + 1UL │
00:01:01 #2022 [Verbose] > │ v101.l0 <- v149 │
00:01:01 #2023 [Verbose] > │ () │
00:01:01 #2024 [Verbose] > │ let v150 : string = "Input" │
00:01:01 #2025 [Verbose] > │ let v151 : string = "Expected" │
00:01:01 #2026 [Verbose] > │ let v152 : string = "Result" │
00:01:01 #2027 [Verbose] > │ let v153 : string = "Best" │
00:01:01 #2028 [Verbose] > │ let v154 : UH2 = UH2_1 │
00:01:01 #2029 [Verbose] > │ let v155 : UH2 = UH2_0(v153, v154) │
00:01:01 #2030 [Verbose] > │ let v156 : UH2 = UH2_0(v152, v155) │
00:01:01 #2031 [Verbose] > │ let v157 : UH2 = UH2_0(v151, v156) │
00:01:01 #2032 [Verbose] > │ let v158 : UH2 = UH2_0(v150, v157) │
00:01:01 #2033 [Verbose] > │ let v159 : US0 = US0_0 │
00:01:01 #2034 [Verbose] > │ let v160 : string = "---" │
00:01:01 #2035 [Verbose] > │ let v161 : UH2 = UH2_1 │
00:01:01 #2036 [Verbose] > │ let v162 : UH2 = UH2_0(v160, v161) │
00:01:01 #2037 [Verbose] > │ let v163 : UH2 = UH2_0(v160, v162) │
00:01:01 #2038 [Verbose] > │ let v164 : UH2 = UH2_0(v160, v163) │
00:01:01 #2039 [Verbose] > │ let v165 : UH2 = UH2_0(v160, v164) │
00:01:01 #2040 [Verbose] > │ let v166 : US0 = US0_0 │
00:01:01 #2041 [Verbose] > │ let v167 : UH5 = UH5_1 │
00:01:01 #2042 [Verbose] > │ let v168 : UH5 = UH5_0(v165, v166, v167) │
00:01:01 #2043 [Verbose] > │ let v169 : UH5 = UH5_0(v158, v159, v168) │
00:01:01 #2044 [Verbose] > │ let v170 : (struct (UH2 * US0) []) = method22(v169) │
00:01:01 #2045 [Verbose] > │ let v171 : uint64 = System.Convert.ToUInt64 v170.Length │
00:01:01 #2046 [Verbose] > │ let v172 : uint64 = System.Convert.ToUInt64 v100.Length │
00:01:01 #2047 [Verbose] > │ let v173 : uint64 = v171 + v172 │
00:01:01 #2048 [Verbose] > │ let v174 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * │
00:01:01 #2049 [Verbose] > │ US0)> (System.Convert.ToInt32(v173)) │
00:01:01 #2050 [Verbose] > │ let v175 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:01 #2051 [Verbose] > │ while method4(v173, v175) do │
00:01:01 #2052 [Verbose] > │ let v177 : uint64 = v175.l0 │
00:01:01 #2053 [Verbose] > │ let v178 : bool = v177 < v171 │
00:01:01 #2054 [Verbose] > │ let struct (v184 : UH2, v185 : US0) = │
00:01:01 #2055 [Verbose] > │ if v178 then │
00:01:01 #2056 [Verbose] > │ let struct (v179 : UH2, v180 : US0) = v170.[int v177] │
00:01:01 #2057 [Verbose] > │ struct (v179, v180) │
00:01:01 #2058 [Verbose] > │ else │
00:01:01 #2059 [Verbose] > │ let v181 : uint64 = v177 - v171 │
00:01:01 #2060 [Verbose] > │ let struct (v182 : UH2, v183 : US0) = v100.[int v181] │
00:01:01 #2061 [Verbose] > │ struct (v182, v183) │
00:01:01 #2062 [Verbose] > │ v174.[int v177] <- struct (v184, v185) │
00:01:01 #2063 [Verbose] > │ let v186 : uint64 = v177 + 1UL │
00:01:01 #2064 [Verbose] > │ v175.l0 <- v186 │
00:01:01 #2065 [Verbose] > │ () │
00:01:01 #2066 [Verbose] > │ let v187 : uint64 = System.Convert.ToUInt64 v174.Length │
00:01:01 #2067 [Verbose] > │ let v188 : ((string []) []) = Array.zeroCreate<(string [])> │
00:01:01 #2068 [Verbose] > │ (System.Convert.ToInt32(v187)) │
00:01:01 #2069 [Verbose] > │ let v189 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:01 #2070 [Verbose] > │ while method4(v187, v189) do │
00:01:01 #2071 [Verbose] > │ let v191 : uint64 = v189.l0 │
00:01:01 #2072 [Verbose] > │ let struct (v192 : UH2, v193 : US0) = v174.[int v191] │
00:01:01 #2073 [Verbose] > │ let v194 : (string []) = method25(v192) │
00:01:01 #2074 [Verbose] > │ v188.[int v191] <- v194 │
00:01:01 #2075 [Verbose] > │ let v195 : uint64 = v191 + 1UL │
00:01:01 #2076 [Verbose] > │ v189.l0 <- v195 │
00:01:01 #2077 [Verbose] > │ () │
00:01:01 #2078 [Verbose] > │ let v196 : ((string []) []) = v188 |> Array.transpose │
00:01:01 #2079 [Verbose] > │ let v197 : uint64 = System.Convert.ToUInt64 v196.Length │
00:01:01 #2080 [Verbose] > │ let v198 : (int64 []) = Array.zeroCreate<int64> │
00:01:01 #2081 [Verbose] > │ (System.Convert.ToInt32(v197)) │
00:01:01 #2082 [Verbose] > │ let v199 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:01 #2083 [Verbose] > │ while method4(v197, v199) do │
00:01:01 #2084 [Verbose] > │ let v201 : uint64 = v199.l0 │
00:01:01 #2085 [Verbose] > │ let v202 : (string []) = v196.[int v201] │
00:01:01 #2086 [Verbose] > │ let v203 : uint64 = System.Convert.ToUInt64 v202.Length │
00:01:01 #2087 [Verbose] > │ let v204 : (int64 []) = Array.zeroCreate<int64> │
00:01:01 #2088 [Verbose] > │ (System.Convert.ToInt32(v203)) │
00:01:01 #2089 [Verbose] > │ let v205 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:01 #2090 [Verbose] > │ while method4(v203, v205) do │
00:01:01 #2091 [Verbose] > │ let v207 : uint64 = v205.l0 │
00:01:01 #2092 [Verbose] > │ let v208 : string = v202.[int v207] │
00:01:01 #2093 [Verbose] > │ let v209 : int64 = System.Convert.ToInt64 v208.Length │
00:01:01 #2094 [Verbose] > │ v204.[int v207] <- v209 │
00:01:01 #2095 [Verbose] > │ let v210 : uint64 = v207 + 1UL │
00:01:01 #2096 [Verbose] > │ v205.l0 <- v210 │
00:01:01 #2097 [Verbose] > │ () │
00:01:01 #2098 [Verbose] > │ let v211 : (int64 []) = v204 |> Array.sortDescending │
00:01:01 #2099 [Verbose] > │ let v212 : int64 option = v211 |> Array.tryItem 0 │
00:01:01 #2100 [Verbose] > │ let v213 : (int64 -> US1) = closure5() │
00:01:01 #2101 [Verbose] > │ let v214 : US1 = US1_0 │
00:01:01 #2102 [Verbose] > │ let v215 : US1 = v212 |> Option.map v213 |> Option.defaultValue v214 │
00:01:01 #2103 [Verbose] > │ let v218 : int64 = │
00:01:01 #2104 [Verbose] > │ match v215 with │
00:01:01 #2105 [Verbose] > │ | US1_0 -> (* None *) │
00:01:01 #2106 [Verbose] > │ 0L │
00:01:01 #2107 [Verbose] > │ | US1_1(v216) -> (* Some *) │
00:01:01 #2108 [Verbose] > │ v216 │
00:01:01 #2109 [Verbose] > │ v198.[int v201] <- v218 │
00:01:01 #2110 [Verbose] > │ let v219 : uint64 = v201 + 1UL │
00:01:01 #2111 [Verbose] > │ v199.l0 <- v219 │
00:01:01 #2112 [Verbose] > │ () │
00:01:01 #2113 [Verbose] > │ let v220 : uint64 = System.Convert.ToUInt64 v198.Length │
00:01:01 #2114 [Verbose] > │ let v221 : UH6 = UH6_1 │
00:01:01 #2115 [Verbose] > │ let v222 : Mut3 = {l0 = 0UL; l1 = v221; l2 = 0} : Mut3 │
00:01:01 #2116 [Verbose] > │ while method28(v220, v222) do │
00:01:01 #2117 [Verbose] > │ let v224 : uint64 = v222.l0 │
00:01:01 #2118 [Verbose] > │ let struct (v225 : UH6, v226 : int32) = v222.l1, v222.l2 │
00:01:01 #2119 [Verbose] > │ let v227 : int64 = v198.[int v224] │
00:01:01 #2120 [Verbose] > │ let v228 : int32 = v226 + 1 │
00:01:01 #2121 [Verbose] > │ let v229 : uint64 = v224 + 1UL │
00:01:01 #2122 [Verbose] > │ let v230 : UH6 = UH6_0(v226, v227, v225) │
00:01:01 #2123 [Verbose] > │ v222.l0 <- v229 │
00:01:01 #2124 [Verbose] > │ v222.l1 <- v230 │
00:01:01 #2125 [Verbose] > │ v222.l2 <- v228 │
00:01:01 #2126 [Verbose] > │ () │
00:01:01 #2127 [Verbose] > │ let struct (v231 : UH6, v232 : int32) = v222.l1, v222.l2 │
00:01:01 #2128 [Verbose] > │ let v233 : UH6 = UH6_1 │
00:01:01 #2129 [Verbose] > │ let v234 : UH6 = method29(v231, v233) │
00:01:01 #2130 [Verbose] > │ let v235 : (struct (int32 * int64) []) = method30(v234) │
00:01:01 #2131 [Verbose] > │ let v236 : Map<int32, int64> = v235 |> Array.map (fun (struct (a, b)) -> │
00:01:01 #2132 [Verbose] > │ a, b) |> Map.ofArray │
00:01:01 #2133 [Verbose] > │ let v237 : (struct ((string []) * US0) []) = Array.zeroCreate<struct │
00:01:01 #2134 [Verbose] > │ ((string []) * US0)> (System.Convert.ToInt32(v187)) │
00:01:01 #2135 [Verbose] > │ let v238 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:01 #2136 [Verbose] > │ while method4(v187, v238) do │
00:01:01 #2137 [Verbose] > │ let v240 : uint64 = v238.l0 │
00:01:01 #2138 [Verbose] > │ let struct (v241 : UH2, v242 : US0) = v174.[int v240] │
00:01:01 #2139 [Verbose] > │ let v243 : UH7 = UH7_1 │
00:01:01 #2140 [Verbose] > │ let v244 : int32 = 0 │
00:01:01 #2141 [Verbose] > │ let struct (v245 : UH7, v246 : int32) = method33(v241, v243, v244) │
00:01:01 #2142 [Verbose] > │ let v247 : UH7 = UH7_1 │
00:01:01 #2143 [Verbose] > │ let v248 : UH7 = method34(v245, v247) │
00:01:01 #2144 [Verbose] > │ let v249 : UH2 = UH2_1 │
00:01:01 #2145 [Verbose] > │ let v250 : UH2 = method35(v236, v248, v249) │
00:01:01 #2146 [Verbose] > │ let v251 : (string []) = method9(v250) │
00:01:01 #2147 [Verbose] > │ v237.[int v240] <- struct (v251, v242) │
00:01:01 #2148 [Verbose] > │ let v252 : uint64 = v240 + 1UL │
00:01:01 #2149 [Verbose] > │ v238.l0 <- v252 │
00:01:01 #2150 [Verbose] > │ () │
00:01:01 #2151 [Verbose] > │ System.Console.WriteLine v2 │
00:01:01 #2152 [Verbose] > │ let v253 : uint64 = System.Convert.ToUInt64 v237.Length │
00:01:01 #2153 [Verbose] > │ let v254 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:01 #2154 [Verbose] > │ while method4(v253, v254) do │
00:01:01 #2155 [Verbose] > │ let v256 : uint64 = v254.l0 │
00:01:01 #2156 [Verbose] > │ let struct (v257 : (string []), v258 : US0) = v237.[int v256] │
00:01:01 #2157 [Verbose] > │ match v258 with │
00:01:01 #2158 [Verbose] > │ | US0_0 -> (* None *) │
00:01:01 #2159 [Verbose] > │ let mutable result = None │
00:01:01 #2160 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:01:01 #2161 [Verbose] > │ #if !WASM │
00:01:01 #2162 [Verbose] > │ () │
00:01:01 #2163 [Verbose] > │ #else │
00:01:01 #2164 [Verbose] > │ () │
00:01:01 #2165 [Verbose] > │ #endif │
00:01:01 #2166 [Verbose] > │ #else │
00:01:01 #2167 [Verbose] > │ System.Console.ResetColor () │
00:01:01 #2168 [Verbose] > │ () │
00:01:01 #2169 [Verbose] > │ #endif │
00:01:01 #2170 [Verbose] > │ |> fun x -> result <- Some x │
00:01:01 #2171 [Verbose] > │ result |> Option.get │
00:01:01 #2172 [Verbose] > │ () │
00:01:01 #2173 [Verbose] > │ | US0_1(v259) -> (* Some *) │
00:01:01 #2174 [Verbose] > │ let mutable result = None │
00:01:01 #2175 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:01:01 #2176 [Verbose] > │ #if !WASM │
00:01:01 #2177 [Verbose] > │ () │
00:01:01 #2178 [Verbose] > │ #else │
00:01:01 #2179 [Verbose] > │ () │
00:01:01 #2180 [Verbose] > │ #endif │
00:01:01 #2181 [Verbose] > │ #else │
00:01:01 #2182 [Verbose] > │ System.Console.ForegroundColor <- v259 │
00:01:01 #2183 [Verbose] > │ () │
00:01:01 #2184 [Verbose] > │ #endif │
00:01:01 #2185 [Verbose] > │ |> fun x -> result <- Some x │
00:01:01 #2186 [Verbose] > │ result |> Option.get │
00:01:01 #2187 [Verbose] > │ () │
00:01:01 #2188 [Verbose] > │ let v260 : string = "\t| " │
00:01:01 #2189 [Verbose] > │ let v261 : string = System.String.Join (v260, v257) │
00:01:01 #2190 [Verbose] > │ System.Console.WriteLine v261 │
00:01:01 #2191 [Verbose] > │ let mutable result = None │
00:01:01 #2192 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:01:01 #2193 [Verbose] > │ #if !WASM │
00:01:01 #2194 [Verbose] > │ () │
00:01:01 #2195 [Verbose] > │ #else │
00:01:01 #2196 [Verbose] > │ () │
00:01:01 #2197 [Verbose] > │ #endif │
00:01:01 #2198 [Verbose] > │ #else │
00:01:01 #2199 [Verbose] > │ System.Console.ResetColor () │
00:01:01 #2200 [Verbose] > │ () │
00:01:01 #2201 [Verbose] > │ #endif │
00:01:01 #2202 [Verbose] > │ |> fun x -> result <- Some x │
00:01:01 #2203 [Verbose] > │ result |> Option.get │
00:01:01 #2204 [Verbose] > │ let v262 : uint64 = v256 + 1UL │
00:01:01 #2205 [Verbose] > │ v254.l0 <- v262 │
00:01:01 #2206 [Verbose] > │ () │
00:01:01 #2207 [Verbose] > │ let v263 : ((float []) []) = Array.zeroCreate<(float [])> │
00:01:01 #2208 [Verbose] > │ (System.Convert.ToInt32(v99)) │
00:01:01 #2209 [Verbose] > │ let v264 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:01 #2210 [Verbose] > │ while method4(v99, v264) do │
00:01:01 #2211 [Verbose] > │ let v266 : uint64 = v264.l0 │
00:01:01 #2212 [Verbose] > │ let struct (v267 : string, v268 : string, v269 : string, v270 : │
00:01:01 #2213 [Verbose] > │ (int64 [])) = v24.[int v266] │
00:01:01 #2214 [Verbose] > │ let v271 : (int64 -> float) = float │
00:01:01 #2215 [Verbose] > │ let v272 : uint64 = System.Convert.ToUInt64 v270.Length │
00:01:01 #2216 [Verbose] > │ let v273 : (float []) = Array.zeroCreate<float> │
00:01:01 #2217 [Verbose] > │ (System.Convert.ToInt32(v272)) │
00:01:01 #2218 [Verbose] > │ let v274 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:01 #2219 [Verbose] > │ while method4(v272, v274) do │
00:01:01 #2220 [Verbose] > │ let v276 : uint64 = v274.l0 │
00:01:01 #2221 [Verbose] > │ let v277 : int64 = v270.[int v276] │
00:01:01 #2222 [Verbose] > │ let v278 : float = v271 v277 │
00:01:01 #2223 [Verbose] > │ v273.[int v276] <- v278 │
00:01:01 #2224 [Verbose] > │ let v279 : uint64 = v276 + 1UL │
00:01:01 #2225 [Verbose] > │ v274.l0 <- v279 │
00:01:01 #2226 [Verbose] > │ () │
00:01:01 #2227 [Verbose] > │ v263.[int v266] <- v273 │
00:01:01 #2228 [Verbose] > │ let v280 : uint64 = v266 + 1UL │
00:01:01 #2229 [Verbose] > │ v264.l0 <- v280 │
00:01:01 #2230 [Verbose] > │ () │
00:01:01 #2231 [Verbose] > │ let v281 : ((float []) []) = v263 |> Array.transpose │
00:01:01 #2232 [Verbose] > │ let v282 : uint64 = System.Convert.ToUInt64 v281.Length │
00:01:01 #2233 [Verbose] > │ let v283 : (float []) = Array.zeroCreate<float> │
00:01:01 #2234 [Verbose] > │ (System.Convert.ToInt32(v282)) │
00:01:01 #2235 [Verbose] > │ let v284 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:01 #2236 [Verbose] > │ while method4(v282, v284) do │
00:01:01 #2237 [Verbose] > │ let v286 : uint64 = v284.l0 │
00:01:01 #2238 [Verbose] > │ let v287 : (float []) = v281.[int v286] │
00:01:01 #2239 [Verbose] > │ let v288 : float = v287 |> Array.average │
00:01:01 #2240 [Verbose] > │ v283.[int v286] <- v288 │
00:01:01 #2241 [Verbose] > │ let v289 : uint64 = v286 + 1UL │
00:01:01 #2242 [Verbose] > │ v284.l0 <- v289 │
00:01:01 #2243 [Verbose] > │ () │
00:01:01 #2244 [Verbose] > │ let v290 : (float -> int64) = int64 │
00:01:01 #2245 [Verbose] > │ let v291 : uint64 = System.Convert.ToUInt64 v283.Length │
00:01:01 #2246 [Verbose] > │ let v292 : (int64 []) = Array.zeroCreate<int64> │
00:01:01 #2247 [Verbose] > │ (System.Convert.ToInt32(v291)) │
00:01:01 #2248 [Verbose] > │ let v293 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:01 #2249 [Verbose] > │ while method4(v291, v293) do │
00:01:01 #2250 [Verbose] > │ let v295 : uint64 = v293.l0 │
00:01:01 #2251 [Verbose] > │ let v296 : float = v283.[int v295] │
00:01:01 #2252 [Verbose] > │ let v297 : int64 = v290 v296 │
00:01:01 #2253 [Verbose] > │ v292.[int v295] <- v297 │
00:01:01 #2254 [Verbose] > │ let v298 : uint64 = v295 + 1UL │
00:01:01 #2255 [Verbose] > │ v293.l0 <- v298 │
00:01:01 #2256 [Verbose] > │ () │
00:01:01 #2257 [Verbose] > │ let v299 : uint64 = System.Convert.ToUInt64 v292.Length │
00:01:01 #2258 [Verbose] > │ let v300 : UH6 = UH6_1 │
00:01:01 #2259 [Verbose] > │ let v301 : Mut3 = {l0 = 0UL; l1 = v300; l2 = 0} : Mut3 │
00:01:01 #2260 [Verbose] > │ while method28(v299, v301) do │
00:01:01 #2261 [Verbose] > │ let v303 : uint64 = v301.l0 │
00:01:01 #2262 [Verbose] > │ let struct (v304 : UH6, v305 : int32) = v301.l1, v301.l2 │
00:01:01 #2263 [Verbose] > │ let v306 : int64 = v292.[int v303] │
00:01:01 #2264 [Verbose] > │ let v307 : int32 = v305 + 1 │
00:01:01 #2265 [Verbose] > │ let v308 : uint64 = v303 + 1UL │
00:01:01 #2266 [Verbose] > │ let v309 : UH6 = UH6_0(v305, v306, v304) │
00:01:01 #2267 [Verbose] > │ v301.l0 <- v308 │
00:01:01 #2268 [Verbose] > │ v301.l1 <- v309 │
00:01:01 #2269 [Verbose] > │ v301.l2 <- v307 │
00:01:01 #2270 [Verbose] > │ () │
00:01:01 #2271 [Verbose] > │ let struct (v310 : UH6, v311 : int32) = v301.l1, v301.l2 │
00:01:01 #2272 [Verbose] > │ let v312 : UH6 = UH6_1 │
00:01:01 #2273 [Verbose] > │ let v313 : UH6 = method29(v310, v312) │
00:01:01 #2274 [Verbose] > │ let v314 : (struct (int32 * int64) []) = method36(v313) │
00:01:01 #2275 [Verbose] > │ System.Console.WriteLine v2 │
00:01:01 #2276 [Verbose] > │ let v315 : string = "Average Ranking " │
00:01:01 #2277 [Verbose] > │ System.Console.WriteLine v315 │
00:01:01 #2278 [Verbose] > │ let v316 : (struct (int32 * int64) -> int64) = closure6() │
00:01:01 #2279 [Verbose] > │ let v317 : (struct (int32 * int64) []) = v314 |> Array.sortBy v316 │
00:01:01 #2280 [Verbose] > │ let v318 : uint64 = System.Convert.ToUInt64 v317.Length │
00:01:01 #2281 [Verbose] > │ let v319 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:01 #2282 [Verbose] > │ while method4(v318, v319) do │
00:01:01 #2283 [Verbose] > │ let v321 : uint64 = v319.l0 │
00:01:01 #2284 [Verbose] > │ let struct (v322 : int32, v323 : int64) = v317.[int v321] │
00:01:01 #2285 [Verbose] > │ let v324 : string = $"Test case %d{v322 + 1}. Average Time: %A{v323} │
00:01:01 #2286 [Verbose] > │ " │
00:01:01 #2287 [Verbose] > │ System.Console.WriteLine v324 │
00:01:01 #2288 [Verbose] > │ let v325 : uint64 = v321 + 1UL │
00:01:01 #2289 [Verbose] > │ v319.l0 <- v325 │
00:01:01 #2290 [Verbose] > │ () │
00:01:01 #2291 [Verbose] > │ () │
00:01:01 #2292 [Verbose] > │ and method0 () : unit = │
00:01:01 #2293 [Verbose] > │ let v0 : (unit -> unit) = closure0() │
00:01:01 #2294 [Verbose] > │ let v1 : string = nameof v0 │
00:01:01 #2295 [Verbose] > │ let v2 : string = "" │
00:01:01 #2296 [Verbose] > │ System.Console.WriteLine v2 │
00:01:01 #2297 [Verbose] > │ System.Console.WriteLine v2 │
00:01:01 #2298 [Verbose] > │ let v3 : string = $"Test: {v1}" │
00:01:01 #2299 [Verbose] > │ System.Console.WriteLine v3 │
00:01:01 #2300 [Verbose] > │ let v4 : string = "abc" │
00:01:01 #2301 [Verbose] > │ let v5 : string = "bca cab abc" │
00:01:01 #2302 [Verbose] > │ let v6 : string = "abcde" │
00:01:01 #2303 [Verbose] > │ let v7 : string = "bcdea cdeab deabc eabcd abcde" │
00:01:01 #2304 [Verbose] > │ let v8 : string = "abcdefghi" │
00:01:01 #2305 [Verbose] > │ let v9 : string = "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde │
00:01:01 #2306 [Verbose] > │ ghiabcdef hiabcdefg iabcdefgh abcdefghi" │
00:01:01 #2307 [Verbose] > │ let v10 : string = "abab" │
00:01:01 #2308 [Verbose] > │ let v11 : string = "baba abab baba abab" │
00:01:01 #2309 [Verbose] > │ let v12 : string = "aa" │
00:01:01 #2310 [Verbose] > │ let v13 : string = "aa aa" │
00:01:01 #2311 [Verbose] > │ let v14 : string = "z" │
00:01:01 #2312 [Verbose] > │ let v15 : UH0 = UH0_1 │
00:01:01 #2313 [Verbose] > │ let v16 : UH0 = UH0_0(v14, v14, v15) │
00:01:01 #2314 [Verbose] > │ let v17 : UH0 = UH0_0(v12, v13, v16) │
00:01:01 #2315 [Verbose] > │ let v18 : UH0 = UH0_0(v10, v11, v17) │
00:01:01 #2316 [Verbose] > │ let v19 : UH0 = UH0_0(v8, v9, v18) │
00:01:01 #2317 [Verbose] > │ let v20 : UH0 = UH0_0(v6, v7, v19) │
00:01:01 #2318 [Verbose] > │ let v21 : UH0 = UH0_0(v4, v5, v20) │
00:01:01 #2319 [Verbose] > │ let v22 : (struct (string * string) []) = method1(v21) │
00:01:01 #2320 [Verbose] > │ let v23 : uint64 = System.Convert.ToUInt64 v22.Length │
00:01:01 #2321 [Verbose] > │ let v24 : (struct (string * string * string * (int64 [])) []) = │
00:01:01 #2322 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))> │
00:01:01 #2323 [Verbose] > │ (System.Convert.ToInt32(v23)) │
00:01:01 #2324 [Verbose] > │ let v25 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:01 #2325 [Verbose] > │ while method4(v23, v25) do │
00:01:01 #2326 [Verbose] > │ let v27 : uint64 = v25.l0 │
00:01:01 #2327 [Verbose] > │ let struct (v28 : string, v29 : string) = v22.[int v27] │
00:01:01 #2328 [Verbose] > │ let v30 : string = $"%A{v28}" │
00:01:01 #2329 [Verbose] > │ System.Console.WriteLine v2 │
00:01:01 #2330 [Verbose] > │ let v31 : string = $"Solution: {v30} " │
00:01:01 #2331 [Verbose] > │ System.Console.WriteLine v31 │
00:01:01 #2332 [Verbose] > │ let v32 : int32 = 0 │
00:01:01 #2333 [Verbose] > │ let v33 : string = "F" │
00:01:01 #2334 [Verbose] > │ let v34 : (string -> string) = closure1() │
00:01:01 #2335 [Verbose] > │ let v35 : int32 = 1 │
00:01:01 #2336 [Verbose] > │ let v36 : string = "FA" │
00:01:01 #2337 [Verbose] > │ let v37 : (string -> string) = closure2() │
00:01:01 #2338 [Verbose] > │ let v38 : UH3 = UH3_1 │
00:01:01 #2339 [Verbose] > │ let v39 : UH3 = UH3_0(v35, v36, v37, v38) │
00:01:01 #2340 [Verbose] > │ let v40 : UH3 = UH3_0(v32, v33, v34, v39) │
00:01:01 #2341 [Verbose] > │ let v41 : (struct (int32 * string * (string -> string)) []) = │
00:01:01 #2342 [Verbose] > │ method12(v40) │
00:01:01 #2343 [Verbose] > │ let v42 : uint64 = System.Convert.ToUInt64 v41.Length │
00:01:01 #2344 [Verbose] > │ let v43 : (struct (string * int64) []) = Array.zeroCreate<struct │
00:01:01 #2345 [Verbose] > │ (string * int64)> (System.Convert.ToInt32(v42)) │
00:01:01 #2346 [Verbose] > │ let v44 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:01 #2347 [Verbose] > │ while method4(v42, v44) do │
00:01:01 #2348 [Verbose] > │ let v46 : uint64 = v44.l0 │
00:01:01 #2349 [Verbose] > │ let struct (v47 : int32, v48 : string, v49 : (string -> string)) │
00:01:01 #2350 [Verbose] > │ = v41.[int v46] │
00:01:01 #2351 [Verbose] > │ let mutable result = None │
00:01:01 #2352 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:01:01 #2353 [Verbose] > │ #if !WASM │
00:01:01 #2354 [Verbose] > │ () │
00:01:01 #2355 [Verbose] > │ #else │
00:01:01 #2356 [Verbose] > │ () │
00:01:01 #2357 [Verbose] > │ #endif │
00:01:01 #2358 [Verbose] > │ #else │
00:01:01 #2359 [Verbose] > │ System.GC.Collect () │
00:01:01 #2360 [Verbose] > │ () │
00:01:01 #2361 [Verbose] > │ #endif │
00:01:01 #2362 [Verbose] > │ |> fun x -> result <- Some x │
00:01:01 #2363 [Verbose] > │ result |> Option.get │
00:01:01 #2364 [Verbose] > │ let v50 : (unit -> System.Diagnostics.Stopwatch) = │
00:01:01 #2365 [Verbose] > │ System.Diagnostics.Stopwatch │
00:01:01 #2366 [Verbose] > │ let v51 : System.Diagnostics.Stopwatch = v50 () │
00:01:01 #2367 [Verbose] > │ v51.Start () │
00:01:01 #2368 [Verbose] > │ let v52 : int64 = v51.ElapsedMilliseconds │
00:01:01 #2369 [Verbose] > │ let v53 : (int32 []) = Array.zeroCreate<int32> (2000001) │
00:01:01 #2370 [Verbose] > │ let v54 : Mut1 = {l0 = 0} : Mut1 │
00:01:01 #2371 [Verbose] > │ while method15(v54) do │
00:01:01 #2372 [Verbose] > │ let v56 : int32 = v54.l0 │
00:01:01 #2373 [Verbose] > │ v53.[int v56] <- v56 │
00:01:01 #2374 [Verbose] > │ let v57 : int32 = v56 + 1 │
00:01:01 #2375 [Verbose] > │ v54.l0 <- v57 │
00:01:01 #2376 [Verbose] > │ () │
00:01:01 #2377 [Verbose] > │ let v58 : (int32 -> string) = closure3(v28, v49) │
00:01:01 #2378 [Verbose] > │ let v59 : (string []) = v53 |> Array.Parallel.map v58 │
00:01:01 #2379 [Verbose] > │ let v60 : int32 = v59.Length │
00:01:01 #2380 [Verbose] > │ let v61 : int32 = v60 - 1 │
00:01:01 #2381 [Verbose] > │ let v62 : string = v59.[int v61] │
00:01:01 #2382 [Verbose] > │ let v63 : int64 = v51.ElapsedMilliseconds │
00:01:01 #2383 [Verbose] > │ let v64 : int64 = v63 - v52 │
00:01:01 #2384 [Verbose] > │ let v65 : string = $"Test case {v47 + 1}. {v48}. Time: {v64} " │
00:01:01 #2385 [Verbose] > │ System.Console.WriteLine v65 │
00:01:01 #2386 [Verbose] > │ v43.[int v46] <- struct (v62, v64) │
00:01:01 #2387 [Verbose] > │ let v66 : uint64 = v46 + 1UL │
00:01:01 #2388 [Verbose] > │ v44.l0 <- v66 │
00:01:01 #2389 [Verbose] > │ () │
00:01:01 #2390 [Verbose] > │ let v67 : uint64 = System.Convert.ToUInt64 v43.Length │
00:01:01 #2391 [Verbose] > │ let v68 : (string []) = Array.zeroCreate<string> │
00:01:01 #2392 [Verbose] > │ (System.Convert.ToInt32(v67)) │
00:01:01 #2393 [Verbose] > │ let v69 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:01 #2394 [Verbose] > │ while method4(v67, v69) do │
00:01:01 #2395 [Verbose] > │ let v71 : uint64 = v69.l0 │
00:01:01 #2396 [Verbose] > │ let struct (v72 : string, v73 : int64) = v43.[int v71] │
00:01:01 #2397 [Verbose] > │ v68.[int v71] <- v72 │
00:01:01 #2398 [Verbose] > │ let v74 : uint64 = v71 + 1UL │
00:01:01 #2399 [Verbose] > │ v69.l0 <- v74 │
00:01:01 #2400 [Verbose] > │ () │
00:01:01 #2401 [Verbose] > │ let v75 : uint64 = System.Convert.ToUInt64 v68.Length │
00:01:01 #2402 [Verbose] > │ let v76 : bool = v75 <= 1UL │
00:01:01 #2403 [Verbose] > │ if v76 then │
00:01:01 #2404 [Verbose] > │ () │
00:01:01 #2405 [Verbose] > │ else │
00:01:01 #2406 [Verbose] > │ let v77 : string = v68.[int 0UL] │
00:01:01 #2407 [Verbose] > │ let v78 : uint64 = 0UL │
00:01:01 #2408 [Verbose] > │ let v79 : bool = method16(v77, v68, v78) │
00:01:01 #2409 [Verbose] > │ if v79 then │
00:01:01 #2410 [Verbose] > │ () │
00:01:01 #2411 [Verbose] > │ else │
00:01:01 #2412 [Verbose] > │ let v80 : string = $"Challenge error: {v68}" │
00:01:01 #2413 [Verbose] > │ failwith<unit> v80 │
00:01:01 #2414 [Verbose] > │ let v81 : string = $"%A{v29}" │
00:01:01 #2415 [Verbose] > │ let v82 : (string []) = Array.zeroCreate<string> │
00:01:01 #2416 [Verbose] > │ (System.Convert.ToInt32(v67)) │
00:01:01 #2417 [Verbose] > │ let v83 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:01 #2418 [Verbose] > │ while method4(v67, v83) do │
00:01:01 #2419 [Verbose] > │ let v85 : uint64 = v83.l0 │
00:01:01 #2420 [Verbose] > │ let struct (v86 : string, v87 : int64) = v43.[int v85] │
00:01:01 #2421 [Verbose] > │ v82.[int v85] <- v86 │
00:01:01 #2422 [Verbose] > │ let v88 : uint64 = v85 + 1UL │
00:01:01 #2423 [Verbose] > │ v83.l0 <- v88 │
00:01:01 #2424 [Verbose] > │ () │
00:01:01 #2425 [Verbose] > │ let v89 : string = v82.[int 0UL] │
00:01:01 #2426 [Verbose] > │ let v90 : string = $"%A{v89}" │
00:01:01 #2427 [Verbose] > │ let v91 : (int64 []) = Array.zeroCreate<int64> │
00:01:01 #2428 [Verbose] > │ (System.Convert.ToInt32(v67)) │
00:01:01 #2429 [Verbose] > │ let v92 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:01 #2430 [Verbose] > │ while method4(v67, v92) do │
00:01:01 #2431 [Verbose] > │ let v94 : uint64 = v92.l0 │
00:01:01 #2432 [Verbose] > │ let struct (v95 : string, v96 : int64) = v43.[int v94] │
00:01:01 #2433 [Verbose] > │ v91.[int v94] <- v96 │
00:01:01 #2434 [Verbose] > │ let v97 : uint64 = v94 + 1UL │
00:01:01 #2435 [Verbose] > │ v92.l0 <- v97 │
00:01:01 #2436 [Verbose] > │ () │
00:01:01 #2437 [Verbose] > │ v24.[int v27] <- struct (v81, v30, v90, v91) │
00:01:01 #2438 [Verbose] > │ let v98 : uint64 = v27 + 1UL │
00:01:01 #2439 [Verbose] > │ v25.l0 <- v98 │
00:01:01 #2440 [Verbose] > │ () │
00:01:01 #2441 [Verbose] > │ let v99 : uint64 = System.Convert.ToUInt64 v24.Length │
00:01:01 #2442 [Verbose] > │ let v100 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * │
00:01:01 #2443 [Verbose] > │ US0)> (System.Convert.ToInt32(v99)) │
00:01:01 #2444 [Verbose] > │ let v101 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:01 #2445 [Verbose] > │ while method4(v99, v101) do │
00:01:01 #2446 [Verbose] > │ let v103 : uint64 = v101.l0 │
00:01:01 #2447 [Verbose] > │ let struct (v104 : string, v105 : string, v106 : string, v107 : │
00:01:01 #2448 [Verbose] > │ (int64 [])) = v24.[int v103] │
00:01:01 #2449 [Verbose] > │ let v108 : uint64 = System.Convert.ToUInt64 v107.Length │
00:01:01 #2450 [Verbose] > │ let v109 : UH4 = UH4_1 │
00:01:01 #2451 [Verbose] > │ let v110 : Mut2 = {l0 = 0UL; l1 = v109; l2 = 0L} : Mut2 │
00:01:01 #2452 [Verbose] > │ while method17(v108, v110) do │
00:01:01 #2453 [Verbose] > │ let v112 : uint64 = v110.l0 │
00:01:01 #2454 [Verbose] > │ let struct (v113 : UH4, v114 : int64) = v110.l1, v110.l2 │
00:01:01 #2455 [Verbose] > │ let v115 : int64 = v107.[int v112] │
00:01:01 #2456 [Verbose] > │ let v116 : int64 = v114 + 1L │
00:01:01 #2457 [Verbose] > │ let v117 : uint64 = v112 + 1UL │
00:01:01 #2458 [Verbose] > │ let v118 : UH4 = UH4_0(v114, v115, v113) │
00:01:01 #2459 [Verbose] > │ v110.l0 <- v117 │
00:01:01 #2460 [Verbose] > │ v110.l1 <- v118 │
00:01:01 #2461 [Verbose] > │ v110.l2 <- v116 │
00:01:01 #2462 [Verbose] > │ () │
00:01:01 #2463 [Verbose] > │ let struct (v119 : UH4, v120 : int64) = v110.l1, v110.l2 │
00:01:01 #2464 [Verbose] > │ let v121 : UH4 = UH4_1 │
00:01:01 #2465 [Verbose] > │ let v122 : UH4 = method18(v119, v121) │
00:01:01 #2466 [Verbose] > │ let v123 : (struct (int64 * int64) []) = method19(v122) │
00:01:01 #2467 [Verbose] > │ let v124 : int32 = v123.Length │
00:01:01 #2468 [Verbose] > │ let v125 : (struct (int64 * int64) []) = Array.zeroCreate<struct │
00:01:01 #2469 [Verbose] > │ (int64 * int64)> (v124) │
00:01:01 #2470 [Verbose] > │ let v126 : Mut1 = {l0 = 0} : Mut1 │
00:01:01 #2471 [Verbose] > │ while method5(v124, v126) do │
00:01:01 #2472 [Verbose] > │ let v128 : int32 = v126.l0 │
00:01:01 #2473 [Verbose] > │ let struct (v129 : int64, v130 : int64) = v123.[int v128] │
00:01:01 #2474 [Verbose] > │ let v131 : int64 = v129 + 1L │
00:01:01 #2475 [Verbose] > │ v125.[int v128] <- struct (v131, v130) │
00:01:01 #2476 [Verbose] > │ let v132 : int32 = v128 + 1 │
00:01:01 #2477 [Verbose] > │ v126.l0 <- v132 │
00:01:01 #2478 [Verbose] > │ () │
00:01:01 #2479 [Verbose] > │ let v133 : (struct (int64 * int64) -> int64) = closure4() │
00:01:01 #2480 [Verbose] > │ let v134 : (struct (int64 * int64) []) = v125 |> Array.sortBy v133 │
00:01:01 #2481 [Verbose] > │ let struct (v135 : int64, v136 : int64) = v134.[int 0] │
00:01:02 #2482 [Verbose] > │ let v137 : string = $"%A{struct (v135, v136)}" │
00:01:02 #2483 [Verbose] > │ let v138 : bool = v104 = v106 │
00:01:02 #2484 [Verbose] > │ let v143 : US0 = │
00:01:02 #2485 [Verbose] > │ if v138 then │
00:01:02 #2486 [Verbose] > │ let v139 : System.ConsoleColor = │
00:01:02 #2487 [Verbose] > │ System.ConsoleColor.DarkGreen │
00:01:02 #2488 [Verbose] > │ US0_1(v139) │
00:01:02 #2489 [Verbose] > │ else │
00:01:02 #2490 [Verbose] > │ let v141 : System.ConsoleColor = System.ConsoleColor.DarkRed │
00:01:02 #2491 [Verbose] > │ US0_1(v141) │
00:01:02 #2492 [Verbose] > │ let v144 : UH2 = UH2_1 │
00:01:02 #2493 [Verbose] > │ let v145 : UH2 = UH2_0(v137, v144) │
00:01:02 #2494 [Verbose] > │ let v146 : UH2 = UH2_0(v106, v145) │
00:01:02 #2495 [Verbose] > │ let v147 : UH2 = UH2_0(v104, v146) │
00:01:02 #2496 [Verbose] > │ let v148 : UH2 = UH2_0(v105, v147) │
00:01:02 #2497 [Verbose] > │ v100.[int v103] <- struct (v148, v143) │
00:01:02 #2498 [Verbose] > │ let v149 : uint64 = v103 + 1UL │
00:01:02 #2499 [Verbose] > │ v101.l0 <- v149 │
00:01:02 #2500 [Verbose] > │ () │
00:01:02 #2501 [Verbose] > │ let v150 : string = "Input" │
00:01:02 #2502 [Verbose] > │ let v151 : string = "Expected" │
00:01:02 #2503 [Verbose] > │ let v152 : string = "Result" │
00:01:02 #2504 [Verbose] > │ let v153 : string = "Best" │
00:01:02 #2505 [Verbose] > │ let v154 : UH2 = UH2_1 │
00:01:02 #2506 [Verbose] > │ let v155 : UH2 = UH2_0(v153, v154) │
00:01:02 #2507 [Verbose] > │ let v156 : UH2 = UH2_0(v152, v155) │
00:01:02 #2508 [Verbose] > │ let v157 : UH2 = UH2_0(v151, v156) │
00:01:02 #2509 [Verbose] > │ let v158 : UH2 = UH2_0(v150, v157) │
00:01:02 #2510 [Verbose] > │ let v159 : US0 = US0_0 │
00:01:02 #2511 [Verbose] > │ let v160 : string = "---" │
00:01:02 #2512 [Verbose] > │ let v161 : UH2 = UH2_1 │
00:01:02 #2513 [Verbose] > │ let v162 : UH2 = UH2_0(v160, v161) │
00:01:02 #2514 [Verbose] > │ let v163 : UH2 = UH2_0(v160, v162) │
00:01:02 #2515 [Verbose] > │ let v164 : UH2 = UH2_0(v160, v163) │
00:01:02 #2516 [Verbose] > │ let v165 : UH2 = UH2_0(v160, v164) │
00:01:02 #2517 [Verbose] > │ let v166 : US0 = US0_0 │
00:01:02 #2518 [Verbose] > │ let v167 : UH5 = UH5_1 │
00:01:02 #2519 [Verbose] > │ let v168 : UH5 = UH5_0(v165, v166, v167) │
00:01:02 #2520 [Verbose] > │ let v169 : UH5 = UH5_0(v158, v159, v168) │
00:01:02 #2521 [Verbose] > │ let v170 : (struct (UH2 * US0) []) = method22(v169) │
00:01:02 #2522 [Verbose] > │ let v171 : uint64 = System.Convert.ToUInt64 v170.Length │
00:01:02 #2523 [Verbose] > │ let v172 : uint64 = System.Convert.ToUInt64 v100.Length │
00:01:02 #2524 [Verbose] > │ let v173 : uint64 = v171 + v172 │
00:01:02 #2525 [Verbose] > │ let v174 : (struct (UH2 * US0) []) = Array.zeroCreate<struct (UH2 * │
00:01:02 #2526 [Verbose] > │ US0)> (System.Convert.ToInt32(v173)) │
00:01:02 #2527 [Verbose] > │ let v175 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:02 #2528 [Verbose] > │ while method4(v173, v175) do │
00:01:02 #2529 [Verbose] > │ let v177 : uint64 = v175.l0 │
00:01:02 #2530 [Verbose] > │ let v178 : bool = v177 < v171 │
00:01:02 #2531 [Verbose] > │ let struct (v184 : UH2, v185 : US0) = │
00:01:02 #2532 [Verbose] > │ if v178 then │
00:01:02 #2533 [Verbose] > │ let struct (v179 : UH2, v180 : US0) = v170.[int v177] │
00:01:02 #2534 [Verbose] > │ struct (v179, v180) │
00:01:02 #2535 [Verbose] > │ else │
00:01:02 #2536 [Verbose] > │ let v181 : uint64 = v177 - v171 │
00:01:02 #2537 [Verbose] > │ let struct (v182 : UH2, v183 : US0) = v100.[int v181] │
00:01:02 #2538 [Verbose] > │ struct (v182, v183) │
00:01:02 #2539 [Verbose] > │ v174.[int v177] <- struct (v184, v185) │
00:01:02 #2540 [Verbose] > │ let v186 : uint64 = v177 + 1UL │
00:01:02 #2541 [Verbose] > │ v175.l0 <- v186 │
00:01:02 #2542 [Verbose] > │ () │
00:01:02 #2543 [Verbose] > │ let v187 : uint64 = System.Convert.ToUInt64 v174.Length │
00:01:02 #2544 [Verbose] > │ let v188 : ((string []) []) = Array.zeroCreate<(string [])> │
00:01:02 #2545 [Verbose] > │ (System.Convert.ToInt32(v187)) │
00:01:02 #2546 [Verbose] > │ let v189 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:02 #2547 [Verbose] > │ while method4(v187, v189) do │
00:01:02 #2548 [Verbose] > │ let v191 : uint64 = v189.l0 │
00:01:02 #2549 [Verbose] > │ let struct (v192 : UH2, v193 : US0) = v174.[int v191] │
00:01:02 #2550 [Verbose] > │ let v194 : (string []) = method25(v192) │
00:01:02 #2551 [Verbose] > │ v188.[int v191] <- v194 │
00:01:02 #2552 [Verbose] > │ let v195 : uint64 = v191 + 1UL │
00:01:02 #2553 [Verbose] > │ v189.l0 <- v195 │
00:01:02 #2554 [Verbose] > │ () │
00:01:02 #2555 [Verbose] > │ let v196 : ((string []) []) = v188 |> Array.transpose │
00:01:02 #2556 [Verbose] > │ let v197 : uint64 = System.Convert.ToUInt64 v196.Length │
00:01:02 #2557 [Verbose] > │ let v198 : (int64 []) = Array.zeroCreate<int64> │
00:01:02 #2558 [Verbose] > │ (System.Convert.ToInt32(v197)) │
00:01:02 #2559 [Verbose] > │ let v199 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:02 #2560 [Verbose] > │ while method4(v197, v199) do │
00:01:02 #2561 [Verbose] > │ let v201 : uint64 = v199.l0 │
00:01:02 #2562 [Verbose] > │ let v202 : (string []) = v196.[int v201] │
00:01:02 #2563 [Verbose] > │ let v203 : uint64 = System.Convert.ToUInt64 v202.Length │
00:01:02 #2564 [Verbose] > │ let v204 : (int64 []) = Array.zeroCreate<int64> │
00:01:02 #2565 [Verbose] > │ (System.Convert.ToInt32(v203)) │
00:01:02 #2566 [Verbose] > │ let v205 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:02 #2567 [Verbose] > │ while method4(v203, v205) do │
00:01:02 #2568 [Verbose] > │ let v207 : uint64 = v205.l0 │
00:01:02 #2569 [Verbose] > │ let v208 : string = v202.[int v207] │
00:01:02 #2570 [Verbose] > │ let v209 : int64 = System.Convert.ToInt64 v208.Length │
00:01:02 #2571 [Verbose] > │ v204.[int v207] <- v209 │
00:01:02 #2572 [Verbose] > │ let v210 : uint64 = v207 + 1UL │
00:01:02 #2573 [Verbose] > │ v205.l0 <- v210 │
00:01:02 #2574 [Verbose] > │ () │
00:01:02 #2575 [Verbose] > │ let v211 : (int64 []) = v204 |> Array.sortDescending │
00:01:02 #2576 [Verbose] > │ let v212 : int64 option = v211 |> Array.tryItem 0 │
00:01:02 #2577 [Verbose] > │ let v213 : (int64 -> US1) = closure5() │
00:01:02 #2578 [Verbose] > │ let v214 : US1 = US1_0 │
00:01:02 #2579 [Verbose] > │ let v215 : US1 = v212 |> Option.map v213 |> Option.defaultValue v214 │
00:01:02 #2580 [Verbose] > │ let v218 : int64 = │
00:01:02 #2581 [Verbose] > │ match v215 with │
00:01:02 #2582 [Verbose] > │ | US1_0 -> (* None *) │
00:01:02 #2583 [Verbose] > │ 0L │
00:01:02 #2584 [Verbose] > │ | US1_1(v216) -> (* Some *) │
00:01:02 #2585 [Verbose] > │ v216 │
00:01:02 #2586 [Verbose] > │ v198.[int v201] <- v218 │
00:01:02 #2587 [Verbose] > │ let v219 : uint64 = v201 + 1UL │
00:01:02 #2588 [Verbose] > │ v199.l0 <- v219 │
00:01:02 #2589 [Verbose] > │ () │
00:01:02 #2590 [Verbose] > │ let v220 : uint64 = System.Convert.ToUInt64 v198.Length │
00:01:02 #2591 [Verbose] > │ let v221 : UH6 = UH6_1 │
00:01:02 #2592 [Verbose] > │ let v222 : Mut3 = {l0 = 0UL; l1 = v221; l2 = 0} : Mut3 │
00:01:02 #2593 [Verbose] > │ while method28(v220, v222) do │
00:01:02 #2594 [Verbose] > │ let v224 : uint64 = v222.l0 │
00:01:02 #2595 [Verbose] > │ let struct (v225 : UH6, v226 : int32) = v222.l1, v222.l2 │
00:01:02 #2596 [Verbose] > │ let v227 : int64 = v198.[int v224] │
00:01:02 #2597 [Verbose] > │ let v228 : int32 = v226 + 1 │
00:01:02 #2598 [Verbose] > │ let v229 : uint64 = v224 + 1UL │
00:01:02 #2599 [Verbose] > │ let v230 : UH6 = UH6_0(v226, v227, v225) │
00:01:02 #2600 [Verbose] > │ v222.l0 <- v229 │
00:01:02 #2601 [Verbose] > │ v222.l1 <- v230 │
00:01:02 #2602 [Verbose] > │ v222.l2 <- v228 │
00:01:02 #2603 [Verbose] > │ () │
00:01:02 #2604 [Verbose] > │ let struct (v231 : UH6, v232 : int32) = v222.l1, v222.l2 │
00:01:02 #2605 [Verbose] > │ let v233 : UH6 = UH6_1 │
00:01:02 #2606 [Verbose] > │ let v234 : UH6 = method29(v231, v233) │
00:01:02 #2607 [Verbose] > │ let v235 : (struct (int32 * int64) []) = method30(v234) │
00:01:02 #2608 [Verbose] > │ let v236 : Map<int32, int64> = v235 |> Array.map (fun (struct (a, b)) -> │
00:01:02 #2609 [Verbose] > │ a, b) |> Map.ofArray │
00:01:02 #2610 [Verbose] > │ let v237 : (struct ((string []) * US0) []) = Array.zeroCreate<struct │
00:01:02 #2611 [Verbose] > │ ((string []) * US0)> (System.Convert.ToInt32(v187)) │
00:01:02 #2612 [Verbose] > │ let v238 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:02 #2613 [Verbose] > │ while method4(v187, v238) do │
00:01:02 #2614 [Verbose] > │ let v240 : uint64 = v238.l0 │
00:01:02 #2615 [Verbose] > │ let struct (v241 : UH2, v242 : US0) = v174.[int v240] │
00:01:02 #2616 [Verbose] > │ let v243 : UH7 = UH7_1 │
00:01:02 #2617 [Verbose] > │ let v244 : int32 = 0 │
00:01:02 #2618 [Verbose] > │ let struct (v245 : UH7, v246 : int32) = method33(v241, v243, v244) │
00:01:02 #2619 [Verbose] > │ let v247 : UH7 = UH7_1 │
00:01:02 #2620 [Verbose] > │ let v248 : UH7 = method34(v245, v247) │
00:01:02 #2621 [Verbose] > │ let v249 : UH2 = UH2_1 │
00:01:02 #2622 [Verbose] > │ let v250 : UH2 = method35(v236, v248, v249) │
00:01:02 #2623 [Verbose] > │ let v251 : (string []) = method9(v250) │
00:01:02 #2624 [Verbose] > │ v237.[int v240] <- struct (v251, v242) │
00:01:02 #2625 [Verbose] > │ let v252 : uint64 = v240 + 1UL │
00:01:02 #2626 [Verbose] > │ v238.l0 <- v252 │
00:01:02 #2627 [Verbose] > │ () │
00:01:02 #2628 [Verbose] > │ System.Console.WriteLine v2 │
00:01:02 #2629 [Verbose] > │ let v253 : uint64 = System.Convert.ToUInt64 v237.Length │
00:01:02 #2630 [Verbose] > │ let v254 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:02 #2631 [Verbose] > │ while method4(v253, v254) do │
00:01:02 #2632 [Verbose] > │ let v256 : uint64 = v254.l0 │
00:01:02 #2633 [Verbose] > │ let struct (v257 : (string []), v258 : US0) = v237.[int v256] │
00:01:02 #2634 [Verbose] > │ match v258 with │
00:01:02 #2635 [Verbose] > │ | US0_0 -> (* None *) │
00:01:02 #2636 [Verbose] > │ let mutable result = None │
00:01:02 #2637 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:01:02 #2638 [Verbose] > │ #if !WASM │
00:01:02 #2639 [Verbose] > │ () │
00:01:02 #2640 [Verbose] > │ #else │
00:01:02 #2641 [Verbose] > │ () │
00:01:02 #2642 [Verbose] > │ #endif │
00:01:02 #2643 [Verbose] > │ #else │
00:01:02 #2644 [Verbose] > │ System.Console.ResetColor () │
00:01:02 #2645 [Verbose] > │ () │
00:01:02 #2646 [Verbose] > │ #endif │
00:01:02 #2647 [Verbose] > │ |> fun x -> result <- Some x │
00:01:02 #2648 [Verbose] > │ result |> Option.get │
00:01:02 #2649 [Verbose] > │ () │
00:01:02 #2650 [Verbose] > │ | US0_1(v259) -> (* Some *) │
00:01:02 #2651 [Verbose] > │ let mutable result = None │
00:01:02 #2652 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:01:02 #2653 [Verbose] > │ #if !WASM │
00:01:02 #2654 [Verbose] > │ () │
00:01:02 #2655 [Verbose] > │ #else │
00:01:02 #2656 [Verbose] > │ () │
00:01:02 #2657 [Verbose] > │ #endif │
00:01:02 #2658 [Verbose] > │ #else │
00:01:02 #2659 [Verbose] > │ System.Console.ForegroundColor <- v259 │
00:01:02 #2660 [Verbose] > │ () │
00:01:02 #2661 [Verbose] > │ #endif │
00:01:02 #2662 [Verbose] > │ |> fun x -> result <- Some x │
00:01:02 #2663 [Verbose] > │ result |> Option.get │
00:01:02 #2664 [Verbose] > │ () │
00:01:02 #2665 [Verbose] > │ let v260 : string = "\t| " │
00:01:02 #2666 [Verbose] > │ let v261 : string = System.String.Join (v260, v257) │
00:01:02 #2667 [Verbose] > │ System.Console.WriteLine v261 │
00:01:02 #2668 [Verbose] > │ let mutable result = None │
00:01:02 #2669 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:01:02 #2670 [Verbose] > │ #if !WASM │
00:01:02 #2671 [Verbose] > │ () │
00:01:02 #2672 [Verbose] > │ #else │
00:01:02 #2673 [Verbose] > │ () │
00:01:02 #2674 [Verbose] > │ #endif │
00:01:02 #2675 [Verbose] > │ #else │
00:01:02 #2676 [Verbose] > │ System.Console.ResetColor () │
00:01:02 #2677 [Verbose] > │ () │
00:01:02 #2678 [Verbose] > │ #endif │
00:01:02 #2679 [Verbose] > │ |> fun x -> result <- Some x │
00:01:02 #2680 [Verbose] > │ result |> Option.get │
00:01:02 #2681 [Verbose] > │ let v262 : uint64 = v256 + 1UL │
00:01:02 #2682 [Verbose] > │ v254.l0 <- v262 │
00:01:02 #2683 [Verbose] > │ () │
00:01:02 #2684 [Verbose] > │ let v263 : ((float []) []) = Array.zeroCreate<(float [])> │
00:01:02 #2685 [Verbose] > │ (System.Convert.ToInt32(v99)) │
00:01:02 #2686 [Verbose] > │ let v264 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:02 #2687 [Verbose] > │ while method4(v99, v264) do │
00:01:02 #2688 [Verbose] > │ let v266 : uint64 = v264.l0 │
00:01:02 #2689 [Verbose] > │ let struct (v267 : string, v268 : string, v269 : string, v270 : │
00:01:02 #2690 [Verbose] > │ (int64 [])) = v24.[int v266] │
00:01:02 #2691 [Verbose] > │ let v271 : (int64 -> float) = float │
00:01:02 #2692 [Verbose] > │ let v272 : uint64 = System.Convert.ToUInt64 v270.Length │
00:01:02 #2693 [Verbose] > │ let v273 : (float []) = Array.zeroCreate<float> │
00:01:02 #2694 [Verbose] > │ (System.Convert.ToInt32(v272)) │
00:01:02 #2695 [Verbose] > │ let v274 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:02 #2696 [Verbose] > │ while method4(v272, v274) do │
00:01:02 #2697 [Verbose] > │ let v276 : uint64 = v274.l0 │
00:01:02 #2698 [Verbose] > │ let v277 : int64 = v270.[int v276] │
00:01:02 #2699 [Verbose] > │ let v278 : float = v271 v277 │
00:01:02 #2700 [Verbose] > │ v273.[int v276] <- v278 │
00:01:02 #2701 [Verbose] > │ let v279 : uint64 = v276 + 1UL │
00:01:02 #2702 [Verbose] > │ v274.l0 <- v279 │
00:01:02 #2703 [Verbose] > │ () │
00:01:02 #2704 [Verbose] > │ v263.[int v266] <- v273 │
00:01:02 #2705 [Verbose] > │ let v280 : uint64 = v266 + 1UL │
00:01:02 #2706 [Verbose] > │ v264.l0 <- v280 │
00:01:02 #2707 [Verbose] > │ () │
00:01:02 #2708 [Verbose] > │ let v281 : ((float []) []) = v263 |> Array.transpose │
00:01:02 #2709 [Verbose] > │ let v282 : uint64 = System.Convert.ToUInt64 v281.Length │
00:01:02 #2710 [Verbose] > │ let v283 : (float []) = Array.zeroCreate<float> │
00:01:02 #2711 [Verbose] > │ (System.Convert.ToInt32(v282)) │
00:01:02 #2712 [Verbose] > │ let v284 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:02 #2713 [Verbose] > │ while method4(v282, v284) do │
00:01:02 #2714 [Verbose] > │ let v286 : uint64 = v284.l0 │
00:01:02 #2715 [Verbose] > │ let v287 : (float []) = v281.[int v286] │
00:01:02 #2716 [Verbose] > │ let v288 : float = v287 |> Array.average │
00:01:02 #2717 [Verbose] > │ v283.[int v286] <- v288 │
00:01:02 #2718 [Verbose] > │ let v289 : uint64 = v286 + 1UL │
00:01:02 #2719 [Verbose] > │ v284.l0 <- v289 │
00:01:02 #2720 [Verbose] > │ () │
00:01:02 #2721 [Verbose] > │ let v290 : (float -> int64) = int64 │
00:01:02 #2722 [Verbose] > │ let v291 : uint64 = System.Convert.ToUInt64 v283.Length │
00:01:02 #2723 [Verbose] > │ let v292 : (int64 []) = Array.zeroCreate<int64> │
00:01:02 #2724 [Verbose] > │ (System.Convert.ToInt32(v291)) │
00:01:02 #2725 [Verbose] > │ let v293 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:02 #2726 [Verbose] > │ while method4(v291, v293) do │
00:01:02 #2727 [Verbose] > │ let v295 : uint64 = v293.l0 │
00:01:02 #2728 [Verbose] > │ let v296 : float = v283.[int v295] │
00:01:02 #2729 [Verbose] > │ let v297 : int64 = v290 v296 │
00:01:02 #2730 [Verbose] > │ v292.[int v295] <- v297 │
00:01:02 #2731 [Verbose] > │ let v298 : uint64 = v295 + 1UL │
00:01:02 #2732 [Verbose] > │ v293.l0 <- v298 │
00:01:02 #2733 [Verbose] > │ () │
00:01:02 #2734 [Verbose] > │ let v299 : uint64 = System.Convert.ToUInt64 v292.Length │
00:01:02 #2735 [Verbose] > │ let v300 : UH6 = UH6_1 │
00:01:02 #2736 [Verbose] > │ let v301 : Mut3 = {l0 = 0UL; l1 = v300; l2 = 0} : Mut3 │
00:01:02 #2737 [Verbose] > │ while method28(v299, v301) do │
00:01:02 #2738 [Verbose] > │ let v303 : uint64 = v301.l0 │
00:01:02 #2739 [Verbose] > │ let struct (v304 : UH6, v305 : int32) = v301.l1, v301.l2 │
00:01:02 #2740 [Verbose] > │ let v306 : int64 = v292.[int v303] │
00:01:02 #2741 [Verbose] > │ let v307 : int32 = v305 + 1 │
00:01:02 #2742 [Verbose] > │ let v308 : uint64 = v303 + 1UL │
00:01:02 #2743 [Verbose] > │ let v309 : UH6 = UH6_0(v305, v306, v304) │
00:01:02 #2744 [Verbose] > │ v301.l0 <- v308 │
00:01:02 #2745 [Verbose] > │ v301.l1 <- v309 │
00:01:02 #2746 [Verbose] > │ v301.l2 <- v307 │
00:01:02 #2747 [Verbose] > │ () │
00:01:02 #2748 [Verbose] > │ let struct (v310 : UH6, v311 : int32) = v301.l1, v301.l2 │
00:01:02 #2749 [Verbose] > │ let v312 : UH6 = UH6_1 │
00:01:02 #2750 [Verbose] > │ let v313 : UH6 = method29(v310, v312) │
00:01:02 #2751 [Verbose] > │ let v314 : (struct (int32 * int64) []) = method36(v313) │
00:01:02 #2752 [Verbose] > │ System.Console.WriteLine v2 │
00:01:02 #2753 [Verbose] > │ let v315 : string = "Average Ranking " │
00:01:02 #2754 [Verbose] > │ System.Console.WriteLine v315 │
00:01:02 #2755 [Verbose] > │ let v316 : (struct (int32 * int64) -> int64) = closure6() │
00:01:02 #2756 [Verbose] > │ let v317 : (struct (int32 * int64) []) = v314 |> Array.sortBy v316 │
00:01:02 #2757 [Verbose] > │ let v318 : uint64 = System.Convert.ToUInt64 v317.Length │
00:01:02 #2758 [Verbose] > │ let v319 : Mut0 = {l0 = 0UL} : Mut0 │
00:01:02 #2759 [Verbose] > │ while method4(v318, v319) do │
00:01:02 #2760 [Verbose] > │ let v321 : uint64 = v319.l0 │
00:01:02 #2761 [Verbose] > │ let struct (v322 : int32, v323 : int64) = v317.[int v321] │
00:01:02 #2762 [Verbose] > │ let v324 : string = $"Test case %d{v322 + 1}. Average Time: %A{v323} │
00:01:02 #2763 [Verbose] > │ " │
00:01:02 #2764 [Verbose] > │ System.Console.WriteLine v324 │
00:01:02 #2765 [Verbose] > │ let v325 : uint64 = v321 + 1UL │
00:01:02 #2766 [Verbose] > │ v319.l0 <- v325 │
00:01:02 #2767 [Verbose] > │ () │
00:01:02 #2768 [Verbose] > │ () │
00:01:02 #2769 [Verbose] > │ method0() │
00:01:02 #2770 [Verbose] > │ │
00:01:02 #2771 [Verbose] > │ │
00:01:02 #2772 [Verbose] > │ │
00:01:02 #2773 [Verbose] > │ Test: v0 │
00:01:02 #2774 [Verbose] > │ │
00:01:02 #2775 [Verbose] > │ Solution: "abc" │
00:01:02 #2776 [Verbose] > │ Test case 1. F. Time: 1181 │
00:01:02 #2777 [Verbose] > │ Test case 2. FA. Time: 1336 │
00:01:02 #2778 [Verbose] > │ │
00:01:02 #2779 [Verbose] > │ Solution: "abcde" │
00:01:02 #2780 [Verbose] > │ Test case 1. F. Time: 1510 │
00:01:02 #2781 [Verbose] > │ Test case 2. FA. Time: 2216 │
00:01:02 #2782 [Verbose] > │ │
00:01:02 #2783 [Verbose] > │ Solution: "abcdefghi" │
00:01:02 #2784 [Verbose] > │ Test case 1. F. Time: 2279 │
00:01:02 #2785 [Verbose] > │ Test case 2. FA. Time: 2913 │
00:01:02 #2786 [Verbose] > │ │
00:01:02 #2787 [Verbose] > │ Solution: "abab" │
00:01:02 #2788 [Verbose] > │ Test case 1. F. Time: 1126 │
00:01:02 #2789 [Verbose] > │ Test case 2. FA. Time: 1492 │
00:01:02 #2790 [Verbose] > │ │
00:01:02 #2791 [Verbose] > │ Solution: "aa" │
00:01:02 #2792 [Verbose] > │ Test case 1. F. Time: 852 │
00:01:02 #2793 [Verbose] > │ Test case 2. FA. Time: 826 │
00:01:02 #2794 [Verbose] > │ │
00:01:02 #2795 [Verbose] > │ Solution: "z" │
00:01:02 #2796 [Verbose] > │ Test case 1. F. Time: 209 │
00:01:02 #2797 [Verbose] > │ Test case 2. FA. Time: 153 │
00:01:02 #2798 [Verbose] > │ │
00:01:02 #2799 [Verbose] > │ Input | Expected │
00:01:02 #2800 [Verbose] > │ │
00:01:02 #2801 [Verbose] > │ | Result │
00:01:02 #2802 [Verbose] > │ │
00:01:02 #2803 [Verbose] > │ | Best │
00:01:02 #2804 [Verbose] > │ --- | --- │
00:01:02 #2805 [Verbose] > │ │
00:01:02 #2806 [Verbose] > │ | --- │
00:01:02 #2807 [Verbose] > │ │
00:01:02 #2808 [Verbose] > │ | --- │
00:01:02 #2809 [Verbose] > │ "abc" | "bca cab abc" │
00:01:02 #2810 [Verbose] > │ │
00:01:02 #2811 [Verbose] > │ | "bca cab abc" │
00:01:02 #2812 [Verbose] > │ │
00:01:02 #2813 [Verbose] > │ | struct (1L, 1181L) │
00:01:02 #2814 [Verbose] > │ "abcde" | "bcdea cdeab deabc eabcd abcde" │
00:01:02 #2815 [Verbose] > │ | "bcdea cdeab deabc eabcd abcde" │
00:01:02 #2816 [Verbose] > │ | struct (1L, 1510L) │
00:01:02 #2817 [Verbose] > │ "abcdefghi" | "bcdefghia cdefghiab defghiabc efghiabcd fghiabcde ghiabcdef │
00:01:02 #2818 [Verbose] > │ hiabcdefg iabcdefgh abcdefghi" | "bcdefghia cdefghiab defghiabc efghiabcd │
00:01:02 #2819 [Verbose] > │ fghiabcde ghiabcdef hiabcdefg iabcdefgh abcdefghi" | struct (1L, 2279L) │
00:01:02 #2820 [Verbose] > │ "abab" | "baba abab baba abab" │
00:01:02 #2821 [Verbose] > │ | "baba abab baba abab" │
00:01:02 #2822 [Verbose] > │ | struct (1L, 1126L) │
00:01:02 #2823 [Verbose] > │ "aa" | "aa aa" │
00:01:02 #2824 [Verbose] > │ │
00:01:02 #2825 [Verbose] > │ | "aa aa" │
00:01:02 #2826 [Verbose] > │ │
00:01:02 #2827 [Verbose] > │ | struct (2L, 826L) │
00:01:02 #2828 [Verbose] > │ "z" | "z" │
00:01:02 #2829 [Verbose] > │ │
00:01:02 #2830 [Verbose] > │ | "z" │
00:01:02 #2831 [Verbose] > │ │
00:01:02 #2832 [Verbose] > │ | struct (2L, 153L) │
00:01:02 #2833 [Verbose] > │ │
00:01:02 #2834 [Verbose] > │ Average Ranking │
00:01:02 #2835 [Verbose] > │ Test case 1. Average Time: 1192L │
00:01:02 #2836 [Verbose] > │ Test case 2. Average Time: 1489L │
00:01:02 #2837 [Verbose] > │ │
00:01:02 #2838 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:02 #2839 [Verbose] >
00:01:02 #2840 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:02 #2841 [Verbose] > // // test
00:01:02 #2842 [Verbose] > // // rust=
00:01:02 #2843 [Verbose] > // // print_code=false
00:01:02 #2844 [Verbose] >
00:01:02 #2845 [Verbose] > // rotate_strings_tests ()
00:01:02 #2846 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0055-4662-6210-6606da9b955f\main.spi
00:01:02 #2847 [Verbose] >
00:01:02 #2848 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:02 #2849 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:02 #2850 [Verbose] > │ ## binary_search_tests │
00:01:02 #2851 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:02 #2852 [Verbose] >
00:01:02 #2853 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:02 #2854 [Verbose] > // // test
00:01:02 #2855 [Verbose] > // // timeout=90000
00:01:02 #2856 [Verbose] > // // print_code=true
00:01:02 #2857 [Verbose] >
00:01:02 #2858 [Verbose] > inl binary_search_semi_open_1 arr target left right =
00:01:02 #2859 [Verbose] > inl rec body left right =
00:01:02 #2860 [Verbose] > if left >= right
00:01:02 #2861 [Verbose] > then None
00:01:02 #2862 [Verbose] > else
00:01:02 #2863 [Verbose] > inl mid = (left + right) / 2
00:01:02 #2864 [Verbose] > inl item = index arr mid
00:01:02 #2865 [Verbose] > if item = target
00:01:02 #2866 [Verbose] > then Some mid
00:01:02 #2867 [Verbose] > elif item < target
00:01:02 #2868 [Verbose] > then loop (mid + 1) right
00:01:02 #2869 [Verbose] > else loop left mid
00:01:02 #2870 [Verbose] > and inl loop left right =
00:01:02 #2871 [Verbose] > if var_is right |> not
00:01:02 #2872 [Verbose] > then body left right
00:01:02 #2873 [Verbose] > else
00:01:02 #2874 [Verbose] > inl left = dyn left
00:01:02 #2875 [Verbose] > join body left right
00:01:02 #2876 [Verbose] > loop left right
00:01:02 #2877 [Verbose] >
00:01:02 #2878 [Verbose] > inl binary_search_closed_1 arr target left right =
00:01:02 #2879 [Verbose] > inl rec body left right =
00:01:02 #2880 [Verbose] > if left > right
00:01:02 #2881 [Verbose] > then None
00:01:02 #2882 [Verbose] > else
00:01:02 #2883 [Verbose] > inl mid = (left + right) / 2
00:01:02 #2884 [Verbose] > inl item = index arr mid
00:01:02 #2885 [Verbose] > if item = target
00:01:02 #2886 [Verbose] > then Some mid
00:01:02 #2887 [Verbose] > elif item < target
00:01:02 #2888 [Verbose] > then loop (mid + 1) right
00:01:02 #2889 [Verbose] > else loop left (mid - 1)
00:01:02 #2890 [Verbose] > and inl loop left right =
00:01:02 #2891 [Verbose] > if var_is right |> not
00:01:02 #2892 [Verbose] > then body left right
00:01:02 #2893 [Verbose] > else
00:01:02 #2894 [Verbose] > inl left = dyn left
00:01:02 #2895 [Verbose] > join body left right
00:01:02 #2896 [Verbose] > loop left right
00:01:02 #2897 [Verbose] >
00:01:02 #2898 [Verbose] > inl binary_search_semi_open_2 arr target left right =
00:01:02 #2899 [Verbose] > let rec body left right =
00:01:02 #2900 [Verbose] > if left >= right
00:01:02 #2901 [Verbose] > then None
00:01:02 #2902 [Verbose] > else
00:01:02 #2903 [Verbose] > inl mid = (left + right) / 2
00:01:02 #2904 [Verbose] > inl item = index arr mid
00:01:02 #2905 [Verbose] > if item = target
00:01:02 #2906 [Verbose] > then Some mid
00:01:02 #2907 [Verbose] > elif item < target
00:01:02 #2908 [Verbose] > then loop (mid + 1) right
00:01:02 #2909 [Verbose] > else loop left mid
00:01:02 #2910 [Verbose] > and inl loop left right = body left right
00:01:02 #2911 [Verbose] > loop left right
00:01:02 #2912 [Verbose] >
00:01:02 #2913 [Verbose] > inl binary_search_closed_2 arr target left right =
00:01:02 #2914 [Verbose] > let rec body left right =
00:01:02 #2915 [Verbose] > if left > right
00:01:02 #2916 [Verbose] > then None
00:01:02 #2917 [Verbose] > else
00:01:02 #2918 [Verbose] > inl mid = (left + right) / 2
00:01:02 #2919 [Verbose] > inl item = index arr mid
00:01:02 #2920 [Verbose] > if item = target
00:01:02 #2921 [Verbose] > then Some mid
00:01:02 #2922 [Verbose] > elif item < target
00:01:02 #2923 [Verbose] > then loop (mid + 1) right
00:01:02 #2924 [Verbose] > else loop left (mid - 1)
00:01:02 #2925 [Verbose] > and inl loop left right = body left right
00:01:02 #2926 [Verbose] > loop left right
00:01:02 #2927 [Verbose] >
00:01:02 #2928 [Verbose] > inl get_solutions () =
00:01:02 #2929 [Verbose] > [[
00:01:02 #2930 [Verbose] > "semi_open_1",
00:01:02 #2931 [Verbose] > fun (arr, (target, len)) =>
00:01:02 #2932 [Verbose] > binary_search_semi_open_1 arr target 0 len
00:01:02 #2933 [Verbose] >
00:01:02 #2934 [Verbose] > "closed_1",
00:01:02 #2935 [Verbose] > fun (arr, (target, len)) =>
00:01:02 #2936 [Verbose] > binary_search_closed_1 arr target 0 (len - 1)
00:01:02 #2937 [Verbose] >
00:01:02 #2938 [Verbose] > "semi_open_2",
00:01:02 #2939 [Verbose] > fun (arr, (target, len)) =>
00:01:02 #2940 [Verbose] > binary_search_semi_open_2 arr target 0 len
00:01:02 #2941 [Verbose] >
00:01:02 #2942 [Verbose] > "closed_2",
00:01:02 #2943 [Verbose] > fun (arr, (target, len)) =>
00:01:02 #2944 [Verbose] > binary_search_closed_2 arr target 0 (len - 1)
00:01:02 #2945 [Verbose] > ]]
00:01:02 #2946 [Verbose] >
00:01:02 #2947 [Verbose] > inl rec binary_search_tests () =
00:01:02 #2948 [Verbose] > inl arr_with_len target len arr =
00:01:02 #2949 [Verbose] > arr, (target, (len |> optionm'.default_with fun () => length arr))
00:01:02 #2950 [Verbose] >
00:01:02 #2951 [Verbose] > inl test_cases = [[
00:01:02 #2952 [Verbose] > (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 6 None), (Some 3i32)
00:01:02 #2953 [Verbose] > (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 1 None), (Some 0i32)
00:01:02 #2954 [Verbose] > (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 11 None), (Some 6i32)
00:01:02 #2955 [Verbose] > (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 12 None), None
00:01:02 #2956 [Verbose] > ((am'.init_series 1i32 100 1) |> arr_with_len 60 None), (Some 59)
00:01:02 #2957 [Verbose] >
00:01:02 #2958 [Verbose] > (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 6 (Some 7)), (Some
00:01:02 #2959 [Verbose] > 3i32)
00:01:02 #2960 [Verbose] > (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 1 (Some 7)), (Some
00:01:02 #2961 [Verbose] > 0i32)
00:01:02 #2962 [Verbose] > (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 11 (Some 7)), (Some
00:01:02 #2963 [Verbose] > 6i32)
00:01:02 #2964 [Verbose] > (a ;[[ 1i32; 3; 4; 6; 8; 9; 11 ]] |> arr_with_len 12 (Some 7)), None
00:01:02 #2965 [Verbose] > ((am'.init_series 1i32 100 1) |> arr_with_len 60 (Some 100)), (Some 59)
00:01:02 #2966 [Verbose] > ]]
00:01:02 #2967 [Verbose] >
00:01:02 #2968 [Verbose] > inl solutions = get_solutions ()
00:01:02 #2969 [Verbose] >
00:01:02 #2970 [Verbose] > // inl is_fast () = true
00:01:02 #2971 [Verbose] >
00:01:02 #2972 [Verbose] > inl count =
00:01:02 #2973 [Verbose] > if is_fast ()
00:01:02 #2974 [Verbose] > then 1000i32
00:01:02 #2975 [Verbose] > else 8000000i32
00:01:02 #2976 [Verbose] >
00:01:02 #2977 [Verbose] > run_all (nameof binary_search_tests) count solutions test_cases
00:01:02 #2978 [Verbose] > |> sort_result_list
00:01:02 #2979 [Verbose] >
00:01:02 #2980 [Verbose] >
00:01:02 #2981 [Verbose] > let main () =
00:01:02 #2982 [Verbose] > binary_search_tests ()
00:01:02 #2983 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0055-4686-8661-894a46a21d2b\main.spi
00:01:37 #2984 [Verbose] >
00:01:37 #2985 [Verbose] > ╭─[ 34.78s - stdout ]──────────────────────────────────────────────────────────╮
00:01:37 #2986 [Verbose] > │ type Mut0 = {mutable l0 : int32} │
00:01:37 #2987 [Verbose] > │ and [<Struct>] US0 = │
00:01:37 #2988 [Verbose] > │ | US0_0 │
00:01:37 #2989 [Verbose] > │ | US0_1 of f1_0 : int32 │
00:01:37 #2990 [Verbose] > │ and UH0 = │
00:01:37 #2991 [Verbose] > │ | UH0_0 of (int32 []) * int32 * int32 * US0 * UH0 │
00:01:37 #2992 [Verbose] > │ | UH0_1 │
00:01:37 #2993 [Verbose] > │ and Mut1 = {mutable l0 : uint64} │
00:01:37 #2994 [Verbose] > │ and UH1 = │
00:01:37 #2995 [Verbose] > │ | UH1_0 of int32 * string * (struct ((int32 []) * int32 * int32) -> US0) │
00:01:37 #2996 [Verbose] > │ * UH1 │
00:01:37 #2997 [Verbose] > │ | UH1_1 │
00:01:37 #2998 [Verbose] > │ and UH2 = │
00:01:37 #2999 [Verbose] > │ | UH2_0 of string * UH2 │
00:01:37 #3000 [Verbose] > │ | UH2_1 │
00:01:37 #3001 [Verbose] > │ and [<Struct>] US1 = │
00:01:37 #3002 [Verbose] > │ | US1_0 │
00:01:37 #3003 [Verbose] > │ | US1_1 of f1_0 : System.ConsoleColor │
00:01:37 #3004 [Verbose] > │ and UH3 = │
00:01:37 #3005 [Verbose] > │ | UH3_0 of int64 * int64 * UH3 │
00:01:37 #3006 [Verbose] > │ | UH3_1 │
00:01:37 #3007 [Verbose] > │ and Mut2 = {mutable l0 : uint64; mutable l1 : UH3; mutable l2 : int64} │
00:01:37 #3008 [Verbose] > │ and UH4 = │
00:01:37 #3009 [Verbose] > │ | UH4_0 of UH2 * US1 * UH4 │
00:01:37 #3010 [Verbose] > │ | UH4_1 │
00:01:37 #3011 [Verbose] > │ and [<Struct>] US2 = │
00:01:37 #3012 [Verbose] > │ | US2_0 │
00:01:37 #3013 [Verbose] > │ | US2_1 of f1_0 : int64 │
00:01:37 #3014 [Verbose] > │ and UH5 = │
00:01:37 #3015 [Verbose] > │ | UH5_0 of int32 * int64 * UH5 │
00:01:37 #3016 [Verbose] > │ | UH5_1 │
00:01:37 #3017 [Verbose] > │ and Mut3 = {mutable l0 : uint64; mutable l1 : UH5; mutable l2 : int32} │
00:01:37 #3018 [Verbose] > │ and UH6 = │
00:01:37 #3019 [Verbose] > │ | UH6_0 of int32 * string * UH6 │
00:01:37 #3020 [Verbose] > │ | UH6_1 │
00:01:37 #3021 [Verbose] > │ let rec method1 (v0 : (int32 [])) : (int32 []) = │
00:01:37 #3022 [Verbose] > │ v0 │
00:01:37 #3023 [Verbose] > │ and method2 (v0 : Mut0) : bool = │
00:01:37 #3024 [Verbose] > │ let v1 : int32 = v0.l0 │
00:01:37 #3025 [Verbose] > │ let v2 : bool = v1 < 100 │
00:01:37 #3026 [Verbose] > │ v2 │
00:01:37 #3027 [Verbose] > │ and method4 (v0 : UH0, v1 : uint64) : uint64 = │
00:01:37 #3028 [Verbose] > │ match v0 with │
00:01:37 #3029 [Verbose] > │ | UH0_0(v2, v3, v4, v5, v6) -> (* Cons *) │
00:01:37 #3030 [Verbose] > │ let v7 : uint64 = v1 + 1UL │
00:01:37 #3031 [Verbose] > │ method4(v6, v7) │
00:01:37 #3032 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:01:37 #3033 [Verbose] > │ v1 │
00:01:37 #3034 [Verbose] > │ and method5 (v0 : (struct ((int32 []) * int32 * int32 * US0) []), v1 : UH0, │
00:01:37 #3035 [Verbose] > │ v2 : uint64) : uint64 = │
00:01:37 #3036 [Verbose] > │ match v1 with │
00:01:37 #3037 [Verbose] > │ | UH0_0(v3, v4, v5, v6, v7) -> (* Cons *) │
00:01:37 #3038 [Verbose] > │ v0.[int v2] <- struct (v3, v4, v5, v6) │
00:01:37 #3039 [Verbose] > │ let v8 : uint64 = v2 + 1UL │
00:01:37 #3040 [Verbose] > │ method5(v0, v7, v8) │
00:01:37 #3041 [Verbose] > │ | UH0_1 -> (* Nil *) │
00:01:37 #3042 [Verbose] > │ v2 │
00:01:37 #3043 [Verbose] > │ and method3 (v0 : UH0) : (struct ((int32 []) * int32 * int32 * US0) []) = │
00:01:37 #3044 [Verbose] > │ let v1 : uint64 = 0UL │
00:01:37 #3045 [Verbose] > │ let v2 : uint64 = method4(v0, v1) │
00:01:37 #3046 [Verbose] > │ let v3 : (struct ((int32 []) * int32 * int32 * US0) []) = │
00:01:37 #3047 [Verbose] > │ Array.zeroCreate<struct ((int32 []) * int32 * int32 * US0)> │
00:01:37 #3048 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:01:37 #3049 [Verbose] > │ let v4 : uint64 = 0UL │
00:01:37 #3050 [Verbose] > │ let v5 : uint64 = method5(v3, v0, v4) │
00:01:37 #3051 [Verbose] > │ v3 │
00:01:37 #3052 [Verbose] > │ and method6 (v0 : uint64, v1 : Mut1) : bool = │
00:01:37 #3053 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:01:37 #3054 [Verbose] > │ let v3 : bool = v2 < v0 │
00:01:37 #3055 [Verbose] > │ v3 │
00:01:37 #3056 [Verbose] > │ and method7 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : int32) : US0 = │
00:01:37 #3057 [Verbose] > │ let v4 : bool = v3 >= v2 │
00:01:37 #3058 [Verbose] > │ if v4 then │
00:01:37 #3059 [Verbose] > │ US0_0 │
00:01:37 #3060 [Verbose] > │ else │
00:01:37 #3061 [Verbose] > │ let v6 : int32 = v3 + v2 │
00:01:37 #3062 [Verbose] > │ let v7 : int32 = v6 / 2 │
00:01:37 #3063 [Verbose] > │ let v8 : int32 = v0.[int v7] │
00:01:37 #3064 [Verbose] > │ let v9 : bool = v8 = v1 │
00:01:37 #3065 [Verbose] > │ if v9 then │
00:01:37 #3066 [Verbose] > │ US0_1(v7) │
00:01:37 #3067 [Verbose] > │ else │
00:01:37 #3068 [Verbose] > │ let v11 : bool = v8 < v1 │
00:01:37 #3069 [Verbose] > │ if v11 then │
00:01:37 #3070 [Verbose] > │ let v12 : int32 = v7 + 1 │
00:01:37 #3071 [Verbose] > │ method7(v0, v1, v2, v12) │
00:01:37 #3072 [Verbose] > │ else │
00:01:37 #3073 [Verbose] > │ method7(v0, v1, v7, v3) │
00:01:37 #3074 [Verbose] > │ and closure1 () struct (v0 : (int32 []), v1 : int32, v2 : int32) : US0 = │
00:01:37 #3075 [Verbose] > │ let v3 : int32 = 0 │
00:01:37 #3076 [Verbose] > │ method7(v0, v1, v2, v3) │
00:01:37 #3077 [Verbose] > │ and method8 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : int32) : US0 = │
00:01:37 #3078 [Verbose] > │ let v4 : bool = v3 > v2 │
00:01:37 #3079 [Verbose] > │ if v4 then │
00:01:37 #3080 [Verbose] > │ US0_0 │
00:01:37 #3081 [Verbose] > │ else │
00:01:37 #3082 [Verbose] > │ let v6 : int32 = v3 + v2 │
00:01:37 #3083 [Verbose] > │ let v7 : int32 = v6 / 2 │
00:01:37 #3084 [Verbose] > │ let v8 : int32 = v0.[int v7] │
00:01:37 #3085 [Verbose] > │ let v9 : bool = v8 = v1 │
00:01:37 #3086 [Verbose] > │ if v9 then │
00:01:37 #3087 [Verbose] > │ US0_1(v7) │
00:01:37 #3088 [Verbose] > │ else │
00:01:37 #3089 [Verbose] > │ let v11 : bool = v8 < v1 │
00:01:37 #3090 [Verbose] > │ if v11 then │
00:01:37 #3091 [Verbose] > │ let v12 : int32 = v7 + 1 │
00:01:37 #3092 [Verbose] > │ method8(v0, v1, v2, v12) │
00:01:37 #3093 [Verbose] > │ else │
00:01:37 #3094 [Verbose] > │ let v14 : int32 = v7 - 1 │
00:01:37 #3095 [Verbose] > │ method8(v0, v1, v14, v3) │
00:01:37 #3096 [Verbose] > │ and closure2 () struct (v0 : (int32 []), v1 : int32, v2 : int32) : US0 = │
00:01:37 #3097 [Verbose] > │ let v3 : int32 = v2 - 1 │
00:01:37 #3098 [Verbose] > │ let v4 : int32 = 0 │
00:01:37 #3099 [Verbose] > │ method8(v0, v1, v3, v4) │
00:01:37 #3100 [Verbose] > │ and method9 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : int32) : US0 = │
00:01:37 #3101 [Verbose] > │ let v4 : bool = v2 >= v3 │
00:01:37 #3102 [Verbose] > │ if v4 then │
00:01:37 #3103 [Verbose] > │ US0_0 │
00:01:37 #3104 [Verbose] > │ else │
00:01:37 #3105 [Verbose] > │ let v6 : int32 = v2 + v3 │
00:01:37 #3106 [Verbose] > │ let v7 : int32 = v6 / 2 │
00:01:37 #3107 [Verbose] > │ let v8 : int32 = v0.[int v7] │
00:01:37 #3108 [Verbose] > │ let v9 : bool = v8 = v1 │
00:01:37 #3109 [Verbose] > │ if v9 then │
00:01:37 #3110 [Verbose] > │ US0_1(v7) │
00:01:37 #3111 [Verbose] > │ else │
00:01:37 #3112 [Verbose] > │ let v11 : bool = v8 < v1 │
00:01:37 #3113 [Verbose] > │ if v11 then │
00:01:37 #3114 [Verbose] > │ let v12 : int32 = v7 + 1 │
00:01:37 #3115 [Verbose] > │ method9(v0, v1, v12, v3) │
00:01:37 #3116 [Verbose] > │ else │
00:01:37 #3117 [Verbose] > │ method9(v0, v1, v2, v7) │
00:01:37 #3118 [Verbose] > │ and closure3 () struct (v0 : (int32 []), v1 : int32, v2 : int32) : US0 = │
00:01:37 #3119 [Verbose] > │ let v3 : int32 = 0 │
00:01:37 #3120 [Verbose] > │ method9(v0, v1, v3, v2) │
00:01:37 #3121 [Verbose] > │ and method10 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : int32) : US0 = │
00:01:37 #3122 [Verbose] > │ let v4 : bool = v2 > v3 │
00:01:37 #3123 [Verbose] > │ if v4 then │
00:01:37 #3124 [Verbose] > │ US0_0 │
00:01:37 #3125 [Verbose] > │ else │
00:01:37 #3126 [Verbose] > │ let v6 : int32 = v2 + v3 │
00:01:37 #3127 [Verbose] > │ let v7 : int32 = v6 / 2 │
00:01:37 #3128 [Verbose] > │ let v8 : int32 = v0.[int v7] │
00:01:37 #3129 [Verbose] > │ let v9 : bool = v8 = v1 │
00:01:37 #3130 [Verbose] > │ if v9 then │
00:01:37 #3131 [Verbose] > │ US0_1(v7) │
00:01:37 #3132 [Verbose] > │ else │
00:01:37 #3133 [Verbose] > │ let v11 : bool = v8 < v1 │
00:01:37 #3134 [Verbose] > │ if v11 then │
00:01:37 #3135 [Verbose] > │ let v12 : int32 = v7 + 1 │
00:01:37 #3136 [Verbose] > │ method10(v0, v1, v12, v3) │
00:01:37 #3137 [Verbose] > │ else │
00:01:37 #3138 [Verbose] > │ let v14 : int32 = v7 - 1 │
00:01:37 #3139 [Verbose] > │ method10(v0, v1, v2, v14) │
00:01:37 #3140 [Verbose] > │ and closure4 () struct (v0 : (int32 []), v1 : int32, v2 : int32) : US0 = │
00:01:37 #3141 [Verbose] > │ let v3 : int32 = v2 - 1 │
00:01:37 #3142 [Verbose] > │ let v4 : int32 = 0 │
00:01:37 #3143 [Verbose] > │ method10(v0, v1, v4, v3) │
00:01:37 #3144 [Verbose] > │ and method12 (v0 : UH1, v1 : uint64) : uint64 = │
00:01:37 #3145 [Verbose] > │ match v0 with │
00:01:37 #3146 [Verbose] > │ | UH1_0(v2, v3, v4, v5) -> (* Cons *) │
00:01:37 #3147 [Verbose] > │ let v6 : uint64 = v1 + 1UL │
00:01:37 #3148 [Verbose] > │ method12(v5, v6) │
00:01:37 #3149 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:01:37 #3150 [Verbose] > │ v1 │
00:01:37 #3151 [Verbose] > │ and method13 (v0 : (struct (int32 * string * (struct ((int32 []) * int32 * │
00:01:37 #3152 [Verbose] > │ int32) -> US0)) []), v1 : UH1, v2 : uint64) : uint64 = │
00:01:37 #3153 [Verbose] > │ match v1 with │
00:01:37 #3154 [Verbose] > │ | UH1_0(v3, v4, v5, v6) -> (* Cons *) │
00:01:37 #3155 [Verbose] > │ v0.[int v2] <- struct (v3, v4, v5) │
00:01:37 #3156 [Verbose] > │ let v7 : uint64 = v2 + 1UL │
00:01:37 #3157 [Verbose] > │ method13(v0, v6, v7) │
00:01:37 #3158 [Verbose] > │ | UH1_1 -> (* Nil *) │
00:01:37 #3159 [Verbose] > │ v2 │
00:01:37 #3160 [Verbose] > │ and method11 (v0 : UH1) : (struct (int32 * string * (struct ((int32 []) * │
00:01:37 #3161 [Verbose] > │ int32 * int32) -> US0)) []) = │
00:01:37 #3162 [Verbose] > │ let v1 : uint64 = 0UL │
00:01:37 #3163 [Verbose] > │ let v2 : uint64 = method12(v0, v1) │
00:01:37 #3164 [Verbose] > │ let v3 : (struct (int32 * string * (struct ((int32 []) * int32 * int32) │
00:01:37 #3165 [Verbose] > │ -> US0)) []) = Array.zeroCreate<struct (int32 * string * (struct ((int32 []) │
00:01:37 #3166 [Verbose] > │ * int32 * int32) -> US0))> (System.Convert.ToInt32(v2)) │
00:01:37 #3167 [Verbose] > │ let v4 : uint64 = 0UL │
00:01:37 #3168 [Verbose] > │ let v5 : uint64 = method13(v3, v0, v4) │
00:01:37 #3169 [Verbose] > │ v3 │
00:01:37 #3170 [Verbose] > │ and method14 (v0 : Mut0) : bool = │
00:01:37 #3171 [Verbose] > │ let v1 : int32 = v0.l0 │
00:01:37 #3172 [Verbose] > │ let v2 : bool = v1 < 8000001 │
00:01:37 #3173 [Verbose] > │ v2 │
00:01:37 #3174 [Verbose] > │ and closure5 (v0 : (int32 []), v1 : int32, v2 : int32, v3 : (struct ((int32 │
00:01:37 #3175 [Verbose] > │ []) * int32 * int32) -> US0)) (v4 : int32) : US0 = │
00:01:37 #3176 [Verbose] > │ v3 struct (v0, v1, v2) │
00:01:37 #3177 [Verbose] > │ and method15 (v0 : US0, v1 : (US0 []), v2 : uint64) : bool = │
00:01:37 #3178 [Verbose] > │ let v3 : uint64 = System.Convert.ToUInt64 v1.Length │
00:01:37 #3179 [Verbose] > │ let v4 : bool = v2 < v3 │
00:01:37 #3180 [Verbose] > │ if v4 then │
00:01:37 #3181 [Verbose] > │ let v5 : US0 = v1.[int v2] │
00:01:37 #3182 [Verbose] > │ let v9 : bool = │
00:01:37 #3183 [Verbose] > │ match v0, v5 with │
00:01:37 #3184 [Verbose] > │ | US0_0, US0_0 -> (* None *) │
00:01:37 #3185 [Verbose] > │ true │
00:01:37 #3186 [Verbose] > │ | US0_1(v6), US0_1(v7) -> (* Some *) │
00:01:37 #3187 [Verbose] > │ let v8 : bool = v6 = v7 │
00:01:37 #3188 [Verbose] > │ v8 │
00:01:37 #3189 [Verbose] > │ | _ -> │
00:01:37 #3190 [Verbose] > │ false │
00:01:37 #3191 [Verbose] > │ if v9 then │
00:01:37 #3192 [Verbose] > │ let v10 : uint64 = v2 + 1UL │
00:01:37 #3193 [Verbose] > │ method15(v0, v1, v10) │
00:01:37 #3194 [Verbose] > │ else │
00:01:37 #3195 [Verbose] > │ false │
00:01:37 #3196 [Verbose] > │ else │
00:01:37 #3197 [Verbose] > │ true │
00:01:37 #3198 [Verbose] > │ and method16 (v0 : uint64, v1 : Mut2) : bool = │
00:01:37 #3199 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:01:37 #3200 [Verbose] > │ let v3 : bool = v2 < v0 │
00:01:37 #3201 [Verbose] > │ v3 │
00:01:37 #3202 [Verbose] > │ and method17 (v0 : UH3, v1 : UH3) : UH3 = │
00:01:37 #3203 [Verbose] > │ match v0 with │
00:01:37 #3204 [Verbose] > │ | UH3_0(v2, v3, v4) -> (* Cons *) │
00:01:37 #3205 [Verbose] > │ let v5 : UH3 = UH3_0(v2, v3, v1) │
00:01:37 #3206 [Verbose] > │ method17(v4, v5) │
00:01:37 #3207 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:01:37 #3208 [Verbose] > │ v1 │
00:01:37 #3209 [Verbose] > │ and method19 (v0 : UH3, v1 : int32) : int32 = │
00:01:37 #3210 [Verbose] > │ match v0 with │
00:01:37 #3211 [Verbose] > │ | UH3_0(v2, v3, v4) -> (* Cons *) │
00:01:37 #3212 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:01:37 #3213 [Verbose] > │ method19(v4, v5) │
00:01:37 #3214 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:01:37 #3215 [Verbose] > │ v1 │
00:01:37 #3216 [Verbose] > │ and method20 (v0 : (struct (int64 * int64) []), v1 : UH3, v2 : int32) : │
00:01:37 #3217 [Verbose] > │ int32 = │
00:01:37 #3218 [Verbose] > │ match v1 with │
00:01:37 #3219 [Verbose] > │ | UH3_0(v3, v4, v5) -> (* Cons *) │
00:01:37 #3220 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:01:37 #3221 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:01:37 #3222 [Verbose] > │ method20(v0, v5, v6) │
00:01:37 #3223 [Verbose] > │ | UH3_1 -> (* Nil *) │
00:01:37 #3224 [Verbose] > │ v2 │
00:01:37 #3225 [Verbose] > │ and method18 (v0 : UH3) : (struct (int64 * int64) []) = │
00:01:37 #3226 [Verbose] > │ let v1 : int32 = 0 │
00:01:37 #3227 [Verbose] > │ let v2 : int32 = method19(v0, v1) │
00:01:37 #3228 [Verbose] > │ let v3 : (struct (int64 * int64) []) = Array.zeroCreate<struct (int64 * │
00:01:37 #3229 [Verbose] > │ int64)> (v2) │
00:01:37 #3230 [Verbose] > │ let v4 : int32 = 0 │
00:01:37 #3231 [Verbose] > │ let v5 : int32 = method20(v3, v0, v4) │
00:01:37 #3232 [Verbose] > │ v3 │
00:01:37 #3233 [Verbose] > │ and method21 (v0 : int32, v1 : Mut0) : bool = │
00:01:37 #3234 [Verbose] > │ let v2 : int32 = v1.l0 │
00:01:37 #3235 [Verbose] > │ let v3 : bool = v2 < v0 │
00:01:37 #3236 [Verbose] > │ v3 │
00:01:37 #3237 [Verbose] > │ and closure6 () struct (v0 : int64, v1 : int64) : int64 = │
00:01:37 #3238 [Verbose] > │ v1 │
00:01:37 #3239 [Verbose] > │ and method23 (v0 : UH4, v1 : uint64) : uint64 = │
00:01:37 #3240 [Verbose] > │ match v0 with │
00:01:37 #3241 [Verbose] > │ | UH4_0(v2, v3, v4) -> (* Cons *) │
00:01:37 #3242 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:01:37 #3243 [Verbose] > │ method23(v4, v5) │
00:01:37 #3244 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:01:37 #3245 [Verbose] > │ v1 │
00:01:37 #3246 [Verbose] > │ and method24 (v0 : (struct (UH2 * US1) []), v1 : UH4, v2 : uint64) : uint64 │
00:01:37 #3247 [Verbose] > │ = │
00:01:37 #3248 [Verbose] > │ match v1 with │
00:01:37 #3249 [Verbose] > │ | UH4_0(v3, v4, v5) -> (* Cons *) │
00:01:37 #3250 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:01:37 #3251 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:01:37 #3252 [Verbose] > │ method24(v0, v5, v6) │
00:01:37 #3253 [Verbose] > │ | UH4_1 -> (* Nil *) │
00:01:37 #3254 [Verbose] > │ v2 │
00:01:37 #3255 [Verbose] > │ and method22 (v0 : UH4) : (struct (UH2 * US1) []) = │
00:01:37 #3256 [Verbose] > │ let v1 : uint64 = 0UL │
00:01:37 #3257 [Verbose] > │ let v2 : uint64 = method23(v0, v1) │
00:01:37 #3258 [Verbose] > │ let v3 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 * US1)> │
00:01:37 #3259 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:01:37 #3260 [Verbose] > │ let v4 : uint64 = 0UL │
00:01:37 #3261 [Verbose] > │ let v5 : uint64 = method24(v3, v0, v4) │
00:01:37 #3262 [Verbose] > │ v3 │
00:01:37 #3263 [Verbose] > │ and method26 (v0 : UH2, v1 : uint64) : uint64 = │
00:01:37 #3264 [Verbose] > │ match v0 with │
00:01:37 #3265 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:01:37 #3266 [Verbose] > │ let v4 : uint64 = v1 + 1UL │
00:01:37 #3267 [Verbose] > │ method26(v3, v4) │
00:01:37 #3268 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:01:37 #3269 [Verbose] > │ v1 │
00:01:37 #3270 [Verbose] > │ and method27 (v0 : (string []), v1 : UH2, v2 : uint64) : uint64 = │
00:01:37 #3271 [Verbose] > │ match v1 with │
00:01:37 #3272 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:01:37 #3273 [Verbose] > │ v0.[int v2] <- v3 │
00:01:37 #3274 [Verbose] > │ let v5 : uint64 = v2 + 1UL │
00:01:37 #3275 [Verbose] > │ method27(v0, v4, v5) │
00:01:37 #3276 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:01:37 #3277 [Verbose] > │ v2 │
00:01:37 #3278 [Verbose] > │ and method25 (v0 : UH2) : (string []) = │
00:01:37 #3279 [Verbose] > │ let v1 : uint64 = 0UL │
00:01:37 #3280 [Verbose] > │ let v2 : uint64 = method26(v0, v1) │
00:01:37 #3281 [Verbose] > │ let v3 : (string []) = Array.zeroCreate<string> │
00:01:37 #3282 [Verbose] > │ (System.Convert.ToInt32(v2)) │
00:01:37 #3283 [Verbose] > │ let v4 : uint64 = 0UL │
00:01:37 #3284 [Verbose] > │ let v5 : uint64 = method27(v3, v0, v4) │
00:01:37 #3285 [Verbose] > │ v3 │
00:01:37 #3286 [Verbose] > │ and closure7 () (v0 : int64) : US2 = │
00:01:37 #3287 [Verbose] > │ US2_1(v0) │
00:01:37 #3288 [Verbose] > │ and method28 (v0 : uint64, v1 : Mut3) : bool = │
00:01:37 #3289 [Verbose] > │ let v2 : uint64 = v1.l0 │
00:01:37 #3290 [Verbose] > │ let v3 : bool = v2 < v0 │
00:01:37 #3291 [Verbose] > │ v3 │
00:01:37 #3292 [Verbose] > │ and method29 (v0 : UH5, v1 : UH5) : UH5 = │
00:01:37 #3293 [Verbose] > │ match v0 with │
00:01:37 #3294 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:01:37 #3295 [Verbose] > │ let v5 : UH5 = UH5_0(v2, v3, v1) │
00:01:37 #3296 [Verbose] > │ method29(v4, v5) │
00:01:37 #3297 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:01:37 #3298 [Verbose] > │ v1 │
00:01:37 #3299 [Verbose] > │ and method31 (v0 : UH5, v1 : int32) : int32 = │
00:01:37 #3300 [Verbose] > │ match v0 with │
00:01:37 #3301 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:01:37 #3302 [Verbose] > │ let v5 : int32 = v1 + 1 │
00:01:37 #3303 [Verbose] > │ method31(v4, v5) │
00:01:37 #3304 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:01:37 #3305 [Verbose] > │ v1 │
00:01:37 #3306 [Verbose] > │ and method32 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : int32) : │
00:01:37 #3307 [Verbose] > │ int32 = │
00:01:37 #3308 [Verbose] > │ match v1 with │
00:01:37 #3309 [Verbose] > │ | UH5_0(v3, v4, v5) -> (* Cons *) │
00:01:37 #3310 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:01:37 #3311 [Verbose] > │ let v6 : int32 = v2 + 1 │
00:01:37 #3312 [Verbose] > │ method32(v0, v5, v6) │
00:01:37 #3313 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:01:37 #3314 [Verbose] > │ v2 │
00:01:37 #3315 [Verbose] > │ and method30 (v0 : UH5) : (struct (int32 * int64) []) = │
00:01:37 #3316 [Verbose] > │ let v1 : int32 = 0 │
00:01:37 #3317 [Verbose] > │ let v2 : int32 = method31(v0, v1) │
00:01:37 #3318 [Verbose] > │ let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 * │
00:01:37 #3319 [Verbose] > │ int64)> (v2) │
00:01:37 #3320 [Verbose] > │ let v4 : int32 = 0 │
00:01:37 #3321 [Verbose] > │ let v5 : int32 = method32(v3, v0, v4) │
00:01:37 #3322 [Verbose] > │ v3 │
00:01:37 #3323 [Verbose] > │ and method33 (v0 : UH2, v1 : UH6, v2 : int32) : struct (UH6 * int32) = │
00:01:37 #3324 [Verbose] > │ match v0 with │
00:01:37 #3325 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:01:37 #3326 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:01:37 #3327 [Verbose] > │ let v6 : UH6 = UH6_0(v2, v3, v1) │
00:01:37 #3328 [Verbose] > │ method33(v4, v6, v5) │
00:01:37 #3329 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:01:37 #3330 [Verbose] > │ struct (v1, v2) │
00:01:37 #3331 [Verbose] > │ and method34 (v0 : UH6, v1 : UH6) : UH6 = │
00:01:37 #3332 [Verbose] > │ match v0 with │
00:01:37 #3333 [Verbose] > │ | UH6_0(v2, v3, v4) -> (* Cons *) │
00:01:37 #3334 [Verbose] > │ let v5 : UH6 = UH6_0(v2, v3, v1) │
00:01:37 #3335 [Verbose] > │ method34(v4, v5) │
00:01:37 #3336 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:01:37 #3337 [Verbose] > │ v1 │
00:01:37 #3338 [Verbose] > │ and method35 (v0 : Map<int32, int64>, v1 : UH6, v2 : UH2) : UH2 = │
00:01:37 #3339 [Verbose] > │ match v1 with │
00:01:37 #3340 [Verbose] > │ | UH6_0(v3, v4, v5) -> (* Cons *) │
00:01:37 #3341 [Verbose] > │ let v6 : UH2 = method35(v0, v5, v2) │
00:01:37 #3342 [Verbose] > │ let v7 : int64 = v0.[v3] │
00:01:37 #3343 [Verbose] > │ let v8 : int32 = int32 v7 │
00:01:37 #3344 [Verbose] > │ let v9 : string = v4.PadRight v8 │
00:01:37 #3345 [Verbose] > │ UH2_0(v9, v6) │
00:01:37 #3346 [Verbose] > │ | UH6_1 -> (* Nil *) │
00:01:37 #3347 [Verbose] > │ v2 │
00:01:37 #3348 [Verbose] > │ and method37 (v0 : UH2, v1 : int32) : int32 = │
00:01:37 #3349 [Verbose] > │ match v0 with │
00:01:37 #3350 [Verbose] > │ | UH2_0(v2, v3) -> (* Cons *) │
00:01:37 #3351 [Verbose] > │ let v4 : int32 = v1 + 1 │
00:01:37 #3352 [Verbose] > │ method37(v3, v4) │
00:01:37 #3353 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:01:37 #3354 [Verbose] > │ v1 │
00:01:37 #3355 [Verbose] > │ and method38 (v0 : (string []), v1 : UH2, v2 : int32) : int32 = │
00:01:37 #3356 [Verbose] > │ match v1 with │
00:01:37 #3357 [Verbose] > │ | UH2_0(v3, v4) -> (* Cons *) │
00:01:37 #3358 [Verbose] > │ v0.[int v2] <- v3 │
00:01:37 #3359 [Verbose] > │ let v5 : int32 = v2 + 1 │
00:01:37 #3360 [Verbose] > │ method38(v0, v4, v5) │
00:01:37 #3361 [Verbose] > │ | UH2_1 -> (* Nil *) │
00:01:37 #3362 [Verbose] > │ v2 │
00:01:37 #3363 [Verbose] > │ and method36 (v0 : UH2) : (string []) = │
00:01:37 #3364 [Verbose] > │ let v1 : int32 = 0 │
00:01:37 #3365 [Verbose] > │ let v2 : int32 = method37(v0, v1) │
00:01:37 #3366 [Verbose] > │ let v3 : (string []) = Array.zeroCreate<string> (v2) │
00:01:37 #3367 [Verbose] > │ let v4 : int32 = 0 │
00:01:37 #3368 [Verbose] > │ let v5 : int32 = method38(v3, v0, v4) │
00:01:37 #3369 [Verbose] > │ v3 │
00:01:37 #3370 [Verbose] > │ and method40 (v0 : UH5, v1 : uint64) : uint64 = │
00:01:37 #3371 [Verbose] > │ match v0 with │
00:01:37 #3372 [Verbose] > │ | UH5_0(v2, v3, v4) -> (* Cons *) │
00:01:37 #3373 [Verbose] > │ let v5 : uint64 = v1 + 1UL │
00:01:37 #3374 [Verbose] > │ method40(v4, v5) │
00:01:37 #3375 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:01:37 #3376 [Verbose] > │ v1 │
00:01:37 #3377 [Verbose] > │ and method41 (v0 : (struct (int32 * int64) []), v1 : UH5, v2 : uint64) : │
00:01:37 #3378 [Verbose] > │ uint64 = │
00:01:37 #3379 [Verbose] > │ match v1 with │
00:01:37 #3380 [Verbose] > │ | UH5_0(v3, v4, v5) -> (* Cons *) │
00:01:37 #3381 [Verbose] > │ v0.[int v2] <- struct (v3, v4) │
00:01:37 #3382 [Verbose] > │ let v6 : uint64 = v2 + 1UL │
00:01:37 #3383 [Verbose] > │ method41(v0, v5, v6) │
00:01:37 #3384 [Verbose] > │ | UH5_1 -> (* Nil *) │
00:01:37 #3385 [Verbose] > │ v2 │
00:01:37 #3386 [Verbose] > │ and method39 (v0 : UH5) : (struct (int32 * int64) []) = │
00:01:37 #3387 [Verbose] > │ let v1 : uint64 = 0UL │
00:01:37 #3388 [Verbose] > │ let v2 : uint64 = method40(v0, v1) │
00:01:37 #3389 [Verbose] > │ let v3 : (struct (int32 * int64) []) = Array.zeroCreate<struct (int32 * │
00:01:37 #3390 [Verbose] > │ int64)> (System.Convert.ToInt32(v2)) │
00:01:37 #3391 [Verbose] > │ let v4 : uint64 = 0UL │
00:01:37 #3392 [Verbose] > │ let v5 : uint64 = method41(v3, v0, v4) │
00:01:37 #3393 [Verbose] > │ v3 │
00:01:37 #3394 [Verbose] > │ and closure8 () struct (v0 : int32, v1 : int64) : int64 = │
00:01:37 #3395 [Verbose] > │ v1 │
00:01:37 #3396 [Verbose] > │ and closure0 () () : unit = │
00:01:37 #3397 [Verbose] > │ let v0 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:01:37 #3398 [Verbose] > │ let v1 : (int32 []) = method1(v0) │
00:01:37 #3399 [Verbose] > │ let v2 : int32 = v1.Length │
00:01:37 #3400 [Verbose] > │ let v3 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:01:37 #3401 [Verbose] > │ let v4 : (int32 []) = method1(v3) │
00:01:37 #3402 [Verbose] > │ let v5 : int32 = v4.Length │
00:01:37 #3403 [Verbose] > │ let v6 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:01:37 #3404 [Verbose] > │ let v7 : (int32 []) = method1(v6) │
00:01:37 #3405 [Verbose] > │ let v8 : int32 = v7.Length │
00:01:37 #3406 [Verbose] > │ let v9 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:01:37 #3407 [Verbose] > │ let v10 : (int32 []) = method1(v9) │
00:01:37 #3408 [Verbose] > │ let v11 : int32 = v10.Length │
00:01:37 #3409 [Verbose] > │ let v12 : (int32 []) = Array.zeroCreate<int32> (100) │
00:01:37 #3410 [Verbose] > │ let v13 : Mut0 = {l0 = 0} : Mut0 │
00:01:37 #3411 [Verbose] > │ while method2(v13) do │
00:01:37 #3412 [Verbose] > │ let v15 : int32 = v13.l0 │
00:01:37 #3413 [Verbose] > │ let v16 : int32 = 1 + v15 │
00:01:37 #3414 [Verbose] > │ v12.[int v15] <- v16 │
00:01:37 #3415 [Verbose] > │ let v17 : int32 = v15 + 1 │
00:01:37 #3416 [Verbose] > │ v13.l0 <- v17 │
00:01:37 #3417 [Verbose] > │ () │
00:01:37 #3418 [Verbose] > │ let v18 : int32 = v12.Length │
00:01:37 #3419 [Verbose] > │ let v19 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:01:37 #3420 [Verbose] > │ let v20 : (int32 []) = method1(v19) │
00:01:37 #3421 [Verbose] > │ let v21 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:01:37 #3422 [Verbose] > │ let v22 : (int32 []) = method1(v21) │
00:01:37 #3423 [Verbose] > │ let v23 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:01:37 #3424 [Verbose] > │ let v24 : (int32 []) = method1(v23) │
00:01:37 #3425 [Verbose] > │ let v25 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:01:37 #3426 [Verbose] > │ let v26 : (int32 []) = method1(v25) │
00:01:37 #3427 [Verbose] > │ let v27 : (int32 []) = Array.zeroCreate<int32> (100) │
00:01:37 #3428 [Verbose] > │ let v28 : Mut0 = {l0 = 0} : Mut0 │
00:01:37 #3429 [Verbose] > │ while method2(v28) do │
00:01:37 #3430 [Verbose] > │ let v30 : int32 = v28.l0 │
00:01:37 #3431 [Verbose] > │ let v31 : int32 = 1 + v30 │
00:01:37 #3432 [Verbose] > │ v27.[int v30] <- v31 │
00:01:37 #3433 [Verbose] > │ let v32 : int32 = v30 + 1 │
00:01:37 #3434 [Verbose] > │ v28.l0 <- v32 │
00:01:37 #3435 [Verbose] > │ () │
00:01:37 #3436 [Verbose] > │ let v33 : (unit -> unit) = closure0() │
00:01:37 #3437 [Verbose] > │ let v34 : string = nameof v33 │
00:01:37 #3438 [Verbose] > │ let v35 : string = "" │
00:01:37 #3439 [Verbose] > │ System.Console.WriteLine v35 │
00:01:37 #3440 [Verbose] > │ System.Console.WriteLine v35 │
00:01:37 #3441 [Verbose] > │ let v36 : string = $"Test: {v34}" │
00:01:37 #3442 [Verbose] > │ System.Console.WriteLine v36 │
00:01:37 #3443 [Verbose] > │ let v37 : int32 = 6 │
00:01:37 #3444 [Verbose] > │ let v38 : int32 = 3 │
00:01:37 #3445 [Verbose] > │ let v39 : US0 = US0_1(v38) │
00:01:37 #3446 [Verbose] > │ let v40 : int32 = 1 │
00:01:37 #3447 [Verbose] > │ let v41 : int32 = 0 │
00:01:37 #3448 [Verbose] > │ let v42 : US0 = US0_1(v41) │
00:01:37 #3449 [Verbose] > │ let v43 : int32 = 11 │
00:01:37 #3450 [Verbose] > │ let v44 : int32 = 6 │
00:01:37 #3451 [Verbose] > │ let v45 : US0 = US0_1(v44) │
00:01:37 #3452 [Verbose] > │ let v46 : int32 = 12 │
00:01:37 #3453 [Verbose] > │ let v47 : US0 = US0_0 │
00:01:37 #3454 [Verbose] > │ let v48 : int32 = 60 │
00:01:37 #3455 [Verbose] > │ let v49 : int32 = 59 │
00:01:37 #3456 [Verbose] > │ let v50 : US0 = US0_1(v49) │
00:01:37 #3457 [Verbose] > │ let v51 : int32 = 6 │
00:01:37 #3458 [Verbose] > │ let v52 : int32 = 7 │
00:01:37 #3459 [Verbose] > │ let v53 : int32 = 3 │
00:01:37 #3460 [Verbose] > │ let v54 : US0 = US0_1(v53) │
00:01:37 #3461 [Verbose] > │ let v55 : int32 = 1 │
00:01:37 #3462 [Verbose] > │ let v56 : int32 = 7 │
00:01:37 #3463 [Verbose] > │ let v57 : int32 = 0 │
00:01:37 #3464 [Verbose] > │ let v58 : US0 = US0_1(v57) │
00:01:37 #3465 [Verbose] > │ let v59 : int32 = 11 │
00:01:37 #3466 [Verbose] > │ let v60 : int32 = 7 │
00:01:37 #3467 [Verbose] > │ let v61 : int32 = 6 │
00:01:37 #3468 [Verbose] > │ let v62 : US0 = US0_1(v61) │
00:01:37 #3469 [Verbose] > │ let v63 : int32 = 12 │
00:01:37 #3470 [Verbose] > │ let v64 : int32 = 7 │
00:01:37 #3471 [Verbose] > │ let v65 : US0 = US0_0 │
00:01:37 #3472 [Verbose] > │ let v66 : int32 = 60 │
00:01:37 #3473 [Verbose] > │ let v67 : int32 = 100 │
00:01:37 #3474 [Verbose] > │ let v68 : int32 = 59 │
00:01:37 #3475 [Verbose] > │ let v69 : US0 = US0_1(v68) │
00:01:37 #3476 [Verbose] > │ let v70 : UH0 = UH0_1 │
00:01:37 #3477 [Verbose] > │ let v71 : UH0 = UH0_0(v27, v66, v67, v69, v70) │
00:01:37 #3478 [Verbose] > │ let v72 : UH0 = UH0_0(v26, v63, v64, v65, v71) │
00:01:37 #3479 [Verbose] > │ let v73 : UH0 = UH0_0(v24, v59, v60, v62, v72) │
00:01:37 #3480 [Verbose] > │ let v74 : UH0 = UH0_0(v22, v55, v56, v58, v73) │
00:01:37 #3481 [Verbose] > │ let v75 : UH0 = UH0_0(v20, v51, v52, v54, v74) │
00:01:37 #3482 [Verbose] > │ let v76 : UH0 = UH0_0(v12, v48, v18, v50, v75) │
00:01:37 #3483 [Verbose] > │ let v77 : UH0 = UH0_0(v10, v46, v11, v47, v76) │
00:01:37 #3484 [Verbose] > │ let v78 : UH0 = UH0_0(v7, v43, v8, v45, v77) │
00:01:37 #3485 [Verbose] > │ let v79 : UH0 = UH0_0(v4, v40, v5, v42, v78) │
00:01:37 #3486 [Verbose] > │ let v80 : UH0 = UH0_0(v1, v37, v2, v39, v79) │
00:01:37 #3487 [Verbose] > │ let v81 : (struct ((int32 []) * int32 * int32 * US0) []) = method3(v80) │
00:01:37 #3488 [Verbose] > │ let v82 : uint64 = System.Convert.ToUInt64 v81.Length │
00:01:37 #3489 [Verbose] > │ let v83 : (struct (string * string * string * (int64 [])) []) = │
00:01:37 #3490 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))> │
00:01:37 #3491 [Verbose] > │ (System.Convert.ToInt32(v82)) │
00:01:37 #3492 [Verbose] > │ let v84 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #3493 [Verbose] > │ while method6(v82, v84) do │
00:01:37 #3494 [Verbose] > │ let v86 : uint64 = v84.l0 │
00:01:37 #3495 [Verbose] > │ let struct (v87 : (int32 []), v88 : int32, v89 : int32, v90 : US0) = │
00:01:37 #3496 [Verbose] > │ v81.[int v86] │
00:01:37 #3497 [Verbose] > │ let v91 : string = $"%A{struct (v87, v88, v89)}" │
00:01:37 #3498 [Verbose] > │ System.Console.WriteLine v35 │
00:01:37 #3499 [Verbose] > │ let v92 : string = $"Solution: {v91} " │
00:01:37 #3500 [Verbose] > │ System.Console.WriteLine v92 │
00:01:37 #3501 [Verbose] > │ let v93 : int32 = 0 │
00:01:37 #3502 [Verbose] > │ let v94 : string = "semi_open_1" │
00:01:37 #3503 [Verbose] > │ let v95 : (struct ((int32 []) * int32 * int32) -> US0) = closure1() │
00:01:37 #3504 [Verbose] > │ let v96 : int32 = 1 │
00:01:37 #3505 [Verbose] > │ let v97 : string = "closed_1" │
00:01:37 #3506 [Verbose] > │ let v98 : (struct ((int32 []) * int32 * int32) -> US0) = closure2() │
00:01:37 #3507 [Verbose] > │ let v99 : int32 = 2 │
00:01:37 #3508 [Verbose] > │ let v100 : string = "semi_open_2" │
00:01:37 #3509 [Verbose] > │ let v101 : (struct ((int32 []) * int32 * int32) -> US0) = closure3() │
00:01:37 #3510 [Verbose] > │ let v102 : int32 = 3 │
00:01:37 #3511 [Verbose] > │ let v103 : string = "closed_2" │
00:01:37 #3512 [Verbose] > │ let v104 : (struct ((int32 []) * int32 * int32) -> US0) = closure4() │
00:01:37 #3513 [Verbose] > │ let v105 : UH1 = UH1_1 │
00:01:37 #3514 [Verbose] > │ let v106 : UH1 = UH1_0(v102, v103, v104, v105) │
00:01:37 #3515 [Verbose] > │ let v107 : UH1 = UH1_0(v99, v100, v101, v106) │
00:01:37 #3516 [Verbose] > │ let v108 : UH1 = UH1_0(v96, v97, v98, v107) │
00:01:37 #3517 [Verbose] > │ let v109 : UH1 = UH1_0(v93, v94, v95, v108) │
00:01:37 #3518 [Verbose] > │ let v110 : (struct (int32 * string * (struct ((int32 []) * int32 * │
00:01:37 #3519 [Verbose] > │ int32) -> US0)) []) = method11(v109) │
00:01:37 #3520 [Verbose] > │ let v111 : uint64 = System.Convert.ToUInt64 v110.Length │
00:01:37 #3521 [Verbose] > │ let v112 : (struct (US0 * int64) []) = Array.zeroCreate<struct (US0 │
00:01:37 #3522 [Verbose] > │ * int64)> (System.Convert.ToInt32(v111)) │
00:01:37 #3523 [Verbose] > │ let v113 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #3524 [Verbose] > │ while method6(v111, v113) do │
00:01:37 #3525 [Verbose] > │ let v115 : uint64 = v113.l0 │
00:01:37 #3526 [Verbose] > │ let struct (v116 : int32, v117 : string, v118 : (struct ((int32 │
00:01:37 #3527 [Verbose] > │ []) * int32 * int32) -> US0)) = v110.[int v115] │
00:01:37 #3528 [Verbose] > │ let mutable result = None │
00:01:37 #3529 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:01:37 #3530 [Verbose] > │ #if !WASM │
00:01:37 #3531 [Verbose] > │ () │
00:01:37 #3532 [Verbose] > │ #else │
00:01:37 #3533 [Verbose] > │ () │
00:01:37 #3534 [Verbose] > │ #endif │
00:01:37 #3535 [Verbose] > │ #else │
00:01:37 #3536 [Verbose] > │ System.GC.Collect () │
00:01:37 #3537 [Verbose] > │ () │
00:01:37 #3538 [Verbose] > │ #endif │
00:01:37 #3539 [Verbose] > │ |> fun x -> result <- Some x │
00:01:37 #3540 [Verbose] > │ result |> Option.get │
00:01:37 #3541 [Verbose] > │ let v119 : (unit -> System.Diagnostics.Stopwatch) = │
00:01:37 #3542 [Verbose] > │ System.Diagnostics.Stopwatch │
00:01:37 #3543 [Verbose] > │ let v120 : System.Diagnostics.Stopwatch = v119 () │
00:01:37 #3544 [Verbose] > │ v120.Start () │
00:01:37 #3545 [Verbose] > │ let v121 : int64 = v120.ElapsedMilliseconds │
00:01:37 #3546 [Verbose] > │ let v122 : (int32 []) = Array.zeroCreate<int32> (8000001) │
00:01:37 #3547 [Verbose] > │ let v123 : Mut0 = {l0 = 0} : Mut0 │
00:01:37 #3548 [Verbose] > │ while method14(v123) do │
00:01:37 #3549 [Verbose] > │ let v125 : int32 = v123.l0 │
00:01:37 #3550 [Verbose] > │ v122.[int v125] <- v125 │
00:01:37 #3551 [Verbose] > │ let v126 : int32 = v125 + 1 │
00:01:37 #3552 [Verbose] > │ v123.l0 <- v126 │
00:01:37 #3553 [Verbose] > │ () │
00:01:37 #3554 [Verbose] > │ let v127 : (int32 -> US0) = closure5(v87, v88, v89, v118) │
00:01:37 #3555 [Verbose] > │ let v128 : (US0 []) = v122 |> Array.Parallel.map v127 │
00:01:37 #3556 [Verbose] > │ let v129 : int32 = v128.Length │
00:01:37 #3557 [Verbose] > │ let v130 : int32 = v129 - 1 │
00:01:37 #3558 [Verbose] > │ let v131 : US0 = v128.[int v130] │
00:01:37 #3559 [Verbose] > │ let v132 : int64 = v120.ElapsedMilliseconds │
00:01:37 #3560 [Verbose] > │ let v133 : int64 = v132 - v121 │
00:01:37 #3561 [Verbose] > │ let v134 : string = $"Test case {v116 + 1}. {v117}. Time: {v133} │
00:01:37 #3562 [Verbose] > │ " │
00:01:37 #3563 [Verbose] > │ System.Console.WriteLine v134 │
00:01:37 #3564 [Verbose] > │ v112.[int v115] <- struct (v131, v133) │
00:01:37 #3565 [Verbose] > │ let v135 : uint64 = v115 + 1UL │
00:01:37 #3566 [Verbose] > │ v113.l0 <- v135 │
00:01:37 #3567 [Verbose] > │ () │
00:01:37 #3568 [Verbose] > │ let v136 : uint64 = System.Convert.ToUInt64 v112.Length │
00:01:37 #3569 [Verbose] > │ let v137 : (US0 []) = Array.zeroCreate<US0> │
00:01:37 #3570 [Verbose] > │ (System.Convert.ToInt32(v136)) │
00:01:37 #3571 [Verbose] > │ let v138 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #3572 [Verbose] > │ while method6(v136, v138) do │
00:01:37 #3573 [Verbose] > │ let v140 : uint64 = v138.l0 │
00:01:37 #3574 [Verbose] > │ let struct (v141 : US0, v142 : int64) = v112.[int v140] │
00:01:37 #3575 [Verbose] > │ v137.[int v140] <- v141 │
00:01:37 #3576 [Verbose] > │ let v143 : uint64 = v140 + 1UL │
00:01:37 #3577 [Verbose] > │ v138.l0 <- v143 │
00:01:37 #3578 [Verbose] > │ () │
00:01:37 #3579 [Verbose] > │ let v144 : uint64 = System.Convert.ToUInt64 v137.Length │
00:01:37 #3580 [Verbose] > │ let v145 : bool = v144 <= 1UL │
00:01:37 #3581 [Verbose] > │ if v145 then │
00:01:37 #3582 [Verbose] > │ () │
00:01:37 #3583 [Verbose] > │ else │
00:01:37 #3584 [Verbose] > │ let v146 : US0 = v137.[int 0UL] │
00:01:37 #3585 [Verbose] > │ let v147 : uint64 = 0UL │
00:01:37 #3586 [Verbose] > │ let v148 : bool = method15(v146, v137, v147) │
00:01:37 #3587 [Verbose] > │ if v148 then │
00:01:37 #3588 [Verbose] > │ () │
00:01:37 #3589 [Verbose] > │ else │
00:01:37 #3590 [Verbose] > │ let v149 : string = $"Challenge error: {v137}" │
00:01:37 #3591 [Verbose] > │ failwith<unit> v149 │
00:01:37 #3592 [Verbose] > │ let v150 : string = $"%A{v90}" │
00:01:37 #3593 [Verbose] > │ let v151 : (US0 []) = Array.zeroCreate<US0> │
00:01:37 #3594 [Verbose] > │ (System.Convert.ToInt32(v136)) │
00:01:37 #3595 [Verbose] > │ let v152 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #3596 [Verbose] > │ while method6(v136, v152) do │
00:01:37 #3597 [Verbose] > │ let v154 : uint64 = v152.l0 │
00:01:37 #3598 [Verbose] > │ let struct (v155 : US0, v156 : int64) = v112.[int v154] │
00:01:37 #3599 [Verbose] > │ v151.[int v154] <- v155 │
00:01:37 #3600 [Verbose] > │ let v157 : uint64 = v154 + 1UL │
00:01:37 #3601 [Verbose] > │ v152.l0 <- v157 │
00:01:37 #3602 [Verbose] > │ () │
00:01:37 #3603 [Verbose] > │ let v158 : US0 = v151.[int 0UL] │
00:01:37 #3604 [Verbose] > │ let v159 : string = $"%A{v158}" │
00:01:37 #3605 [Verbose] > │ let v160 : (int64 []) = Array.zeroCreate<int64> │
00:01:37 #3606 [Verbose] > │ (System.Convert.ToInt32(v136)) │
00:01:37 #3607 [Verbose] > │ let v161 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #3608 [Verbose] > │ while method6(v136, v161) do │
00:01:37 #3609 [Verbose] > │ let v163 : uint64 = v161.l0 │
00:01:37 #3610 [Verbose] > │ let struct (v164 : US0, v165 : int64) = v112.[int v163] │
00:01:37 #3611 [Verbose] > │ v160.[int v163] <- v165 │
00:01:37 #3612 [Verbose] > │ let v166 : uint64 = v163 + 1UL │
00:01:37 #3613 [Verbose] > │ v161.l0 <- v166 │
00:01:37 #3614 [Verbose] > │ () │
00:01:37 #3615 [Verbose] > │ v83.[int v86] <- struct (v150, v91, v159, v160) │
00:01:37 #3616 [Verbose] > │ let v167 : uint64 = v86 + 1UL │
00:01:37 #3617 [Verbose] > │ v84.l0 <- v167 │
00:01:37 #3618 [Verbose] > │ () │
00:01:37 #3619 [Verbose] > │ let v168 : uint64 = System.Convert.ToUInt64 v83.Length │
00:01:37 #3620 [Verbose] > │ let v169 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 * │
00:01:37 #3621 [Verbose] > │ US1)> (System.Convert.ToInt32(v168)) │
00:01:37 #3622 [Verbose] > │ let v170 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #3623 [Verbose] > │ while method6(v168, v170) do │
00:01:37 #3624 [Verbose] > │ let v172 : uint64 = v170.l0 │
00:01:37 #3625 [Verbose] > │ let struct (v173 : string, v174 : string, v175 : string, v176 : │
00:01:37 #3626 [Verbose] > │ (int64 [])) = v83.[int v172] │
00:01:37 #3627 [Verbose] > │ let v177 : uint64 = System.Convert.ToUInt64 v176.Length │
00:01:37 #3628 [Verbose] > │ let v178 : UH3 = UH3_1 │
00:01:37 #3629 [Verbose] > │ let v179 : Mut2 = {l0 = 0UL; l1 = v178; l2 = 0L} : Mut2 │
00:01:37 #3630 [Verbose] > │ while method16(v177, v179) do │
00:01:37 #3631 [Verbose] > │ let v181 : uint64 = v179.l0 │
00:01:37 #3632 [Verbose] > │ let struct (v182 : UH3, v183 : int64) = v179.l1, v179.l2 │
00:01:37 #3633 [Verbose] > │ let v184 : int64 = v176.[int v181] │
00:01:37 #3634 [Verbose] > │ let v185 : int64 = v183 + 1L │
00:01:37 #3635 [Verbose] > │ let v186 : uint64 = v181 + 1UL │
00:01:37 #3636 [Verbose] > │ let v187 : UH3 = UH3_0(v183, v184, v182) │
00:01:37 #3637 [Verbose] > │ v179.l0 <- v186 │
00:01:37 #3638 [Verbose] > │ v179.l1 <- v187 │
00:01:37 #3639 [Verbose] > │ v179.l2 <- v185 │
00:01:37 #3640 [Verbose] > │ () │
00:01:37 #3641 [Verbose] > │ let struct (v188 : UH3, v189 : int64) = v179.l1, v179.l2 │
00:01:37 #3642 [Verbose] > │ let v190 : UH3 = UH3_1 │
00:01:37 #3643 [Verbose] > │ let v191 : UH3 = method17(v188, v190) │
00:01:37 #3644 [Verbose] > │ let v192 : (struct (int64 * int64) []) = method18(v191) │
00:01:37 #3645 [Verbose] > │ let v193 : int32 = v192.Length │
00:01:37 #3646 [Verbose] > │ let v194 : (struct (int64 * int64) []) = Array.zeroCreate<struct │
00:01:37 #3647 [Verbose] > │ (int64 * int64)> (v193) │
00:01:37 #3648 [Verbose] > │ let v195 : Mut0 = {l0 = 0} : Mut0 │
00:01:37 #3649 [Verbose] > │ while method21(v193, v195) do │
00:01:37 #3650 [Verbose] > │ let v197 : int32 = v195.l0 │
00:01:37 #3651 [Verbose] > │ let struct (v198 : int64, v199 : int64) = v192.[int v197] │
00:01:37 #3652 [Verbose] > │ let v200 : int64 = v198 + 1L │
00:01:37 #3653 [Verbose] > │ v194.[int v197] <- struct (v200, v199) │
00:01:37 #3654 [Verbose] > │ let v201 : int32 = v197 + 1 │
00:01:37 #3655 [Verbose] > │ v195.l0 <- v201 │
00:01:37 #3656 [Verbose] > │ () │
00:01:37 #3657 [Verbose] > │ let v202 : (struct (int64 * int64) -> int64) = closure6() │
00:01:37 #3658 [Verbose] > │ let v203 : (struct (int64 * int64) []) = v194 |> Array.sortBy v202 │
00:01:37 #3659 [Verbose] > │ let struct (v204 : int64, v205 : int64) = v203.[int 0] │
00:01:37 #3660 [Verbose] > │ let v206 : string = $"%A{struct (v204, v205)}" │
00:01:37 #3661 [Verbose] > │ let v207 : bool = v173 = v175 │
00:01:37 #3662 [Verbose] > │ let v212 : US1 = │
00:01:37 #3663 [Verbose] > │ if v207 then │
00:01:37 #3664 [Verbose] > │ let v208 : System.ConsoleColor = │
00:01:37 #3665 [Verbose] > │ System.ConsoleColor.DarkGreen │
00:01:37 #3666 [Verbose] > │ US1_1(v208) │
00:01:37 #3667 [Verbose] > │ else │
00:01:37 #3668 [Verbose] > │ let v210 : System.ConsoleColor = System.ConsoleColor.DarkRed │
00:01:37 #3669 [Verbose] > │ US1_1(v210) │
00:01:37 #3670 [Verbose] > │ let v213 : UH2 = UH2_1 │
00:01:37 #3671 [Verbose] > │ let v214 : UH2 = UH2_0(v206, v213) │
00:01:37 #3672 [Verbose] > │ let v215 : UH2 = UH2_0(v175, v214) │
00:01:37 #3673 [Verbose] > │ let v216 : UH2 = UH2_0(v173, v215) │
00:01:37 #3674 [Verbose] > │ let v217 : UH2 = UH2_0(v174, v216) │
00:01:37 #3675 [Verbose] > │ v169.[int v172] <- struct (v217, v212) │
00:01:37 #3676 [Verbose] > │ let v218 : uint64 = v172 + 1UL │
00:01:37 #3677 [Verbose] > │ v170.l0 <- v218 │
00:01:37 #3678 [Verbose] > │ () │
00:01:37 #3679 [Verbose] > │ let v219 : string = "Input" │
00:01:37 #3680 [Verbose] > │ let v220 : string = "Expected" │
00:01:37 #3681 [Verbose] > │ let v221 : string = "Result" │
00:01:37 #3682 [Verbose] > │ let v222 : string = "Best" │
00:01:37 #3683 [Verbose] > │ let v223 : UH2 = UH2_1 │
00:01:37 #3684 [Verbose] > │ let v224 : UH2 = UH2_0(v222, v223) │
00:01:37 #3685 [Verbose] > │ let v225 : UH2 = UH2_0(v221, v224) │
00:01:37 #3686 [Verbose] > │ let v226 : UH2 = UH2_0(v220, v225) │
00:01:37 #3687 [Verbose] > │ let v227 : UH2 = UH2_0(v219, v226) │
00:01:37 #3688 [Verbose] > │ let v228 : US1 = US1_0 │
00:01:37 #3689 [Verbose] > │ let v229 : string = "---" │
00:01:37 #3690 [Verbose] > │ let v230 : UH2 = UH2_1 │
00:01:37 #3691 [Verbose] > │ let v231 : UH2 = UH2_0(v229, v230) │
00:01:37 #3692 [Verbose] > │ let v232 : UH2 = UH2_0(v229, v231) │
00:01:37 #3693 [Verbose] > │ let v233 : UH2 = UH2_0(v229, v232) │
00:01:37 #3694 [Verbose] > │ let v234 : UH2 = UH2_0(v229, v233) │
00:01:37 #3695 [Verbose] > │ let v235 : US1 = US1_0 │
00:01:37 #3696 [Verbose] > │ let v236 : UH4 = UH4_1 │
00:01:37 #3697 [Verbose] > │ let v237 : UH4 = UH4_0(v234, v235, v236) │
00:01:37 #3698 [Verbose] > │ let v238 : UH4 = UH4_0(v227, v228, v237) │
00:01:37 #3699 [Verbose] > │ let v239 : (struct (UH2 * US1) []) = method22(v238) │
00:01:37 #3700 [Verbose] > │ let v240 : uint64 = System.Convert.ToUInt64 v239.Length │
00:01:37 #3701 [Verbose] > │ let v241 : uint64 = System.Convert.ToUInt64 v169.Length │
00:01:37 #3702 [Verbose] > │ let v242 : uint64 = v240 + v241 │
00:01:37 #3703 [Verbose] > │ let v243 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 * │
00:01:37 #3704 [Verbose] > │ US1)> (System.Convert.ToInt32(v242)) │
00:01:37 #3705 [Verbose] > │ let v244 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #3706 [Verbose] > │ while method6(v242, v244) do │
00:01:37 #3707 [Verbose] > │ let v246 : uint64 = v244.l0 │
00:01:37 #3708 [Verbose] > │ let v247 : bool = v246 < v240 │
00:01:37 #3709 [Verbose] > │ let struct (v253 : UH2, v254 : US1) = │
00:01:37 #3710 [Verbose] > │ if v247 then │
00:01:37 #3711 [Verbose] > │ let struct (v248 : UH2, v249 : US1) = v239.[int v246] │
00:01:37 #3712 [Verbose] > │ struct (v248, v249) │
00:01:37 #3713 [Verbose] > │ else │
00:01:37 #3714 [Verbose] > │ let v250 : uint64 = v246 - v240 │
00:01:37 #3715 [Verbose] > │ let struct (v251 : UH2, v252 : US1) = v169.[int v250] │
00:01:37 #3716 [Verbose] > │ struct (v251, v252) │
00:01:37 #3717 [Verbose] > │ v243.[int v246] <- struct (v253, v254) │
00:01:37 #3718 [Verbose] > │ let v255 : uint64 = v246 + 1UL │
00:01:37 #3719 [Verbose] > │ v244.l0 <- v255 │
00:01:37 #3720 [Verbose] > │ () │
00:01:37 #3721 [Verbose] > │ let v256 : uint64 = System.Convert.ToUInt64 v243.Length │
00:01:37 #3722 [Verbose] > │ let v257 : ((string []) []) = Array.zeroCreate<(string [])> │
00:01:37 #3723 [Verbose] > │ (System.Convert.ToInt32(v256)) │
00:01:37 #3724 [Verbose] > │ let v258 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #3725 [Verbose] > │ while method6(v256, v258) do │
00:01:37 #3726 [Verbose] > │ let v260 : uint64 = v258.l0 │
00:01:37 #3727 [Verbose] > │ let struct (v261 : UH2, v262 : US1) = v243.[int v260] │
00:01:37 #3728 [Verbose] > │ let v263 : (string []) = method25(v261) │
00:01:37 #3729 [Verbose] > │ v257.[int v260] <- v263 │
00:01:37 #3730 [Verbose] > │ let v264 : uint64 = v260 + 1UL │
00:01:37 #3731 [Verbose] > │ v258.l0 <- v264 │
00:01:37 #3732 [Verbose] > │ () │
00:01:37 #3733 [Verbose] > │ let v265 : ((string []) []) = v257 |> Array.transpose │
00:01:37 #3734 [Verbose] > │ let v266 : uint64 = System.Convert.ToUInt64 v265.Length │
00:01:37 #3735 [Verbose] > │ let v267 : (int64 []) = Array.zeroCreate<int64> │
00:01:37 #3736 [Verbose] > │ (System.Convert.ToInt32(v266)) │
00:01:37 #3737 [Verbose] > │ let v268 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #3738 [Verbose] > │ while method6(v266, v268) do │
00:01:37 #3739 [Verbose] > │ let v270 : uint64 = v268.l0 │
00:01:37 #3740 [Verbose] > │ let v271 : (string []) = v265.[int v270] │
00:01:37 #3741 [Verbose] > │ let v272 : uint64 = System.Convert.ToUInt64 v271.Length │
00:01:37 #3742 [Verbose] > │ let v273 : (int64 []) = Array.zeroCreate<int64> │
00:01:37 #3743 [Verbose] > │ (System.Convert.ToInt32(v272)) │
00:01:37 #3744 [Verbose] > │ let v274 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #3745 [Verbose] > │ while method6(v272, v274) do │
00:01:37 #3746 [Verbose] > │ let v276 : uint64 = v274.l0 │
00:01:37 #3747 [Verbose] > │ let v277 : string = v271.[int v276] │
00:01:37 #3748 [Verbose] > │ let v278 : int64 = System.Convert.ToInt64 v277.Length │
00:01:37 #3749 [Verbose] > │ v273.[int v276] <- v278 │
00:01:37 #3750 [Verbose] > │ let v279 : uint64 = v276 + 1UL │
00:01:37 #3751 [Verbose] > │ v274.l0 <- v279 │
00:01:37 #3752 [Verbose] > │ () │
00:01:37 #3753 [Verbose] > │ let v280 : (int64 []) = v273 |> Array.sortDescending │
00:01:37 #3754 [Verbose] > │ let v281 : int64 option = v280 |> Array.tryItem 0 │
00:01:37 #3755 [Verbose] > │ let v282 : (int64 -> US2) = closure7() │
00:01:37 #3756 [Verbose] > │ let v283 : US2 = US2_0 │
00:01:37 #3757 [Verbose] > │ let v284 : US2 = v281 |> Option.map v282 |> Option.defaultValue v283 │
00:01:37 #3758 [Verbose] > │ let v287 : int64 = │
00:01:37 #3759 [Verbose] > │ match v284 with │
00:01:37 #3760 [Verbose] > │ | US2_0 -> (* None *) │
00:01:37 #3761 [Verbose] > │ 0L │
00:01:37 #3762 [Verbose] > │ | US2_1(v285) -> (* Some *) │
00:01:37 #3763 [Verbose] > │ v285 │
00:01:37 #3764 [Verbose] > │ v267.[int v270] <- v287 │
00:01:37 #3765 [Verbose] > │ let v288 : uint64 = v270 + 1UL │
00:01:37 #3766 [Verbose] > │ v268.l0 <- v288 │
00:01:37 #3767 [Verbose] > │ () │
00:01:37 #3768 [Verbose] > │ let v289 : uint64 = System.Convert.ToUInt64 v267.Length │
00:01:37 #3769 [Verbose] > │ let v290 : UH5 = UH5_1 │
00:01:37 #3770 [Verbose] > │ let v291 : Mut3 = {l0 = 0UL; l1 = v290; l2 = 0} : Mut3 │
00:01:37 #3771 [Verbose] > │ while method28(v289, v291) do │
00:01:37 #3772 [Verbose] > │ let v293 : uint64 = v291.l0 │
00:01:37 #3773 [Verbose] > │ let struct (v294 : UH5, v295 : int32) = v291.l1, v291.l2 │
00:01:37 #3774 [Verbose] > │ let v296 : int64 = v267.[int v293] │
00:01:37 #3775 [Verbose] > │ let v297 : int32 = v295 + 1 │
00:01:37 #3776 [Verbose] > │ let v298 : uint64 = v293 + 1UL │
00:01:37 #3777 [Verbose] > │ let v299 : UH5 = UH5_0(v295, v296, v294) │
00:01:37 #3778 [Verbose] > │ v291.l0 <- v298 │
00:01:37 #3779 [Verbose] > │ v291.l1 <- v299 │
00:01:37 #3780 [Verbose] > │ v291.l2 <- v297 │
00:01:37 #3781 [Verbose] > │ () │
00:01:37 #3782 [Verbose] > │ let struct (v300 : UH5, v301 : int32) = v291.l1, v291.l2 │
00:01:37 #3783 [Verbose] > │ let v302 : UH5 = UH5_1 │
00:01:37 #3784 [Verbose] > │ let v303 : UH5 = method29(v300, v302) │
00:01:37 #3785 [Verbose] > │ let v304 : (struct (int32 * int64) []) = method30(v303) │
00:01:37 #3786 [Verbose] > │ let v305 : Map<int32, int64> = v304 |> Array.map (fun (struct (a, b)) -> │
00:01:37 #3787 [Verbose] > │ a, b) |> Map.ofArray │
00:01:37 #3788 [Verbose] > │ let v306 : (struct ((string []) * US1) []) = Array.zeroCreate<struct │
00:01:37 #3789 [Verbose] > │ ((string []) * US1)> (System.Convert.ToInt32(v256)) │
00:01:37 #3790 [Verbose] > │ let v307 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #3791 [Verbose] > │ while method6(v256, v307) do │
00:01:37 #3792 [Verbose] > │ let v309 : uint64 = v307.l0 │
00:01:37 #3793 [Verbose] > │ let struct (v310 : UH2, v311 : US1) = v243.[int v309] │
00:01:37 #3794 [Verbose] > │ let v312 : UH6 = UH6_1 │
00:01:37 #3795 [Verbose] > │ let v313 : int32 = 0 │
00:01:37 #3796 [Verbose] > │ let struct (v314 : UH6, v315 : int32) = method33(v310, v312, v313) │
00:01:37 #3797 [Verbose] > │ let v316 : UH6 = UH6_1 │
00:01:37 #3798 [Verbose] > │ let v317 : UH6 = method34(v314, v316) │
00:01:37 #3799 [Verbose] > │ let v318 : UH2 = UH2_1 │
00:01:37 #3800 [Verbose] > │ let v319 : UH2 = method35(v305, v317, v318) │
00:01:37 #3801 [Verbose] > │ let v320 : (string []) = method36(v319) │
00:01:37 #3802 [Verbose] > │ v306.[int v309] <- struct (v320, v311) │
00:01:37 #3803 [Verbose] > │ let v321 : uint64 = v309 + 1UL │
00:01:37 #3804 [Verbose] > │ v307.l0 <- v321 │
00:01:37 #3805 [Verbose] > │ () │
00:01:37 #3806 [Verbose] > │ System.Console.WriteLine v35 │
00:01:37 #3807 [Verbose] > │ let v322 : uint64 = System.Convert.ToUInt64 v306.Length │
00:01:37 #3808 [Verbose] > │ let v323 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #3809 [Verbose] > │ while method6(v322, v323) do │
00:01:37 #3810 [Verbose] > │ let v325 : uint64 = v323.l0 │
00:01:37 #3811 [Verbose] > │ let struct (v326 : (string []), v327 : US1) = v306.[int v325] │
00:01:37 #3812 [Verbose] > │ match v327 with │
00:01:37 #3813 [Verbose] > │ | US1_0 -> (* None *) │
00:01:37 #3814 [Verbose] > │ let mutable result = None │
00:01:37 #3815 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:01:37 #3816 [Verbose] > │ #if !WASM │
00:01:37 #3817 [Verbose] > │ () │
00:01:37 #3818 [Verbose] > │ #else │
00:01:37 #3819 [Verbose] > │ () │
00:01:37 #3820 [Verbose] > │ #endif │
00:01:37 #3821 [Verbose] > │ #else │
00:01:37 #3822 [Verbose] > │ System.Console.ResetColor () │
00:01:37 #3823 [Verbose] > │ () │
00:01:37 #3824 [Verbose] > │ #endif │
00:01:37 #3825 [Verbose] > │ |> fun x -> result <- Some x │
00:01:37 #3826 [Verbose] > │ result |> Option.get │
00:01:37 #3827 [Verbose] > │ () │
00:01:37 #3828 [Verbose] > │ | US1_1(v328) -> (* Some *) │
00:01:37 #3829 [Verbose] > │ let mutable result = None │
00:01:37 #3830 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:01:37 #3831 [Verbose] > │ #if !WASM │
00:01:37 #3832 [Verbose] > │ () │
00:01:37 #3833 [Verbose] > │ #else │
00:01:37 #3834 [Verbose] > │ () │
00:01:37 #3835 [Verbose] > │ #endif │
00:01:37 #3836 [Verbose] > │ #else │
00:01:37 #3837 [Verbose] > │ System.Console.ForegroundColor <- v328 │
00:01:37 #3838 [Verbose] > │ () │
00:01:37 #3839 [Verbose] > │ #endif │
00:01:37 #3840 [Verbose] > │ |> fun x -> result <- Some x │
00:01:37 #3841 [Verbose] > │ result |> Option.get │
00:01:37 #3842 [Verbose] > │ () │
00:01:37 #3843 [Verbose] > │ let v329 : string = "\t| " │
00:01:37 #3844 [Verbose] > │ let v330 : string = System.String.Join (v329, v326) │
00:01:37 #3845 [Verbose] > │ System.Console.WriteLine v330 │
00:01:37 #3846 [Verbose] > │ let mutable result = None │
00:01:37 #3847 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:01:37 #3848 [Verbose] > │ #if !WASM │
00:01:37 #3849 [Verbose] > │ () │
00:01:37 #3850 [Verbose] > │ #else │
00:01:37 #3851 [Verbose] > │ () │
00:01:37 #3852 [Verbose] > │ #endif │
00:01:37 #3853 [Verbose] > │ #else │
00:01:37 #3854 [Verbose] > │ System.Console.ResetColor () │
00:01:37 #3855 [Verbose] > │ () │
00:01:37 #3856 [Verbose] > │ #endif │
00:01:37 #3857 [Verbose] > │ |> fun x -> result <- Some x │
00:01:37 #3858 [Verbose] > │ result |> Option.get │
00:01:37 #3859 [Verbose] > │ let v331 : uint64 = v325 + 1UL │
00:01:37 #3860 [Verbose] > │ v323.l0 <- v331 │
00:01:37 #3861 [Verbose] > │ () │
00:01:37 #3862 [Verbose] > │ let v332 : ((float []) []) = Array.zeroCreate<(float [])> │
00:01:37 #3863 [Verbose] > │ (System.Convert.ToInt32(v168)) │
00:01:37 #3864 [Verbose] > │ let v333 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #3865 [Verbose] > │ while method6(v168, v333) do │
00:01:37 #3866 [Verbose] > │ let v335 : uint64 = v333.l0 │
00:01:37 #3867 [Verbose] > │ let struct (v336 : string, v337 : string, v338 : string, v339 : │
00:01:37 #3868 [Verbose] > │ (int64 [])) = v83.[int v335] │
00:01:37 #3869 [Verbose] > │ let v340 : (int64 -> float) = float │
00:01:37 #3870 [Verbose] > │ let v341 : uint64 = System.Convert.ToUInt64 v339.Length │
00:01:37 #3871 [Verbose] > │ let v342 : (float []) = Array.zeroCreate<float> │
00:01:37 #3872 [Verbose] > │ (System.Convert.ToInt32(v341)) │
00:01:37 #3873 [Verbose] > │ let v343 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #3874 [Verbose] > │ while method6(v341, v343) do │
00:01:37 #3875 [Verbose] > │ let v345 : uint64 = v343.l0 │
00:01:37 #3876 [Verbose] > │ let v346 : int64 = v339.[int v345] │
00:01:37 #3877 [Verbose] > │ let v347 : float = v340 v346 │
00:01:37 #3878 [Verbose] > │ v342.[int v345] <- v347 │
00:01:37 #3879 [Verbose] > │ let v348 : uint64 = v345 + 1UL │
00:01:37 #3880 [Verbose] > │ v343.l0 <- v348 │
00:01:37 #3881 [Verbose] > │ () │
00:01:37 #3882 [Verbose] > │ v332.[int v335] <- v342 │
00:01:37 #3883 [Verbose] > │ let v349 : uint64 = v335 + 1UL │
00:01:37 #3884 [Verbose] > │ v333.l0 <- v349 │
00:01:37 #3885 [Verbose] > │ () │
00:01:37 #3886 [Verbose] > │ let v350 : ((float []) []) = v332 |> Array.transpose │
00:01:37 #3887 [Verbose] > │ let v351 : uint64 = System.Convert.ToUInt64 v350.Length │
00:01:37 #3888 [Verbose] > │ let v352 : (float []) = Array.zeroCreate<float> │
00:01:37 #3889 [Verbose] > │ (System.Convert.ToInt32(v351)) │
00:01:37 #3890 [Verbose] > │ let v353 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #3891 [Verbose] > │ while method6(v351, v353) do │
00:01:37 #3892 [Verbose] > │ let v355 : uint64 = v353.l0 │
00:01:37 #3893 [Verbose] > │ let v356 : (float []) = v350.[int v355] │
00:01:37 #3894 [Verbose] > │ let v357 : float = v356 |> Array.average │
00:01:37 #3895 [Verbose] > │ v352.[int v355] <- v357 │
00:01:37 #3896 [Verbose] > │ let v358 : uint64 = v355 + 1UL │
00:01:37 #3897 [Verbose] > │ v353.l0 <- v358 │
00:01:37 #3898 [Verbose] > │ () │
00:01:37 #3899 [Verbose] > │ let v359 : (float -> int64) = int64 │
00:01:37 #3900 [Verbose] > │ let v360 : uint64 = System.Convert.ToUInt64 v352.Length │
00:01:37 #3901 [Verbose] > │ let v361 : (int64 []) = Array.zeroCreate<int64> │
00:01:37 #3902 [Verbose] > │ (System.Convert.ToInt32(v360)) │
00:01:37 #3903 [Verbose] > │ let v362 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #3904 [Verbose] > │ while method6(v360, v362) do │
00:01:37 #3905 [Verbose] > │ let v364 : uint64 = v362.l0 │
00:01:37 #3906 [Verbose] > │ let v365 : float = v352.[int v364] │
00:01:37 #3907 [Verbose] > │ let v366 : int64 = v359 v365 │
00:01:37 #3908 [Verbose] > │ v361.[int v364] <- v366 │
00:01:37 #3909 [Verbose] > │ let v367 : uint64 = v364 + 1UL │
00:01:37 #3910 [Verbose] > │ v362.l0 <- v367 │
00:01:37 #3911 [Verbose] > │ () │
00:01:37 #3912 [Verbose] > │ let v368 : uint64 = System.Convert.ToUInt64 v361.Length │
00:01:37 #3913 [Verbose] > │ let v369 : UH5 = UH5_1 │
00:01:37 #3914 [Verbose] > │ let v370 : Mut3 = {l0 = 0UL; l1 = v369; l2 = 0} : Mut3 │
00:01:37 #3915 [Verbose] > │ while method28(v368, v370) do │
00:01:37 #3916 [Verbose] > │ let v372 : uint64 = v370.l0 │
00:01:37 #3917 [Verbose] > │ let struct (v373 : UH5, v374 : int32) = v370.l1, v370.l2 │
00:01:37 #3918 [Verbose] > │ let v375 : int64 = v361.[int v372] │
00:01:37 #3919 [Verbose] > │ let v376 : int32 = v374 + 1 │
00:01:37 #3920 [Verbose] > │ let v377 : uint64 = v372 + 1UL │
00:01:37 #3921 [Verbose] > │ let v378 : UH5 = UH5_0(v374, v375, v373) │
00:01:37 #3922 [Verbose] > │ v370.l0 <- v377 │
00:01:37 #3923 [Verbose] > │ v370.l1 <- v378 │
00:01:37 #3924 [Verbose] > │ v370.l2 <- v376 │
00:01:37 #3925 [Verbose] > │ () │
00:01:37 #3926 [Verbose] > │ let struct (v379 : UH5, v380 : int32) = v370.l1, v370.l2 │
00:01:37 #3927 [Verbose] > │ let v381 : UH5 = UH5_1 │
00:01:37 #3928 [Verbose] > │ let v382 : UH5 = method29(v379, v381) │
00:01:37 #3929 [Verbose] > │ let v383 : (struct (int32 * int64) []) = method39(v382) │
00:01:37 #3930 [Verbose] > │ System.Console.WriteLine v35 │
00:01:37 #3931 [Verbose] > │ let v384 : string = "Average Ranking " │
00:01:37 #3932 [Verbose] > │ System.Console.WriteLine v384 │
00:01:37 #3933 [Verbose] > │ let v385 : (struct (int32 * int64) -> int64) = closure8() │
00:01:37 #3934 [Verbose] > │ let v386 : (struct (int32 * int64) []) = v383 |> Array.sortBy v385 │
00:01:37 #3935 [Verbose] > │ let v387 : uint64 = System.Convert.ToUInt64 v386.Length │
00:01:37 #3936 [Verbose] > │ let v388 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #3937 [Verbose] > │ while method6(v387, v388) do │
00:01:37 #3938 [Verbose] > │ let v390 : uint64 = v388.l0 │
00:01:37 #3939 [Verbose] > │ let struct (v391 : int32, v392 : int64) = v386.[int v390] │
00:01:37 #3940 [Verbose] > │ let v393 : string = $"Test case %d{v391 + 1}. Average Time: %A{v392} │
00:01:37 #3941 [Verbose] > │ " │
00:01:37 #3942 [Verbose] > │ System.Console.WriteLine v393 │
00:01:37 #3943 [Verbose] > │ let v394 : uint64 = v390 + 1UL │
00:01:37 #3944 [Verbose] > │ v388.l0 <- v394 │
00:01:37 #3945 [Verbose] > │ () │
00:01:37 #3946 [Verbose] > │ () │
00:01:37 #3947 [Verbose] > │ and method0 () : unit = │
00:01:37 #3948 [Verbose] > │ let v0 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:01:37 #3949 [Verbose] > │ let v1 : (int32 []) = method1(v0) │
00:01:37 #3950 [Verbose] > │ let v2 : int32 = v1.Length │
00:01:37 #3951 [Verbose] > │ let v3 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:01:37 #3952 [Verbose] > │ let v4 : (int32 []) = method1(v3) │
00:01:37 #3953 [Verbose] > │ let v5 : int32 = v4.Length │
00:01:37 #3954 [Verbose] > │ let v6 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:01:37 #3955 [Verbose] > │ let v7 : (int32 []) = method1(v6) │
00:01:37 #3956 [Verbose] > │ let v8 : int32 = v7.Length │
00:01:37 #3957 [Verbose] > │ let v9 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:01:37 #3958 [Verbose] > │ let v10 : (int32 []) = method1(v9) │
00:01:37 #3959 [Verbose] > │ let v11 : int32 = v10.Length │
00:01:37 #3960 [Verbose] > │ let v12 : (int32 []) = Array.zeroCreate<int32> (100) │
00:01:37 #3961 [Verbose] > │ let v13 : Mut0 = {l0 = 0} : Mut0 │
00:01:37 #3962 [Verbose] > │ while method2(v13) do │
00:01:37 #3963 [Verbose] > │ let v15 : int32 = v13.l0 │
00:01:37 #3964 [Verbose] > │ let v16 : int32 = 1 + v15 │
00:01:37 #3965 [Verbose] > │ v12.[int v15] <- v16 │
00:01:37 #3966 [Verbose] > │ let v17 : int32 = v15 + 1 │
00:01:37 #3967 [Verbose] > │ v13.l0 <- v17 │
00:01:37 #3968 [Verbose] > │ () │
00:01:37 #3969 [Verbose] > │ let v18 : int32 = v12.Length │
00:01:37 #3970 [Verbose] > │ let v19 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:01:37 #3971 [Verbose] > │ let v20 : (int32 []) = method1(v19) │
00:01:37 #3972 [Verbose] > │ let v21 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:01:37 #3973 [Verbose] > │ let v22 : (int32 []) = method1(v21) │
00:01:37 #3974 [Verbose] > │ let v23 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:01:37 #3975 [Verbose] > │ let v24 : (int32 []) = method1(v23) │
00:01:37 #3976 [Verbose] > │ let v25 : (int32 []) = [|1; 3; 4; 6; 8; 9; 11|] │
00:01:37 #3977 [Verbose] > │ let v26 : (int32 []) = method1(v25) │
00:01:37 #3978 [Verbose] > │ let v27 : (int32 []) = Array.zeroCreate<int32> (100) │
00:01:37 #3979 [Verbose] > │ let v28 : Mut0 = {l0 = 0} : Mut0 │
00:01:37 #3980 [Verbose] > │ while method2(v28) do │
00:01:37 #3981 [Verbose] > │ let v30 : int32 = v28.l0 │
00:01:37 #3982 [Verbose] > │ let v31 : int32 = 1 + v30 │
00:01:37 #3983 [Verbose] > │ v27.[int v30] <- v31 │
00:01:37 #3984 [Verbose] > │ let v32 : int32 = v30 + 1 │
00:01:37 #3985 [Verbose] > │ v28.l0 <- v32 │
00:01:37 #3986 [Verbose] > │ () │
00:01:37 #3987 [Verbose] > │ let v33 : (unit -> unit) = closure0() │
00:01:37 #3988 [Verbose] > │ let v34 : string = nameof v33 │
00:01:37 #3989 [Verbose] > │ let v35 : string = "" │
00:01:37 #3990 [Verbose] > │ System.Console.WriteLine v35 │
00:01:37 #3991 [Verbose] > │ System.Console.WriteLine v35 │
00:01:37 #3992 [Verbose] > │ let v36 : string = $"Test: {v34}" │
00:01:37 #3993 [Verbose] > │ System.Console.WriteLine v36 │
00:01:37 #3994 [Verbose] > │ let v37 : int32 = 6 │
00:01:37 #3995 [Verbose] > │ let v38 : int32 = 3 │
00:01:37 #3996 [Verbose] > │ let v39 : US0 = US0_1(v38) │
00:01:37 #3997 [Verbose] > │ let v40 : int32 = 1 │
00:01:37 #3998 [Verbose] > │ let v41 : int32 = 0 │
00:01:37 #3999 [Verbose] > │ let v42 : US0 = US0_1(v41) │
00:01:37 #4000 [Verbose] > │ let v43 : int32 = 11 │
00:01:37 #4001 [Verbose] > │ let v44 : int32 = 6 │
00:01:37 #4002 [Verbose] > │ let v45 : US0 = US0_1(v44) │
00:01:37 #4003 [Verbose] > │ let v46 : int32 = 12 │
00:01:37 #4004 [Verbose] > │ let v47 : US0 = US0_0 │
00:01:37 #4005 [Verbose] > │ let v48 : int32 = 60 │
00:01:37 #4006 [Verbose] > │ let v49 : int32 = 59 │
00:01:37 #4007 [Verbose] > │ let v50 : US0 = US0_1(v49) │
00:01:37 #4008 [Verbose] > │ let v51 : int32 = 6 │
00:01:37 #4009 [Verbose] > │ let v52 : int32 = 7 │
00:01:37 #4010 [Verbose] > │ let v53 : int32 = 3 │
00:01:37 #4011 [Verbose] > │ let v54 : US0 = US0_1(v53) │
00:01:37 #4012 [Verbose] > │ let v55 : int32 = 1 │
00:01:37 #4013 [Verbose] > │ let v56 : int32 = 7 │
00:01:37 #4014 [Verbose] > │ let v57 : int32 = 0 │
00:01:37 #4015 [Verbose] > │ let v58 : US0 = US0_1(v57) │
00:01:37 #4016 [Verbose] > │ let v59 : int32 = 11 │
00:01:37 #4017 [Verbose] > │ let v60 : int32 = 7 │
00:01:37 #4018 [Verbose] > │ let v61 : int32 = 6 │
00:01:37 #4019 [Verbose] > │ let v62 : US0 = US0_1(v61) │
00:01:37 #4020 [Verbose] > │ let v63 : int32 = 12 │
00:01:37 #4021 [Verbose] > │ let v64 : int32 = 7 │
00:01:37 #4022 [Verbose] > │ let v65 : US0 = US0_0 │
00:01:37 #4023 [Verbose] > │ let v66 : int32 = 60 │
00:01:37 #4024 [Verbose] > │ let v67 : int32 = 100 │
00:01:37 #4025 [Verbose] > │ let v68 : int32 = 59 │
00:01:37 #4026 [Verbose] > │ let v69 : US0 = US0_1(v68) │
00:01:37 #4027 [Verbose] > │ let v70 : UH0 = UH0_1 │
00:01:37 #4028 [Verbose] > │ let v71 : UH0 = UH0_0(v27, v66, v67, v69, v70) │
00:01:37 #4029 [Verbose] > │ let v72 : UH0 = UH0_0(v26, v63, v64, v65, v71) │
00:01:37 #4030 [Verbose] > │ let v73 : UH0 = UH0_0(v24, v59, v60, v62, v72) │
00:01:37 #4031 [Verbose] > │ let v74 : UH0 = UH0_0(v22, v55, v56, v58, v73) │
00:01:37 #4032 [Verbose] > │ let v75 : UH0 = UH0_0(v20, v51, v52, v54, v74) │
00:01:37 #4033 [Verbose] > │ let v76 : UH0 = UH0_0(v12, v48, v18, v50, v75) │
00:01:37 #4034 [Verbose] > │ let v77 : UH0 = UH0_0(v10, v46, v11, v47, v76) │
00:01:37 #4035 [Verbose] > │ let v78 : UH0 = UH0_0(v7, v43, v8, v45, v77) │
00:01:37 #4036 [Verbose] > │ let v79 : UH0 = UH0_0(v4, v40, v5, v42, v78) │
00:01:37 #4037 [Verbose] > │ let v80 : UH0 = UH0_0(v1, v37, v2, v39, v79) │
00:01:37 #4038 [Verbose] > │ let v81 : (struct ((int32 []) * int32 * int32 * US0) []) = method3(v80) │
00:01:37 #4039 [Verbose] > │ let v82 : uint64 = System.Convert.ToUInt64 v81.Length │
00:01:37 #4040 [Verbose] > │ let v83 : (struct (string * string * string * (int64 [])) []) = │
00:01:37 #4041 [Verbose] > │ Array.zeroCreate<struct (string * string * string * (int64 []))> │
00:01:37 #4042 [Verbose] > │ (System.Convert.ToInt32(v82)) │
00:01:37 #4043 [Verbose] > │ let v84 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #4044 [Verbose] > │ while method6(v82, v84) do │
00:01:37 #4045 [Verbose] > │ let v86 : uint64 = v84.l0 │
00:01:37 #4046 [Verbose] > │ let struct (v87 : (int32 []), v88 : int32, v89 : int32, v90 : US0) = │
00:01:37 #4047 [Verbose] > │ v81.[int v86] │
00:01:37 #4048 [Verbose] > │ let v91 : string = $"%A{struct (v87, v88, v89)}" │
00:01:37 #4049 [Verbose] > │ System.Console.WriteLine v35 │
00:01:37 #4050 [Verbose] > │ let v92 : string = $"Solution: {v91} " │
00:01:37 #4051 [Verbose] > │ System.Console.WriteLine v92 │
00:01:37 #4052 [Verbose] > │ let v93 : int32 = 0 │
00:01:37 #4053 [Verbose] > │ let v94 : string = "semi_open_1" │
00:01:37 #4054 [Verbose] > │ let v95 : (struct ((int32 []) * int32 * int32) -> US0) = closure1() │
00:01:37 #4055 [Verbose] > │ let v96 : int32 = 1 │
00:01:37 #4056 [Verbose] > │ let v97 : string = "closed_1" │
00:01:37 #4057 [Verbose] > │ let v98 : (struct ((int32 []) * int32 * int32) -> US0) = closure2() │
00:01:37 #4058 [Verbose] > │ let v99 : int32 = 2 │
00:01:37 #4059 [Verbose] > │ let v100 : string = "semi_open_2" │
00:01:37 #4060 [Verbose] > │ let v101 : (struct ((int32 []) * int32 * int32) -> US0) = closure3() │
00:01:37 #4061 [Verbose] > │ let v102 : int32 = 3 │
00:01:37 #4062 [Verbose] > │ let v103 : string = "closed_2" │
00:01:37 #4063 [Verbose] > │ let v104 : (struct ((int32 []) * int32 * int32) -> US0) = closure4() │
00:01:37 #4064 [Verbose] > │ let v105 : UH1 = UH1_1 │
00:01:37 #4065 [Verbose] > │ let v106 : UH1 = UH1_0(v102, v103, v104, v105) │
00:01:37 #4066 [Verbose] > │ let v107 : UH1 = UH1_0(v99, v100, v101, v106) │
00:01:37 #4067 [Verbose] > │ let v108 : UH1 = UH1_0(v96, v97, v98, v107) │
00:01:37 #4068 [Verbose] > │ let v109 : UH1 = UH1_0(v93, v94, v95, v108) │
00:01:37 #4069 [Verbose] > │ let v110 : (struct (int32 * string * (struct ((int32 []) * int32 * │
00:01:37 #4070 [Verbose] > │ int32) -> US0)) []) = method11(v109) │
00:01:37 #4071 [Verbose] > │ let v111 : uint64 = System.Convert.ToUInt64 v110.Length │
00:01:37 #4072 [Verbose] > │ let v112 : (struct (US0 * int64) []) = Array.zeroCreate<struct (US0 │
00:01:37 #4073 [Verbose] > │ * int64)> (System.Convert.ToInt32(v111)) │
00:01:37 #4074 [Verbose] > │ let v113 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #4075 [Verbose] > │ while method6(v111, v113) do │
00:01:37 #4076 [Verbose] > │ let v115 : uint64 = v113.l0 │
00:01:37 #4077 [Verbose] > │ let struct (v116 : int32, v117 : string, v118 : (struct ((int32 │
00:01:37 #4078 [Verbose] > │ []) * int32 * int32) -> US0)) = v110.[int v115] │
00:01:37 #4079 [Verbose] > │ let mutable result = None │
00:01:37 #4080 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:01:37 #4081 [Verbose] > │ #if !WASM │
00:01:37 #4082 [Verbose] > │ () │
00:01:37 #4083 [Verbose] > │ #else │
00:01:37 #4084 [Verbose] > │ () │
00:01:37 #4085 [Verbose] > │ #endif │
00:01:37 #4086 [Verbose] > │ #else │
00:01:37 #4087 [Verbose] > │ System.GC.Collect () │
00:01:37 #4088 [Verbose] > │ () │
00:01:37 #4089 [Verbose] > │ #endif │
00:01:37 #4090 [Verbose] > │ |> fun x -> result <- Some x │
00:01:37 #4091 [Verbose] > │ result |> Option.get │
00:01:37 #4092 [Verbose] > │ let v119 : (unit -> System.Diagnostics.Stopwatch) = │
00:01:37 #4093 [Verbose] > │ System.Diagnostics.Stopwatch │
00:01:37 #4094 [Verbose] > │ let v120 : System.Diagnostics.Stopwatch = v119 () │
00:01:37 #4095 [Verbose] > │ v120.Start () │
00:01:37 #4096 [Verbose] > │ let v121 : int64 = v120.ElapsedMilliseconds │
00:01:37 #4097 [Verbose] > │ let v122 : (int32 []) = Array.zeroCreate<int32> (8000001) │
00:01:37 #4098 [Verbose] > │ let v123 : Mut0 = {l0 = 0} : Mut0 │
00:01:37 #4099 [Verbose] > │ while method14(v123) do │
00:01:37 #4100 [Verbose] > │ let v125 : int32 = v123.l0 │
00:01:37 #4101 [Verbose] > │ v122.[int v125] <- v125 │
00:01:37 #4102 [Verbose] > │ let v126 : int32 = v125 + 1 │
00:01:37 #4103 [Verbose] > │ v123.l0 <- v126 │
00:01:37 #4104 [Verbose] > │ () │
00:01:37 #4105 [Verbose] > │ let v127 : (int32 -> US0) = closure5(v87, v88, v89, v118) │
00:01:37 #4106 [Verbose] > │ let v128 : (US0 []) = v122 |> Array.Parallel.map v127 │
00:01:37 #4107 [Verbose] > │ let v129 : int32 = v128.Length │
00:01:37 #4108 [Verbose] > │ let v130 : int32 = v129 - 1 │
00:01:37 #4109 [Verbose] > │ let v131 : US0 = v128.[int v130] │
00:01:37 #4110 [Verbose] > │ let v132 : int64 = v120.ElapsedMilliseconds │
00:01:37 #4111 [Verbose] > │ let v133 : int64 = v132 - v121 │
00:01:37 #4112 [Verbose] > │ let v134 : string = $"Test case {v116 + 1}. {v117}. Time: {v133} │
00:01:37 #4113 [Verbose] > │ " │
00:01:37 #4114 [Verbose] > │ System.Console.WriteLine v134 │
00:01:37 #4115 [Verbose] > │ v112.[int v115] <- struct (v131, v133) │
00:01:37 #4116 [Verbose] > │ let v135 : uint64 = v115 + 1UL │
00:01:37 #4117 [Verbose] > │ v113.l0 <- v135 │
00:01:37 #4118 [Verbose] > │ () │
00:01:37 #4119 [Verbose] > │ let v136 : uint64 = System.Convert.ToUInt64 v112.Length │
00:01:37 #4120 [Verbose] > │ let v137 : (US0 []) = Array.zeroCreate<US0> │
00:01:37 #4121 [Verbose] > │ (System.Convert.ToInt32(v136)) │
00:01:37 #4122 [Verbose] > │ let v138 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #4123 [Verbose] > │ while method6(v136, v138) do │
00:01:37 #4124 [Verbose] > │ let v140 : uint64 = v138.l0 │
00:01:37 #4125 [Verbose] > │ let struct (v141 : US0, v142 : int64) = v112.[int v140] │
00:01:37 #4126 [Verbose] > │ v137.[int v140] <- v141 │
00:01:37 #4127 [Verbose] > │ let v143 : uint64 = v140 + 1UL │
00:01:37 #4128 [Verbose] > │ v138.l0 <- v143 │
00:01:37 #4129 [Verbose] > │ () │
00:01:37 #4130 [Verbose] > │ let v144 : uint64 = System.Convert.ToUInt64 v137.Length │
00:01:37 #4131 [Verbose] > │ let v145 : bool = v144 <= 1UL │
00:01:37 #4132 [Verbose] > │ if v145 then │
00:01:37 #4133 [Verbose] > │ () │
00:01:37 #4134 [Verbose] > │ else │
00:01:37 #4135 [Verbose] > │ let v146 : US0 = v137.[int 0UL] │
00:01:37 #4136 [Verbose] > │ let v147 : uint64 = 0UL │
00:01:37 #4137 [Verbose] > │ let v148 : bool = method15(v146, v137, v147) │
00:01:37 #4138 [Verbose] > │ if v148 then │
00:01:37 #4139 [Verbose] > │ () │
00:01:37 #4140 [Verbose] > │ else │
00:01:37 #4141 [Verbose] > │ let v149 : string = $"Challenge error: {v137}" │
00:01:37 #4142 [Verbose] > │ failwith<unit> v149 │
00:01:37 #4143 [Verbose] > │ let v150 : string = $"%A{v90}" │
00:01:37 #4144 [Verbose] > │ let v151 : (US0 []) = Array.zeroCreate<US0> │
00:01:37 #4145 [Verbose] > │ (System.Convert.ToInt32(v136)) │
00:01:37 #4146 [Verbose] > │ let v152 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #4147 [Verbose] > │ while method6(v136, v152) do │
00:01:37 #4148 [Verbose] > │ let v154 : uint64 = v152.l0 │
00:01:37 #4149 [Verbose] > │ let struct (v155 : US0, v156 : int64) = v112.[int v154] │
00:01:37 #4150 [Verbose] > │ v151.[int v154] <- v155 │
00:01:37 #4151 [Verbose] > │ let v157 : uint64 = v154 + 1UL │
00:01:37 #4152 [Verbose] > │ v152.l0 <- v157 │
00:01:37 #4153 [Verbose] > │ () │
00:01:37 #4154 [Verbose] > │ let v158 : US0 = v151.[int 0UL] │
00:01:37 #4155 [Verbose] > │ let v159 : string = $"%A{v158}" │
00:01:37 #4156 [Verbose] > │ let v160 : (int64 []) = Array.zeroCreate<int64> │
00:01:37 #4157 [Verbose] > │ (System.Convert.ToInt32(v136)) │
00:01:37 #4158 [Verbose] > │ let v161 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #4159 [Verbose] > │ while method6(v136, v161) do │
00:01:37 #4160 [Verbose] > │ let v163 : uint64 = v161.l0 │
00:01:37 #4161 [Verbose] > │ let struct (v164 : US0, v165 : int64) = v112.[int v163] │
00:01:37 #4162 [Verbose] > │ v160.[int v163] <- v165 │
00:01:37 #4163 [Verbose] > │ let v166 : uint64 = v163 + 1UL │
00:01:37 #4164 [Verbose] > │ v161.l0 <- v166 │
00:01:37 #4165 [Verbose] > │ () │
00:01:37 #4166 [Verbose] > │ v83.[int v86] <- struct (v150, v91, v159, v160) │
00:01:37 #4167 [Verbose] > │ let v167 : uint64 = v86 + 1UL │
00:01:37 #4168 [Verbose] > │ v84.l0 <- v167 │
00:01:37 #4169 [Verbose] > │ () │
00:01:37 #4170 [Verbose] > │ let v168 : uint64 = System.Convert.ToUInt64 v83.Length │
00:01:37 #4171 [Verbose] > │ let v169 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 * │
00:01:37 #4172 [Verbose] > │ US1)> (System.Convert.ToInt32(v168)) │
00:01:37 #4173 [Verbose] > │ let v170 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #4174 [Verbose] > │ while method6(v168, v170) do │
00:01:37 #4175 [Verbose] > │ let v172 : uint64 = v170.l0 │
00:01:37 #4176 [Verbose] > │ let struct (v173 : string, v174 : string, v175 : string, v176 : │
00:01:37 #4177 [Verbose] > │ (int64 [])) = v83.[int v172] │
00:01:37 #4178 [Verbose] > │ let v177 : uint64 = System.Convert.ToUInt64 v176.Length │
00:01:37 #4179 [Verbose] > │ let v178 : UH3 = UH3_1 │
00:01:37 #4180 [Verbose] > │ let v179 : Mut2 = {l0 = 0UL; l1 = v178; l2 = 0L} : Mut2 │
00:01:37 #4181 [Verbose] > │ while method16(v177, v179) do │
00:01:37 #4182 [Verbose] > │ let v181 : uint64 = v179.l0 │
00:01:37 #4183 [Verbose] > │ let struct (v182 : UH3, v183 : int64) = v179.l1, v179.l2 │
00:01:37 #4184 [Verbose] > │ let v184 : int64 = v176.[int v181] │
00:01:37 #4185 [Verbose] > │ let v185 : int64 = v183 + 1L │
00:01:37 #4186 [Verbose] > │ let v186 : uint64 = v181 + 1UL │
00:01:37 #4187 [Verbose] > │ let v187 : UH3 = UH3_0(v183, v184, v182) │
00:01:37 #4188 [Verbose] > │ v179.l0 <- v186 │
00:01:37 #4189 [Verbose] > │ v179.l1 <- v187 │
00:01:37 #4190 [Verbose] > │ v179.l2 <- v185 │
00:01:37 #4191 [Verbose] > │ () │
00:01:37 #4192 [Verbose] > │ let struct (v188 : UH3, v189 : int64) = v179.l1, v179.l2 │
00:01:37 #4193 [Verbose] > │ let v190 : UH3 = UH3_1 │
00:01:37 #4194 [Verbose] > │ let v191 : UH3 = method17(v188, v190) │
00:01:37 #4195 [Verbose] > │ let v192 : (struct (int64 * int64) []) = method18(v191) │
00:01:37 #4196 [Verbose] > │ let v193 : int32 = v192.Length │
00:01:37 #4197 [Verbose] > │ let v194 : (struct (int64 * int64) []) = Array.zeroCreate<struct │
00:01:37 #4198 [Verbose] > │ (int64 * int64)> (v193) │
00:01:37 #4199 [Verbose] > │ let v195 : Mut0 = {l0 = 0} : Mut0 │
00:01:37 #4200 [Verbose] > │ while method21(v193, v195) do │
00:01:37 #4201 [Verbose] > │ let v197 : int32 = v195.l0 │
00:01:37 #4202 [Verbose] > │ let struct (v198 : int64, v199 : int64) = v192.[int v197] │
00:01:37 #4203 [Verbose] > │ let v200 : int64 = v198 + 1L │
00:01:37 #4204 [Verbose] > │ v194.[int v197] <- struct (v200, v199) │
00:01:37 #4205 [Verbose] > │ let v201 : int32 = v197 + 1 │
00:01:37 #4206 [Verbose] > │ v195.l0 <- v201 │
00:01:37 #4207 [Verbose] > │ () │
00:01:37 #4208 [Verbose] > │ let v202 : (struct (int64 * int64) -> int64) = closure6() │
00:01:37 #4209 [Verbose] > │ let v203 : (struct (int64 * int64) []) = v194 |> Array.sortBy v202 │
00:01:37 #4210 [Verbose] > │ let struct (v204 : int64, v205 : int64) = v203.[int 0] │
00:01:37 #4211 [Verbose] > │ let v206 : string = $"%A{struct (v204, v205)}" │
00:01:37 #4212 [Verbose] > │ let v207 : bool = v173 = v175 │
00:01:37 #4213 [Verbose] > │ let v212 : US1 = │
00:01:37 #4214 [Verbose] > │ if v207 then │
00:01:37 #4215 [Verbose] > │ let v208 : System.ConsoleColor = │
00:01:37 #4216 [Verbose] > │ System.ConsoleColor.DarkGreen │
00:01:37 #4217 [Verbose] > │ US1_1(v208) │
00:01:37 #4218 [Verbose] > │ else │
00:01:37 #4219 [Verbose] > │ let v210 : System.ConsoleColor = System.ConsoleColor.DarkRed │
00:01:37 #4220 [Verbose] > │ US1_1(v210) │
00:01:37 #4221 [Verbose] > │ let v213 : UH2 = UH2_1 │
00:01:37 #4222 [Verbose] > │ let v214 : UH2 = UH2_0(v206, v213) │
00:01:37 #4223 [Verbose] > │ let v215 : UH2 = UH2_0(v175, v214) │
00:01:37 #4224 [Verbose] > │ let v216 : UH2 = UH2_0(v173, v215) │
00:01:37 #4225 [Verbose] > │ let v217 : UH2 = UH2_0(v174, v216) │
00:01:37 #4226 [Verbose] > │ v169.[int v172] <- struct (v217, v212) │
00:01:37 #4227 [Verbose] > │ let v218 : uint64 = v172 + 1UL │
00:01:37 #4228 [Verbose] > │ v170.l0 <- v218 │
00:01:37 #4229 [Verbose] > │ () │
00:01:37 #4230 [Verbose] > │ let v219 : string = "Input" │
00:01:37 #4231 [Verbose] > │ let v220 : string = "Expected" │
00:01:37 #4232 [Verbose] > │ let v221 : string = "Result" │
00:01:37 #4233 [Verbose] > │ let v222 : string = "Best" │
00:01:37 #4234 [Verbose] > │ let v223 : UH2 = UH2_1 │
00:01:37 #4235 [Verbose] > │ let v224 : UH2 = UH2_0(v222, v223) │
00:01:37 #4236 [Verbose] > │ let v225 : UH2 = UH2_0(v221, v224) │
00:01:37 #4237 [Verbose] > │ let v226 : UH2 = UH2_0(v220, v225) │
00:01:37 #4238 [Verbose] > │ let v227 : UH2 = UH2_0(v219, v226) │
00:01:37 #4239 [Verbose] > │ let v228 : US1 = US1_0 │
00:01:37 #4240 [Verbose] > │ let v229 : string = "---" │
00:01:37 #4241 [Verbose] > │ let v230 : UH2 = UH2_1 │
00:01:37 #4242 [Verbose] > │ let v231 : UH2 = UH2_0(v229, v230) │
00:01:37 #4243 [Verbose] > │ let v232 : UH2 = UH2_0(v229, v231) │
00:01:37 #4244 [Verbose] > │ let v233 : UH2 = UH2_0(v229, v232) │
00:01:37 #4245 [Verbose] > │ let v234 : UH2 = UH2_0(v229, v233) │
00:01:37 #4246 [Verbose] > │ let v235 : US1 = US1_0 │
00:01:37 #4247 [Verbose] > │ let v236 : UH4 = UH4_1 │
00:01:37 #4248 [Verbose] > │ let v237 : UH4 = UH4_0(v234, v235, v236) │
00:01:37 #4249 [Verbose] > │ let v238 : UH4 = UH4_0(v227, v228, v237) │
00:01:37 #4250 [Verbose] > │ let v239 : (struct (UH2 * US1) []) = method22(v238) │
00:01:37 #4251 [Verbose] > │ let v240 : uint64 = System.Convert.ToUInt64 v239.Length │
00:01:37 #4252 [Verbose] > │ let v241 : uint64 = System.Convert.ToUInt64 v169.Length │
00:01:37 #4253 [Verbose] > │ let v242 : uint64 = v240 + v241 │
00:01:37 #4254 [Verbose] > │ let v243 : (struct (UH2 * US1) []) = Array.zeroCreate<struct (UH2 * │
00:01:37 #4255 [Verbose] > │ US1)> (System.Convert.ToInt32(v242)) │
00:01:37 #4256 [Verbose] > │ let v244 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #4257 [Verbose] > │ while method6(v242, v244) do │
00:01:37 #4258 [Verbose] > │ let v246 : uint64 = v244.l0 │
00:01:37 #4259 [Verbose] > │ let v247 : bool = v246 < v240 │
00:01:37 #4260 [Verbose] > │ let struct (v253 : UH2, v254 : US1) = │
00:01:37 #4261 [Verbose] > │ if v247 then │
00:01:37 #4262 [Verbose] > │ let struct (v248 : UH2, v249 : US1) = v239.[int v246] │
00:01:37 #4263 [Verbose] > │ struct (v248, v249) │
00:01:37 #4264 [Verbose] > │ else │
00:01:37 #4265 [Verbose] > │ let v250 : uint64 = v246 - v240 │
00:01:37 #4266 [Verbose] > │ let struct (v251 : UH2, v252 : US1) = v169.[int v250] │
00:01:37 #4267 [Verbose] > │ struct (v251, v252) │
00:01:37 #4268 [Verbose] > │ v243.[int v246] <- struct (v253, v254) │
00:01:37 #4269 [Verbose] > │ let v255 : uint64 = v246 + 1UL │
00:01:37 #4270 [Verbose] > │ v244.l0 <- v255 │
00:01:37 #4271 [Verbose] > │ () │
00:01:37 #4272 [Verbose] > │ let v256 : uint64 = System.Convert.ToUInt64 v243.Length │
00:01:37 #4273 [Verbose] > │ let v257 : ((string []) []) = Array.zeroCreate<(string [])> │
00:01:37 #4274 [Verbose] > │ (System.Convert.ToInt32(v256)) │
00:01:37 #4275 [Verbose] > │ let v258 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #4276 [Verbose] > │ while method6(v256, v258) do │
00:01:37 #4277 [Verbose] > │ let v260 : uint64 = v258.l0 │
00:01:37 #4278 [Verbose] > │ let struct (v261 : UH2, v262 : US1) = v243.[int v260] │
00:01:37 #4279 [Verbose] > │ let v263 : (string []) = method25(v261) │
00:01:37 #4280 [Verbose] > │ v257.[int v260] <- v263 │
00:01:37 #4281 [Verbose] > │ let v264 : uint64 = v260 + 1UL │
00:01:37 #4282 [Verbose] > │ v258.l0 <- v264 │
00:01:37 #4283 [Verbose] > │ () │
00:01:37 #4284 [Verbose] > │ let v265 : ((string []) []) = v257 |> Array.transpose │
00:01:37 #4285 [Verbose] > │ let v266 : uint64 = System.Convert.ToUInt64 v265.Length │
00:01:37 #4286 [Verbose] > │ let v267 : (int64 []) = Array.zeroCreate<int64> │
00:01:37 #4287 [Verbose] > │ (System.Convert.ToInt32(v266)) │
00:01:37 #4288 [Verbose] > │ let v268 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #4289 [Verbose] > │ while method6(v266, v268) do │
00:01:37 #4290 [Verbose] > │ let v270 : uint64 = v268.l0 │
00:01:37 #4291 [Verbose] > │ let v271 : (string []) = v265.[int v270] │
00:01:37 #4292 [Verbose] > │ let v272 : uint64 = System.Convert.ToUInt64 v271.Length │
00:01:37 #4293 [Verbose] > │ let v273 : (int64 []) = Array.zeroCreate<int64> │
00:01:37 #4294 [Verbose] > │ (System.Convert.ToInt32(v272)) │
00:01:37 #4295 [Verbose] > │ let v274 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #4296 [Verbose] > │ while method6(v272, v274) do │
00:01:37 #4297 [Verbose] > │ let v276 : uint64 = v274.l0 │
00:01:37 #4298 [Verbose] > │ let v277 : string = v271.[int v276] │
00:01:37 #4299 [Verbose] > │ let v278 : int64 = System.Convert.ToInt64 v277.Length │
00:01:37 #4300 [Verbose] > │ v273.[int v276] <- v278 │
00:01:37 #4301 [Verbose] > │ let v279 : uint64 = v276 + 1UL │
00:01:37 #4302 [Verbose] > │ v274.l0 <- v279 │
00:01:37 #4303 [Verbose] > │ () │
00:01:37 #4304 [Verbose] > │ let v280 : (int64 []) = v273 |> Array.sortDescending │
00:01:37 #4305 [Verbose] > │ let v281 : int64 option = v280 |> Array.tryItem 0 │
00:01:37 #4306 [Verbose] > │ let v282 : (int64 -> US2) = closure7() │
00:01:37 #4307 [Verbose] > │ let v283 : US2 = US2_0 │
00:01:37 #4308 [Verbose] > │ let v284 : US2 = v281 |> Option.map v282 |> Option.defaultValue v283 │
00:01:37 #4309 [Verbose] > │ let v287 : int64 = │
00:01:37 #4310 [Verbose] > │ match v284 with │
00:01:37 #4311 [Verbose] > │ | US2_0 -> (* None *) │
00:01:37 #4312 [Verbose] > │ 0L │
00:01:37 #4313 [Verbose] > │ | US2_1(v285) -> (* Some *) │
00:01:37 #4314 [Verbose] > │ v285 │
00:01:37 #4315 [Verbose] > │ v267.[int v270] <- v287 │
00:01:37 #4316 [Verbose] > │ let v288 : uint64 = v270 + 1UL │
00:01:37 #4317 [Verbose] > │ v268.l0 <- v288 │
00:01:37 #4318 [Verbose] > │ () │
00:01:37 #4319 [Verbose] > │ let v289 : uint64 = System.Convert.ToUInt64 v267.Length │
00:01:37 #4320 [Verbose] > │ let v290 : UH5 = UH5_1 │
00:01:37 #4321 [Verbose] > │ let v291 : Mut3 = {l0 = 0UL; l1 = v290; l2 = 0} : Mut3 │
00:01:37 #4322 [Verbose] > │ while method28(v289, v291) do │
00:01:37 #4323 [Verbose] > │ let v293 : uint64 = v291.l0 │
00:01:37 #4324 [Verbose] > │ let struct (v294 : UH5, v295 : int32) = v291.l1, v291.l2 │
00:01:37 #4325 [Verbose] > │ let v296 : int64 = v267.[int v293] │
00:01:37 #4326 [Verbose] > │ let v297 : int32 = v295 + 1 │
00:01:37 #4327 [Verbose] > │ let v298 : uint64 = v293 + 1UL │
00:01:37 #4328 [Verbose] > │ let v299 : UH5 = UH5_0(v295, v296, v294) │
00:01:37 #4329 [Verbose] > │ v291.l0 <- v298 │
00:01:37 #4330 [Verbose] > │ v291.l1 <- v299 │
00:01:37 #4331 [Verbose] > │ v291.l2 <- v297 │
00:01:37 #4332 [Verbose] > │ () │
00:01:37 #4333 [Verbose] > │ let struct (v300 : UH5, v301 : int32) = v291.l1, v291.l2 │
00:01:37 #4334 [Verbose] > │ let v302 : UH5 = UH5_1 │
00:01:37 #4335 [Verbose] > │ let v303 : UH5 = method29(v300, v302) │
00:01:37 #4336 [Verbose] > │ let v304 : (struct (int32 * int64) []) = method30(v303) │
00:01:37 #4337 [Verbose] > │ let v305 : Map<int32, int64> = v304 |> Array.map (fun (struct (a, b)) -> │
00:01:37 #4338 [Verbose] > │ a, b) |> Map.ofArray │
00:01:37 #4339 [Verbose] > │ let v306 : (struct ((string []) * US1) []) = Array.zeroCreate<struct │
00:01:37 #4340 [Verbose] > │ ((string []) * US1)> (System.Convert.ToInt32(v256)) │
00:01:37 #4341 [Verbose] > │ let v307 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #4342 [Verbose] > │ while method6(v256, v307) do │
00:01:37 #4343 [Verbose] > │ let v309 : uint64 = v307.l0 │
00:01:37 #4344 [Verbose] > │ let struct (v310 : UH2, v311 : US1) = v243.[int v309] │
00:01:37 #4345 [Verbose] > │ let v312 : UH6 = UH6_1 │
00:01:37 #4346 [Verbose] > │ let v313 : int32 = 0 │
00:01:37 #4347 [Verbose] > │ let struct (v314 : UH6, v315 : int32) = method33(v310, v312, v313) │
00:01:37 #4348 [Verbose] > │ let v316 : UH6 = UH6_1 │
00:01:37 #4349 [Verbose] > │ let v317 : UH6 = method34(v314, v316) │
00:01:37 #4350 [Verbose] > │ let v318 : UH2 = UH2_1 │
00:01:37 #4351 [Verbose] > │ let v319 : UH2 = method35(v305, v317, v318) │
00:01:37 #4352 [Verbose] > │ let v320 : (string []) = method36(v319) │
00:01:37 #4353 [Verbose] > │ v306.[int v309] <- struct (v320, v311) │
00:01:37 #4354 [Verbose] > │ let v321 : uint64 = v309 + 1UL │
00:01:37 #4355 [Verbose] > │ v307.l0 <- v321 │
00:01:37 #4356 [Verbose] > │ () │
00:01:37 #4357 [Verbose] > │ System.Console.WriteLine v35 │
00:01:37 #4358 [Verbose] > │ let v322 : uint64 = System.Convert.ToUInt64 v306.Length │
00:01:37 #4359 [Verbose] > │ let v323 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #4360 [Verbose] > │ while method6(v322, v323) do │
00:01:37 #4361 [Verbose] > │ let v325 : uint64 = v323.l0 │
00:01:37 #4362 [Verbose] > │ let struct (v326 : (string []), v327 : US1) = v306.[int v325] │
00:01:37 #4363 [Verbose] > │ match v327 with │
00:01:37 #4364 [Verbose] > │ | US1_0 -> (* None *) │
00:01:37 #4365 [Verbose] > │ let mutable result = None │
00:01:37 #4366 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:01:37 #4367 [Verbose] > │ #if !WASM │
00:01:37 #4368 [Verbose] > │ () │
00:01:37 #4369 [Verbose] > │ #else │
00:01:37 #4370 [Verbose] > │ () │
00:01:37 #4371 [Verbose] > │ #endif │
00:01:37 #4372 [Verbose] > │ #else │
00:01:37 #4373 [Verbose] > │ System.Console.ResetColor () │
00:01:37 #4374 [Verbose] > │ () │
00:01:37 #4375 [Verbose] > │ #endif │
00:01:37 #4376 [Verbose] > │ |> fun x -> result <- Some x │
00:01:37 #4377 [Verbose] > │ result |> Option.get │
00:01:37 #4378 [Verbose] > │ () │
00:01:37 #4379 [Verbose] > │ | US1_1(v328) -> (* Some *) │
00:01:37 #4380 [Verbose] > │ let mutable result = None │
00:01:37 #4381 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:01:37 #4382 [Verbose] > │ #if !WASM │
00:01:37 #4383 [Verbose] > │ () │
00:01:37 #4384 [Verbose] > │ #else │
00:01:37 #4385 [Verbose] > │ () │
00:01:37 #4386 [Verbose] > │ #endif │
00:01:37 #4387 [Verbose] > │ #else │
00:01:37 #4388 [Verbose] > │ System.Console.ForegroundColor <- v328 │
00:01:37 #4389 [Verbose] > │ () │
00:01:37 #4390 [Verbose] > │ #endif │
00:01:37 #4391 [Verbose] > │ |> fun x -> result <- Some x │
00:01:37 #4392 [Verbose] > │ result |> Option.get │
00:01:37 #4393 [Verbose] > │ () │
00:01:37 #4394 [Verbose] > │ let v329 : string = "\t| " │
00:01:37 #4395 [Verbose] > │ let v330 : string = System.String.Join (v329, v326) │
00:01:37 #4396 [Verbose] > │ System.Console.WriteLine v330 │
00:01:37 #4397 [Verbose] > │ let mutable result = None │
00:01:37 #4398 [Verbose] > │ #if FABLE_COMPILER_RUST │
00:01:37 #4399 [Verbose] > │ #if !WASM │
00:01:37 #4400 [Verbose] > │ () │
00:01:37 #4401 [Verbose] > │ #else │
00:01:37 #4402 [Verbose] > │ () │
00:01:37 #4403 [Verbose] > │ #endif │
00:01:37 #4404 [Verbose] > │ #else │
00:01:37 #4405 [Verbose] > │ System.Console.ResetColor () │
00:01:37 #4406 [Verbose] > │ () │
00:01:37 #4407 [Verbose] > │ #endif │
00:01:37 #4408 [Verbose] > │ |> fun x -> result <- Some x │
00:01:37 #4409 [Verbose] > │ result |> Option.get │
00:01:37 #4410 [Verbose] > │ let v331 : uint64 = v325 + 1UL │
00:01:37 #4411 [Verbose] > │ v323.l0 <- v331 │
00:01:37 #4412 [Verbose] > │ () │
00:01:37 #4413 [Verbose] > │ let v332 : ((float []) []) = Array.zeroCreate<(float [])> │
00:01:37 #4414 [Verbose] > │ (System.Convert.ToInt32(v168)) │
00:01:37 #4415 [Verbose] > │ let v333 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #4416 [Verbose] > │ while method6(v168, v333) do │
00:01:37 #4417 [Verbose] > │ let v335 : uint64 = v333.l0 │
00:01:37 #4418 [Verbose] > │ let struct (v336 : string, v337 : string, v338 : string, v339 : │
00:01:37 #4419 [Verbose] > │ (int64 [])) = v83.[int v335] │
00:01:37 #4420 [Verbose] > │ let v340 : (int64 -> float) = float │
00:01:37 #4421 [Verbose] > │ let v341 : uint64 = System.Convert.ToUInt64 v339.Length │
00:01:37 #4422 [Verbose] > │ let v342 : (float []) = Array.zeroCreate<float> │
00:01:37 #4423 [Verbose] > │ (System.Convert.ToInt32(v341)) │
00:01:37 #4424 [Verbose] > │ let v343 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #4425 [Verbose] > │ while method6(v341, v343) do │
00:01:37 #4426 [Verbose] > │ let v345 : uint64 = v343.l0 │
00:01:37 #4427 [Verbose] > │ let v346 : int64 = v339.[int v345] │
00:01:37 #4428 [Verbose] > │ let v347 : float = v340 v346 │
00:01:37 #4429 [Verbose] > │ v342.[int v345] <- v347 │
00:01:37 #4430 [Verbose] > │ let v348 : uint64 = v345 + 1UL │
00:01:37 #4431 [Verbose] > │ v343.l0 <- v348 │
00:01:37 #4432 [Verbose] > │ () │
00:01:37 #4433 [Verbose] > │ v332.[int v335] <- v342 │
00:01:37 #4434 [Verbose] > │ let v349 : uint64 = v335 + 1UL │
00:01:37 #4435 [Verbose] > │ v333.l0 <- v349 │
00:01:37 #4436 [Verbose] > │ () │
00:01:37 #4437 [Verbose] > │ let v350 : ((float []) []) = v332 |> Array.transpose │
00:01:37 #4438 [Verbose] > │ let v351 : uint64 = System.Convert.ToUInt64 v350.Length │
00:01:37 #4439 [Verbose] > │ let v352 : (float []) = Array.zeroCreate<float> │
00:01:37 #4440 [Verbose] > │ (System.Convert.ToInt32(v351)) │
00:01:37 #4441 [Verbose] > │ let v353 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #4442 [Verbose] > │ while method6(v351, v353) do │
00:01:37 #4443 [Verbose] > │ let v355 : uint64 = v353.l0 │
00:01:37 #4444 [Verbose] > │ let v356 : (float []) = v350.[int v355] │
00:01:37 #4445 [Verbose] > │ let v357 : float = v356 |> Array.average │
00:01:37 #4446 [Verbose] > │ v352.[int v355] <- v357 │
00:01:37 #4447 [Verbose] > │ let v358 : uint64 = v355 + 1UL │
00:01:37 #4448 [Verbose] > │ v353.l0 <- v358 │
00:01:37 #4449 [Verbose] > │ () │
00:01:37 #4450 [Verbose] > │ let v359 : (float -> int64) = int64 │
00:01:37 #4451 [Verbose] > │ let v360 : uint64 = System.Convert.ToUInt64 v352.Length │
00:01:37 #4452 [Verbose] > │ let v361 : (int64 []) = Array.zeroCreate<int64> │
00:01:37 #4453 [Verbose] > │ (System.Convert.ToInt32(v360)) │
00:01:37 #4454 [Verbose] > │ let v362 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #4455 [Verbose] > │ while method6(v360, v362) do │
00:01:37 #4456 [Verbose] > │ let v364 : uint64 = v362.l0 │
00:01:37 #4457 [Verbose] > │ let v365 : float = v352.[int v364] │
00:01:37 #4458 [Verbose] > │ let v366 : int64 = v359 v365 │
00:01:37 #4459 [Verbose] > │ v361.[int v364] <- v366 │
00:01:37 #4460 [Verbose] > │ let v367 : uint64 = v364 + 1UL │
00:01:37 #4461 [Verbose] > │ v362.l0 <- v367 │
00:01:37 #4462 [Verbose] > │ () │
00:01:37 #4463 [Verbose] > │ let v368 : uint64 = System.Convert.ToUInt64 v361.Length │
00:01:37 #4464 [Verbose] > │ let v369 : UH5 = UH5_1 │
00:01:37 #4465 [Verbose] > │ let v370 : Mut3 = {l0 = 0UL; l1 = v369; l2 = 0} : Mut3 │
00:01:37 #4466 [Verbose] > │ while method28(v368, v370) do │
00:01:37 #4467 [Verbose] > │ let v372 : uint64 = v370.l0 │
00:01:37 #4468 [Verbose] > │ let struct (v373 : UH5, v374 : int32) = v370.l1, v370.l2 │
00:01:37 #4469 [Verbose] > │ let v375 : int64 = v361.[int v372] │
00:01:37 #4470 [Verbose] > │ let v376 : int32 = v374 + 1 │
00:01:37 #4471 [Verbose] > │ let v377 : uint64 = v372 + 1UL │
00:01:37 #4472 [Verbose] > │ let v378 : UH5 = UH5_0(v374, v375, v373) │
00:01:37 #4473 [Verbose] > │ v370.l0 <- v377 │
00:01:37 #4474 [Verbose] > │ v370.l1 <- v378 │
00:01:37 #4475 [Verbose] > │ v370.l2 <- v376 │
00:01:37 #4476 [Verbose] > │ () │
00:01:37 #4477 [Verbose] > │ let struct (v379 : UH5, v380 : int32) = v370.l1, v370.l2 │
00:01:37 #4478 [Verbose] > │ let v381 : UH5 = UH5_1 │
00:01:37 #4479 [Verbose] > │ let v382 : UH5 = method29(v379, v381) │
00:01:37 #4480 [Verbose] > │ let v383 : (struct (int32 * int64) []) = method39(v382) │
00:01:37 #4481 [Verbose] > │ System.Console.WriteLine v35 │
00:01:37 #4482 [Verbose] > │ let v384 : string = "Average Ranking " │
00:01:37 #4483 [Verbose] > │ System.Console.WriteLine v384 │
00:01:37 #4484 [Verbose] > │ let v385 : (struct (int32 * int64) -> int64) = closure8() │
00:01:37 #4485 [Verbose] > │ let v386 : (struct (int32 * int64) []) = v383 |> Array.sortBy v385 │
00:01:37 #4486 [Verbose] > │ let v387 : uint64 = System.Convert.ToUInt64 v386.Length │
00:01:37 #4487 [Verbose] > │ let v388 : Mut1 = {l0 = 0UL} : Mut1 │
00:01:37 #4488 [Verbose] > │ while method6(v387, v388) do │
00:01:37 #4489 [Verbose] > │ let v390 : uint64 = v388.l0 │
00:01:37 #4490 [Verbose] > │ let struct (v391 : int32, v392 : int64) = v386.[int v390] │
00:01:37 #4491 [Verbose] > │ let v393 : string = $"Test case %d{v391 + 1}. Average Time: %A{v392} │
00:01:37 #4492 [Verbose] > │ " │
00:01:37 #4493 [Verbose] > │ System.Console.WriteLine v393 │
00:01:37 #4494 [Verbose] > │ let v394 : uint64 = v390 + 1UL │
00:01:37 #4495 [Verbose] > │ v388.l0 <- v394 │
00:01:37 #4496 [Verbose] > │ () │
00:01:37 #4497 [Verbose] > │ () │
00:01:37 #4498 [Verbose] > │ method0() │
00:01:37 #4499 [Verbose] > │ │
00:01:37 #4500 [Verbose] > │ │
00:01:37 #4501 [Verbose] > │ │
00:01:37 #4502 [Verbose] > │ Test: v33 │
00:01:37 #4503 [Verbose] > │ │
00:01:37 #4504 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 6, 7) │
00:01:37 #4505 [Verbose] > │ Test case 1. semi_open_1. Time: 608 │
00:01:37 #4506 [Verbose] > │ Test case 2. closed_1. Time: 592 │
00:01:37 #4507 [Verbose] > │ Test case 3. semi_open_2. Time: 624 │
00:01:37 #4508 [Verbose] > │ Test case 4. closed_2. Time: 634 │
00:01:37 #4509 [Verbose] > │ │
00:01:37 #4510 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 1, 7) │
00:01:37 #4511 [Verbose] > │ Test case 1. semi_open_1. Time: 544 │
00:01:37 #4512 [Verbose] > │ Test case 2. closed_1. Time: 534 │
00:01:37 #4513 [Verbose] > │ Test case 3. semi_open_2. Time: 505 │
00:01:37 #4514 [Verbose] > │ Test case 4. closed_2. Time: 513 │
00:01:37 #4515 [Verbose] > │ │
00:01:37 #4516 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 11, 7) │
00:01:37 #4517 [Verbose] > │ Test case 1. semi_open_1. Time: 569 │
00:01:37 #4518 [Verbose] > │ Test case 2. closed_1. Time: 545 │
00:01:37 #4519 [Verbose] > │ Test case 3. semi_open_2. Time: 568 │
00:01:37 #4520 [Verbose] > │ Test case 4. closed_2. Time: 632 │
00:01:37 #4521 [Verbose] > │ │
00:01:37 #4522 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 12, 7) │
00:01:37 #4523 [Verbose] > │ Test case 1. semi_open_1. Time: 640 │
00:01:37 #4524 [Verbose] > │ Test case 2. closed_1. Time: 675 │
00:01:37 #4525 [Verbose] > │ Test case 3. semi_open_2. Time: 556 │
00:01:37 #4526 [Verbose] > │ Test case 4. closed_2. Time: 520 │
00:01:37 #4527 [Verbose] > │ │
00:01:37 #4528 [Verbose] > │ Solution: struct ([|1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; │
00:01:37 #4529 [Verbose] > │ 17; 18; 19; 20; │
00:01:37 #4530 [Verbose] > │ 21; 22; 23; 24; 25; 26; 27; 28; 29; 30; 31; 32; 33; 34; 35; 36; │
00:01:37 #4531 [Verbose] > │ 37; 38; │
00:01:37 #4532 [Verbose] > │ 39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; 51; 52; 53; 54; │
00:01:37 #4533 [Verbose] > │ 55; 56; │
00:01:37 #4534 [Verbose] > │ 57; 58; 59; 60; 61; 62; 63; 64; 65; 66; 67; 68; 69; 70; 71; 72; │
00:01:37 #4535 [Verbose] > │ 73; 74; │
00:01:37 #4536 [Verbose] > │ 75; 76; 77; 78; 79; 80; 81; 82; 83; 84; 85; 86; 87; 88; 89; 90; │
00:01:37 #4537 [Verbose] > │ 91; 92; │
00:01:37 #4538 [Verbose] > │ 93; 94; 95; 96; 97; 98; 99; 100|], 60, 100) │
00:01:37 #4539 [Verbose] > │ Test case 1. semi_open_1. Time: 558 │
00:01:37 #4540 [Verbose] > │ Test case 2. closed_1. Time: 576 │
00:01:37 #4541 [Verbose] > │ Test case 3. semi_open_2. Time: 572 │
00:01:37 #4542 [Verbose] > │ Test case 4. closed_2. Time: 538 │
00:01:37 #4543 [Verbose] > │ │
00:01:37 #4544 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 6, 7) │
00:01:37 #4545 [Verbose] > │ Test case 1. semi_open_1. Time: 561 │
00:01:37 #4546 [Verbose] > │ Test case 2. closed_1. Time: 520 │
00:01:37 #4547 [Verbose] > │ Test case 3. semi_open_2. Time: 508 │
00:01:37 #4548 [Verbose] > │ Test case 4. closed_2. Time: 516 │
00:01:37 #4549 [Verbose] > │ │
00:01:37 #4550 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 1, 7) │
00:01:37 #4551 [Verbose] > │ Test case 1. semi_open_1. Time: 529 │
00:01:37 #4552 [Verbose] > │ Test case 2. closed_1. Time: 553 │
00:01:37 #4553 [Verbose] > │ Test case 3. semi_open_2. Time: 535 │
00:01:37 #4554 [Verbose] > │ Test case 4. closed_2. Time: 570 │
00:01:37 #4555 [Verbose] > │ │
00:01:37 #4556 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 11, 7) │
00:01:37 #4557 [Verbose] > │ Test case 1. semi_open_1. Time: 557 │
00:01:37 #4558 [Verbose] > │ Test case 2. closed_1. Time: 541 │
00:01:37 #4559 [Verbose] > │ Test case 3. semi_open_2. Time: 513 │
00:01:37 #4560 [Verbose] > │ Test case 4. closed_2. Time: 506 │
00:01:37 #4561 [Verbose] > │ │
00:01:37 #4562 [Verbose] > │ Solution: struct ([|1; 3; 4; 6; 8; 9; 11|], 12, 7) │
00:01:37 #4563 [Verbose] > │ Test case 1. semi_open_1. Time: 497 │
00:01:37 #4564 [Verbose] > │ Test case 2. closed_1. Time: 507 │
00:01:37 #4565 [Verbose] > │ Test case 3. semi_open_2. Time: 504 │
00:01:37 #4566 [Verbose] > │ Test case 4. closed_2. Time: 498 │
00:01:37 #4567 [Verbose] > │ │
00:01:37 #4568 [Verbose] > │ Solution: struct ([|1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; │
00:01:37 #4569 [Verbose] > │ 17; 18; 19; 20; │
00:01:37 #4570 [Verbose] > │ 21; 22; 23; 24; 25; 26; 27; 28; 29; 30; 31; 32; 33; 34; 35; 36; │
00:01:37 #4571 [Verbose] > │ 37; 38; │
00:01:37 #4572 [Verbose] > │ 39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; 51; 52; 53; 54; │
00:01:37 #4573 [Verbose] > │ 55; 56; │
00:01:37 #4574 [Verbose] > │ 57; 58; 59; 60; 61; 62; 63; 64; 65; 66; 67; 68; 69; 70; 71; 72; │
00:01:37 #4575 [Verbose] > │ 73; 74; │
00:01:37 #4576 [Verbose] > │ 75; 76; 77; 78; 79; 80; 81; 82; 83; 84; 85; 86; 87; 88; 89; 90; │
00:01:37 #4577 [Verbose] > │ 91; 92; │
00:01:37 #4578 [Verbose] > │ 93; 94; 95; 96; 97; 98; 99; 100|], 60, 100) │
00:01:37 #4579 [Verbose] > │ Test case 1. semi_open_1. Time: 510 │
00:01:37 #4580 [Verbose] > │ Test case 2. closed_1. Time: 549 │
00:01:37 #4581 [Verbose] > │ Test case 3. semi_open_2. Time: 517 │
00:01:37 #4582 [Verbose] > │ Test case 4. closed_2. Time: 525 │
00:01:37 #4583 [Verbose] > │ │
00:01:37 #4584 [Verbose] > │ Input │
00:01:37 #4585 [Verbose] > │ │
00:01:37 #4586 [Verbose] > │ │
00:01:37 #4587 [Verbose] > │ │
00:01:37 #4588 [Verbose] > │ | Expected | Result | Best │
00:01:37 #4589 [Verbose] > │ --- │
00:01:37 #4590 [Verbose] > │ │
00:01:37 #4591 [Verbose] > │ │
00:01:37 #4592 [Verbose] > │ │
00:01:37 #4593 [Verbose] > │ | --- | --- | --- │
00:01:37 #4594 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 6, 7) │
00:01:37 #4595 [Verbose] > │ │
00:01:37 #4596 [Verbose] > │ │
00:01:37 #4597 [Verbose] > │ │
00:01:37 #4598 [Verbose] > │ | US0_1 3 | US0_1 3 | struct (2L, 592L) │
00:01:37 #4599 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 1, 7) │
00:01:37 #4600 [Verbose] > │ │
00:01:37 #4601 [Verbose] > │ │
00:01:37 #4602 [Verbose] > │ │
00:01:37 #4603 [Verbose] > │ | US0_1 0 | US0_1 0 | struct (3L, 505L) │
00:01:37 #4604 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 11, 7) │
00:01:37 #4605 [Verbose] > │ │
00:01:37 #4606 [Verbose] > │ │
00:01:37 #4607 [Verbose] > │ │
00:01:37 #4608 [Verbose] > │ | US0_1 6 | US0_1 6 | struct (2L, 545L) │
00:01:37 #4609 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 12, 7) │
00:01:37 #4610 [Verbose] > │ │
00:01:37 #4611 [Verbose] > │ │
00:01:37 #4612 [Verbose] > │ │
00:01:37 #4613 [Verbose] > │ | US0_0 | US0_0 | struct (4L, 520L) │
00:01:37 #4614 [Verbose] > │ struct ([|1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; 17; 18; 19; │
00:01:37 #4615 [Verbose] > │ 20; │
00:01:37 #4616 [Verbose] > │ 21; 22; 23; 24; 25; 26; 27; 28; 29; 30; 31; 32; 33; 34; 35; 36; │
00:01:37 #4617 [Verbose] > │ 37; 38; │
00:01:37 #4618 [Verbose] > │ 39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; 51; 52; 53; 54; │
00:01:37 #4619 [Verbose] > │ 55; 56; │
00:01:37 #4620 [Verbose] > │ 57; 58; 59; 60; 61; 62; 63; 64; 65; 66; 67; 68; 69; 70; 71; 72; │
00:01:37 #4621 [Verbose] > │ 73; 74; │
00:01:37 #4622 [Verbose] > │ 75; 76; 77; 78; 79; 80; 81; 82; 83; 84; 85; 86; 87; 88; 89; 90; │
00:01:37 #4623 [Verbose] > │ 91; 92; │
00:01:37 #4624 [Verbose] > │ 93; 94; 95; 96; 97; 98; 99; 100|], 60, 100) | US0_1 59 | US0_1 59 | │
00:01:37 #4625 [Verbose] > │ struct (4L, 538L) │
00:01:37 #4626 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 6, 7) │
00:01:37 #4627 [Verbose] > │ │
00:01:37 #4628 [Verbose] > │ │
00:01:37 #4629 [Verbose] > │ │
00:01:37 #4630 [Verbose] > │ | US0_1 3 | US0_1 3 | struct (3L, 508L) │
00:01:37 #4631 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 1, 7) │
00:01:37 #4632 [Verbose] > │ │
00:01:37 #4633 [Verbose] > │ │
00:01:37 #4634 [Verbose] > │ │
00:01:37 #4635 [Verbose] > │ | US0_1 0 | US0_1 0 | struct (1L, 529L) │
00:01:37 #4636 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 11, 7) │
00:01:37 #4637 [Verbose] > │ │
00:01:37 #4638 [Verbose] > │ │
00:01:37 #4639 [Verbose] > │ │
00:01:37 #4640 [Verbose] > │ | US0_1 6 | US0_1 6 | struct (4L, 506L) │
00:01:37 #4641 [Verbose] > │ struct ([|1; 3; 4; 6; 8; 9; 11|], 12, 7) │
00:01:37 #4642 [Verbose] > │ │
00:01:37 #4643 [Verbose] > │ │
00:01:37 #4644 [Verbose] > │ │
00:01:37 #4645 [Verbose] > │ | US0_0 | US0_0 | struct (1L, 497L) │
00:01:37 #4646 [Verbose] > │ struct ([|1; 2; 3; 4; 5; 6; 7; 8; 9; 10; 11; 12; 13; 14; 15; 16; 17; 18; 19; │
00:01:37 #4647 [Verbose] > │ 20; │
00:01:37 #4648 [Verbose] > │ 21; 22; 23; 24; 25; 26; 27; 28; 29; 30; 31; 32; 33; 34; 35; 36; │
00:01:37 #4649 [Verbose] > │ 37; 38; │
00:01:37 #4650 [Verbose] > │ 39; 40; 41; 42; 43; 44; 45; 46; 47; 48; 49; 50; 51; 52; 53; 54; │
00:01:37 #4651 [Verbose] > │ 55; 56; │
00:01:37 #4652 [Verbose] > │ 57; 58; 59; 60; 61; 62; 63; 64; 65; 66; 67; 68; 69; 70; 71; 72; │
00:01:37 #4653 [Verbose] > │ 73; 74; │
00:01:37 #4654 [Verbose] > │ 75; 76; 77; 78; 79; 80; 81; 82; 83; 84; 85; 86; 87; 88; 89; 90; │
00:01:37 #4655 [Verbose] > │ 91; 92; │
00:01:37 #4656 [Verbose] > │ 93; 94; 95; 96; 97; 98; 99; 100|], 60, 100) | US0_1 59 | US0_1 59 | │
00:01:37 #4657 [Verbose] > │ struct (1L, 510L) │
00:01:37 #4658 [Verbose] > │ │
00:01:37 #4659 [Verbose] > │ Average Ranking │
00:01:37 #4660 [Verbose] > │ Test case 3. Average Time: 540L │
00:01:37 #4661 [Verbose] > │ Test case 4. Average Time: 545L │
00:01:37 #4662 [Verbose] > │ Test case 1. Average Time: 557L │
00:01:37 #4663 [Verbose] > │ Test case 2. Average Time: 559L │
00:01:37 #4664 [Verbose] > │ │
00:01:37 #4665 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:37 #4666 [Verbose] >
00:01:37 #4667 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:37 #4668 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:37 #4669 [Verbose] > │ ## returnLettersWithOddCountTests │
00:01:37 #4670 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:37 #4671 [Verbose] >
00:01:37 #4672 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:37 #4673 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:37 #4674 [Verbose] > │ Test: ReturnLettersWithOddCount │
00:01:37 #4675 [Verbose] > │ │
00:01:37 #4676 [Verbose] > │ Solution: 1 │
00:01:37 #4677 [Verbose] > │ Test case 1. A. Time: 645L │
00:01:37 #4678 [Verbose] > │ │
00:01:37 #4679 [Verbose] > │ Solution: 2 │
00:01:37 #4680 [Verbose] > │ Test case 1. A. Time: 663L │
00:01:37 #4681 [Verbose] > │ │
00:01:37 #4682 [Verbose] > │ Solution: 3 │
00:01:37 #4683 [Verbose] > │ Test case 1. A. Time: 680L │
00:01:37 #4684 [Verbose] > │ │
00:01:37 #4685 [Verbose] > │ Solution: 9 │
00:01:37 #4686 [Verbose] > │ Test case 1. A. Time: 730L │
00:01:37 #4687 [Verbose] > │ │
00:01:37 #4688 [Verbose] > │ Solution: 10 │
00:01:37 #4689 [Verbose] > │ Test case 1. A. Time: 815L │
00:01:37 #4690 [Verbose] > │ │
00:01:37 #4691 [Verbose] > │ Input | Expected | Result | Best │
00:01:37 #4692 [Verbose] > │ --- | --- | --- | --- │
00:01:37 #4693 [Verbose] > │ 1 | a | a | (1, 645) │
00:01:37 #4694 [Verbose] > │ 2 | ba | ba | (1, 663) │
00:01:37 #4695 [Verbose] > │ 3 | aaa | aaa | (1, 680) │
00:01:37 #4696 [Verbose] > │ 9 | aaaaaaaaa | aaaaaaaaa | (1, 730) │
00:01:37 #4697 [Verbose] > │ 10 | baaaaaaaaa | baaaaaaaaa | (1, 815) │
00:01:37 #4698 [Verbose] > │ │
00:01:37 #4699 [Verbose] > │ Averages │
00:01:37 #4700 [Verbose] > │ Test case 1. Average Time: 706L │
00:01:37 #4701 [Verbose] > │ │
00:01:37 #4702 [Verbose] > │ Ranking │
00:01:37 #4703 [Verbose] > │ Test case 1. Average Time: 706L │
00:01:37 #4704 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:37 #4705 [Verbose] >
00:01:37 #4706 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:37 #4707 [Verbose] > //// test
00:01:37 #4708 [Verbose] >
00:01:37 #4709 [Verbose] > let solutions = [[
00:01:37 #4710 [Verbose] > "A",
00:01:37 #4711 [Verbose] > fun n ->
00:01:37 #4712 [Verbose] > let mutable _builder = StringBuilder (new string('a', n))
00:01:37 #4713 [Verbose] > if n % 2 = 0 then
00:01:37 #4714 [Verbose] > _builder.[[0]] <- 'b'
00:01:37 #4715 [Verbose] >
00:01:37 #4716 [Verbose] > _builder.ToString ()
00:01:37 #4717 [Verbose] > ]]
00:01:37 #4718 [Verbose] > let testCases = seq {
00:01:37 #4719 [Verbose] > 1, "a"
00:01:37 #4720 [Verbose] > 2, "ba"
00:01:37 #4721 [Verbose] > 3, "aaa"
00:01:37 #4722 [Verbose] > 9, "aaaaaaaaa"
00:01:37 #4723 [Verbose] > 10, "baaaaaaaaa"
00:01:37 #4724 [Verbose] > }
00:01:37 #4725 [Verbose] > let rec returnLettersWithOddCountTests =
00:01:37 #4726 [Verbose] > runAll (nameof returnLettersWithOddCountTests) _count solutions testCases
00:01:37 #4727 [Verbose] > returnLettersWithOddCountTests
00:01:37 #4728 [Verbose] > |> sortResultList
00:01:38 #4729 [Verbose] >
00:01:38 #4730 [Verbose] > ╭─[ 822.06ms - stdout ]────────────────────────────────────────────────────────╮
00:01:38 #4731 [Verbose] > │ │
00:01:38 #4732 [Verbose] > │ │
00:01:38 #4733 [Verbose] > │ Test: returnLettersWithOddCountTests │
00:01:38 #4734 [Verbose] > │ │
00:01:38 #4735 [Verbose] > │ Solution: 1 │
00:01:38 #4736 [Verbose] > │ Test case 1. A. Time: 0L │
00:01:38 #4737 [Verbose] > │ │
00:01:38 #4738 [Verbose] > │ Solution: 2 │
00:01:38 #4739 [Verbose] > │ Test case 1. A. Time: 0L │
00:01:38 #4740 [Verbose] > │ │
00:01:38 #4741 [Verbose] > │ Solution: 3 │
00:01:38 #4742 [Verbose] > │ Test case 1. A. Time: 0L │
00:01:38 #4743 [Verbose] > │ │
00:01:38 #4744 [Verbose] > │ Solution: 9 │
00:01:38 #4745 [Verbose] > │ Test case 1. A. Time: 0L │
00:01:38 #4746 [Verbose] > │ │
00:01:38 #4747 [Verbose] > │ Solution: 10 │
00:01:38 #4748 [Verbose] > │ Test case 1. A. Time: 2L │
00:01:38 #4749 [Verbose] > │ │
00:01:38 #4750 [Verbose] > │ Input | Expected | Result | Best │
00:01:38 #4751 [Verbose] > │ --- | --- | --- | --- │
00:01:38 #4752 [Verbose] > │ 1 | a | a | (1, 0) │
00:01:38 #4753 [Verbose] > │ 2 | ba | ba | (1, 0) │
00:01:38 #4754 [Verbose] > │ 3 | aaa | aaa | (1, 0) │
00:01:38 #4755 [Verbose] > │ 9 | aaaaaaaaa | aaaaaaaaa | (1, 0) │
00:01:38 #4756 [Verbose] > │ 10 | baaaaaaaaa | baaaaaaaaa | (1, 2) │
00:01:38 #4757 [Verbose] > │ │
00:01:38 #4758 [Verbose] > │ Average Ranking │
00:01:38 #4759 [Verbose] > │ Test case 1. Average Time: 0L │
00:01:38 #4760 [Verbose] > │ │
00:01:38 #4761 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:38 #4762 [Verbose] >
00:01:38 #4763 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:38 #4764 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:38 #4765 [Verbose] > │ ## hasAnyPairCloseToEachotherTests │
00:01:38 #4766 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:38 #4767 [Verbose] >
00:01:38 #4768 [Verbose] > ── markdown ────────────────────────────────────────────────────────────────────
00:01:38 #4769 [Verbose] > ╭──────────────────────────────────────────────────────────────────────────────╮
00:01:38 #4770 [Verbose] > │ Test: HasAnyPairCloseToEachother │
00:01:38 #4771 [Verbose] > │ │
00:01:38 #4772 [Verbose] > │ Solution: 0 │
00:01:38 #4773 [Verbose] > │ Test case 1. A. Time: 137L │
00:01:38 #4774 [Verbose] > │ │
00:01:38 #4775 [Verbose] > │ Solution: 1,2 │
00:01:38 #4776 [Verbose] > │ Test case 1. A. Time: 186L │
00:01:38 #4777 [Verbose] > │ │
00:01:38 #4778 [Verbose] > │ Solution: 3,5 │
00:01:38 #4779 [Verbose] > │ Test case 1. A. Time: 206L │
00:01:38 #4780 [Verbose] > │ │
00:01:38 #4781 [Verbose] > │ Solution: 3,4,6 │
00:01:38 #4782 [Verbose] > │ Test case 1. A. Time: 149L │
00:01:38 #4783 [Verbose] > │ │
00:01:38 #4784 [Verbose] > │ Solution: 2,4,6 │
00:01:38 #4785 [Verbose] > │ Test case 1. A. Time: 150L │
00:01:38 #4786 [Verbose] > │ │
00:01:38 #4787 [Verbose] > │ Input | Expected | Result | Best │
00:01:38 #4788 [Verbose] > │ --- | --- | --- | --- │
00:01:38 #4789 [Verbose] > │ 0 | False | False | (1, 137) │
00:01:38 #4790 [Verbose] > │ 1,2 | True | True | (1, 186) │
00:01:38 #4791 [Verbose] > │ 3,5 | False | False | (1, 206) │
00:01:38 #4792 [Verbose] > │ 3,4,6 | True | True | (1, 149) │
00:01:38 #4793 [Verbose] > │ 2,4,6 | False | False | (1, 150) │
00:01:38 #4794 [Verbose] > │ │
00:01:38 #4795 [Verbose] > │ Averages │
00:01:38 #4796 [Verbose] > │ Test case 1. Average Time: 165L │
00:01:38 #4797 [Verbose] > │ │
00:01:38 #4798 [Verbose] > │ Ranking │
00:01:38 #4799 [Verbose] > │ Test case 1. Average Time: 165L │
00:01:38 #4800 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:38 #4801 [Verbose] >
00:01:38 #4802 [Verbose] > ── fsharp ──────────────────────────────────────────────────────────────────────
00:01:38 #4803 [Verbose] > //// test
00:01:38 #4804 [Verbose] >
00:01:38 #4805 [Verbose] > let solutions = [[
00:01:38 #4806 [Verbose] > "A",
00:01:38 #4807 [Verbose] > fun (a: int[[]]) ->
00:01:38 #4808 [Verbose] > let indices = System.Linq.Enumerable.Range(0, a.Length) |>
00:01:38 #4809 [Verbose] > System.Linq.Enumerable.ToArray
00:01:38 #4810 [Verbose] > System.Array.Sort (a, indices)
00:01:38 #4811 [Verbose] >
00:01:38 #4812 [Verbose] > indices
00:01:38 #4813 [Verbose] > |> Array.take (a.Length - 1)
00:01:38 #4814 [Verbose] > |> Array.exists (fun i -> a.[[i + 1]] - a.[[i]] = 1)
00:01:38 #4815 [Verbose] > ]]
00:01:38 #4816 [Verbose] > let testCases = seq {
00:01:38 #4817 [Verbose] > [[| 0 |]], false
00:01:38 #4818 [Verbose] > [[| 1; 2 |]], true
00:01:38 #4819 [Verbose] > [[| 3; 5 |]], false
00:01:38 #4820 [Verbose] > [[| 3; 4; 6 |]], true
00:01:38 #4821 [Verbose] > [[| 2; 4; 6 |]], false
00:01:38 #4822 [Verbose] > }
00:01:38 #4823 [Verbose] > let rec hasAnyPairCloseToEachotherTests =
00:01:38 #4824 [Verbose] > runAll (nameof hasAnyPairCloseToEachotherTests) _count solutions testCases
00:01:38 #4825 [Verbose] > hasAnyPairCloseToEachotherTests
00:01:38 #4826 [Verbose] > |> sortResultList
00:01:39 #4827 [Verbose] >
00:01:39 #4828 [Verbose] > ╭─[ 687.72ms - stdout ]────────────────────────────────────────────────────────╮
00:01:39 #4829 [Verbose] > │ │
00:01:39 #4830 [Verbose] > │ │
00:01:39 #4831 [Verbose] > │ Test: hasAnyPairCloseToEachotherTests │
00:01:39 #4832 [Verbose] > │ │
00:01:39 #4833 [Verbose] > │ Solution: 0 │
00:01:39 #4834 [Verbose] > │ Test case 1. A. Time: 2L │
00:01:39 #4835 [Verbose] > │ │
00:01:39 #4836 [Verbose] > │ Solution: 1,2 │
00:01:39 #4837 [Verbose] > │ Test case 1. A. Time: 0L │
00:01:39 #4838 [Verbose] > │ │
00:01:39 #4839 [Verbose] > │ Solution: 3,5 │
00:01:39 #4840 [Verbose] > │ Test case 1. A. Time: 0L │
00:01:39 #4841 [Verbose] > │ │
00:01:39 #4842 [Verbose] > │ Solution: 3,4,6 │
00:01:39 #4843 [Verbose] > │ Test case 1. A. Time: 0L │
00:01:39 #4844 [Verbose] > │ │
00:01:39 #4845 [Verbose] > │ Solution: 2,4,6 │
00:01:39 #4846 [Verbose] > │ Test case 1. A. Time: 0L │
00:01:39 #4847 [Verbose] > │ │
00:01:39 #4848 [Verbose] > │ Input | Expected | Result | Best │
00:01:39 #4849 [Verbose] > │ --- | --- | --- | --- │
00:01:39 #4850 [Verbose] > │ 0 | False | False | (1, 2) │
00:01:39 #4851 [Verbose] > │ 1,2 | True | True | (1, 0) │
00:01:39 #4852 [Verbose] > │ 3,5 | False | False | (1, 0) │
00:01:39 #4853 [Verbose] > │ 3,4,6 | True | True | (1, 0) │
00:01:39 #4854 [Verbose] > │ 2,4,6 | False | False | (1, 0) │
00:01:39 #4855 [Verbose] > │ │
00:01:39 #4856 [Verbose] > │ Average Ranking │
00:01:39 #4857 [Verbose] > │ Test case 1. Average Time: 0L │
00:01:39 #4858 [Verbose] > │ │
00:01:39 #4859 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:39 #4860 [Verbose] >
00:01:39 #4861 [Verbose] > ── spiral ──────────────────────────────────────────────────────────────────────
00:01:39 #4862 [Verbose] > // // test
00:01:39 #4863 [Verbose] >
00:01:39 #4864 [Verbose] > ()
00:01:39 #4865 [Verbose] > Building c:\Users\i574n\AppData\Local\Temp\!dotnet-repl\20240321-0056-2393-9370-99e767971726\main.spi
00:01:39 #4866 [Verbose] >
00:01:39 #4867 [Verbose] > ╭─[ 219.30ms - stdout ]────────────────────────────────────────────────────────╮
00:01:39 #4868 [Verbose] > │ let rec method0 () : unit = │
00:01:39 #4869 [Verbose] > │ () │
00:01:39 #4870 [Verbose] > │ method0() │
00:01:39 #4871 [Verbose] > │ │
00:01:39 #4872 [Verbose] > │ │
00:01:39 #4873 [Verbose] > ╰──────────────────────────────────────────────────────────────────────────────╯
00:01:41 #4874 [Verbose] > [NbConvertApp] Converting notebook Perf.dib.ipynb to html
00:01:41 #4875 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
00:01:41 #4876 [Verbose] > validate(nb)
00:01:42 #4877 [Verbose] > C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
00:01:42 #4878 [Verbose] > return _pygments_highlight(
00:01:43 #4879 [Verbose] > [NbConvertApp] Writing 555885 bytes to Perf.dib.html
00:01:44 #4880 [Debug] executeAsync / exitCode: 0 / output.Length: 344402
00:01:44 #4881 [Debug] main / executeCommand / exitCode: 0
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: Perf.dib
00:00:00 #2 [Debug] parseDibCode / output: Fs / file: Perf.dib
In [ ]:
{ . "$ScriptDir/../apps/dir-tree-html/build.ps1" } | Invoke-Block
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ # DirTreeHtml (Polyglot) │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Notebooks.dib
#!import ../../lib/fsharp/Testing.dib
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.A
spNetCore.Html.Abstractions.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.Formatting.dll"
open System
open System.IO
open System.Text
open Microsoft.DotNet.Interactive.Formatting
── fsharp - import ─────────────────────────────────────────────────────────────
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.FSharp.dll"
open Microsoft.DotNet.Interactive.FSharp.FSharpKernelHelpers
#r
"C:/Users/i574n/.nuget/packages/dotnet-repl/0.1.204/tools/net7.0/any/Microsoft.D
otNet.Interactive.dll"
open type Microsoft.DotNet.Interactive.Kernel
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
Formatter.ListExpansionLimit <- 100
── fsharp - import ─────────────────────────────────────────────────────────────
#r @"../../../../../../../.nuget/packages/expecto/10.2.1/lib/net6.0/Expecto.dll"
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
type AssertExceptionFormatter (ex) =
member _.Text =
ex.ToString()
.Replace("32m", "<span style=\"color: green;\">")
.Replace("36m", "</span>")
.Replace("31m", "<span style=\"color: red;\">")
.Replace("\n", "<br/>\n")
Formatter.Register<AssertExceptionFormatter> ((fun (x :
AssertExceptionFormatter) -> x.Text), "text/html")
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __expect fn log expected actual =
if log then printfn $"{actual.ToDisplayString ()}"
try
"Testing.__expect" |> fn actual expected
with :? Expecto.AssertException as ex ->
AssertExceptionFormatter(ex).Display () |> ignore
failwith (ex.GetType().FullName)
let inline __contains log expected actual = __expect Expecto.Expect.contains log
expected actual
let inline _contains expected actual = __contains true expected actual
let inline __assertEqual log expected actual = __expect Expecto.Expect.equal log
expected actual
let inline _assertEqual expected actual = __assertEqual true expected actual
let inline __isGreaterThan log expected actual = __expect
Expecto.Expect.isGreaterThan log ex...
── fsharp - import ─────────────────────────────────────────────────────────────
//// test
let inline __isBetween log a b actual =
let inline isBetween actual (a, b) _ =
__isGreaterThanOrEqual log a actual
__isLessThanOrEqual log b actual
__expect isBetween log (a, b) actual
let inline _isBetween a b actual = __isBetween true a b actual
── fsharp ──────────────────────────────────────────────────────────────────────
#r
@"../../../../../../../.nuget/packages/fsharp.control.asyncseq/3.2.1/lib/netstan
dard2.1/FSharp.Control.AsyncSeq.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive/6.0.1-preview.1/lib/net6.
0/System.Reactive.dll"
#r
@"../../../../../../../.nuget/packages/system.reactive.linq/6.0.1-preview.1/lib/
netstandard2.0/System.Reactive.Linq.dll"
#r
@"../../../../../../../.nuget/packages/argu/6.2.2/lib/netstandard2.0/Argu.dll"
#r
@"../../../../../../../.nuget/packages/system.commandline/2.0.0-beta4.22272.1/li
b/net6.0/System.CommandLine.dll"
#r
@"../../../../../../../.nuget/packages/falco.markup/1.0.2/lib/netstandard2.0/Fal
co.Markup.dll"
── fsharp ──────────────────────────────────────────────────────────────────────
#!import ../../lib/fsharp/Common.fs
#!import ../../lib/fsharp/CommonFSharp.fs
#!import ../../lib/fsharp/Async.fs
#!import ../../lib/fsharp/AsyncSeq.fs
#!import ../../lib/fsharp/Networking.fs
#!import ../../lib/fsharp/Runtime.fs
#!import ../../lib/fsharp/FileSystem.fs
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Common =
let nl = System.Environment.NewLine
let q = @""""
let inline cons head tail = head :: tail
module String =
let inline contains (value : string) (input : string) =
input.Contains value
let inline endsWith (value : string) (input : string) =
input.EndsWith value
let inline padLeft totalWidth paddingChar (input : string) =
input.PadLeft (totalWidth, paddingChar)
let inline replace (oldValue : string) (newValue : string) (input :
string) =
input.Replace (oldValue, newValue)
let inline split separator (input : string) =
input.Split separator
let inline spli...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module CommonFSharp =
open Common
/// ## getUnionCaseName
let inline getUnionCaseName<'T> (x: 'T) =
match Reflection.FSharpValue.GetUnionFields(x, typeof<'T>) with
| case, _ -> case.Name
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Async =
open Common
/// ## choice
let inline choice asyncs = async {
let e = Event<_> ()
use cts = new System.Threading.CancellationTokenSource ()
let fn =
asyncs
|> Seq.map (fun a -> async {
let! x = a
e.Trigger x
})
|> Async.Parallel
|> Async.Ignore
Async.Start (fn, cts.Token)
let! result = Async.AwaitEvent e.Publish
cts.Cancel ()
return result
}
/// ## map
let inline map fn a = async {
let! x = a
return fn x
}
/// ## catch
let inline catch a =
a
|> Async.Catch
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module AsyncSeq =
open Common
/// ## subscribeEvent
let inline subscribeEvent (event: IEvent<'H, 'A>) map =
let observable = System.Reactive.Linq.Observable.FromEventPattern<'H,
'A>(event.AddHandler, event.RemoveHandler)
System.Reactive.Linq.Observable.Select (observable, fun event -> map
event.EventArgs)
|> FSharp.Control.AsyncSeq.ofObservableBuffered
let subscribeToken (token : System.Threading.CancellationToken) =
let tcs = new System.Threading.Tasks.TaskCompletionSource ()
System.Action tcs.SetResult |> token.Register |> ignore
let start = System.DateTime.Now.Ticks
FSharp.Control.AsyncSeq.unfoldAsync
(fun (...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Networking =
open Common
/// ## testPortOpen
let inline testPortOpen port = async {
let! ct = Async.CancellationToken
use client = new System.Net.Sockets.TcpClient ()
try
do! client.ConnectAsync ("127.0.0.1", port, ct) |>
Async.awaitValueTaskUnit
return true
with ex ->
trace Verbose (fun () -> $"testPortOpen / ex: {ex |>
printException}") getLocals
return false
}
let inline testPortOpenTimeout timeout port = async {
let! result =
testPortOpen port
|> Async.runWithTimeoutAsync timeout
return
match result with
| None -> false
...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module Runtime =
open Common
/// ## isWindows
let isWindows =
fun () ->
System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform
System.Runtime.InteropServices.OSPlatform.Windows
|> memoize
/// ## getExecutableSuffix
let inline getExecutableSuffix () =
if isWindows ()
then ".exe"
else ""
/// ## splitCommand
type private CommandParseStep =
| Start
| Path of quoted: bool
| Arguments
let splitCommand (command: string) =
let rec loop (path, args) chars step =
match chars, step with
| ('"' | '\'') :: tail, _ when path = "" -> loop (pat...
── fsharp - import ─────────────────────────────────────────────────────────────
#if !INTERACTIVE
namespace Polyglot
#endif
module FileSystem =
open Common
/// ## Operators
module Operators =
let inline (</>) a b =
System.IO.Path.Combine (a, b)
open Operators
/// ## createTempDirectoryName
let inline createTempDirectoryName () =
let root = System.Reflection.Assembly.GetEntryAssembly().GetName().Name
System.IO.Path.GetTempPath ()
</> $"!{root}"
</> string (newGuidFromDateTime System.DateTime.Now)
/// ## createTempDirectory
let inline createTempDirectory () =
let tempFolder = createTempDirectoryName ()
let result = System.IO.Directory.CreateDirectory tempFolder
if not result.Exists then
let ge...
── fsharp ──────────────────────────────────────────────────────────────────────
open FileSystem.Operators
open Falco.Markup
── fsharp ──────────────────────────────────────────────────────────────────────
type FileSystemNode =
| File of string * string * int64
| Folder of string * string * FileSystemNode list
| Root of FileSystemNode list
let rec scanDirectory isRoot (basePath : string) (path : string) =
let relativePath = path.Replace(basePath, "").Replace("\\",
"/").Replace("//", "/").TrimStart '/'
let directories =
path
|> System.IO.Directory.GetDirectories
|> Array.toList
|> List.sort
|> List.map (scanDirectory false basePath)
let files =
path
|> System.IO.Directory.GetFiles
|> Array.toList
|> List.sort
|> List.map (fun f -> File (System.IO.Path.GetFileName f, relativePath,
System.IO.FileInfo(f).Length))
let children = directories @ files
if isRoot
then Root children
else Folder (path |> System.IO.Path.GetFileName, relativePath, children)
let rec generateHtml fsNode =
let sizeLabel size =
match float size with
| size when size > 1024.0 * 1024.0 -> $"%.2f{size / 1024.0 / 1024.0} MB"
| size when size > 1024.0 -> $"%.2f{size / 1024.0} KB"
| size -> $"%.2f{size} B"
match fsNode with
| File (fileName, relativePath, size) ->
Elem.div [[]] [[
Text.raw "📄 "
Elem.a [[
Attr.href $"""{relativePath}{if relativePath = "" then "" else
"/"}{fileName}"""
]] [[
Text.raw fileName
]]
Elem.span [[]] [[
Text.raw $" ({size |> sizeLabel})"
]]
]]
| Folder (folderName, relativePath, children) ->
let size =
let rec loop children =
children
|> List.sumBy (function
| File (_, _, size) -> size
| Folder (_, _, children)
| Root children -> loop children
)
loop children
Elem.details [[
Attr.open' "true"
]] [[
Elem.summary [[]] [[
Text.raw "📂 "
Elem.a [[
Attr.href relativePath
]] [[
Text.raw folderName
]]
Elem.span [[]] [[
Text.raw $" ({size |> sizeLabel})"
]]
]]
Elem.div [[]] [[
yield! children |> List.map generateHtml
]]
]]
| Root children ->
Elem.div [[]] [[
yield! children |> List.map generateHtml
]]
let generateHtmlForFileSystem root =
$"""<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {{
background-color: #222;
color: #ccc;
}}
a {{
color: #777;
font-size: 15px;
}}
span {{
font-size: 11px;
}}
div > div {{
padding-left: 10px;
}}
details > div {{
padding-left: 19px;
}}
</style>
</head>
<body>
{root |> generateHtml |> renderNode}
</body>
</html>
"""
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let tempFolder = FileSystem.createTempDirectory ()
let rec loop d n = async {
if n >= 0 then
tempFolder </> d |> System.IO.Directory.CreateDirectory |> ignore
do!
n
|> string
|> String.replicate (n + 1)
|> FileSystem.writeAllTextAsync (tempFolder </> d </> $"file.txt")
do! loop $"{d}/{n}" (n - 1)
}
loop "_.root" 3
|> Async.RunSynchronously
let html =
scanDirectory true tempFolder tempFolder
|> generateHtmlForFileSystem
html
|> _assertEqual """<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
body {
background-color: #222;
color: #ccc;
}
a {
color: #777;
font-size: 15px;
}
span {
font-size: 11px;
}
div > div {
padding-left: 10px;
}
details > div {
padding-left: 19px;
}
</style>
</head>
<body>
<div><details open="true"><summary>📂 <a href="_.root">_.root</a><span>
(10.00 B)</span></summary><div><details open="true"><summary>📂 <a
href="_.root/3">3</a><span> (6.00 B)</span></summary><div><details
open="true"><summary>📂 <a href="_.root/3/2">2</a><span> (3.00
B)</span></summary><div><details open="true"><summary>📂 <a
href="_.root/3/2/1">1</a><span> (1.00 B)</span></summary><div><div>📄 <a
href="_.root/3/2/1/file.txt">file.txt</a><span> (1.00
B)</span></div></div></details><div>📄 <a
href="_.root/3/2/file.txt">file.txt</a><span> (2.00
B)</span></div></div></details><div>📄 <a
href="_.root/3/file.txt">file.txt</a><span> (3.00
B)</span></div></div></details><div>📄 <a
href="_.root/file.txt">file.txt</a><span> (4.00
B)</span></div></div></details></div>
</body>
</html>
"""
html |> Microsoft.DotNet.Interactive.Formatting.Html.ToHtmlContent
╭─[ 194.12ms - return value ]──────────────────────────────────────────────────╮
│ <!DOCTYPE html> │
│ <html lang="en"> │
│ <head> │
│ <meta charset="UTF-8"> │
│ <style> │
│ body { │
│ background-color: #222; │
│ color: #ccc; │
│ } │
│ a { │
│ color: #777; │
│ font-size: 15px; │
│ } │
│ span { │
│ font-size: 11px; │
│ } │
│ div > div { │
│ padding-left: 10px; │
│ } │
│ details > div { │
│ padding-left: 19px; │
│ } │
│ </style> │
│ </head> │
│ <body> │
│ <div><details open="true"><summary>📂 <a │
│ href="_.root">_.root</a><span> (10.00 B)</span></summary><div><details │
│ open="true"><summary>📂 <a href="_.root/3">3</a><span> (6.00 │
│ B)</span></summary><div><details open="true"><summary>📂 <a │
│ href="_.root/3/2">2</a><span> (3.00 B)</span></summary><div><details │
│ open="true"><summary>📂 <a href="_.root/3/2/1">1</a><span> (1.00 │
│ B)</span></summary><div><div>📄 <a href="_.root... │
╰──────────────────────────────────────────────────────────────────────────────╯
╭─[ 211.39ms - stdout ]────────────────────────────────────────────────────────╮
│ <!DOCTYPE html> │
│ <html lang="en"> │
│ <head> │
│ <meta charset="UTF-8"> │
│ <style> │
│ body { │
│ background-color: #222; │
│ color: #ccc; │
│ } │
│ a { │
│ color: #777; │
│ font-size: 15px; │
│ } │
│ span { │
│ font-size: 11px; │
│ } │
│ div > div { │
│ padding-left: 10px; │
│ } │
│ details > div { │
│ padding-left: 19px; │
│ } │
│ </style> │
│ </head> │
│ <body> │
│ <div><details open="true"><summary>📂 <a │
│ href="_.root">_.root</a><span> (10.00 B)</span></summary><div><details │
│ open="true"><summary>📂 <a href="_.root/3">3</a><span> (6.00 │
│ B)</span></summary><div><details open="true"><summary>📂 <a │
│ href="_.root/3/2">2</a><span> (3.00 B)</span></summary><div><details │
│ open="true"><summary>📂 <a href="_.root/3/2/1">1</a><span> (1.00 │
│ B)</span></summary><div><div>📄 <a │
│ href="_.root/3/2/1/file.txt">file.txt</a><span> (1.00 │
│ B)</span></div></div></details><div>📄 <a │
│ href="_.root/3/2/file.txt">file.txt</a><span> (2.00 │
│ B)</span></div></div></details><div>📄 <a │
│ href="_.root/3/file.txt">file.txt</a><span> (3.00 │
│ B)</span></div></div></details><div>📄 <a │
│ href="_.root/file.txt">file.txt</a><span> (4.00 │
│ B)</span></div></div></details></div> │
│ </body> │
│ </html> │
│ │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## Arguments │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
[[<RequireQualifiedAccess>]]
type Arguments =
| [[<Argu.ArguAttributes.ExactlyOnce>]] Dir of string
| [[<Argu.ArguAttributes.ExactlyOnce>]] Html of string
interface Argu.IArgParserTemplate with
member s.Usage =
match s with
| Dir _ -> nameof Dir
| Html _ -> nameof Html
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
Argu.ArgumentParser.Create<Arguments>().PrintUsage ()
╭─[ 100.56ms - return value ]──────────────────────────────────────────────────╮
│ USAGE: dotnet-repl [--help] --dir <string> --html <string> │
│ │
│ OPTIONS: │
│ │
│ --dir <string> Dir │
│ --html <string> Html │
│ --help display this list of options. │
│ │
╰──────────────────────────────────────────────────────────────────────────────╯
── markdown ────────────────────────────────────────────────────────────────────
╭──────────────────────────────────────────────────────────────────────────────╮
│ ## main │
╰──────────────────────────────────────────────────────────────────────────────╯
── fsharp ──────────────────────────────────────────────────────────────────────
let main args =
let argsMap = args |> Runtime.parseArgsMap<Arguments>
let dir =
match argsMap.[[nameof Arguments.Dir]] with
| [[ Arguments.Dir dir ]] -> Some dir
| _ -> None
|> Option.get
let htmlPath =
match argsMap.[[nameof Arguments.Html]] with
| [[ Arguments.Html html ]] -> Some html
| _ -> None
|> Option.get
let fileSystem = scanDirectory true dir dir
let html = generateHtmlForFileSystem fileSystem
html |> FileSystem.writeAllTextAsync htmlPath
|> Async.runWithTimeout 30000
|> function
| Some () -> 0
| None -> 1
── fsharp ──────────────────────────────────────────────────────────────────────
//// test
let args =
System.Environment.GetEnvironmentVariable "ARGS"
|> Runtime.splitArgs
|> Seq.toArray
match args with
| [[||]] -> 0
| args -> if main args = 0 then 0 else failwith "main failed"
╭─[ 74.75ms - return value ]───────────────────────────────────────────────────╮
│ <div class="dni-plaintext"><pre>0</pre></div><style> │
│ .dni-code-hint { │
│ font-style: italic; │
│ overflow: hidden; │
│ white-space: nowrap; │
│ } │
│ .dni-treeview { │
│ white-space: nowrap; │
│ } │
│ .dni-treeview td { │
│ vertical-align: top; │
│ text-align: start; │
│ } │
│ details.dni-treeview { │
│ padding-left: 1em; │
│ } │
│ table td { │
│ text-align: start; │
│ } │
│ table tr { │
│ vertical-align: top; │
│ margin: 0em 0px; │
│ } │
│ table tr td pre │
│ { │
│ vertical-align: top !important; │
│ margin: 0em 0px !important; │
│ } │
│ table th { │
│ text-align: start; │
│ } │
│ </style> │
╰──────────────────────────────────────────────────────────────────────────────╯
[NbConvertApp] Converting notebook DirTreeHtml.dib.ipynb to html
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbformat\__init__.py:93: MissingIDFieldWarning: Code cell is missing an id field, this will become a hard error in future nbformat versions. You may want to use `normalize()` on your notebooks before validations (available since nbformat 5.1.4). Previous versions of nbformat are fixing this issue transparently, and will stop doing so in the future.
validate(nb)
C:\Users\i574n\scoop\apps\python\current\Lib\site-packages\nbconvert\filters\highlight.py:71: UserWarning: IPython3 lexer unavailable, falling back on Python 3
return _pygments_highlight(
[NbConvertApp] Writing 308687 bytes to DirTreeHtml.dib.html
00:00:00 #1 [Debug] writeDibCode / output: Fs / path: DirTreeHtml.dib
00:00:00 #2 [Debug] parseDibCode / output: Fs / file: DirTreeHtml.dib
00:00:00 #1 [Debug] persistCodeProject / packages: [Argu; Falco.Markup; FSharp.Control.AsyncSeq; ... ] / modules: [lib/fsharp/Common.fs; lib/fsharp/CommonFSharp.fs; lib/fsharp/Async.fs; ... ] / name: DirTreeHtml / code.Length: 4478
00:00:00 #2 [Debug] buildProject / fullPath: C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml\DirTreeHtml.fsproj
00:00:00 #3 [Debug] executeAsync / options: { Command =
"dotnet publish "C:\home\git\polyglot\target/polyglot/builder\DirTreeHtml\DirTreeHtml.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\dir-tree-html\dist" --runtime linux-x64"
WorkingDirectory =
Some "C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml"
CancellationToken = None
OnLine = None }
00:00:00 #4 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:01 #5 [Verbose] > Determining projects to restore...
00:00:01 #6 [Verbose] > Paket version 8.1.0-alpha001+27cb9f111f156e8b68d08dc293857425c0ade23d
00:00:01 #7 [Verbose] > The last full restore is still up to date. Nothing left to do.
00:00:01 #8 [Verbose] > Total time taken: 0 milliseconds
00:00:02 #9 [Verbose] > Paket version 8.1.0-alpha001+27cb9f111f156e8b68d08dc293857425c0ade23d
00:00:03 #10 [Verbose] > Restoring C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml\DirTreeHtml.fsproj
00:00:03 #11 [Verbose] > Starting restore process.
00:00:03 #12 [Verbose] > Total time taken: 0 milliseconds
00:00:04 #13 [Verbose] > Restored C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml\DirTreeHtml.fsproj (in 654 ms).
00:00:04 #14 [Verbose] > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml\DirTreeHtml.fsproj]
00:00:16 #15 [Verbose] > DirTreeHtml -> C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml\bin\Release\net9.0\linux-x64\DirTreeHtml.dll
00:00:18 #16 [Verbose] > DirTreeHtml -> C:\home\git\polyglot\apps\dir-tree-html\dist\
00:00:18 #17 [Debug] executeAsync / exitCode: 0 / output.Length: 1125
00:00:18 #18 [Debug] executeAsync / options: { Command =
"dotnet publish "C:\home\git\polyglot\target/polyglot/builder\DirTreeHtml\DirTreeHtml.fsproj" --configuration Release --output "C:\home\git\polyglot\apps\dir-tree-html\dist" --runtime win-x64"
WorkingDirectory =
Some "C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml"
CancellationToken = None
OnLine = None }
00:00:19 #19 [Verbose] > MSBuild version 17.10.0-preview-24101-01+07fd5d51f for .NET
00:00:19 #20 [Verbose] > Determining projects to restore...
00:00:20 #21 [Verbose] > Restored C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml\DirTreeHtml.fsproj (in 446 ms).
00:00:20 #22 [Verbose] > C:\Users\i574n\scoop\apps\dotnet-sdk-preview\current\sdk\9.0.100-preview.1.24101.2\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(313,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml\DirTreeHtml.fsproj]
00:00:29 #23 [Verbose] > DirTreeHtml -> C:\home\git\polyglot\target\polyglot\builder\DirTreeHtml\bin\Release\net9.0\win-x64\DirTreeHtml.dll
00:00:37 #24 [Verbose] > DirTreeHtml -> C:\home\git\polyglot\apps\dir-tree-html\dist\
00:00:37 #25 [Debug] executeAsync / exitCode: 0 / output.Length: 728
In [ ]:
{ . "$ScriptDir/../apps/ipfs/build.ps1" } | Invoke-Block
Lockfile is up to date, resolution step is skipped Already up to date Done in 2s
In [ ]:
{ . "$ScriptDir/outdated.ps1" } | Invoke-Block
Paket version 8.1.0-alpha001+27cb9f111f156e8b68d08dc293857425c0ade23d
Resolving dependency graph...
Outdated packages found:
Group: Main
* Expecto.FsCheck 10.2.1-fscheck3 -> 10.2.1
* FsCheck 3.0.0-rc3 -> 2.16.6
* FSharp.Core 8.0.300-beta.24080.5 -> 8.0.300-beta.24154.4
* Microsoft.AspNetCore.Connections.Abstractions 7.0 -> 9.0.0-preview.2.24128.4
* Microsoft.AspNetCore.Http.Connections.Client 7.0 -> 9.0.0-preview.2.24128.4
* Microsoft.AspNetCore.Http.Connections.Common 7.0 -> 9.0.0-preview.2.24128.4
* Microsoft.AspNetCore.SignalR.Client 7.0 -> 9.0.0-preview.2.24128.4
* Microsoft.AspNetCore.SignalR.Client.Core 7.0 -> 9.0.0-preview.2.24128.4
* Microsoft.AspNetCore.SignalR.Common 7.0 -> 9.0.0-preview.2.24128.4
* Microsoft.AspNetCore.SignalR.Protocols.Json 7.0 -> 9.0.0-preview.2.24128.4
* Microsoft.Extensions.DependencyInjection 8.0 -> 9.0.0-preview.2.24128.5
* Microsoft.Extensions.DependencyInjection.Abstractions 8.0.1 -> 9.0.0-preview.2.24128.5
* Microsoft.Extensions.Features 7.0 -> 9.0.0-preview.2.24128.4
* Microsoft.Extensions.Logging 8.0 -> 9.0.0-preview.2.24128.5
* Microsoft.Extensions.Logging.Abstractions 8.0.1 -> 9.0.0-preview.2.24128.5
* Microsoft.Extensions.Options 8.0.2 -> 9.0.0-preview.2.24128.5
* Microsoft.Extensions.Primitives 8.0 -> 9.0.0-preview.2.24128.5
* System.IO.Pipelines 8.0 -> 9.0.0-preview.2.24128.5
* System.Threading.Channels 8.0 -> 9.0.0-preview.2.24128.5
Total time taken: 54 seconds
CheckToml / toml: C:\home\git\polyglot\Cargo.toml
chat_contract_tests
================
Name Project Compat Latest Kind Platform
---- ------- ------ ------ ---- --------
ahash 0.7.8 --- 0.8.11 Normal ---
ahash 0.8.11 0.7.8 --- Normal ---
allocator-api2 0.2.16 Removed --- Normal ---
autocfg 1.1.0 --- Removed Build ---
bumpalo 3.15.4 --- Removed Normal ---
cfg-if 1.0.0 --- Removed Normal ---
cfg-if 1.0.0 Removed --- Normal ---
equivalent 1.0.1 Removed --- Normal ---
getrandom 0.2.12 --- Removed Normal cfg(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi"))
hashbrown 0.12.3 --- 0.14.3 Normal ---
hashbrown 0.14.3 0.12.3 --- Normal ---
indexmap 1.9.3 --- 2.2.5 Normal ---
indexmap 2.2.5 1.9.3 --- Normal ---
js-sys 0.3.69 --- Removed Normal cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))
libc 0.2.153 --- Removed Normal cfg(unix)
log 0.4.21 --- Removed Normal ---
once_cell 1.19.0 --- Removed Normal ---
proc-macro2 1.0.79 --- Removed Normal ---
proc-macro2 1.0.79 Removed --- Normal ---
quote 1.0.35 --- Removed Normal ---
quote 1.0.35 Removed --- Normal ---
syn 2.0.53 --- Removed Normal ---
syn 2.0.53 Removed --- Normal ---
unicode-ident 1.0.12 --- Removed Normal ---
unicode-ident 1.0.12 Removed --- Normal ---
wasi 0.11.0+wasi-snapshot-preview1 --- Removed Normal cfg(target_os = "wasi")
wasm-bindgen 0.2.92 --- Removed Normal ---
wasm-bindgen 0.2.92 --- Removed Normal cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))
wasm-bindgen-backend 0.2.92 --- Removed Normal ---
wasm-bindgen-macro 0.2.92 --- Removed Normal ---
wasm-bindgen-macro-support 0.2.92 --- Removed Normal ---
wasm-bindgen-shared 0.2.92 --- Removed Normal ---
zerocopy 0.7.32 Removed --- Normal ---
zerocopy-derive 0.7.32 Removed --- Normal ---
CheckToml / toml: C:\home\git\polyglot\apps\chat\contract\Cargo.toml
All dependencies are up to date, yay!
CheckToml / toml: C:\home\git\polyglot\apps\chat\contract\tests\Cargo.toml
Name Project Compat Latest Kind Platform
---- ------- ------ ------ ---- --------
ahash->cfg-if 1.0.0 --- Removed Normal ---
ahash->getrandom 0.2.12 Removed --- Normal cfg(any(target_os = "linux", target_os = "android", target_os = "windows", target_os = "macos", target_os = "ios", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly", target_os = "solaris", target_os = "illumos", target_os = "fuchsia", target_os = "redox", target_os = "cloudabi", target_os = "haiku", target_os = "vxworks", target_os = "emscripten", target_os = "wasi"))
ahash->zerocopy 0.7.32 --- Removed Normal ---
getrandom->cfg-if 1.0.0 Removed --- Normal ---
getrandom->js-sys 0.3.69 Removed --- Normal cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))
getrandom->libc 0.2.153 Removed --- Normal cfg(unix)
getrandom->wasi 0.11.0+wasi-snapshot-preview1 Removed --- Normal cfg(target_os = "wasi")
getrandom->wasm-bindgen 0.2.92 Removed --- Normal cfg(all(any(target_arch = "wasm32", target_arch = "wasm64"), target_os = "unknown"))
hashbrown->ahash 0.7.8 0.8.11 --- Normal ---
hashbrown->ahash 0.8.11 --- 0.7.8 Normal ---
hashbrown->allocator-api2 0.2.16 --- Removed Normal ---
indexmap->autocfg 1.1.0 Removed --- Build ---
indexmap->equivalent 1.0.1 --- Removed Normal ---
indexmap->hashbrown 0.12.3 0.14.3 --- Normal ---
indexmap->hashbrown 0.14.3 --- 0.12.3 Normal ---
js-sys->wasm-bindgen 0.2.92 Removed --- Normal ---
proc-macro2->unicode-ident 1.0.12 --- Removed Normal ---
proc-macro2->unicode-ident 1.0.12 Removed --- Normal ---
quote->proc-macro2 1.0.79 --- Removed Normal ---
quote->proc-macro2 1.0.79 Removed --- Normal ---
serde_with->indexmap 1.9.3 2.2.5 --- Normal ---
serde_with->indexmap 2.2.5 --- 1.9.3 Normal ---
syn->proc-macro2 1.0.79 --- Removed Normal ---
syn->proc-macro2 1.0.79 Removed --- Normal ---
syn->quote 1.0.35 --- Removed Normal ---
syn->quote 1.0.35 Removed --- Normal ---
syn->unicode-ident 1.0.12 --- Removed Normal ---
syn->unicode-ident 1.0.12 Removed --- Normal ---
wasm-bindgen->cfg-if 1.0.0 Removed --- Normal ---
wasm-bindgen->wasm-bindgen-macro 0.2.92 Removed --- Normal ---
wasm-bindgen-backend->bumpalo 3.15.4 Removed --- Normal ---
wasm-bindgen-backend->log 0.4.21 Removed --- Normal ---
wasm-bindgen-backend->once_cell 1.19.0 Removed --- Normal ---
wasm-bindgen-backend->proc-macro2 1.0.79 Removed --- Normal ---
wasm-bindgen-backend->quote 1.0.35 Removed --- Normal ---
wasm-bindgen-backend->syn 2.0.53 Removed --- Normal ---
wasm-bindgen-backend->wasm-bindgen-shared 0.2.92 Removed --- Normal ---
wasm-bindgen-macro->quote 1.0.35 Removed --- Normal ---
wasm-bindgen-macro->wasm-bindgen-macro-support 0.2.92 Removed --- Normal ---
wasm-bindgen-macro-support->proc-macro2 1.0.79 Removed --- Normal ---
wasm-bindgen-macro-support->quote 1.0.35 Removed --- Normal ---
wasm-bindgen-macro-support->syn 2.0.53 Removed --- Normal ---
wasm-bindgen-macro-support->wasm-bindgen-backend 0.2.92 Removed --- Normal ---
wasm-bindgen-macro-support->wasm-bindgen-shared 0.2.92 Removed --- Normal ---
zerocopy->zerocopy-derive 0.7.32 --- Removed Normal ---
zerocopy-derive->proc-macro2 1.0.79 --- Removed Normal ---
zerocopy-derive->quote 1.0.35 --- Removed Normal ---
zerocopy-derive->syn 2.0.53 --- Removed Normal ---
CheckToml / toml: C:\home\git\polyglot\apps\plot\Cargo.toml
All dependencies are up to date, yay!
C:\home\git\polyglot
> polyglot@ outdated-pre C:\home\git\polyglot
> npm-check-updates --target greatest
Using pnpm
Checking C:\home\git\polyglot\package.json
npm-check-updates ~16.14 → ~17.0-1
Run ncu --target greatest -u to upgrade package.json
C:\home\git\polyglot\apps\ipfs
> ipfs@ outdated-pre C:\home\git\polyglot\apps\ipfs
> npm-check-updates --target greatest
Using pnpm
Checking C:\home\git\polyglot\apps\ipfs\package.json
npm-check-updates ~16.14 → ~17.0-1
Run ncu --target greatest -u to upgrade package.json
C:\home\git\polyglot\apps\spiral\temp\extension
> polyglot@ outdated-pre C:\home\git\polyglot\apps\spiral\temp\extension
> npm-check-updates --target greatest
Using pnpm
Checking C:\home\git\polyglot\apps\spiral\temp\extension\package.json
@playwright/test 1.42.1 → 1.43.0-beta-1709675102000
npm-check-updates ~16.14 → ~17.0-1
Run ncu --target greatest -u to upgrade package.json